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
666 common_out_object_file
682 gcc_gxx_libcxx_include_dir_add_sysroot
683 gcc_gxx_libcxx_include_dir
684 gcc_gxx_include_dir_add_sysroot
691 user_headers_inc_next_post
692 user_headers_inc_next_pre
694 TM_MULTILIB_EXCEPTIONS_CONFIG
704 build_xm_include_list
706 build_install_headers_dir
708 all_selected_languages
711 all_lang_configurefrags
719 DO_LINK_SERIALIZATION
731 ld_version_script_option
733 ORIGINAL_DSYMUTIL_FOR_TARGET
738 ORIGINAL_NM_FOR_TARGET
740 ORIGINAL_LD_GOLD_FOR_TARGET
741 ORIGINAL_LD_BFD_FOR_TARGET
742 ORIGINAL_LD_FOR_TARGET
743 ORIGINAL_PLUGIN_LD_FOR_TARGET
745 ORIGINAL_AS_FOR_TARGET
747 ENABLE_DARWIN_AT_RPATH_FALSE
748 ENABLE_DARWIN_AT_RPATH_TRUE
772 BUILD_SYSTEM_HEADER_DIR
792 NATIVE_SYSTEM_HEADER_DIR
819 MAKEINFO_TOC_INLINE_FLAG
833 omp_device_property_deps
834 omp_device_properties
836 real_target_noncanonical
837 enable_as_accelerator
847 DEFAULT_INSNEMIT_PARTITIONS
848 DEFAULT_MATCHPD_PARTITIONS
855 valgrind_path_defines
887 CROSS_SYSTEM_HEADER_DIR
888 TARGET_SYSTEM_ROOT_DEFINE
890 SYSROOT_CFLAGS_FOR_TARGET
936 program_transform_name
947 ac_subst_files
='option_includes
950 enable_option_checking
953 with_native_system_header_dir
957 with_gxx_libcxx_include_dir
959 enable_generated_files_in_srcdir
967 enable_build_format_warnings
971 enable_gather_detailed_mem_stats
972 enable_valgrind_annotations
975 with_stack_clash_protection_guard_size
976 with_matchpd_partitions
977 with_insnemit_partitions
992 with_documentation_root_url
993 with_changes_root_url
996 with_multilib_generator
1001 with_libiconv_prefix
1003 enable_sjlj_exceptions
1004 with_gcc_major_version_only
1006 enable_mingw_wildcard
1007 enable_large_address_aware
1008 enable_leading_mingw64_underscores
1010 enable_frame_pointer
1011 enable_win32_registry
1016 enable_darwin_at_rpath
1017 with_darwin_extra_rpath
1021 enable_gnu_indirect_function
1022 enable_initfini_array
1024 enable_newlib_nano_formatted_io
1025 enable_standard_branch_protection
1026 enable_fix_cortex_a53_835769
1027 enable_fix_cortex_a53_843419
1029 enable_gnu_unique_object
1030 enable_linker_build_id
1033 with_long_double_128
1034 with_long_double_format
1037 enable_maintainer_mode
1039 enable_link_serialization
1040 enable_version_specific_runtime_libs
1044 enable_host_bind_now
1045 enable_libquadmath_support
1046 with_linker_hash_style
1047 with_diagnostics_color
1048 with_diagnostics_urls
1051 enable_s390_excess_float_precision
1053 ac_precious_vars
='build_alias
1072 # Initialize some variables set by options.
1074 ac_init_version
=false
1075 ac_unrecognized_opts
=
1076 ac_unrecognized_sep
=
1077 # The variables have the same names as the options, with
1078 # dashes changed to underlines.
1079 cache_file
=/dev
/null
1086 program_transform_name
=s
,x
,x
,
1094 # Installation directory options.
1095 # These are left unexpanded so users can "make install exec_prefix=/foo"
1096 # and all the variables that are supposed to be based on exec_prefix
1097 # by default will actually change.
1098 # Use braces instead of parens because sh, perl, etc. also accept them.
1099 # (The list follows the same order as the GNU Coding Standards.)
1100 bindir
='${exec_prefix}/bin'
1101 sbindir
='${exec_prefix}/sbin'
1102 libexecdir
='${exec_prefix}/libexec'
1103 datarootdir
='${prefix}/share'
1104 datadir
='${datarootdir}'
1105 sysconfdir
='${prefix}/etc'
1106 sharedstatedir
='${prefix}/com'
1107 localstatedir
='${prefix}/var'
1108 includedir
='${prefix}/include'
1109 oldincludedir
='/usr/include'
1110 docdir
='${datarootdir}/doc/${PACKAGE}'
1111 infodir
='${datarootdir}/info'
1116 libdir
='${exec_prefix}/lib'
1117 localedir
='${datarootdir}/locale'
1118 mandir
='${datarootdir}/man'
1124 # If the previous option needs an argument, assign it.
1125 if test -n "$ac_prev"; then
1126 eval $ac_prev=\
$ac_option
1132 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1137 # Accept the important Cygnus configure options, so we can diagnose typos.
1139 case $ac_dashdash$ac_option in
1143 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1145 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1146 bindir
=$ac_optarg ;;
1148 -build |
--build |
--buil |
--bui |
--bu)
1149 ac_prev
=build_alias
;;
1150 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1151 build_alias
=$ac_optarg ;;
1153 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1154 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1155 ac_prev
=cache_file
;;
1156 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1157 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1158 cache_file
=$ac_optarg ;;
1160 --config-cache |
-C)
1161 cache_file
=config.cache
;;
1163 -datadir |
--datadir |
--datadi |
--datad)
1165 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1166 datadir
=$ac_optarg ;;
1168 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1169 |
--dataroo |
--dataro |
--datar)
1170 ac_prev
=datarootdir
;;
1171 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1172 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1173 datarootdir
=$ac_optarg ;;
1175 -disable-* |
--disable-*)
1176 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 as_fn_error $?
"invalid feature name: $ac_useropt"
1180 ac_useropt_orig
=$ac_useropt
1181 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "enable_
$ac_useropt"
1186 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1187 ac_unrecognized_sep
=', ';;
1189 eval enable_
$ac_useropt=no
;;
1191 -docdir |
--docdir |
--docdi |
--doc |
--do)
1193 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1194 docdir
=$ac_optarg ;;
1196 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1198 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1199 dvidir
=$ac_optarg ;;
1201 -enable-* |
--enable-*)
1202 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1205 as_fn_error $?
"invalid feature name: $ac_useropt"
1206 ac_useropt_orig
=$ac_useropt
1207 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1210 "enable_
$ac_useropt"
1212 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1213 ac_unrecognized_sep
=', ';;
1215 eval enable_
$ac_useropt=\
$ac_optarg ;;
1217 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1218 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1219 |
--exec |
--exe |
--ex)
1220 ac_prev
=exec_prefix
;;
1221 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1222 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1223 |
--exec=* |
--exe=* |
--ex=*)
1224 exec_prefix
=$ac_optarg ;;
1226 -gas |
--gas |
--ga |
--g)
1227 # Obsolete; use --with-gas.
1230 -help |
--help |
--hel |
--he |
-h)
1231 ac_init_help
=long
;;
1232 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1233 ac_init_help
=recursive
;;
1234 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1235 ac_init_help
=short
;;
1237 -host |
--host |
--hos |
--ho)
1238 ac_prev
=host_alias
;;
1239 -host=* |
--host=* |
--hos=* |
--ho=*)
1240 host_alias
=$ac_optarg ;;
1242 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1244 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1246 htmldir
=$ac_optarg ;;
1248 -includedir |
--includedir |
--includedi |
--included |
--include \
1249 |
--includ |
--inclu |
--incl |
--inc)
1250 ac_prev
=includedir
;;
1251 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1252 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1253 includedir
=$ac_optarg ;;
1255 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1257 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1258 infodir
=$ac_optarg ;;
1260 -libdir |
--libdir |
--libdi |
--libd)
1262 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1263 libdir
=$ac_optarg ;;
1265 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1266 |
--libexe |
--libex |
--libe)
1267 ac_prev
=libexecdir
;;
1268 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1269 |
--libexe=* |
--libex=* |
--libe=*)
1270 libexecdir
=$ac_optarg ;;
1272 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1273 ac_prev
=localedir
;;
1274 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1275 localedir
=$ac_optarg ;;
1277 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1278 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1279 ac_prev
=localstatedir
;;
1280 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1281 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1282 localstatedir
=$ac_optarg ;;
1284 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1286 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1287 mandir
=$ac_optarg ;;
1289 -nfp |
--nfp |
--nf)
1290 # Obsolete; use --without-fp.
1293 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1294 |
--no-cr |
--no-c |
-n)
1297 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1298 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1301 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1302 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1303 |
--oldin |
--oldi |
--old |
--ol |
--o)
1304 ac_prev
=oldincludedir
;;
1305 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1306 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1307 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1308 oldincludedir
=$ac_optarg ;;
1310 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1312 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1313 prefix
=$ac_optarg ;;
1315 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1316 |
--program-pre |
--program-pr |
--program-p)
1317 ac_prev
=program_prefix
;;
1318 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1319 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1320 program_prefix
=$ac_optarg ;;
1322 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1323 |
--program-suf |
--program-su |
--program-s)
1324 ac_prev
=program_suffix
;;
1325 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1326 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1327 program_suffix
=$ac_optarg ;;
1329 -program-transform-name |
--program-transform-name \
1330 |
--program-transform-nam |
--program-transform-na \
1331 |
--program-transform-n |
--program-transform- \
1332 |
--program-transform |
--program-transfor \
1333 |
--program-transfo |
--program-transf \
1334 |
--program-trans |
--program-tran \
1335 |
--progr-tra |
--program-tr |
--program-t)
1336 ac_prev
=program_transform_name
;;
1337 -program-transform-name=* |
--program-transform-name=* \
1338 |
--program-transform-nam=* |
--program-transform-na=* \
1339 |
--program-transform-n=* |
--program-transform-=* \
1340 |
--program-transform=* |
--program-transfor=* \
1341 |
--program-transfo=* |
--program-transf=* \
1342 |
--program-trans=* |
--program-tran=* \
1343 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1344 program_transform_name
=$ac_optarg ;;
1346 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1348 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1349 pdfdir
=$ac_optarg ;;
1351 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1353 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1356 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1357 |
-silent |
--silent |
--silen |
--sile |
--sil)
1360 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1362 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1364 sbindir
=$ac_optarg ;;
1366 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1367 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1368 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1370 ac_prev
=sharedstatedir
;;
1371 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1372 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1373 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1375 sharedstatedir
=$ac_optarg ;;
1377 -site |
--site |
--sit)
1379 -site=* |
--site=* |
--sit=*)
1382 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1384 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1385 srcdir
=$ac_optarg ;;
1387 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1388 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1389 ac_prev
=sysconfdir
;;
1390 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1391 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1392 sysconfdir
=$ac_optarg ;;
1394 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1395 ac_prev
=target_alias
;;
1396 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1397 target_alias
=$ac_optarg ;;
1399 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1402 -version |
--version |
--versio |
--versi |
--vers |
-V)
1403 ac_init_version
=: ;;
1406 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1407 # Reject names that are not valid shell variable names.
1408 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1409 as_fn_error $?
"invalid package name: $ac_useropt"
1410 ac_useropt_orig
=$ac_useropt
1411 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1412 case $ac_user_opts in
1416 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1417 ac_unrecognized_sep
=', ';;
1419 eval with_
$ac_useropt=\
$ac_optarg ;;
1421 -without-* |
--without-*)
1422 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1423 # Reject names that are not valid shell variable names.
1424 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1425 as_fn_error $?
"invalid package name: $ac_useropt"
1426 ac_useropt_orig
=$ac_useropt
1427 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1428 case $ac_user_opts in
1432 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1433 ac_unrecognized_sep
=', ';;
1435 eval with_
$ac_useropt=no
;;
1438 # Obsolete; use --with-x.
1441 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1442 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1443 ac_prev
=x_includes
;;
1444 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1445 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1446 x_includes
=$ac_optarg ;;
1448 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1449 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1450 ac_prev
=x_libraries
;;
1451 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1452 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1453 x_libraries
=$ac_optarg ;;
1455 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1456 Try \`$0 --help' for more information"
1460 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1461 # Reject names that are not valid shell variable names.
1462 case $ac_envvar in #(
1463 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1464 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1466 eval $ac_envvar=\
$ac_optarg
1467 export $ac_envvar ;;
1470 # FIXME: should be removed in autoconf 3.0.
1471 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1472 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1473 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1474 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1480 if test -n "$ac_prev"; then
1481 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1482 as_fn_error $?
"missing argument to $ac_option"
1485 if test -n "$ac_unrecognized_opts"; then
1486 case $enable_option_checking in
1488 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1489 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1493 # Check all directory arguments for consistency.
1494 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1495 datadir sysconfdir sharedstatedir localstatedir includedir \
1496 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1497 libdir localedir mandir
1499 eval ac_val
=\$
$ac_var
1500 # Remove trailing slashes.
1503 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1504 eval $ac_var=\
$ac_val;;
1506 # Be sure to have absolute directory names.
1508 [\\/$
]* | ?
:[\\/]* ) continue;;
1509 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1511 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1514 # There might be people who depend on the old broken behavior: `$host'
1515 # used to hold the argument of --host etc.
1516 # FIXME: To remove some day.
1519 target
=$target_alias
1521 # FIXME: To remove some day.
1522 if test "x$host_alias" != x
; then
1523 if test "x$build_alias" = x
; then
1524 cross_compiling
=maybe
1525 elif test "x$build_alias" != "x$host_alias"; then
1531 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1533 test "$silent" = yes && exec 6>/dev
/null
1536 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1537 ac_ls_di
=`ls -di .` &&
1538 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1539 as_fn_error $?
"working directory cannot be determined"
1540 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1541 as_fn_error $?
"pwd does not report name of working directory"
1544 # Find the source files, if location was not specified.
1545 if test -z "$srcdir"; then
1546 ac_srcdir_defaulted
=yes
1547 # Try the directory containing this script, then the parent directory.
1548 ac_confdir
=`$as_dirname -- "$as_myself" ||
1549 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1550 X"$as_myself" : 'X\(//\)[^/]' \| \
1551 X"$as_myself" : 'X\(//\)$' \| \
1552 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1553 $as_echo X"$as_myself" |
1554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1572 if test ! -r "$srcdir/$ac_unique_file"; then
1576 ac_srcdir_defaulted
=no
1578 if test ! -r "$srcdir/$ac_unique_file"; then
1579 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1580 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1582 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1584 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1586 # When building in place, set srcdir=.
1587 if test "$ac_abs_confdir" = "$ac_pwd"; then
1590 # Remove unnecessary trailing slashes from srcdir.
1591 # Double slashes in file names in object file debugging info
1592 # mess up M-x gdb in Emacs.
1594 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1596 for ac_var
in $ac_precious_vars; do
1597 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1598 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1599 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1600 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1604 # Report the --help message.
1606 if test "$ac_init_help" = "long"; then
1607 # Omit some internal or obsolete options to make the list less imposing.
1608 # This message is too long to be a string in the A/UX 3.1 sh.
1610 \`configure' configures this package to adapt to many kinds of systems.
1612 Usage: $0 [OPTION]... [VAR=VALUE]...
1614 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1615 VAR=VALUE. See below for descriptions of some of the useful variables.
1617 Defaults for the options are specified in brackets.
1620 -h, --help display this help and exit
1621 --help=short display options specific to this package
1622 --help=recursive display the short help of all the included packages
1623 -V, --version display version information and exit
1624 -q, --quiet, --silent do not print \`checking ...' messages
1625 --cache-file=FILE cache test results in FILE [disabled]
1626 -C, --config-cache alias for \`--cache-file=config.cache'
1627 -n, --no-create do not create output files
1628 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1630 Installation directories:
1631 --prefix=PREFIX install architecture-independent files in PREFIX
1632 [$ac_default_prefix]
1633 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1636 By default, \`make install' will install all the files in
1637 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1638 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1639 for instance \`--prefix=\$HOME'.
1641 For better control, use the options below.
1643 Fine tuning of the installation directories:
1644 --bindir=DIR user executables [EPREFIX/bin]
1645 --sbindir=DIR system admin executables [EPREFIX/sbin]
1646 --libexecdir=DIR program executables [EPREFIX/libexec]
1647 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1648 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1649 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1650 --libdir=DIR object code libraries [EPREFIX/lib]
1651 --includedir=DIR C header files [PREFIX/include]
1652 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1653 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1654 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1655 --infodir=DIR info documentation [DATAROOTDIR/info]
1656 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1657 --mandir=DIR man documentation [DATAROOTDIR/man]
1658 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1659 --htmldir=DIR html documentation [DOCDIR]
1660 --dvidir=DIR dvi documentation [DOCDIR]
1661 --pdfdir=DIR pdf documentation [DOCDIR]
1662 --psdir=DIR ps documentation [DOCDIR]
1668 --program-prefix=PREFIX prepend PREFIX to installed program names
1669 --program-suffix=SUFFIX append SUFFIX to installed program names
1670 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1673 --build=BUILD configure
for building on BUILD
[guessed
]
1674 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1675 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1679 if test -n "$ac_init_help"; then
1684 --disable-option-checking ignore unrecognized
--enable/--with options
1685 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1686 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1687 --enable-generated-files-in-srcdir
1688 put copies of generated files
in source dir intended
1689 for creating
source tarballs
for users without
1690 texinfo bison or flex
1691 --disable-largefile omit support
for large files
1692 --disable-build-format-warnings
1693 don
't use -Wformat while building GCC
1694 --enable-werror-always enable -Werror despite compiler version
1695 --enable-checking[=LIST]
1696 enable expensive run-time checks. With LIST, enable
1697 only specific categories of checks. Categories are:
1698 yes,no,all,none,release. Flags are:
1699 assert,df,extra,fold,gc,gcac,gimple,misc,
1700 rtlflag,rtl,runtime,tree,valgrind,types
1701 --enable-coverage[=LEVEL]
1702 enable compiler's code coverage collection. Use to
1703 measure compiler performance and
locate unused parts
1704 of the compiler. With LEVEL
, specify optimization.
1705 Values are opt
, noopt
, default is noopt
1706 --enable-gather-detailed-mem-stats
1707 enable detailed memory allocation stats gathering
1708 --enable-valgrind-annotations
1709 enable valgrind runtime interaction
1710 --enable-multilib enable library support
for multiple ABIs
1711 --enable-multiarch enable support
for multiarch paths
1712 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1713 --enable-decimal-float={no
,yes,bid
,dpd
}
1714 enable decimal float extension to C. Selecting
'bid'
1715 or
'dpd' choses
which decimal floating point format
1717 --enable-fixed-point enable fixed-point arithmetic extension to C
1718 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1720 --enable-tls enable or disable generation of tls code overriding
1721 the assembler check
for tls support
1722 --enable-vtable-verify enable vtable verification feature
1723 --disable-analyzer disable
-fanalyzer static analyzer
1724 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1725 GNU Objective-C runtime
1726 --disable-shared don't provide a shared libgcc
1727 --disable-gcov don
't provide libgcov and related host tools
1728 --enable-languages=LIST specify which front-ends to build
1729 --disable-rpath do not hardcode runtime library paths
1730 --enable-sjlj-exceptions
1731 arrange to use setjmp/longjmp exception handling
1732 --enable-secureplt enable -msecure-plt by default for PowerPC
1733 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1734 Default to platform configuration
1735 --enable-large-address-aware
1736 Link mingw executables with --large-address-aware
1737 --enable-leading-mingw64-underscores
1738 enable leading underscores on 64 bit mingw targets
1739 --enable-cld enable -mcld by default for 32bit x86
1740 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1741 --disable-win32-registry
1742 disable lookup of installation paths in the Registry
1744 --enable-win32-registry enable registry lookup (default)
1745 --enable-win32-registry=KEY
1746 use KEY instead of GCC version as the last portion
1748 --enable-shared[=PKGS] build shared libraries [default=yes]
1749 --enable-static[=PKGS] build static libraries [default=yes]
1750 --enable-fast-install[=PKGS]
1751 optimize for fast installation [default=yes]
1752 --disable-libtool-lock avoid locking (might break parallel builds)
1753 --enable-darwin-at-rpath
1754 install libraries with @rpath/library-name, requires
1755 rpaths to be added to executables
1756 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1757 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1758 --enable-gnu-indirect-function
1759 enable the use of the @gnu_indirect_function to
1761 --enable-initfini-array use .init_array/.fini_array sections
1762 --enable-comdat enable COMDAT group support
1763 --enable-newlib-nano-formatted-io
1764 Use nano version formatted IO
1766 --enable-standard-branch-protection
1767 enable Branch Target Identification Mechanism and
1768 Return Address Signing by default for AArch64
1769 --disable-standard-branch-protection
1770 disable Branch Target Identification Mechanism and
1771 Return Address Signing by default for AArch64
1774 --enable-fix-cortex-a53-835769
1775 enable workaround for AArch64 Cortex-A53 erratum
1777 --disable-fix-cortex-a53-835769
1778 disable workaround for AArch64 Cortex-A53 erratum
1782 --enable-fix-cortex-a53-843419
1783 enable workaround for AArch64 Cortex-A53 erratum
1785 --disable-fix-cortex-a53-843419
1786 disable workaround for AArch64 Cortex-A53 erratum
1789 --enable-gnu-unique-object
1790 enable the use of the @gnu_unique_object ELF
1791 extension on glibc systems
1792 --enable-linker-build-id
1793 compiler will always pass --build-id to linker
1794 --enable-libssp enable linking against libssp
1795 --enable-default-ssp enable Stack Smashing Protection as default
1796 --enable-maintainer-mode
1797 enable make rules and dependencies not useful (and
1798 sometimes confusing) to the casual installer
1799 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1800 thrashing on the build machine
1801 --enable-link-serialization
1802 avoid linking multiple GCC front-ends at once using
1803 make dependencies to avoid thrashing on the build
1805 --enable-version-specific-runtime-libs
1806 specify that runtime libraries should be installed
1807 in a compiler-specific directory
1808 --enable-plugin enable plugin support
1809 --enable-host-shared build host code as shared libraries
1810 --enable-host-pie build host code as PIE
1811 --enable-host-bind-now link host code as BIND_NOW
1812 --disable-libquadmath-support
1813 disable libquadmath support for Fortran
1814 --enable-default-pie enable Position Independent Executable as default
1815 --enable-cet enable Intel CET in host libraries [default=auto]
1816 --enable-s390-excess-float-precision
1817 on s390 targets, evaluate float with double
1818 precision when in standards-conforming mode
1821 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1822 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1823 --with-build-libsubdir=DIR Directory where to find libraries for build system
1824 --with-local-prefix=DIR specifies directory to put local include
1825 --with-native-system-header-dir=dir
1826 use dir as the directory to look for standard
1827 system header files in. Defaults to /usr/include.
1828 --with-build-sysroot=sysroot
1829 use sysroot as the system root during the build
1830 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1831 --with-gxx-include-dir=DIR
1832 specifies directory to put g++ header files
1833 --with-gxx-libcxx-include-dir=DIR
1834 specifies directory to find libc++ header files
1835 --with-cpp-install-dir=DIR
1836 install the user visible C preprocessor in DIR
1837 (relative to PREFIX) as well as PREFIX/bin
1838 --with-gnu-ld arrange to work with GNU ld
1839 --with-ld arrange to use the specified ld (full pathname)
1840 --with-demangler-in-ld try to use demangler in GNU ld
1841 --with-dsymutil arrange to use the specified dsymutil (full
1843 --with-gnu-as arrange to work with GNU as
1844 --with-as arrange to use the specified as (full pathname)
1845 --with-stack-clash-protection-guard-size=size
1846 Set the default stack clash protection guard size
1847 for specific targets as a power of two in bytes.
1848 --with-matchpd-partitions=num
1849 Set the number of partitions to make for gimple and
1850 generic when splitting match.pd. [default=10]
1851 --with-insnemit-partitions=num
1852 Set the number of partitions of insn-emit.cc for
1853 genemit to create. [default=10]
1854 --with-dwarf2 force the default debug format to be DWARF 2 (or
1856 --with-specs=SPECS add SPECS to driver command-line processing
1857 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1858 --with-bugurl=URL Direct users to URL to report a bug
1859 --with-documentation-root-url=URL
1860 Root for documentation URLs
1861 --with-changes-root-url=URL
1862 Root for GCC changes URLs
1863 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1865 --with-multilib-generator
1866 Multi-libs configuration string (RISC-V only)
1867 --with-zstd=PATH specify prefix directory for installed zstd library.
1868 Equivalent to --with-zstd-include=PATH/include plus
1869 --with-zstd-lib=PATH/lib
1870 --with-zstd-include=PATH
1871 specify directory for installed zstd include files
1872 --with-zstd-lib=PATH specify directory for the installed zstd library
1873 --with-gnu-ld assume the C compiler uses GNU ld default=no
1874 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1875 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1876 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1877 --with-gcc-major-version-only
1878 use only GCC major number
in filesystem paths
1879 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1881 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1882 --with-darwin-extra-rpath=[ARG
]
1883 Specify a runpath directory
, additional to those
1884 provided by the compiler
1885 --with-plugin-ld=[ARG
] specify the plugin linker
1886 --with-glibc-version=M.N
1887 assume GCC used with glibc version M.N or later
1888 --with-long-double-128 use
128-bit long double by default
1889 --with-long-double-format={ieee
,ibm
}
1890 Specify whether PowerPC long double uses IEEE or IBM format
1892 --with-gc={page
,zone
} this option is not supported anymore. It used to
1893 choose the garbage collection mechanism to use with
1895 --with-system-zlib use installed libz
1896 --with-linker-hash-style={sysv
,gnu
,both
}
1897 specify the linker
hash style
1898 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1899 specify the default of
-fdiagnostics-color option
1900 auto-if-env stands
for -fdiagnostics-color=auto
if
1901 GCC_COLOR environment variable is present and
1902 -fdiagnostics-color=never otherwise
1903 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1904 specify the default of
-fdiagnostics-urls option
1905 auto-if-env stands
for -fdiagnostics-urls=auto
if
1906 GCC_URLS or TERM_URLS environment variable is
1907 present and
-fdiagnostics-urls=never otherwise
1909 Some influential environment variables
:
1910 CC C compiler
command
1911 CFLAGS C compiler flags
1912 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1913 nonstandard directory
<lib dir
>
1914 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1915 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1916 you have headers
in a nonstandard directory
<include dir
>
1917 CXX C
++ compiler
command
1918 CXXFLAGS C
++ compiler flags
1919 CXXCPP C
++ preprocessor
1921 GMPLIBS How to link GMP
1922 GMPINC How to
find GMP include files
1923 ISLLIBS How to link isl
1924 ISLINC How to
find isl include files
1926 Use these variables to override the choices made by
`configure' or to help
1927 it to find libraries and programs with nonstandard names/locations.
1929 Report bugs to the package provider.
1934 if test "$ac_init_help" = "recursive"; then
1935 # If there are subdirs, report their specific --help.
1936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1937 test -d "$ac_dir" ||
1938 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1943 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1945 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1946 # A ".." for each directory in $ac_dir_suffix.
1947 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1948 case $ac_top_builddir_sub in
1949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1953 ac_abs_top_builddir=$ac_pwd
1954 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1955 # for backward compatibility:
1956 ac_top_builddir=$ac_top_build_prefix
1959 .) # We are building in place.
1961 ac_top_srcdir=$ac_top_builddir_sub
1962 ac_abs_top_srcdir=$ac_pwd ;;
1963 [\\/]* | ?:[\\/]* ) # Absolute name.
1964 ac_srcdir=$srcdir$ac_dir_suffix;
1965 ac_top_srcdir=$srcdir
1966 ac_abs_top_srcdir=$srcdir ;;
1968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1969 ac_top_srcdir=$ac_top_build_prefix$srcdir
1970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1972 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1974 cd "$ac_dir" || { ac_status=$?; continue; }
1975 # Check for guested configure.
1976 if test -f "$ac_srcdir/configure.gnu"; then
1978 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1979 elif test -f "$ac_srcdir/configure"; then
1981 $SHELL "$ac_srcdir/configure" --help=recursive
1983 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1985 cd "$ac_pwd" || { ac_status=$?; break; }
1989 test -n "$ac_init_help" && exit $ac_status
1990 if $ac_init_version; then
1993 generated by GNU Autoconf 2.69
1995 Copyright (C) 2012 Free Software Foundation, Inc.
1996 This configure script is free software; the Free Software Foundation
1997 gives unlimited permission to copy, distribute and modify it.
2002 ## ------------------------ ##
2003 ## Autoconf initialization. ##
2004 ## ------------------------ ##
2006 # ac_fn_c_try_compile LINENO
2007 # --------------------------
2008 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2009 ac_fn_c_try_compile ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 rm -f conftest.$ac_objext
2013 if { { ac_try="$ac_compile"
2015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2016 *) ac_try_echo
=$ac_try;;
2018 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_compile") 2>conftest.err
2022 if test -s conftest.err
; then
2023 grep -v '^ *+' conftest.err
>conftest.er1
2024 cat conftest.er1
>&5
2025 mv -f conftest.er1 conftest.err
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest.
$ac_objext; then :
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.
$ac_ext >&5
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 as_fn_set_status
$ac_retval
2042 } # ac_fn_c_try_compile
2044 # ac_fn_cxx_try_compile LINENO
2045 # ----------------------------
2046 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_cxx_try_compile
()
2049 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2050 rm -f conftest.
$ac_objext
2051 if { { ac_try
="$ac_compile"
2053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_compile") 2>conftest.err
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_cxx_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest.$ac_objext; then :
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2080 } # ac_fn_cxx_try_compile
2082 # ac_fn_cxx_try_cpp LINENO
2083 # ------------------------
2084 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085 ac_fn_cxx_try_cpp ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if { { ac_try="$ac_cpp conftest.$ac_ext"
2090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2091 *) ac_try_echo
=$ac_try;;
2093 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097 if test -s conftest.err
; then
2098 grep -v '^ *+' conftest.err
>conftest.er1
2099 cat conftest.er1
>&5
2100 mv -f conftest.er1 conftest.err
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103 test $ac_status = 0; } > conftest.i
&& {
2104 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2105 test ! -s conftest.err
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.
$ac_ext >&5
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115 as_fn_set_status
$ac_retval
2117 } # ac_fn_cxx_try_cpp
2119 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2120 # ---------------------------------------------------------
2121 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122 # the include files in INCLUDES and setting the cache variable VAR
2124 ac_fn_cxx_check_header_mongrel
()
2126 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2127 if eval \
${$3+:} false
; then :
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \
${$3+:} false
; then :
2131 $as_echo_n "(cached) " >&6
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2137 # Is the header compilable?
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139 $as_echo_n "checking $2 usability... " >&6; }
2140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2145 if ac_fn_cxx_try_compile
"$LINENO"; then :
2146 ac_header_compiler
=yes
2148 ac_header_compiler
=no
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152 $as_echo "$ac_header_compiler" >&6; }
2154 # Is the header present?
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156 $as_echo_n "checking $2 presence... " >&6; }
2157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2162 ac_header_preproc
=yes
2164 ac_header_preproc
=no
2166 rm -f conftest.err conftest.i conftest.
$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168 $as_echo "$ac_header_preproc" >&6; }
2170 # So? What about this header?
2171 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if eval \
${$3+:} false
; then :
2194 $as_echo_n "(cached) " >&6
2196 eval "$3=\$ac_header_compiler"
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 } # ac_fn_cxx_check_header_mongrel
2206 # ac_fn_cxx_try_run LINENO
2207 # ------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2209 # that executables *can* be run.
2210 ac_fn_cxx_try_run
()
2212 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2213 if { { ac_try
="$ac_link"
2215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>&5
2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2224 { { case "(($ac_try" in
2225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2226 *) ac_try_echo
=$ac_try;;
2228 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_try") 2>&5
2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233 test $ac_status = 0; }; }; then :
2236 $as_echo "$as_me: program exited with status $ac_status" >&5
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.
$ac_ext >&5
2240 ac_retval
=$ac_status
2242 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 as_fn_set_status
$ac_retval
2246 } # ac_fn_cxx_try_run
2248 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2249 # ---------------------------------------------------------
2250 # Tests whether HEADER exists and can be compiled using the include files in
2251 # INCLUDES, setting the cache variable VAR accordingly.
2252 ac_fn_cxx_check_header_compile
()
2254 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if eval \
${$3+:} false
; then :
2258 $as_echo_n "(cached) " >&6
2260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2265 if ac_fn_cxx_try_compile
"$LINENO"; then :
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277 } # ac_fn_cxx_check_header_compile
2279 # ac_fn_c_try_cpp LINENO
2280 # ----------------------
2281 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2284 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2285 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2294 if test -s conftest.err; then
2295 grep -v '^ *+' conftest.err >conftest.er1
2296 cat conftest.er1 >&5
2297 mv -f conftest.er1 conftest.err
2299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300 test $ac_status = 0; } > conftest.i && {
2301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2302 test ! -s conftest.err
2306 $as_echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 as_fn_set_status $ac_retval
2316 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2317 # ----------------------------------------------
2318 # Tries to find the compile-time value of EXPR in a program that includes
2319 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2321 ac_fn_cxx_compute_int ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 if test "$cross_compiling" = yes; then
2325 # Depending upon the size, compute the lo and hi bounds.
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2332 static int test_array [1 - 2 * !(($2) >= 0)];
2334 return test_array [0];
2340 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2349 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2351 return test_array [0];
2357 if ac_fn_cxx_try_compile "$LINENO"; then :
2358 ac_hi=$ac_mid; break
2360 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2361 if test $ac_lo -le $ac_mid; then
2365 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2376 static int test_array [1 - 2 * !(($2) < 0)];
2378 return test_array [0];
2384 if ac_fn_cxx_try_compile "$LINENO"; then :
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2393 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2395 return test_array [0];
2401 if ac_fn_cxx_try_compile "$LINENO"; then :
2402 ac_lo=$ac_mid; break
2404 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2405 if test $ac_mid -le $ac_hi; then
2409 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 # Binary search between lo and hi bounds.
2420 while test "x$ac_lo" != "x$ac_hi"; do
2421 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2428 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2430 return test_array [0];
2436 if ac_fn_cxx_try_compile "$LINENO"; then :
2439 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2451 static long int longval () { return $2; }
2452 static unsigned long int ulongval () { return $2; }
2459 FILE *f = fopen ("conftest.val", "w");
2464 long int i = longval ();
2467 fprintf (f, "%ld", i);
2471 unsigned long int i = ulongval ();
2474 fprintf (f, "%lu", i);
2476 /* Do not output a trailing newline, as this causes \r\n confusion
2477 on some platforms. */
2478 return ferror (f) || fclose (f) != 0;
2484 if ac_fn_cxx_try_run "$LINENO"; then :
2485 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2490 conftest.$ac_objext conftest.beam conftest.$ac_ext
2494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2495 as_fn_set_status $ac_retval
2497 } # ac_fn_cxx_compute_int
2499 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2500 # ---------------------------------------------
2501 # Tests whether TYPE exists after having included INCLUDES, setting cache
2502 # variable VAR accordingly.
2503 ac_fn_cxx_check_type ()
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2507 $as_echo_n "checking for $2... " >&6; }
2508 if eval \${$3+:} false; then :
2509 $as_echo_n "(cached) " >&6
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2524 if ac_fn_cxx_try_compile "$LINENO"; then :
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2537 if ac_fn_cxx_try_compile "$LINENO"; then :
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548 $as_echo "$ac_res" >&6; }
2549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551 } # ac_fn_cxx_check_type
2553 # ac_fn_c_find_intX_t LINENO BITS VAR
2554 # -----------------------------------
2555 # Finds a signed integer type with width BITS, setting cache variable VAR
2557 ac_fn_c_find_intX_t ()
2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2561 $as_echo_n "checking for int$2_t... " >&6; }
2562 if eval \${$3+:} false; then :
2563 $as_echo_n "(cached) " >&6
2566 # Order is important - never check a type that is potentially smaller
2567 # than half of the expected target width.
2568 for ac_type in int$2_t 'int' 'long int' \
2569 'long long int' 'short int' 'signed char'; do
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 $ac_includes_default
2573 enum { N = $2 / 2 - 1 };
2577 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2579 return test_array [0];
2585 if ac_fn_cxx_try_compile "$LINENO"; then :
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2588 $ac_includes_default
2589 enum { N = $2 / 2 - 1 };
2593 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2594 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2596 return test_array [0];
2602 if ac_fn_cxx_try_compile "$LINENO"; then :
2609 eval "$3=\$ac_type" ;;
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 if eval test \"x\$"$3"\" = x"no"; then :
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2627 } # ac_fn_c_find_intX_t
2629 # ac_fn_cxx_try_link LINENO
2630 # -------------------------
2631 # Try to link conftest.$ac_ext, and return whether this succeeded.
2632 ac_fn_cxx_try_link ()
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 rm -f conftest.$ac_objext conftest$ac_exeext
2636 if { { ac_try="$ac_link"
2638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2639 *) ac_try_echo
=$ac_try;;
2641 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_link") 2>conftest.err
2645 if test -s conftest.err
; then
2646 grep -v '^ *+' conftest.err
>conftest.er1
2647 cat conftest.er1
>&5
2648 mv -f conftest.er1 conftest.err
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; } && {
2652 test -z "$ac_cxx_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest
$ac_exeext && {
2655 test "$cross_compiling" = yes ||
2656 test -x conftest
$ac_exeext
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.
$ac_ext >&5
2665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2667 # interfere with the next link command; also delete a directory that is
2668 # left behind by Apple's compiler. We do this before executing the actions.
2669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 as_fn_set_status
$ac_retval
2673 } # ac_fn_cxx_try_link
2675 # ac_fn_c_find_uintX_t LINENO BITS VAR
2676 # ------------------------------------
2677 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2679 ac_fn_c_find_uintX_t
()
2681 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2683 $as_echo_n "checking for uint$2_t... " >&6; }
2684 if eval \
${$3+:} false
; then :
2685 $as_echo_n "(cached) " >&6
2688 # Order is important - never check a type that is potentially smaller
2689 # than half of the expected target width.
2690 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2691 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2694 $ac_includes_default
2698 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2700 return test_array [0];
2706 if ac_fn_cxx_try_compile
"$LINENO"; then :
2711 eval "$3=\$ac_type" ;;
2714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2715 if eval test \"x\$
"$3"\" = x
"no"; then :
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727 } # ac_fn_c_find_uintX_t
2729 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2730 # ------------------------------------------------
2731 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2732 ac_fn_cxx_check_header_preproc
()
2734 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2736 $as_echo_n "checking for $2... " >&6; }
2737 if eval \
${$3+:} false
; then :
2738 $as_echo_n "(cached) " >&6
2740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2744 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2749 rm -f conftest.err conftest.i conftest.
$ac_ext
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2753 $as_echo "$ac_res" >&6; }
2754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2756 } # ac_fn_cxx_check_header_preproc
2758 # ac_fn_cxx_check_func LINENO FUNC VAR
2759 # ------------------------------------
2760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2761 ac_fn_cxx_check_func
()
2763 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2765 $as_echo_n "checking for $2... " >&6; }
2766 if eval \
${$3+:} false
; then :
2767 $as_echo_n "(cached) " >&6
2769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h. */
2771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2773 #define $2 innocuous_$2
2775 /* System header to define __stub macros and hopefully few prototypes,
2776 which can conflict with char $2 (); below.
2777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2778 <limits.h> exists even on freestanding compilers. */
2781 # include <limits.h>
2783 # include <assert.h>
2788 /* Override any GCC internal prototype to avoid an error.
2789 Use char because int might match the return type of a GCC
2790 builtin and then its argument prototype would still apply. */
2795 /* The GNU C library defines this for functions which it implements
2796 to always fail with ENOSYS. Some functions are actually named
2797 something starting with __ and the normal name is an alias. */
2798 #if defined __stub_$2 || defined __stub___$2
2810 if ac_fn_cxx_try_link
"$LINENO"; then :
2815 rm -f core conftest.err conftest.
$ac_objext \
2816 conftest
$ac_exeext conftest.
$ac_ext
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2820 $as_echo "$ac_res" >&6; }
2821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2823 } # ac_fn_cxx_check_func
2825 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2826 # -----------------------------------------------
2827 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2829 ac_fn_cxx_check_decl
()
2831 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2832 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2833 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2835 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2836 if eval \
${$3+:} false
; then :
2837 $as_echo_n "(cached) " >&6
2839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2840 /* end confdefs.h. */
2845 #ifndef $as_decl_name
2847 (void) $as_decl_use;
2849 (void) $as_decl_name;
2857 if ac_fn_cxx_try_compile
"$LINENO"; then :
2862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2866 $as_echo "$ac_res" >&6; }
2867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2869 } # ac_fn_cxx_check_decl
2871 # ac_fn_c_try_link LINENO
2872 # -----------------------
2873 # Try to link conftest.$ac_ext, and return whether this succeeded.
2876 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2877 rm -f conftest.
$ac_objext conftest
$ac_exeext
2878 if { { ac_try
="$ac_link"
2880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884 $as_echo "$ac_try_echo"; } >&5
2885 (eval "$ac_link") 2>conftest.err
2887 if test -s conftest.err; then
2888 grep -v '^ *+' conftest.err >conftest.er1
2889 cat conftest.er1 >&5
2890 mv -f conftest.er1 conftest.err
2892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893 test $ac_status = 0; } && {
2894 test -z "$ac_c_werror_flag" ||
2895 test ! -s conftest.err
2896 } && test -s conftest$ac_exeext && {
2897 test "$cross_compiling" = yes ||
2898 test -x conftest$ac_exeext
2902 $as_echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2909 # interfere with the next link command; also delete a directory that is
2910 # left behind by Apple's compiler. We do this before executing the actions.
2911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2913 as_fn_set_status $ac_retval
2915 } # ac_fn_c_try_link
2917 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2918 # ----------------------------------------------
2919 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2920 ac_fn_c_check_header_preproc ()
2922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2924 $as_echo_n "checking for $2... " >&6; }
2925 if eval \${$3+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2932 if ac_fn_c_try_cpp "$LINENO"; then :
2937 rm -f conftest.err conftest.i conftest.$ac_ext
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2941 $as_echo "$ac_res" >&6; }
2942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2944 } # ac_fn_c_check_header_preproc
2946 # ac_fn_c_check_func LINENO FUNC VAR
2947 # ----------------------------------
2948 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2949 ac_fn_c_check_func ()
2951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2953 $as_echo_n "checking for $2... " >&6; }
2954 if eval \${$3+:} false; then :
2955 $as_echo_n "(cached) " >&6
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2959 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2961 #define $2 innocuous_$2
2963 /* System header to define __stub macros and hopefully few prototypes,
2964 which can conflict with char $2 (); below.
2965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2966 <limits.h> exists even on freestanding compilers. */
2969 # include <limits.h>
2971 # include <assert.h>
2976 /* Override any GCC internal prototype to avoid an error.
2977 Use char because int might match the return type of a GCC
2978 builtin and then its argument prototype would still apply. */
2983 /* The GNU C library defines this for functions which it implements
2984 to always fail with ENOSYS. Some functions are actually named
2985 something starting with __ and the normal name is an alias. */
2986 #if defined __stub_$2 || defined __stub___$2
2998 if ac_fn_c_try_link "$LINENO"; then :
3003 rm -f core conftest.err conftest.$ac_objext \
3004 conftest$ac_exeext conftest.$ac_ext
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3008 $as_echo "$ac_res" >&6; }
3009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3011 } # ac_fn_c_check_func
3012 cat >config.log <<_ACEOF
3013 This file contains any messages produced by compilers while
3014 running configure, to aid debugging if configure makes a mistake.
3016 It was created by $as_me, which was
3017 generated by GNU Autoconf 2.69. Invocation command line was
3029 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3030 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3031 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3032 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3033 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3035 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3036 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3038 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3039 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3040 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3041 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3042 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3043 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3044 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir=.
3053 $as_echo "PATH: $as_dir"
3069 # Keep a trace of the command line.
3070 # Strip out --no-create and --no-recursion so they do not pile up.
3071 # Strip out --silent because we don't want to record it for future runs.
3072 # Also quote any args containing shell meta-characters.
3073 # Make two passes to allow for proper duplicate-argument suppression.
3077 ac_must_keep_next=false
3083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3085 | -silent | --silent | --silen | --sile | --sil)
3088 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3093 as_fn_append ac_configure_args1 " '$ac_arg'"
3094 if test $ac_must_keep_next = true; then
3095 ac_must_keep_next=false # Got value, back to normal.
3098 *=* | --config-cache | -C | -disable-* | --disable-* \
3099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3101 | -with-* | --with-* | -without-* | --without-* | --x)
3102 case "$ac_configure_args0 " in
3103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3106 -* ) ac_must_keep_next=true ;;
3109 as_fn_append ac_configure_args " '$ac_arg'"
3114 { ac_configure_args0=; unset ac_configure_args0;}
3115 { ac_configure_args1=; unset ac_configure_args1;}
3117 # When interrupted or exit'd, cleanup temporary files, and complete
3118 # config.log. We remove comments because anyway the quotes in there
3119 # would cause problems or look ugly.
3120 # WARNING: Use '\'' to represent an apostrophe within the trap.
3121 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3122 trap 'exit_status=$?
3123 # Save into config.log some information that might help in debugging.
3127 $as_echo "## ---------------- ##
3128 ## Cache variables. ##
3129 ## ---------------- ##"
3131 # The following way of writing the cache mishandles newlines in values,
3133 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3134 eval ac_val=\$$ac_var
3138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3139 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3142 _ | IFS | as_nl) ;; #(
3143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3144 *) { eval $ac_var=; unset $ac_var;} ;;
3149 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3150 *${as_nl}ac_space=\ *)
3152 "s/'\''/'\''\\\\'\'''\''/g;
3153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3163 $as_echo "## ----------------- ##
3164 ## Output variables. ##
3165 ## ----------------- ##"
3167 for ac_var in $ac_subst_vars
3169 eval ac_val=\$$ac_var
3171 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3173 $as_echo "$ac_var='\''$ac_val'\''"
3177 if test -n "$ac_subst_files"; then
3178 $as_echo "## ------------------- ##
3179 ## File substitutions. ##
3180 ## ------------------- ##"
3182 for ac_var in $ac_subst_files
3184 eval ac_val=\$$ac_var
3186 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3188 $as_echo "$ac_var='\''$ac_val'\''"
3193 if test -s confdefs.h; then
3194 $as_echo "## ----------- ##
3201 test "$ac_signal" != 0 &&
3202 $as_echo "$as_me: caught signal $ac_signal"
3203 $as_echo "$as_me: exit $exit_status"
3205 rm -f core *.core core.conftest.* &&
3206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3209 for ac_signal in 1 2 13 15; do
3210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3215 rm -f -r conftest* confdefs.h
3217 $as_echo "/* confdefs.h */" > confdefs.h
3219 # Predefined preprocessor variables.
3221 cat >>confdefs.h <<_ACEOF
3222 #define PACKAGE_NAME "$PACKAGE_NAME"
3225 cat >>confdefs.h <<_ACEOF
3226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3229 cat >>confdefs.h <<_ACEOF
3230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3233 cat >>confdefs.h <<_ACEOF
3234 #define PACKAGE_STRING "$PACKAGE_STRING"
3237 cat >>confdefs.h <<_ACEOF
3238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3241 cat >>confdefs.h <<_ACEOF
3242 #define PACKAGE_URL "$PACKAGE_URL"
3246 # Let the site file select an alternate cache file if it wants to.
3247 # Prefer an explicitly selected file to automatically selected ones.
3250 if test -n "$CONFIG_SITE"; then
3251 # We do not want a PATH search for config.site.
3252 case $CONFIG_SITE in #((
3253 -*) ac_site_file1=./$CONFIG_SITE;;
3254 */*) ac_site_file1=$CONFIG_SITE;;
3255 *) ac_site_file1=./$CONFIG_SITE;;
3257 elif test "x$prefix" != xNONE; then
3258 ac_site_file1=$prefix/share/config.site
3259 ac_site_file2=$prefix/etc/config.site
3261 ac_site_file1=$ac_default_prefix/share/config.site
3262 ac_site_file2=$ac_default_prefix/etc/config.site
3264 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3266 test "x$ac_site_file" = xNONE && continue
3267 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3269 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3270 sed 's/^/| /' "$ac_site_file" >&5
3272 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $? "failed to load site
script $ac_site_file
3275 See \
`config.log' for more details" "$LINENO" 5; }
3279 if test -r "$cache_file"; then
3280 # Some versions of bash will fail to source /dev/null (special files
3281 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3282 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3284 $as_echo "$as_me: loading cache $cache_file" >&6;}
3286 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3287 *) . "./$cache_file";;
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3292 $as_echo "$as_me: creating cache $cache_file" >&6;}
3296 # Check that the precious variables saved in the cache have kept the same
3298 ac_cache_corrupted=false
3299 for ac_var in $ac_precious_vars; do
3300 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3301 eval ac_new_set=\$ac_env_${ac_var}_set
3302 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3303 eval ac_new_val=\$ac_env_${ac_var}_value
3304 case $ac_old_set,$ac_new_set in
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3307 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3308 ac_cache_corrupted=: ;;
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3311 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3312 ac_cache_corrupted=: ;;
3315 if test "x$ac_old_val" != "x$ac_new_val"; then
3316 # differences in whitespace do not lead to failure.
3317 ac_old_val_w=`echo x
$ac_old_val`
3318 ac_new_val_w=`echo x
$ac_new_val`
3319 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3321 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3322 ac_cache_corrupted=:
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3325 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3326 eval $ac_var=\$ac_old_val
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3329 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3331 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3334 # Pass precious variables to config.status.
3335 if test "$ac_new_set" = set; then
3337 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3338 *) ac_arg=$ac_var=$ac_new_val ;;
3340 case " $ac_configure_args " in
3341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3342 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3346 if $ac_cache_corrupted; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3350 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3351 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3353 ## -------------------- ##
3354 ## Main body of script. ##
3355 ## -------------------- ##
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3372 gcc_version=`cat $srcdir/BASE-VER
`
3374 # Determine the host, build, and target systems
3376 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3377 if test -f "$ac_dir/install-sh"; then
3379 ac_install_sh="$ac_aux_dir/install-sh -c"
3381 elif test -f "$ac_dir/install.sh"; then
3383 ac_install_sh="$ac_aux_dir/install.sh -c"
3385 elif test -f "$ac_dir/shtool"; then
3387 ac_install_sh="$ac_aux_dir/shtool install -c"
3391 if test -z "$ac_aux_dir"; then
3392 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3395 # These three variables are undocumented and unsupported,
3396 # and are intended to be withdrawn in a future Autoconf release.
3397 # They can cause serious problems if a builder's source tree is in a directory
3398 # whose full name contains unusual characters.
3399 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3400 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3401 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3404 # Make sure we can run config.sub.
3405 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3406 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3409 $as_echo_n "checking build system type... " >&6; }
3410 if ${ac_cv_build+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 ac_build_alias=$build_alias
3414 test "x$ac_build_alias" = x &&
3415 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3416 test "x$ac_build_alias" = x &&
3417 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3418 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3423 $as_echo "$ac_cv_build" >&6; }
3424 case $ac_cv_build in
3426 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3429 ac_save_IFS=$IFS; IFS='-'
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3439 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3443 $as_echo_n "checking host system type... " >&6; }
3444 if ${ac_cv_host+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test "x$host_alias" = x; then
3448 ac_cv_host=$ac_cv_build
3450 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3456 $as_echo "$ac_cv_host" >&6; }
3459 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3462 ac_save_IFS=$IFS; IFS='-'
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3472 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3476 $as_echo_n "checking target system type... " >&6; }
3477 if ${ac_cv_target+:} false; then :
3478 $as_echo_n "(cached) " >&6
3480 if test "x$target_alias" = x; then
3481 ac_cv_target=$ac_cv_host
3483 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3489 $as_echo "$ac_cv_target" >&6; }
3490 case $ac_cv_target in
3492 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3494 target=$ac_cv_target
3495 ac_save_IFS=$IFS; IFS='-'
3501 # Remember, the first character of IFS is used to create $*,
3502 # except with old shells:
3505 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3508 # The aliases save the names the user supplied, while $host etc.
3509 # will get canonicalized.
3510 test -n "$target_alias" &&
3511 test "$program_prefix$program_suffix$program_transform_name" = \
3513 program_prefix=${target_alias}-
3515 # Determine the noncanonical host name, for Ada.
3516 case ${build_alias} in
3517 "") build_noncanonical=${build} ;;
3518 *) build_noncanonical=${build_alias} ;;
3521 case ${host_alias} in
3522 "") host_noncanonical=${build_noncanonical} ;;
3523 *) host_noncanonical=${host_alias} ;;
3529 # Determine the noncanonical target name, for directory use.
3530 case ${target_alias} in
3531 "") target_noncanonical=${host_noncanonical} ;;
3532 *) target_noncanonical=${target_alias} ;;
3538 # Used for constructing correct paths for offload compilers.
3539 real_target_noncanonical=${target_noncanonical}
3542 # Determine the target- and build-specific subdirectories
3544 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3545 # have matching libraries, they should use host libraries: Makefile.tpl
3546 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3547 # However, they still use the build modules, because the corresponding
3548 # host modules (e.g. bison) are only built for the host when bootstrap
3550 # - build_subdir is where we find build modules, and never changes.
3551 # - build_libsubdir is where we find build libraries, and can be overridden.
3553 # Prefix 'build-' so this never conflicts with target_subdir.
3554 build_subdir="build-${build_noncanonical}"
3556 # Check whether --with-build-libsubdir was given.
3557 if test "${with_build_libsubdir+set}" = set; then :
3558 withval=$with_build_libsubdir; build_libsubdir="$withval"
3560 build_libsubdir="$build_subdir"
3563 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3564 if ( test $srcdir = . && test -d gcc ) \
3565 || test -d $srcdir/../host-${host_noncanonical}; then
3566 host_subdir="host-${host_noncanonical}"
3571 target_subdir=${target_noncanonical}
3574 # Set program_transform_name
3575 test "$program_prefix" != NONE &&
3576 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3577 # Use a double $ so make ignores it.
3578 test "$program_suffix" != NONE &&
3579 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3580 # Double any \ or $.
3581 # By default was `s
,x
,x
', remove it if useless.
3582 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3583 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3586 # Check for bogus environment variables.
3587 # Test if LIBRARY_PATH contains the notation for the current directory
3588 # since this would lead to problems installing/building glibc.
3589 # LIBRARY_PATH contains the current directory if one of the following
3591 # - one of the terminals (":" and ";") is the first or last sign
3592 # - two terminals occur directly after each other
3593 # - the path contains an element with a dot in it
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3595 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3596 case ${LIBRARY_PATH} in
3597 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3598 library_path_setting="contains current directory"
3601 library_path_setting="ok"
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3605 $as_echo "$library_path_setting" >&6; }
3606 if test "$library_path_setting" != "ok"; then
3608 *** LIBRARY_PATH shouldn't contain the current directory when
3609 *** building gcc. Please change the environment variable
3610 *** and run configure again.
" "$LINENO" 5
3613 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3614 # since this would lead to problems installing/building glibc.
3615 # GCC_EXEC_PREFIX contains the current directory if one of the following
3617 # - one of the terminals (":" and ";") is the first or last sign
3618 # - two terminals occur directly after each other
3619 # - the path contains an element with a dot in it
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3621 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3622 case ${GCC_EXEC_PREFIX} in
3623 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3624 gcc_exec_prefix_setting="contains current directory
"
3627 gcc_exec_prefix_setting="ok
"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3631 $as_echo "$gcc_exec_prefix_setting" >&6; }
3632 if test "$gcc_exec_prefix_setting" != "ok
"; then
3634 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3635 *** building gcc. Please change the environment variable
3636 *** and run configure again." "$LINENO" 5
3643 # Specify the local prefix
3646 # Check whether --with-local-prefix was given.
3647 if test "${with_local_prefix+set}" = set; then :
3648 withval=$with_local_prefix; case "${withval}" in
3649 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3651 *) local_prefix=$with_local_prefix ;;
3656 # Default local prefix if it is empty
3657 if test x$local_prefix = x; then
3658 local_prefix=/usr/local
3662 # Check whether --with-native-system-header-dir was given.
3663 if test "${with_native_system_header_dir+set}" = set; then :
3664 withval=$with_native_system_header_dir;
3665 case ${with_native_system_header_dir} in
3666 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3667 /* | [A-Za-z]:[\\/]*) ;;
3668 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3670 configured_native_system_header_dir="${withval}"
3673 configured_native_system_header_dir=
3678 # Check whether --with-build-sysroot was given.
3679 if test "${with_build_sysroot+set}" = set; then :
3680 withval=$with_build_sysroot; if test x"$withval" != x ; then
3681 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3684 SYSROOT_CFLAGS_FOR_TARGET=
3689 if test "x$prefix" = xNONE; then
3690 test_prefix=/usr/local
3694 if test "x$exec_prefix" = xNONE; then
3695 test_exec_prefix=$test_prefix
3697 test_exec_prefix=$exec_prefix
3701 # Check whether --with-sysroot was given.
3702 if test "${with_sysroot+set}" = set; then :
3703 withval=$with_sysroot;
3704 case ${with_sysroot} in
3706 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3708 case ${with_sysroot} in
3709 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3710 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3713 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3714 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3716 case ${TARGET_SYSTEM_ROOT} in
3717 "${test_prefix}"|"${test_prefix}/"*|\
3718 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3719 '${prefix}'|'${prefix}/'*|\
3720 '${exec_prefix}'|'${exec_prefix}/'*)
3721 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3722 TARGET_SYSTEM_ROOT_DEFINE="$t"
3729 TARGET_SYSTEM_ROOT_DEFINE=
3730 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3738 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3739 # passed in by the toplevel make and thus we'd get different behavior
3740 # depending on where we built the sources.
3741 gcc_gxx_include_dir
=
3742 # Specify the g++ header file directory
3744 # Check whether --with-gxx-include-dir was given.
3745 if test "${with_gxx_include_dir+set}" = set; then :
3746 withval
=$with_gxx_include_dir; case "${withval}" in
3747 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3749 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3754 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3755 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3756 # relative to the sysroot.
3757 gcc_gxx_include_dir_add_sysroot
=0
3759 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3760 if test x
${gcc_gxx_include_dir} = x
; then
3761 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3762 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3764 libstdcxx_incdir
='include/c++/$(version)'
3765 if test x
$host != x
$target; then
3766 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3768 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3770 elif test "${with_sysroot+set}" = set; then
3771 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3772 if test "${gcc_gxx_without_sysroot}"; then
3773 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3774 gcc_gxx_include_dir_add_sysroot
=1
3778 # Configuration for an alternate set of C++ headers.
3779 gcc_gxx_libcxx_include_dir
=
3780 # Specify the alternate g++ header file directory
3782 # Check whether --with-gxx-libcxx-include-dir was given.
3783 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3784 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3785 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3786 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3791 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3792 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3793 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3794 #Â based on the platform (to be available on platform versions where it is the
3795 # default for the system tools). We also use a default path within the compiler
3797 #Â Otherwise, we use the path provided and enable the stdlib option.
3798 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3799 # check to see if the latter starts with the former and, upon success, compute
3800 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3801 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3802 gcc_enable_stdlib_opt
=0
3803 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3804 if test x
${gcc_gxx_libcxx_include_dir} = xno
; then
3805 #Â set defaults for the dir, but the option is disabled anyway.
3806 gcc_gxx_libcxx_include_dir
=
3808 gcc_enable_stdlib_opt
=1
3812 *-darwin1[1-9]* |
*-darwin2*)
3813 #Â Default this on for Darwin versions which default to libcxx,
3814 #Â and embed the path in the compiler install so that we get a
3815 # self-contained toolchain.
3816 gcc_enable_stdlib_opt
=1
3822 cat >>confdefs.h
<<_ACEOF
3823 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3827 # Sysroot behaviour as for gxx-include-dir
3828 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3829 # default path,embedded in the compiler tree.
3830 libcxx_incdir
='include/c++/v1'
3831 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3832 gcc_gxx_libcxx_include_dir
='${libsubdir}/$libcxx_incdir'
3834 if test x
$host != x
$target; then
3835 libcxx_incdir
="$target_alias/$libcxx_incdir"
3837 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3839 elif test "${with_sysroot+set}" = set; then
3840 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3841 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3842 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3843 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3848 # Check whether --with-cpp_install_dir was given.
3849 if test "${with_cpp_install_dir+set}" = set; then :
3850 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3851 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3852 elif test x
$withval != xno
; then
3853 cpp_install_dir
=$withval
3858 # We would like to our source tree to be readonly. However when releases or
3859 # pre-releases are generated, the flex/bison generated files as well as the
3860 # various formats of manuals need to be included along with the rest of the
3861 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3865 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3866 # Check whether --enable-generated-files-in-srcdir was given.
3867 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3868 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3870 generated_files_in_srcdir
=no
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3875 $as_echo "$generated_files_in_srcdir" >&6; }
3877 if test "$generated_files_in_srcdir" = "yes"; then
3884 # -------------------
3885 # Find default linker
3886 # -------------------
3890 # Check whether --with-gnu-ld was given.
3891 if test "${with_gnu_ld+set}" = set; then :
3892 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3900 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3901 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3909 # With pre-defined ld
3911 # Check whether --with-ld was given.
3912 if test "${with_ld+set}" = set; then :
3913 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3916 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3917 if test ! -x "$DEFAULT_LINKER"; then
3918 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3919 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3921 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3925 cat >>confdefs.h
<<_ACEOF
3926 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3932 $as_echo_n "checking whether a default linker was specified... " >&6; }
3933 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3934 if test x
"$gnu_ld_flag" = x
"no"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3936 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3939 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3946 # With demangler in GNU ld
3948 # Check whether --with-demangler-in-ld was given.
3949 if test "${with_demangler_in_ld+set}" = set; then :
3950 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3956 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3958 # Check whether --with-dsymutil was given.
3959 if test "${with_dsymutil+set}" = set; then :
3960 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3965 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3966 if test ! -x "$DEFAULT_DSYMUTIL"; then
3967 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3969 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3974 cat >>confdefs.h
<<_ACEOF
3975 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3981 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3982 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3984 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3990 # ----------------------
3991 # Find default assembler
3992 # ----------------------
3996 # Check whether --with-gnu-as was given.
3997 if test "${with_gnu_as+set}" = set; then :
3998 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
4005 # Check whether --with-as was given.
4006 if test "${with_as+set}" = set; then :
4007 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
4010 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4011 if test ! -x "$DEFAULT_ASSEMBLER"; then
4012 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4013 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
4017 cat >>confdefs.h
<<_ACEOF
4018 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4024 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4025 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4026 if test x
"$gas_flag" = x
"no"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4028 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4031 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4042 # If a non-executable a.out is present (e.g. created by GNU as above even if
4043 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4044 # file, even when creating an executable, so an execution test fails.
4045 # Remove possible default executable files to avoid this.
4047 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4048 # Autoconf includes it.
4049 rm -f a.out a.exe b.out
4051 # Find the native compiler
4053 ac_cpp
='$CPP $CPPFLAGS'
4054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4059 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 $as_echo_n "checking for $ac_word... " >&6; }
4062 if ${ac_cv_prog_CC+:} false
; then :
4063 $as_echo_n "(cached) " >&6
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC
="$CC" # Let the user override the test.
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_exec_ext
in '' $ac_executable_extensions; do
4074 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 if test -n "$CC"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088 $as_echo "$CC" >&6; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4096 if test -z "$ac_cv_prog_CC"; then
4098 # Extract the first word of "gcc", so it can be a program name with args.
4099 set dummy gcc
; ac_word
=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4103 $as_echo_n "(cached) " >&6
4105 if test -n "$ac_ct_CC"; then
4106 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4112 test -z "$as_dir" && as_dir
=.
4113 for ac_exec_ext
in '' $ac_executable_extensions; do
4114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_ac_ct_CC
="gcc"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4126 if test -n "$ac_ct_CC"; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4128 $as_echo "$ac_ct_CC" >&6; }
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4134 if test "x$ac_ct_CC" = x
; then
4137 case $cross_compiling:$ac_tool_warned in
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4141 ac_tool_warned
=yes ;;
4149 if test -z "$CC"; then
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4152 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_prog_CC+:} false
; then :
4156 $as_echo_n "(cached) " >&6
4158 if test -n "$CC"; then
4159 ac_cv_prog_CC
="$CC" # Let the user override the test.
4161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir
=.
4166 for ac_exec_ext
in '' $ac_executable_extensions; do
4167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 if test -n "$CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4181 $as_echo "$CC" >&6; }
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4190 if test -z "$CC"; then
4191 # Extract the first word of "cc", so it can be a program name with args.
4192 set dummy cc
; ac_word
=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if ${ac_cv_prog_CC+:} false
; then :
4196 $as_echo_n "(cached) " >&6
4198 if test -n "$CC"; then
4199 ac_cv_prog_CC
="$CC" # Let the user override the test.
4202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4206 test -z "$as_dir" && as_dir
=.
4207 for ac_exec_ext
in '' $ac_executable_extensions; do
4208 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4209 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4210 ac_prog_rejected
=yes
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 if test $ac_prog_rejected = yes; then
4222 # We found a bogon in the path, so make sure we never use it.
4223 set dummy
$ac_cv_prog_CC
4225 if test $# != 0; then
4226 # We chose a different compiler from the bogus one.
4227 # However, it has the same basename, so the bogon will be chosen
4228 # first if we set CC to just the basename; use the full file name.
4230 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4236 if test -n "$CC"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4238 $as_echo "$CC" >&6; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4246 if test -z "$CC"; then
4247 if test -n "$ac_tool_prefix"; then
4248 for ac_prog
in cl.exe
4250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4251 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_CC+:} false
; then :
4255 $as_echo_n "(cached) " >&6
4257 if test -n "$CC"; then
4258 ac_cv_prog_CC
="$CC" # Let the user override the test.
4260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir
=.
4265 for ac_exec_ext
in '' $ac_executable_extensions; do
4266 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 if test -n "$CC"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4280 $as_echo "$CC" >&6; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4287 test -n "$CC" && break
4290 if test -z "$CC"; then
4292 for ac_prog
in cl.exe
4294 # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy
$ac_prog; ac_word
=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4299 $as_echo_n "(cached) " >&6
4301 if test -n "$ac_ct_CC"; then
4302 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir
=.
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_CC
="$ac_prog"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4322 if test -n "$ac_ct_CC"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4324 $as_echo "$ac_ct_CC" >&6; }
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4331 test -n "$ac_ct_CC" && break
4334 if test "x$ac_ct_CC" = x
; then
4337 case $cross_compiling:$ac_tool_warned in
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4341 ac_tool_warned
=yes ;;
4350 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352 as_fn_error $?
"no acceptable C compiler found in \$PATH
4353 See \`config.log' for more details" "$LINENO" 5; }
4355 # Provide some information about the compiler.
4356 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4359 for ac_option
in --version -v -V -qversion; do
4360 { { ac_try
="$ac_compiler $ac_option >&5"
4362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4366 $as_echo "$ac_try_echo"; } >&5
4367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4369 if test -s conftest.err; then
4371 ... rest of stderr output deleted ...
4372 10q' conftest.err >conftest.er1
4373 cat conftest.er1 >&5
4375 rm -f conftest.er1 conftest.err
4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; }
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4391 ac_clean_files_save=$ac_clean_files
4392 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4393 # Try to create an executable without -o first, disregard a.out.
4394 # It will help us diagnose broken compilers, and finding out an intuition
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4397 $as_echo_n "checking whether the C compiler works... " >&6; }
4398 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4400 # The possible output files:
4401 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4404 for ac_file in $ac_files
4407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4408 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4413 if { { ac_try="$ac_link_default"
4415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4416 *) ac_try_echo
=$ac_try;;
4418 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_link_default") 2>&5
4422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; }; then :
4424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4427 # so that the user can short-circuit this test for compilers unknown to
4429 for ac_file
in $ac_files ''
4431 test -f "$ac_file" ||
continue
4433 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4436 # We found the default executable, but exeext='' is most
4440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4442 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4444 # We set ac_cv_exeext here because the later test for it is not
4445 # safe: cross compilers may not add the suffix if given an `-o'
4446 # argument, so we may need to know it at that point already.
4447 # Even if this section looks crufty: it has the advantage of
4454 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4459 if test -z "$ac_file"; then :
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4462 $as_echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.
$ac_ext >&5
4465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467 as_fn_error
77 "C compiler cannot create executables
4468 See \`config.log' for more details" "$LINENO" 5; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4474 $as_echo_n "checking for C compiler default output file name... " >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4476 $as_echo "$ac_file" >&6; }
4477 ac_exeext
=$ac_cv_exeext
4479 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4480 ac_clean_files
=$ac_clean_files_save
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4482 $as_echo_n "checking for suffix of executables... " >&6; }
4483 if { { ac_try
="$ac_link"
4485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; then :
4494 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4495 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4496 # work properly (i.e., refer to `conftest.exe'), while it won't with
4498 for ac_file
in conftest.exe conftest conftest.
*; do
4499 test -f "$ac_file" ||
continue
4501 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4502 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4511 See \`config.log' for more details" "$LINENO" 5; }
4513 rm -f conftest conftest
$ac_cv_exeext
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4515 $as_echo "$ac_cv_exeext" >&6; }
4517 rm -f conftest.
$ac_ext
4518 EXEEXT
=$ac_cv_exeext
4520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4526 FILE *f = fopen ("conftest.out", "w");
4527 return ferror (f) || fclose (f) != 0;
4533 ac_clean_files
="$ac_clean_files conftest.out"
4534 # Check that the compiler produces executables we can run. If not, either
4535 # the compiler is broken, or we cross compile.
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4537 $as_echo_n "checking whether we are cross compiling... " >&6; }
4538 if test "$cross_compiling" != yes; then
4539 { { ac_try
="$ac_link"
4541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545 $as_echo "$ac_try_echo"; } >&5
4546 (eval "$ac_link") 2>&5
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }
4550 if { ac_try='./conftest$ac_cv_exeext'
4551 { { case "(($ac_try" in
4552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4553 *) ac_try_echo
=$ac_try;;
4555 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_try") 2>&5
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }; }; then
4563 if test "$cross_compiling" = maybe
; then
4566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4568 as_fn_error $?
"cannot run C compiled programs.
4569 If you meant to cross compile, use \`--host'.
4570 See \`config.log' for more details" "$LINENO" 5; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4575 $as_echo "$cross_compiling" >&6; }
4577 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4578 ac_clean_files
=$ac_clean_files_save
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4580 $as_echo_n "checking for suffix of object files... " >&6; }
4581 if ${ac_cv_objext+:} false
; then :
4582 $as_echo_n "(cached) " >&6
4584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4595 rm -f conftest.o conftest.obj
4596 if { { ac_try
="$ac_compile"
4598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4602 $as_echo "$ac_try_echo"; } >&5
4603 (eval "$ac_compile") 2>&5
4605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4606 test $ac_status = 0; }; then :
4607 for ac_file in conftest.o conftest.obj conftest.*; do
4608 test -f "$ac_file" || continue;
4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4616 $as_echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4622 See \
`config.log' for more details" "$LINENO" 5; }
4624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4627 $as_echo "$ac_cv_objext" >&6; }
4628 OBJEXT=$ac_cv_objext
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4632 if ${ac_cv_c_compiler_gnu+:} false; then :
4633 $as_echo_n "(cached) " >&6
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4649 if ac_fn_c_try_compile "$LINENO"; then :
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4660 if test $ac_compiler_gnu = yes; then
4665 ac_test_CFLAGS=${CFLAGS+set}
4666 ac_save_CFLAGS=$CFLAGS
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4669 if ${ac_cv_prog_cc_g+:} false; then :
4670 $as_echo_n "(cached) " >&6
4672 ac_save_c_werror_flag=$ac_c_werror_flag
4673 ac_c_werror_flag=yes
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4687 if ac_fn_c_try_compile "$LINENO"; then :
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4702 if ac_fn_c_try_compile "$LINENO"; then :
4705 ac_c_werror_flag=$ac_save_c_werror_flag
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4718 if ac_fn_c_try_compile "$LINENO"; then :
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4729 $as_echo "$ac_cv_prog_cc_g" >&6; }
4730 if test "$ac_test_CFLAGS" = set; then
4731 CFLAGS=$ac_save_CFLAGS
4732 elif test $ac_cv_prog_cc_g = yes; then
4733 if test "$GCC" = yes; then
4739 if test "$GCC" = yes; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4747 if ${ac_cv_prog_cc_c89+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 ac_cv_prog_cc_c89=no
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4758 struct buf { int x; };
4759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4760 static char *e (p, i)
4766 static char *f (char * (*g) (char **, int), char **p, ...)
4771 s = g (p, va_arg (v,int));
4776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4777 function prototypes and stuff, but not '\xHH' hex character constants.
4778 These don't provoke an error unfortunately, instead are silently treated
4779 as 'x'. The following induces an error, until -std is added to get
4780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4781 array size at least. It's necessary to write '\x00'==0 to get something
4782 that's true only with -std. */
4783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4786 inside strings and character constants. */
4788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4790 int test (int i, double x);
4791 struct s1 {int (*f) (int a);};
4792 struct s2 {int (*f) (double a);};
4793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4807 CC="$ac_save_CC $ac_arg"
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_prog_cc_c89=$ac_arg
4811 rm -f core conftest.err conftest.$ac_objext
4812 test "x$ac_cv_prog_cc_c89" != "xno" && break
4814 rm -f conftest.$ac_ext
4819 case "x$ac_cv_prog_cc_c89" in
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4822 $as_echo "none needed" >&6; } ;;
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4825 $as_echo "unsupported" >&6; } ;;
4827 CC="$CC $ac_cv_prog_cc_c89"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4829 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4831 if test "x$ac_cv_prog_cc_c89" != xno; then :
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 ac_cpp='$CXXCPP $CPPFLAGS'
4843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4846 if test -z "$CXX"; then
4847 if test -n "$CCC"; then
4850 if test -n "$ac_tool_prefix"; then
4851 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_CXX+:} false; then :
4858 $as_echo_n "(cached) " >&6
4860 if test -n "$CXX"; then
4861 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 if test -n "$CXX"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4883 $as_echo "$CXX" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4890 test -n "$CXX" && break
4893 if test -z "$CXX"; then
4895 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4897 # Extract the first word of "$ac_prog", so it can be a program name with args.
4898 set dummy $ac_prog; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4902 $as_echo_n "(cached) " >&6
4904 if test -n "$ac_ct_CXX"; then
4905 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_prog_ac_ct_CXX="$ac_prog"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4925 if test -n "$ac_ct_CXX"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4927 $as_echo "$ac_ct_CXX" >&6; }
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4934 test -n "$ac_ct_CXX" && break
4937 if test "x$ac_ct_CXX" = x; then
4940 case $cross_compiling:$ac_tool_warned in
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4944 ac_tool_warned=yes ;;
4952 # Provide some information about the compiler.
4953 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4956 for ac_option in --version -v -V -qversion; do
4957 { { ac_try="$ac_compiler $ac_option >&5"
4959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4960 *) ac_try_echo
=$ac_try;;
4962 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4963 $as_echo "$ac_try_echo"; } >&5
4964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4966 if test -s conftest.err
; then
4968 ... rest of stderr output deleted ...
4969 10q' conftest.err
>conftest.er1
4970 cat conftest.er1
>&5
4972 rm -f conftest.er1 conftest.err
4973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4974 test $ac_status = 0; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4978 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4979 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4980 $as_echo_n "(cached) " >&6
4982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4996 if ac_fn_cxx_try_compile
"$LINENO"; then :
5001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5002 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5006 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5007 if test $ac_compiler_gnu = yes; then
5012 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5013 ac_save_CXXFLAGS
=$CXXFLAGS
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5015 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5016 if ${ac_cv_prog_cxx_g+:} false
; then :
5017 $as_echo_n "(cached) " >&6
5019 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5020 ac_cxx_werror_flag
=yes
5023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5034 if ac_fn_cxx_try_compile
"$LINENO"; then :
5035 ac_cv_prog_cxx_g
=yes
5038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5049 if ac_fn_cxx_try_compile
"$LINENO"; then :
5052 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5065 if ac_fn_cxx_try_compile
"$LINENO"; then :
5066 ac_cv_prog_cxx_g
=yes
5068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5073 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5076 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5077 if test "$ac_test_CXXFLAGS" = set; then
5078 CXXFLAGS
=$ac_save_CXXFLAGS
5079 elif test $ac_cv_prog_cxx_g = yes; then
5080 if test "$GXX" = yes; then
5086 if test "$GXX" = yes; then
5093 ac_cpp
='$CPP $CPPFLAGS'
5094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5101 if test -n "$ac_tool_prefix"; then
5102 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5103 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if ${ac_cv_prog_GNATBIND+:} false
; then :
5107 $as_echo_n "(cached) " >&6
5109 if test -n "$GNATBIND"; then
5110 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir
=.
5117 for ac_exec_ext
in '' $ac_executable_extensions; do
5118 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 GNATBIND
=$ac_cv_prog_GNATBIND
5130 if test -n "$GNATBIND"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5132 $as_echo "$GNATBIND" >&6; }
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5140 if test -z "$ac_cv_prog_GNATBIND"; then
5141 ac_ct_GNATBIND
=$GNATBIND
5142 # Extract the first word of "gnatbind", so it can be a program name with args.
5143 set dummy gnatbind
; ac_word
=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5147 $as_echo_n "(cached) " >&6
5149 if test -n "$ac_ct_GNATBIND"; then
5150 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5156 test -z "$as_dir" && as_dir
=.
5157 for ac_exec_ext
in '' $ac_executable_extensions; do
5158 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5170 if test -n "$ac_ct_GNATBIND"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5172 $as_echo "$ac_ct_GNATBIND" >&6; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5178 if test "x$ac_ct_GNATBIND" = x
; then
5181 case $cross_compiling:$ac_tool_warned in
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185 ac_tool_warned
=yes ;;
5187 GNATBIND
=$ac_ct_GNATBIND
5190 GNATBIND
="$ac_cv_prog_GNATBIND"
5193 if test -n "$ac_tool_prefix"; then
5194 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5195 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5199 $as_echo_n "(cached) " >&6
5201 if test -n "$GNATMAKE"; then
5202 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir
=.
5209 for ac_exec_ext
in '' $ac_executable_extensions; do
5210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 GNATMAKE
=$ac_cv_prog_GNATMAKE
5222 if test -n "$GNATMAKE"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5224 $as_echo "$GNATMAKE" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5232 if test -z "$ac_cv_prog_GNATMAKE"; then
5233 ac_ct_GNATMAKE
=$GNATMAKE
5234 # Extract the first word of "gnatmake", so it can be a program name with args.
5235 set dummy gnatmake
; ac_word
=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5239 $as_echo_n "(cached) " >&6
5241 if test -n "$ac_ct_GNATMAKE"; then
5242 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir
=.
5249 for ac_exec_ext
in '' $ac_executable_extensions; do
5250 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5262 if test -n "$ac_ct_GNATMAKE"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5264 $as_echo "$ac_ct_GNATMAKE" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5270 if test "x$ac_ct_GNATMAKE" = x
; then
5273 case $cross_compiling:$ac_tool_warned in
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277 ac_tool_warned
=yes ;;
5279 GNATMAKE
=$ac_ct_GNATMAKE
5282 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5286 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5287 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5288 $as_echo_n "(cached) " >&6
5290 cat >conftest.adb
<<EOF
5291 pragma Warnings (Off);
5293 pragma Warnings (On);
5294 use type System.CRTL.int64;
5295 procedure conftest is begin null; end conftest;
5297 acx_cv_cc_gcc_supports_ada
=no
5298 # There is a bug in old released versions of GCC which causes the
5299 # driver to exit successfully when the appropriate language module
5300 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5301 # Therefore we must check for the error message as well as an
5302 # unsuccessful exit.
5303 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5304 # given a .adb file, but produce no object file. So we must check
5305 # if an object file was really produced to guard against this.
5306 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5307 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5308 acx_cv_cc_gcc_supports_ada
=yes
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5313 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5315 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5323 if test -n "$ac_tool_prefix"; then
5324 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5325 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_GDC+:} false
; then :
5329 $as_echo_n "(cached) " >&6
5331 if test -n "$GDC"; then
5332 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir
=.
5339 for ac_exec_ext
in '' $ac_executable_extensions; do
5340 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 if test -n "$GDC"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5354 $as_echo "$GDC" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5362 if test -z "$ac_cv_prog_GDC"; then
5364 # Extract the first word of "gdc", so it can be a program name with args.
5365 set dummy gdc
; ac_word
=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5369 $as_echo_n "(cached) " >&6
5371 if test -n "$ac_ct_GDC"; then
5372 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5378 test -z "$as_dir" && as_dir
=.
5379 for ac_exec_ext
in '' $ac_executable_extensions; do
5380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_ac_ct_GDC
="gdc"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5392 if test -n "$ac_ct_GDC"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5394 $as_echo "$ac_ct_GDC" >&6; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5400 if test "x$ac_ct_GDC" = x
; then
5403 case $cross_compiling:$ac_tool_warned in
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned
=yes ;;
5412 GDC
="$ac_cv_prog_GDC"
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5416 $as_echo_n "checking whether the D compiler works... " >&6; }
5417 if ${acx_cv_d_compiler_works+:} false
; then :
5418 $as_echo_n "(cached) " >&6
5420 cat >conftest.d
<<EOF
5421 module conftest; int main() { return 0; }
5423 acx_cv_d_compiler_works
=no
5424 if test "x$GDC" != xno
; then
5425 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5426 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5427 acx_cv_d_compiler_works
=yes
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5433 $as_echo "$acx_cv_d_compiler_works" >&6; }
5434 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5441 # Do configure tests with the C++ compiler, since that's what we build with.
5443 ac_cpp
='$CXXCPP $CPPFLAGS'
5444 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5449 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5450 # optimizations to be activated explicitly by the toplevel.
5452 */prev-gcc
/xgcc
*) ;;
5453 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5454 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5460 # Determine PICFLAG for target gnatlib.
5466 # PIC is the default on some targets or must not be used.
5468 # For darwin, common symbols are not allowed in MH_DYLIB files
5470 # If we are using a compiler supporting mdynamic-no-pic
5471 # and the option has been tested as safe to add, then cancel
5472 # it here, since the code generated is incompatible with shared
5474 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5475 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5479 # PIC is the default.
5482 # PIC is the default for 64-bit PA HP-UX.
5484 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5486 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5488 i
[34567]86-*-interix[3-9]*)
5489 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5490 # Instead, we relocate shared libraries at runtime.
5492 i
[34567]86-*-nto-qnx*)
5493 # QNX uses GNU C++, but need to define -shared option too, otherwise
5495 PICFLAG_FOR_TARGET
='-fPIC -shared'
5497 i
[34567]86-pc-msdosdjgpp*)
5498 # DJGPP does not support shared libraries at all.
5501 # On IA64 HP-UX, PIC is the default but the pic flag
5502 # sets the default TLS model and affects inlining.
5503 PICFLAG_FOR_TARGET
=-fPIC
5506 PICFLAG_FOR_TARGET
=-fpic
5509 # PIC is the default.
5511 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5512 # All AIX code is PIC.
5515 # Some targets support both -fPIC and -fpic, but prefer the latter.
5517 i
[34567]86-*-* | x86_64-
*-*)
5518 PICFLAG_FOR_TARGET
=-fpic
5520 # FIXME: Override -fPIC default in libgcc only?
5521 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5522 PICFLAG_FOR_TARGET
=-fpic
5525 PICFLAG_FOR_TARGET
=-fpic
5527 # Default to -fPIC unless specified otherwise.
5529 PICFLAG_FOR_TARGET
=-fPIC
5533 # If the user explicitly uses -fpic/-fPIC, keep that.
5534 case "${CFLAGS_FOR_TARGET}" in
5536 PICFLAG_FOR_TARGET
=-fpic
5539 PICFLAG_FOR_TARGET
=-fPIC
5545 # -------------------------
5546 # Check C compiler features
5547 # -------------------------
5551 ac_cpp
='$CXXCPP $CPPFLAGS'
5552 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5556 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5557 if test -z "$CXXCPP"; then
5558 if ${ac_cv_prog_CXXCPP+:} false
; then :
5559 $as_echo_n "(cached) " >&6
5561 # Double quotes because CXXCPP needs to be expanded
5562 for CXXCPP
in "$CXX -E" "/lib/cpp"
5565 for ac_cxx_preproc_warn_flag
in '' yes
5567 # Use a header file that comes with gcc, so configuring glibc
5568 # with a fresh cross-compiler works.
5569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5570 # <limits.h> exists even on freestanding compilers.
5571 # On the NeXT, cc -E runs the code through the compiler's parser,
5572 # not just through cpp. "Syntax error" is here to catch this case.
5573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5576 # include <limits.h>
5578 # include <assert.h>
5582 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5585 # Broken: fails on valid input.
5588 rm -f conftest.err conftest.i conftest.
$ac_ext
5590 # OK, works on sane cases. Now check whether nonexistent headers
5591 # can be detected and how.
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <ac_nonexistent.h>
5596 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5597 # Broken: success on invalid input.
5600 # Passes both tests.
5604 rm -f conftest.err conftest.i conftest.
$ac_ext
5607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5608 rm -f conftest.i conftest.err conftest.
$ac_ext
5609 if $ac_preproc_ok; then :
5614 ac_cv_prog_CXXCPP
=$CXXCPP
5617 CXXCPP
=$ac_cv_prog_CXXCPP
5619 ac_cv_prog_CXXCPP
=$CXXCPP
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5622 $as_echo "$CXXCPP" >&6; }
5624 for ac_cxx_preproc_warn_flag
in '' yes
5626 # Use a header file that comes with gcc, so configuring glibc
5627 # with a fresh cross-compiler works.
5628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5629 # <limits.h> exists even on freestanding compilers.
5630 # On the NeXT, cc -E runs the code through the compiler's parser,
5631 # not just through cpp. "Syntax error" is here to catch this case.
5632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5635 # include <limits.h>
5637 # include <assert.h>
5641 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5644 # Broken: fails on valid input.
5647 rm -f conftest.err conftest.i conftest.
$ac_ext
5649 # OK, works on sane cases. Now check whether nonexistent headers
5650 # can be detected and how.
5651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <ac_nonexistent.h>
5655 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5656 # Broken: success on invalid input.
5659 # Passes both tests.
5663 rm -f conftest.err conftest.i conftest.
$ac_ext
5666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5667 rm -f conftest.i conftest.err conftest.
$ac_ext
5668 if $ac_preproc_ok; then :
5671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5673 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5674 See \`config.log' for more details" "$LINENO" 5; }
5678 ac_cpp
='$CXXCPP $CPPFLAGS'
5679 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5685 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5686 if ${ac_cv_path_GREP+:} false
; then :
5687 $as_echo_n "(cached) " >&6
5689 if test -z "$GREP"; then
5690 ac_path_GREP_found
=false
5691 # Loop through the user's path and test for each of PROGNAME-LIST
5692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5693 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5696 test -z "$as_dir" && as_dir
=.
5697 for ac_prog
in grep ggrep
; do
5698 for ac_exec_ext
in '' $ac_executable_extensions; do
5699 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5700 as_fn_executable_p
"$ac_path_GREP" ||
continue
5701 # Check for GNU ac_path_GREP and select it if it is found.
5702 # Check for GNU $ac_path_GREP
5703 case `"$ac_path_GREP" --version 2>&1` in
5705 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5708 $as_echo_n 0123456789 >"conftest.in"
5711 cat "conftest.in" "conftest.in" >"conftest.tmp"
5712 mv "conftest.tmp" "conftest.in"
5713 cp "conftest.in" "conftest.nl"
5714 $as_echo 'GREP' >> "conftest.nl"
5715 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5716 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5717 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5718 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5719 # Best one so far, save it but keep looking for a better one
5720 ac_cv_path_GREP
="$ac_path_GREP"
5721 ac_path_GREP_max
=$ac_count
5723 # 10*(2^10) chars as input seems more than enough
5724 test $ac_count -gt 10 && break
5726 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5729 $ac_path_GREP_found && break 3
5734 if test -z "$ac_cv_path_GREP"; then
5735 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5738 ac_cv_path_GREP
=$GREP
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5743 $as_echo "$ac_cv_path_GREP" >&6; }
5744 GREP
="$ac_cv_path_GREP"
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5748 $as_echo_n "checking for egrep... " >&6; }
5749 if ${ac_cv_path_EGREP+:} false
; then :
5750 $as_echo_n "(cached) " >&6
5752 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5753 then ac_cv_path_EGREP
="$GREP -E"
5755 if test -z "$EGREP"; then
5756 ac_path_EGREP_found
=false
5757 # Loop through the user's path and test for each of PROGNAME-LIST
5758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5759 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5762 test -z "$as_dir" && as_dir
=.
5763 for ac_prog
in egrep; do
5764 for ac_exec_ext
in '' $ac_executable_extensions; do
5765 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5766 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5767 # Check for GNU ac_path_EGREP and select it if it is found.
5768 # Check for GNU $ac_path_EGREP
5769 case `"$ac_path_EGREP" --version 2>&1` in
5771 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5774 $as_echo_n 0123456789 >"conftest.in"
5777 cat "conftest.in" "conftest.in" >"conftest.tmp"
5778 mv "conftest.tmp" "conftest.in"
5779 cp "conftest.in" "conftest.nl"
5780 $as_echo 'EGREP' >> "conftest.nl"
5781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5782 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5783 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5785 # Best one so far, save it but keep looking for a better one
5786 ac_cv_path_EGREP
="$ac_path_EGREP"
5787 ac_path_EGREP_max
=$ac_count
5789 # 10*(2^10) chars as input seems more than enough
5790 test $ac_count -gt 10 && break
5792 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5795 $ac_path_EGREP_found && break 3
5800 if test -z "$ac_cv_path_EGREP"; then
5801 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5804 ac_cv_path_EGREP
=$EGREP
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5810 $as_echo "$ac_cv_path_EGREP" >&6; }
5811 EGREP
="$ac_cv_path_EGREP"
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5815 $as_echo_n "checking for ANSI C header files... " >&6; }
5816 if ${ac_cv_header_stdc+:} false
; then :
5817 $as_echo_n "(cached) " >&6
5819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5834 if ac_fn_cxx_try_compile
"$LINENO"; then :
5835 ac_cv_header_stdc
=yes
5837 ac_cv_header_stdc
=no
5839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5841 if test $ac_cv_header_stdc = yes; then
5842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5849 $EGREP "memchr" >/dev
/null
2>&1; then :
5852 ac_cv_header_stdc
=no
5858 if test $ac_cv_header_stdc = yes; then
5859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 $EGREP "free" >/dev
/null
2>&1; then :
5869 ac_cv_header_stdc
=no
5875 if test $ac_cv_header_stdc = yes; then
5876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5877 if test "$cross_compiling" = yes; then :
5880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5884 #if ((' ' & 0x0FF) == 0x020)
5885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5888 # define ISLOWER(c) \
5889 (('a' <= (c) && (c) <= 'i') \
5890 || ('j' <= (c) && (c) <= 'r') \
5891 || ('s' <= (c) && (c) <= 'z'))
5892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5900 for (i = 0; i < 256; i++)
5901 if (XOR (islower (i), ISLOWER (i))
5902 || toupper (i) != TOUPPER (i))
5907 if ac_fn_cxx_try_run
"$LINENO"; then :
5910 ac_cv_header_stdc
=no
5912 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5913 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5919 $as_echo "$ac_cv_header_stdc" >&6; }
5920 if test $ac_cv_header_stdc = yes; then
5922 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5927 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5928 inttypes.h stdint.h unistd.h
5930 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5931 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5933 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5934 cat >>confdefs.h
<<_ACEOF
5935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5944 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5945 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5952 if test "$MINIX" = yes; then
5954 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5957 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5960 $as_echo "#define _MINIX 1" >>confdefs.h
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5966 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5967 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5968 $as_echo_n "(cached) " >&6
5970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5973 # define __EXTENSIONS__ 1
5974 $ac_includes_default
5983 if ac_fn_cxx_try_compile
"$LINENO"; then :
5984 ac_cv_safe_to_define___extensions__
=yes
5986 ac_cv_safe_to_define___extensions__
=no
5988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5991 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5992 test $ac_cv_safe_to_define___extensions__ = yes &&
5993 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5995 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5997 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5999 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6001 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6006 ac_cpp
='$CPP $CPPFLAGS'
6007 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6012 # On Suns, sometimes $CPP names a directory.
6013 if test -n "$CPP" && test -d "$CPP"; then
6016 if test -z "$CPP"; then
6017 if ${ac_cv_prog_CPP+:} false
; then :
6018 $as_echo_n "(cached) " >&6
6020 # Double quotes because CPP needs to be expanded
6021 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6024 for ac_c_preproc_warn_flag
in '' yes
6026 # Use a header file that comes with gcc, so configuring glibc
6027 # with a fresh cross-compiler works.
6028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6029 # <limits.h> exists even on freestanding compilers.
6030 # On the NeXT, cc -E runs the code through the compiler's parser,
6031 # not just through cpp. "Syntax error" is here to catch this case.
6032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6035 # include <limits.h>
6037 # include <assert.h>
6041 if ac_fn_c_try_cpp
"$LINENO"; then :
6044 # Broken: fails on valid input.
6047 rm -f conftest.err conftest.i conftest.
$ac_ext
6049 # OK, works on sane cases. Now check whether nonexistent headers
6050 # can be detected and how.
6051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 #include <ac_nonexistent.h>
6055 if ac_fn_c_try_cpp
"$LINENO"; then :
6056 # Broken: success on invalid input.
6059 # Passes both tests.
6063 rm -f conftest.err conftest.i conftest.
$ac_ext
6066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6067 rm -f conftest.i conftest.err conftest.
$ac_ext
6068 if $ac_preproc_ok; then :
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6081 $as_echo "$CPP" >&6; }
6083 for ac_c_preproc_warn_flag
in '' yes
6085 # Use a header file that comes with gcc, so configuring glibc
6086 # with a fresh cross-compiler works.
6087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6088 # <limits.h> exists even on freestanding compilers.
6089 # On the NeXT, cc -E runs the code through the compiler's parser,
6090 # not just through cpp. "Syntax error" is here to catch this case.
6091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6094 # include <limits.h>
6096 # include <assert.h>
6100 if ac_fn_c_try_cpp
"$LINENO"; then :
6103 # Broken: fails on valid input.
6106 rm -f conftest.err conftest.i conftest.
$ac_ext
6108 # OK, works on sane cases. Now check whether nonexistent headers
6109 # can be detected and how.
6110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 #include <ac_nonexistent.h>
6114 if ac_fn_c_try_cpp
"$LINENO"; then :
6115 # Broken: success on invalid input.
6118 # Passes both tests.
6122 rm -f conftest.err conftest.i conftest.
$ac_ext
6125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6126 rm -f conftest.i conftest.err conftest.
$ac_ext
6127 if $ac_preproc_ok; then :
6130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6132 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6133 See \`config.log' for more details" "$LINENO" 5; }
6137 ac_cpp
='$CXXCPP $CPPFLAGS'
6138 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6143 $as_echo_n "checking for inline... " >&6; }
6144 if ${ac_cv_c_inline+:} false
; then :
6145 $as_echo_n "(cached) " >&6
6148 for ac_kw
in inline __inline__ __inline
; do
6149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6153 static $ac_kw foo_t static_foo () {return 0; }
6154 $ac_kw foo_t foo () {return 0; }
6158 if ac_fn_cxx_try_compile
"$LINENO"; then :
6159 ac_cv_c_inline
=$ac_kw
6161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6162 test "$ac_cv_c_inline" != no
&& break
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6167 $as_echo "$ac_cv_c_inline" >&6; }
6169 case $ac_cv_c_inline in
6172 case $ac_cv_c_inline in
6174 *) ac_val
=$ac_cv_c_inline;;
6176 cat >>confdefs.h
<<_ACEOF
6178 #define inline $ac_val
6185 # Check whether --enable-largefile was given.
6186 if test "${enable_largefile+set}" = set; then :
6187 enableval
=$enable_largefile;
6190 if test "$enable_largefile" != no
; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6193 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6194 if ${ac_cv_sys_largefile_CC+:} false
; then :
6195 $as_echo_n "(cached) " >&6
6197 ac_cv_sys_largefile_CC
=no
6198 if test "$GCC" != yes; then
6201 # IRIX 6.2 and later do not support large files by default,
6202 # so use the C compiler's -n32 option if that helps.
6203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205 #include <sys/types.h>
6206 /* Check that off_t can represent 2**63 - 1 correctly.
6207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6208 since some C++ compilers masquerading as C compilers
6209 incorrectly reject 9223372036854775807. */
6210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6212 && LARGE_OFF_T % 2147483647 == 1)
6222 if ac_fn_cxx_try_compile
"$LINENO"; then :
6225 rm -f core conftest.err conftest.
$ac_objext
6227 if ac_fn_cxx_try_compile
"$LINENO"; then :
6228 ac_cv_sys_largefile_CC
=' -n32'; break
6230 rm -f core conftest.err conftest.
$ac_objext
6234 rm -f conftest.
$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6238 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6239 if test "$ac_cv_sys_largefile_CC" != no
; then
6240 CC
=$CC$ac_cv_sys_largefile_CC
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6244 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6245 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6246 $as_echo_n "(cached) " >&6
6249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 #include <sys/types.h>
6252 /* Check that off_t can represent 2**63 - 1 correctly.
6253 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6254 since some C++ compilers masquerading as C compilers
6255 incorrectly reject 9223372036854775807. */
6256 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6257 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6258 && LARGE_OFF_T % 2147483647 == 1)
6268 if ac_fn_cxx_try_compile
"$LINENO"; then :
6269 ac_cv_sys_file_offset_bits
=no
; break
6271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 #define _FILE_OFFSET_BITS 64
6275 #include <sys/types.h>
6276 /* Check that off_t can represent 2**63 - 1 correctly.
6277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6278 since some C++ compilers masquerading as C compilers
6279 incorrectly reject 9223372036854775807. */
6280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6282 && LARGE_OFF_T % 2147483647 == 1)
6292 if ac_fn_cxx_try_compile
"$LINENO"; then :
6293 ac_cv_sys_file_offset_bits
=64; break
6295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6296 ac_cv_sys_file_offset_bits
=unknown
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6301 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6302 case $ac_cv_sys_file_offset_bits in #(
6305 cat >>confdefs.h
<<_ACEOF
6306 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6311 if test $ac_cv_sys_file_offset_bits = unknown
; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6313 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6314 if ${ac_cv_sys_large_files+:} false
; then :
6315 $as_echo_n "(cached) " >&6
6318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320 #include <sys/types.h>
6321 /* Check that off_t can represent 2**63 - 1 correctly.
6322 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6323 since some C++ compilers masquerading as C compilers
6324 incorrectly reject 9223372036854775807. */
6325 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6327 && LARGE_OFF_T % 2147483647 == 1)
6337 if ac_fn_cxx_try_compile
"$LINENO"; then :
6338 ac_cv_sys_large_files
=no
; break
6340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6343 #define _LARGE_FILES 1
6344 #include <sys/types.h>
6345 /* Check that off_t can represent 2**63 - 1 correctly.
6346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6347 since some C++ compilers masquerading as C compilers
6348 incorrectly reject 9223372036854775807. */
6349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6351 && LARGE_OFF_T % 2147483647 == 1)
6361 if ac_fn_cxx_try_compile
"$LINENO"; then :
6362 ac_cv_sys_large_files
=1; break
6364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6365 ac_cv_sys_large_files
=unknown
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6370 $as_echo "$ac_cv_sys_large_files" >&6; }
6371 case $ac_cv_sys_large_files in #(
6374 cat >>confdefs.h
<<_ACEOF
6375 #define _LARGE_FILES $ac_cv_sys_large_files
6385 # The cast to long int works around a bug in the HP C Compiler
6386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6388 # This bug is HP SR number 8606223364.
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6390 $as_echo_n "checking size of ino_t... " >&6; }
6391 if ${ac_cv_sizeof_ino_t+:} false
; then :
6392 $as_echo_n "(cached) " >&6
6394 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6397 if test "$ac_cv_type_ino_t" = yes; then
6398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6400 as_fn_error
77 "cannot compute sizeof (ino_t)
6401 See \`config.log' for more details" "$LINENO" 5; }
6403 ac_cv_sizeof_ino_t
=0
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6409 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6413 cat >>confdefs.h
<<_ACEOF
6414 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6418 # The cast to long int works around a bug in the HP C Compiler
6419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6421 # This bug is HP SR number 8606223364.
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6423 $as_echo_n "checking size of dev_t... " >&6; }
6424 if ${ac_cv_sizeof_dev_t+:} false
; then :
6425 $as_echo_n "(cached) " >&6
6427 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6430 if test "$ac_cv_type_dev_t" = yes; then
6431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6433 as_fn_error
77 "cannot compute sizeof (dev_t)
6434 See \`config.log' for more details" "$LINENO" 5; }
6436 ac_cv_sizeof_dev_t
=0
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6442 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6446 cat >>confdefs.h
<<_ACEOF
6447 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6452 # Select the right stat being able to handle 64bit inodes, if needed.
6453 if test "$enable_largefile" != no
; then
6454 case "$host, $build" in
6455 *-*-aix*,*|
*,*-*-aix*)
6456 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6458 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6465 # sizeof(char) is 1 by definition.
6466 # The cast to long int works around a bug in the HP C Compiler
6467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6469 # This bug is HP SR number 8606223364.
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6471 $as_echo_n "checking size of void *... " >&6; }
6472 if ${ac_cv_sizeof_void_p+:} false
; then :
6473 $as_echo_n "(cached) " >&6
6475 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6478 if test "$ac_cv_type_void_p" = yes; then
6479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6481 as_fn_error
77 "cannot compute sizeof (void *)
6482 See \`config.log' for more details" "$LINENO" 5; }
6484 ac_cv_sizeof_void_p
=0
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6490 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6494 cat >>confdefs.h
<<_ACEOF
6495 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6499 # The cast to long int works around a bug in the HP C Compiler
6500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6502 # This bug is HP SR number 8606223364.
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6504 $as_echo_n "checking size of short... " >&6; }
6505 if ${ac_cv_sizeof_short+:} false
; then :
6506 $as_echo_n "(cached) " >&6
6508 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6511 if test "$ac_cv_type_short" = yes; then
6512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6514 as_fn_error
77 "cannot compute sizeof (short)
6515 See \`config.log' for more details" "$LINENO" 5; }
6517 ac_cv_sizeof_short
=0
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6523 $as_echo "$ac_cv_sizeof_short" >&6; }
6527 cat >>confdefs.h
<<_ACEOF
6528 #define SIZEOF_SHORT $ac_cv_sizeof_short
6532 # The cast to long int works around a bug in the HP C Compiler
6533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6535 # This bug is HP SR number 8606223364.
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6537 $as_echo_n "checking size of int... " >&6; }
6538 if ${ac_cv_sizeof_int+:} false
; then :
6539 $as_echo_n "(cached) " >&6
6541 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6544 if test "$ac_cv_type_int" = yes; then
6545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6547 as_fn_error
77 "cannot compute sizeof (int)
6548 See \`config.log' for more details" "$LINENO" 5; }
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6556 $as_echo "$ac_cv_sizeof_int" >&6; }
6560 cat >>confdefs.h
<<_ACEOF
6561 #define SIZEOF_INT $ac_cv_sizeof_int
6565 # The cast to long int works around a bug in the HP C Compiler
6566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6568 # This bug is HP SR number 8606223364.
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6570 $as_echo_n "checking size of long... " >&6; }
6571 if ${ac_cv_sizeof_long+:} false
; then :
6572 $as_echo_n "(cached) " >&6
6574 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6577 if test "$ac_cv_type_long" = yes; then
6578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6580 as_fn_error
77 "cannot compute sizeof (long)
6581 See \`config.log' for more details" "$LINENO" 5; }
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6589 $as_echo "$ac_cv_sizeof_long" >&6; }
6593 cat >>confdefs.h
<<_ACEOF
6594 #define SIZEOF_LONG $ac_cv_sizeof_long
6598 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6599 if test "x$ac_cv_type_long_long" = xyes
; then :
6601 cat >>confdefs.h
<<_ACEOF
6602 #define HAVE_LONG_LONG 1
6605 # The cast to long int works around a bug in the HP C Compiler
6606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6608 # This bug is HP SR number 8606223364.
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6610 $as_echo_n "checking size of long long... " >&6; }
6611 if ${ac_cv_sizeof_long_long+:} false
; then :
6612 $as_echo_n "(cached) " >&6
6614 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6617 if test "$ac_cv_type_long_long" = yes; then
6618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6620 as_fn_error
77 "cannot compute sizeof (long long)
6621 See \`config.log' for more details" "$LINENO" 5; }
6623 ac_cv_sizeof_long_long
=0
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6629 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6633 cat >>confdefs.h
<<_ACEOF
6634 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6640 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6641 case $ac_cv_c_int8_t in #(
6645 cat >>confdefs.h
<<_ACEOF
6646 #define int8_t $ac_cv_c_int8_t
6651 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6652 case $ac_cv_c_int16_t in #(
6656 cat >>confdefs.h
<<_ACEOF
6657 #define int16_t $ac_cv_c_int16_t
6662 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6663 case $ac_cv_c_int32_t in #(
6667 cat >>confdefs.h
<<_ACEOF
6668 #define int32_t $ac_cv_c_int32_t
6673 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6674 case $ac_cv_c_int64_t in #(
6678 cat >>confdefs.h
<<_ACEOF
6679 #define int64_t $ac_cv_c_int64_t
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6686 $as_echo_n "checking for unsigned long long int... " >&6; }
6687 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6688 $as_echo_n "(cached) " >&6
6690 ac_cv_type_unsigned_long_long_int
=yes
6691 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6695 /* For now, do not test the preprocessor; as of 2007 there are too many
6696 implementations with broken preprocessors. Perhaps this can
6697 be revisited in 2012. In the meantime, code should not expect
6698 #if to work with literals wider than 32 bits. */
6699 /* Test literals. */
6700 long long int ll = 9223372036854775807ll;
6701 long long int nll = -9223372036854775807LL;
6702 unsigned long long int ull = 18446744073709551615ULL;
6703 /* Test constant expressions. */
6704 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6706 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6712 /* Test availability of runtime routines for shift and division. */
6713 long long int llmax = 9223372036854775807ll;
6714 unsigned long long int ullmax = 18446744073709551615ull;
6715 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6716 | (llmax / ll) | (llmax % ll)
6717 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6718 | (ullmax / ull) | (ullmax % ull));
6724 if ac_fn_cxx_try_link
"$LINENO"; then :
6727 ac_cv_type_unsigned_long_long_int
=no
6729 rm -f core conftest.err conftest.
$ac_objext \
6730 conftest
$ac_exeext conftest.
$ac_ext
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6734 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6735 if test $ac_cv_type_unsigned_long_long_int = yes; then
6737 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6744 $as_echo_n "checking for long long int... " >&6; }
6745 if ${ac_cv_type_long_long_int+:} false
; then :
6746 $as_echo_n "(cached) " >&6
6748 ac_cv_type_long_long_int
=yes
6749 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6750 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6751 if test $ac_cv_type_long_long_int = yes; then
6752 if test "$cross_compiling" = yes; then :
6755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6760 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6761 # define LLONG_MAX (HALF - 1 + HALF)
6766 long long int n = 1;
6770 long long int m = n << i;
6773 if (LLONG_MAX / 2 < m)
6781 if ac_fn_cxx_try_run
"$LINENO"; then :
6784 ac_cv_type_long_long_int
=no
6786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6787 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6794 $as_echo "$ac_cv_type_long_long_int" >&6; }
6795 if test $ac_cv_type_long_long_int = yes; then
6797 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6803 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6804 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6806 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6809 test $ac_cv_type_long_long_int = yes \
6810 && ac_type
='long long int' \
6811 || ac_type
='long int'
6813 cat >>confdefs.h
<<_ACEOF
6814 #define intmax_t $ac_type
6821 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6822 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6824 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6827 for ac_type
in 'int' 'long int' 'long long int'; do
6828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 $ac_includes_default
6834 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6836 return test_array [0];
6842 if ac_fn_cxx_try_compile
"$LINENO"; then :
6844 cat >>confdefs.h
<<_ACEOF
6845 #define intptr_t $ac_type
6850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6851 test -z "$ac_type" && break
6856 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6857 case $ac_cv_c_uint8_t in #(
6861 $as_echo "#define _UINT8_T 1" >>confdefs.h
6864 cat >>confdefs.h
<<_ACEOF
6865 #define uint8_t $ac_cv_c_uint8_t
6870 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6871 case $ac_cv_c_uint16_t in #(
6876 cat >>confdefs.h
<<_ACEOF
6877 #define uint16_t $ac_cv_c_uint16_t
6882 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6883 case $ac_cv_c_uint32_t in #(
6887 $as_echo "#define _UINT32_T 1" >>confdefs.h
6890 cat >>confdefs.h
<<_ACEOF
6891 #define uint32_t $ac_cv_c_uint32_t
6896 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6897 case $ac_cv_c_uint64_t in #(
6901 $as_echo "#define _UINT64_T 1" >>confdefs.h
6904 cat >>confdefs.h
<<_ACEOF
6905 #define uint64_t $ac_cv_c_uint64_t
6912 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6913 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6915 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6918 test $ac_cv_type_unsigned_long_long_int = yes \
6919 && ac_type
='unsigned long long int' \
6920 || ac_type
='unsigned long int'
6922 cat >>confdefs.h
<<_ACEOF
6923 #define uintmax_t $ac_type
6930 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6931 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6933 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6936 for ac_type
in 'unsigned int' 'unsigned long int' \
6937 'unsigned long long int'; do
6938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 $ac_includes_default
6944 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6946 return test_array [0];
6952 if ac_fn_cxx_try_compile
"$LINENO"; then :
6954 cat >>confdefs.h
<<_ACEOF
6955 #define uintptr_t $ac_type
6960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6961 test -z "$ac_type" && break
6978 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6979 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6982 # check what underlying integer type int64_t uses
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6984 $as_echo_n "checking for int64_t underlying type... " >&6; }
6985 if ${ac_cv_int64_t_type+:} false
; then :
6986 $as_echo_n "(cached) " >&6
6989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6992 #ifdef HAVE_STDINT_H
6995 template <typename T> struct X { };
6997 struct X<long> { typedef long t; };
7007 if ac_fn_cxx_try_compile
"$LINENO"; then :
7008 ac_cv_int64_t_type
=long
7010 ac_cv_int64_t_type
="long long"
7012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7015 $as_echo "$ac_cv_int64_t_type" >&6; }
7016 if test "$ac_cv_int64_t_type" = "long"; then
7018 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7024 #ifdef HAVE_STDINT_H
7027 template <typename T> struct X { };
7029 struct X<long long> { typedef long long t; };
7039 if ac_fn_cxx_try_compile
"$LINENO"; then :
7042 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
7044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7048 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7049 if ${ac_cv_std_swap_in_utility+:} false
; then :
7050 $as_echo_n "(cached) " >&6
7053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7061 int a, b; std::swap(a,b);
7066 if ac_fn_cxx_try_compile
"$LINENO"; then :
7067 ac_cv_std_swap_in_utility
=yes
7069 ac_cv_std_swap_in_utility
=no
7071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7074 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7075 if test $ac_cv_std_swap_in_utility = yes; then
7077 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7081 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7082 # If the host compiler is affected by the bug, and we build with optimization
7083 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7084 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7085 # Since there is no reliable feature check for the presence of this bug,
7086 # we simply use a GCC version number check. (This should never trigger for
7087 # stages 2 or 3 of a native bootstrap.)
7089 if test "$GCC" = yes; then
7090 saved_CXXFLAGS
="$CXXFLAGS"
7092 # The following test compilation will succeed if and only if $CXX accepts
7093 # -fno-strict-aliasing *and* is older than GCC 4.3.
7094 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7096 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7100 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7101 #error compiler not affected by placement new aliasing bug
7105 if ac_fn_cxx_try_compile
"$LINENO"; then :
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7107 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7114 CXXFLAGS
="$saved_CXXFLAGS"
7120 # ---------------------
7121 # Warnings and checking
7122 # ---------------------
7124 # Check $CC warning features (if it's GCC).
7125 # We want to use -pedantic, but we don't want warnings about
7128 # * overlong strings
7129 # * C++11 narrowing conversions in { }
7130 # So, we only use -pedantic if we can disable those warnings.
7132 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7133 # Check whether --enable-build-format-warnings was given.
7134 if test "${enable_build_format_warnings+set}" = set; then :
7135 enableval
=$enable_build_format_warnings;
7137 enable_build_format_warnings
=yes
7140 if test $enable_build_format_warnings = no
; then :
7146 ac_cpp
='$CXXCPP $CPPFLAGS'
7147 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7152 save_CXXFLAGS
="$CXXFLAGS"
7153 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7154 # Do the check with the no- prefix removed since gcc silently
7155 # accepts any -Wno-* option on purpose
7156 case $real_option in
7157 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7158 *) option
=$real_option ;;
7160 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7163 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7164 if eval \
${$as_acx_Woption+:} false
; then :
7165 $as_echo_n "(cached) " >&6
7168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7179 if ac_fn_cxx_try_compile
"$LINENO"; then :
7180 eval "$as_acx_Woption=yes"
7182 eval "$as_acx_Woption=no"
7184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7187 eval ac_res
=\$
$as_acx_Woption
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7189 $as_echo "$ac_res" >&6; }
7190 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7191 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7194 CXXFLAGS
="$save_CXXFLAGS"
7196 ac_cpp
='$CXXCPP $CPPFLAGS'
7197 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7198 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7199 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7204 ac_cpp
='$CPP $CPPFLAGS'
7205 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7210 save_CFLAGS
="$CFLAGS"
7211 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7212 # Do the check with the no- prefix removed since gcc silently
7213 # accepts any -Wno-* option on purpose
7214 case $real_option in
7215 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7216 *) option
=$real_option ;;
7218 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7221 $as_echo_n "checking whether $CC supports $option... " >&6; }
7222 if eval \
${$as_acx_Woption+:} false
; then :
7223 $as_echo_n "(cached) " >&6
7226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7237 if ac_fn_c_try_compile
"$LINENO"; then :
7238 eval "$as_acx_Woption=yes"
7240 eval "$as_acx_Woption=no"
7242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7245 eval ac_res
=\$
$as_acx_Woption
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7247 $as_echo "$ac_res" >&6; }
7248 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7249 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7252 CFLAGS
="$save_CFLAGS"
7254 ac_cpp
='$CXXCPP $CPPFLAGS'
7255 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7261 ac_cpp
='$CXXCPP $CPPFLAGS'
7262 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7267 save_CXXFLAGS
="$CXXFLAGS"
7268 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7269 # Do the check with the no- prefix removed since gcc silently
7270 # accepts any -Wno-* option on purpose
7271 case $real_option in
7272 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7273 *) option
=$real_option ;;
7275 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7278 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7279 if eval \
${$as_acx_Woption+:} false
; then :
7280 $as_echo_n "(cached) " >&6
7283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7294 if ac_fn_cxx_try_compile
"$LINENO"; then :
7295 eval "$as_acx_Woption=yes"
7297 eval "$as_acx_Woption=no"
7299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7302 eval ac_res
=\$
$as_acx_Woption
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7304 $as_echo "$ac_res" >&6; }
7305 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7306 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7309 CXXFLAGS
="$save_CXXFLAGS"
7311 ac_cpp
='$CXXCPP $CPPFLAGS'
7312 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7318 ac_cpp
='$CPP $CPPFLAGS'
7319 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7324 save_CFLAGS
="$CFLAGS"
7325 for real_option
in -Wold-style-definition -Wc++-compat; do
7326 # Do the check with the no- prefix removed since gcc silently
7327 # accepts any -Wno-* option on purpose
7328 case $real_option in
7329 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7330 *) option
=$real_option ;;
7332 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7335 $as_echo_n "checking whether $CC supports $option... " >&6; }
7336 if eval \
${$as_acx_Woption+:} false
; then :
7337 $as_echo_n "(cached) " >&6
7340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7351 if ac_fn_c_try_compile
"$LINENO"; then :
7352 eval "$as_acx_Woption=yes"
7354 eval "$as_acx_Woption=no"
7356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7359 eval ac_res
=\$
$as_acx_Woption
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7361 $as_echo "$ac_res" >&6; }
7362 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7363 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7366 CFLAGS
="$save_CFLAGS"
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 # Do the check with the no- prefix removed from the warning options
7381 # since gcc silently accepts any -Wno-* option on purpose
7382 if test "$GXX" = yes; then :
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7384 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7385 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7386 $as_echo_n "(cached) " >&6
7388 save_CXXFLAGS
="$CXXFLAGS"
7389 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7401 if ac_fn_cxx_try_compile
"$LINENO"; then :
7402 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7404 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7407 CXXFLAGS
="$save_CXXFLAGS"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7410 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7411 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7412 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7417 ac_cpp
='$CXXCPP $CPPFLAGS'
7418 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7424 ac_cpp
='$CXXCPP $CPPFLAGS'
7425 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7426 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7427 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7429 # Check whether --enable-werror-always was given.
7430 if test "${enable_werror_always+set}" = set; then :
7431 enableval
=$enable_werror_always;
7433 enable_werror_always
=no
7436 if test $enable_werror_always = yes; then :
7437 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7441 ac_cpp
='$CXXCPP $CPPFLAGS'
7442 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7448 # The above macros do nothing if the compiler is not GCC. However, the
7449 # Makefile has more goo to add other flags, so these variables are used
7450 # to enable warnings only for GCC.
7453 if test "x$GCC" = "xyes"; then
7454 warn_cflags
='$(GCC_WARN_CFLAGS)'
7455 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7460 # Disable exceptions and RTTI if building with g++
7462 ac_cpp
='$CPP $CPPFLAGS'
7463 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7468 save_CFLAGS
="$CFLAGS"
7469 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7470 # Do the check with the no- prefix removed since gcc silently
7471 # accepts any -Wno-* option on purpose
7472 case $real_option in
7473 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7474 *) option
=$real_option ;;
7476 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7479 $as_echo_n "checking whether $CC supports $option... " >&6; }
7480 if eval \
${$as_acx_Woption+:} false
; then :
7481 $as_echo_n "(cached) " >&6
7484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7495 if ac_fn_c_try_compile
"$LINENO"; then :
7496 eval "$as_acx_Woption=yes"
7498 eval "$as_acx_Woption=no"
7500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7503 eval ac_res
=\$
$as_acx_Woption
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7505 $as_echo "$ac_res" >&6; }
7506 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7507 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7510 CFLAGS
="$save_CFLAGS"
7512 ac_cpp
='$CXXCPP $CPPFLAGS'
7513 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7519 # Enable expensive internal checks
7521 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7525 # Check whether --enable-checking was given.
7526 if test "${enable_checking+set}" = set; then :
7527 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7530 # Determine the default checks.
7531 if test x
$is_release = x
; then
7532 ac_checking_flags
=yes,extra
7534 ac_checking_flags
=release
7538 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7539 for check
in release
$ac_checking_flags
7542 # these set all the flags to specific states
7543 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7544 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7545 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7546 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7547 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7548 ac_types_checking
=1 ;;
7549 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7550 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7551 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7552 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7553 ac_tree_checking
= ; ac_valgrind_checking
= ;
7554 ac_types_checking
= ;;
7555 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7556 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7557 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7558 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7559 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7560 ac_types_checking
=1 ;;
7561 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7562 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7563 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7564 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7565 ac_tree_checking
= ; ac_valgrind_checking
= ;
7566 ac_types_checking
= ;;
7567 # these enable particular checks
7568 assert
) ac_assert_checking
=1 ;;
7569 df
) ac_df_checking
=1 ;;
7570 extra
) ac_extra_checking
=1 ;;
7571 fold) ac_fold_checking
=1 ;;
7572 gc
) ac_gc_checking
=1 ;;
7573 gcac
) ac_gc_always_collect
=1 ;;
7574 gimple
) ac_gimple_checking
=1 ;;
7575 misc
) ac_checking
=1 ;;
7576 rtl
) ac_rtl_checking
=1 ;;
7577 rtlflag
) ac_rtlflag_checking
=1 ;;
7578 runtime
) ac_runtime_checking
=1 ;;
7579 tree
) ac_tree_checking
=1 ;;
7580 types
) ac_types_checking
=1 ;;
7581 valgrind
) ac_valgrind_checking
=1 ;;
7582 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7588 if test x
$ac_checking != x
; then
7590 $as_echo "#define CHECKING_P 1" >>confdefs.h
7592 nocommon_flag
=-fno-common
7594 $as_echo "#define CHECKING_P 0" >>confdefs.h
7598 if test x
$ac_extra_checking != x
; then
7600 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7603 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7606 if test x
$ac_df_checking != x
; then
7608 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7611 if test x
$ac_assert_checking != x
; then
7613 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7616 if test x
$ac_gimple_checking != x
; then
7618 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7622 if test x
$ac_runtime_checking != x
; then
7624 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7627 if test x
$ac_tree_checking != x
; then
7629 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7633 if test x
$ac_types_checking != x
; then
7635 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7639 if test x
$ac_rtl_checking != x
; then
7641 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7644 if test x
$ac_rtlflag_checking != x
; then
7646 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7649 if test x
$ac_gc_checking != x
; then
7651 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7654 if test x
$ac_gc_always_collect != x
; then
7656 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7659 if test x
$ac_fold_checking != x
; then
7661 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7664 valgrind_path_defines
=
7667 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7668 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7676 # It is certainly possible that there's valgrind but no valgrind.h.
7677 # GCC relies on making annotations so we must have both.
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7679 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #include <valgrind/memcheck.h>
7683 #ifndef VALGRIND_DISCARD
7684 #error VALGRIND_DISCARD not defined
7687 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7688 gcc_cv_header_valgrind_memcheck_h
=yes
7690 gcc_cv_header_valgrind_memcheck_h
=no
7692 rm -f conftest.err conftest.i conftest.
$ac_ext
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7694 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7696 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #include <memcheck.h>
7700 #ifndef VALGRIND_DISCARD
7701 #error VALGRIND_DISCARD not defined
7704 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7705 gcc_cv_header_memcheck_h
=yes
7707 gcc_cv_header_memcheck_h
=no
7709 rm -f conftest.err conftest.i conftest.
$ac_ext
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7711 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7712 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7714 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7717 if test $gcc_cv_header_memcheck_h = yes; then
7719 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7723 if test x
$ac_valgrind_checking != x
; then
7725 # Prepare PATH_SEPARATOR.
7726 # The user is always right.
7727 if test "${PATH_SEPARATOR+set}" != set; then
7728 echo "#! /bin/sh" >conf$$.sh
7729 echo "exit 0" >>conf$$.sh
7731 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7739 # Find out how to test for executable files. Don't use a zero-byte file,
7740 # as systems may use methods other than mode bits to determine executability.
7741 cat >conf$$.
file <<_ASEOF
7745 chmod +x conf$$.
file
7746 if test -x conf$$.
file >/dev
/null
2>&1; then
7747 ac_executable_p
="test -x"
7749 ac_executable_p
="test -f"
7753 # Extract the first word of "valgrind", so it can be a program name with args.
7754 set dummy valgrind
; ac_word
=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_path_valgrind_path+:} false
; then :
7758 $as_echo_n "(cached) " >&6
7760 case "$valgrind_path" in
7762 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7765 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7766 for ac_dir
in $PATH; do
7768 test -z "$ac_dir" && ac_dir
=.
7769 for ac_exec_ext
in '' $ac_executable_extensions; do
7770 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7771 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7772 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7782 valgrind_path
="$ac_cv_path_valgrind_path"
7783 if test -n "$valgrind_path"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7785 $as_echo "$valgrind_path" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7791 if test "x$valgrind_path" = "x" \
7792 ||
(test $have_valgrind_h = no \
7793 && test $gcc_cv_header_memcheck_h = no \
7794 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7795 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7797 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7798 valgrind_command
="$valgrind_path -q"
7800 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7806 # Enable code coverage collection
7807 # Check whether --enable-coverage was given.
7808 if test "${enable_coverage+set}" = set; then :
7809 enableval
=$enable_coverage; case "${enableval}" in
7811 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7814 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7817 # a.k.a. --disable-coverage
7821 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7830 # Check whether --enable-gather-detailed-mem-stats was given.
7831 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7832 enableval
=$enable_gather_detailed_mem_stats;
7834 enable_gather_detailed_mem_stats
=no
7837 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7839 cat >>confdefs.h
<<_ACEOF
7840 #define GATHER_STATISTICS $gather_stats
7844 # Check whether --enable-valgrind-annotations was given.
7845 if test "${enable_valgrind_annotations+set}" = set; then :
7846 enableval
=$enable_valgrind_annotations;
7848 enable_valgrind_annotations
=no
7851 if test x
$enable_valgrind_annotations != xno \
7852 ||
test x
$ac_valgrind_checking != x
; then
7853 if (test $have_valgrind_h = no \
7854 && test $gcc_cv_header_memcheck_h = no \
7855 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7856 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7859 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7863 # -------------------------------
7864 # Miscenalleous configure options
7865 # -------------------------------
7867 # Determine whether or not multilibs are enabled.
7868 # Check whether --enable-multilib was given.
7869 if test "${enable_multilib+set}" = set; then :
7870 enableval
=$enable_multilib;
7877 # Determine whether or not multiarch is enabled.
7878 # Check whether --enable-multiarch was given.
7879 if test "${enable_multiarch+set}" = set; then :
7880 enableval
=$enable_multiarch; case "${enableval}" in
7881 yes|no|auto
) enable_multiarch
=$enableval;;
7882 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7885 enable_multiarch
=auto
7888 if test x
${enable_multiarch} = xauto
; then
7889 if test x
${with_native_system_header_dir} != x
; then
7890 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7893 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7894 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7898 if test x
${enable_multiarch} = xyes
; then
7900 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7904 $as_echo_n "checking for multiarch configuration... " >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7907 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7909 # needed for setting the multiarch name for soft-float/hard-float ABIs
7913 # default stack clash protection guard size as power of twos in bytes.
7914 # Please keep these in sync with params.def.
7918 # Keep the default value when the option is not used to 0, this allows us to
7919 # distinguish between the cases where the user specifially set a value via
7920 # configure and when the normal default value is used.
7922 # Check whether --with-stack-clash-protection-guard-size was given.
7923 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7924 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7926 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7929 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7930 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7931 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7932 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
7936 cat >>confdefs.h
<<_ACEOF
7937 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7941 # Specify the number of splits of match.pd to generate.
7943 # Check whether --with-matchpd-partitions was given.
7944 if test "${with_matchpd_partitions+set}" = set; then :
7945 withval
=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS
="$with_matchpd_partitions"
7947 DEFAULT_MATCHPD_PARTITIONS
=10
7950 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7951 as_fn_error $?
"Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7956 # Specify the number of splits of insn-emit.cc to generate.
7958 # Check whether --with-insnemit-partitions was given.
7959 if test "${with_insnemit_partitions+set}" = set; then :
7960 withval
=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS
="$with_insnemit_partitions"
7962 DEFAULT_INSNEMIT_PARTITIONS
=10
7965 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7966 as_fn_error $?
"Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7971 # Enable __cxa_atexit for C++.
7972 # Check whether --enable-__cxa_atexit was given.
7973 if test "${enable___cxa_atexit+set}" = set; then :
7974 enableval
=$enable___cxa_atexit;
7978 # Enable C extension for decimal float if target supports it.
7980 # Check whether --enable-decimal-float was given.
7981 if test "${enable_decimal_float+set}" = set; then :
7982 enableval
=$enable_decimal_float;
7983 case $enable_decimal_float in
7984 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7985 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7986 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7993 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7994 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7995 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7996 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7997 enable_decimal_float
=yes
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
8001 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
8002 enable_decimal_float
=no
8009 # x86's use BID format instead of DPD
8010 case x
$enable_decimal_float in
8013 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
8014 enable_decimal_float
=bid
8017 enable_decimal_float
=dpd
8020 default_decimal_float
=$enable_decimal_float
8023 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8024 # dependency on libdecnumber.
8025 default_decimal_float
=dpd
8032 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8034 cat >>confdefs.h
<<_ACEOF
8035 #define ENABLE_DECIMAL_FLOAT $dfp
8039 # Use default_decimal_float for dependency.
8040 enable_decimal_float
=$default_decimal_float
8042 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8044 cat >>confdefs.h
<<_ACEOF
8045 #define ENABLE_DECIMAL_BID_FORMAT $bid
8049 # Enable C extension for fixed-point arithmetic.
8050 # Check whether --enable-fixed-point was given.
8051 if test "${enable_fixed_point+set}" = set; then :
8052 enableval
=$enable_fixed_point;
8057 enable_fixed_point
=yes
8061 enable_fixed_point
=yes
8064 enable_fixed_point
=yes
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8068 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8069 enable_fixed_point
=no
8077 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8079 cat >>confdefs.h
<<_ACEOF
8080 #define ENABLE_FIXED_POINT $fixedpoint
8085 # Pass with no value to take the default
8086 # Pass with a value to specify a thread package
8087 # Check whether --enable-threads was given.
8088 if test "${enable_threads+set}" = set; then :
8089 enableval
=$enable_threads;
8095 # Check whether --enable-tls was given.
8096 if test "${enable_tls+set}" = set; then :
8097 enableval
=$enable_tls;
8100 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8101 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8109 # Check whether --enable-vtable-verify was given.
8110 if test "${enable_vtable_verify+set}" = set; then :
8111 enableval
=$enable_vtable_verify;
8113 enable_vtable_verify
=no
8116 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8118 cat >>confdefs.h
<<_ACEOF
8119 #define ENABLE_VTABLE_VERIFY $vtable_verify
8123 # Check whether --enable-analyzer was given.
8124 if test "${enable_analyzer+set}" = set; then :
8125 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8135 cat >>confdefs.h
<<_ACEOF
8136 #define ENABLE_ANALYZER $analyzer
8140 # Check whether --enable-objc-gc was given.
8141 if test "${enable_objc_gc+set}" = set; then :
8142 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8153 # Check whether --with-dwarf2 was given.
8154 if test "${with_dwarf2+set}" = set; then :
8155 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8161 # Check whether --enable-shared was given.
8162 if test "${enable_shared+set}" = set; then :
8163 enableval
=$enable_shared;
8164 case $enable_shared in
8168 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8169 for pkg
in $enableval; do
8170 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8184 # Check whether --enable-gcov was given.
8185 if test "${enable_gcov+set}" = set; then :
8186 enableval
=$enable_gcov;
8202 # Check whether --with-specs was given.
8203 if test "${with_specs+set}" = set; then :
8204 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8214 # Check whether --with-pkgversion was given.
8215 if test "${with_pkgversion+set}" = set; then :
8216 withval
=$with_pkgversion; case "$withval" in
8217 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8219 *) PKGVERSION
="($withval) " ;;
8230 # Check whether --with-bugurl was given.
8231 if test "${with_bugurl+set}" = set; then :
8232 withval
=$with_bugurl; case "$withval" in
8233 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8236 *) BUGURL
="$withval"
8240 BUGURL
="https://gcc.gnu.org/bugs/"
8250 REPORT_BUGS_TO
="<$BUGURL>"
8251 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8258 # Allow overriding the default URL for documentation
8260 # Check whether --with-documentation-root-url was given.
8261 if test "${with_documentation_root_url+set}" = set; then :
8262 withval
=$with_documentation_root_url; case "$withval" in
8263 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8264 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8265 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8266 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8269 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8274 cat >>confdefs.h
<<_ACEOF
8275 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8279 # Allow overriding the default URL for GCC changes
8281 # Check whether --with-changes-root-url was given.
8282 if test "${with_changes_root_url+set}" = set; then :
8283 withval
=$with_changes_root_url; case "$withval" in
8284 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8285 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8286 */) CHANGES_ROOT_URL
="$withval" ;;
8287 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8290 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8295 cat >>confdefs.h
<<_ACEOF
8296 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8300 # Sanity check enable_languages in case someone does not run the toplevel
8301 # configure # script.
8302 # Check whether --enable-languages was given.
8303 if test "${enable_languages+set}" = set; then :
8304 enableval
=$enable_languages; case ,${enable_languages}, in
8306 # go safe -- we cannot be much sure without the toplevel
8308 # analysis of which target libs are present and usable
8312 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8317 enable_languages
=c
,${enable_languages}
8325 # If top-level libada has been disabled, then wire in install-gnatlib
8326 # invocation with `make install', so that one can build and install
8327 # the library manually with `make -C gcc all gnatlib gnattools install'.
8328 if test x
"$enable_libada" = xno
; then
8329 gnat_install_lib
=gnat-install-lib
8335 if test x
"$enable_as_accelerator_for" != x
; then
8337 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8339 enable_as_accelerator
=yes
8340 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8341 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8342 accel_dir_suffix
=/accel
/${target_noncanonical}
8343 real_target_noncanonical
=${enable_as_accelerator_for}
8349 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8350 tgt
=`echo $tgt | sed 's/=.*//'`
8355 omp_device_property
=omp-device-properties-gcn
8356 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8359 omp_device_property
=omp-device-properties-nvptx
8360 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8363 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8366 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8367 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8369 if test x
"$offload_targets" = x
; then
8370 offload_targets
=$tgt
8372 offload_targets
="$offload_targets,$tgt"
8379 cat >>confdefs.h
<<_ACEOF
8380 #define OFFLOAD_TARGETS "$offload_targets"
8383 if test x
"$enable_offloading" != x
; then
8385 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8389 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8393 if test "x$enable_offload_defaulted" = xyes
; then
8395 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8400 # Check whether --with-multilib-list was given.
8401 if test "${with_multilib_list+set}" = set; then :
8402 withval
=$with_multilib_list; :
8404 with_multilib_list
=default
8409 # Check whether --with-multilib-generator was given.
8410 if test "${with_multilib_generator+set}" = set; then :
8411 withval
=$with_multilib_generator; :
8413 with_multilib_generator
=default
8417 # -------------------------
8418 # Checks for other programs
8419 # -------------------------
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8422 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8424 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8425 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8426 $as_echo_n "(cached) " >&6
8428 cat >conftest.
make <<\_ACEOF
8431 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8433 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8434 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8436 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8438 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8442 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8444 $as_echo "yes" >&6; }
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8449 SET_MAKE
="MAKE=${MAKE-make}"
8453 # Find some useful tools
8454 for ac_prog
in gawk mawk nawk
awk
8456 # Extract the first word of "$ac_prog", so it can be a program name with args.
8457 set dummy
$ac_prog; ac_word
=$2
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459 $as_echo_n "checking for $ac_word... " >&6; }
8460 if ${ac_cv_prog_AWK+:} false
; then :
8461 $as_echo_n "(cached) " >&6
8463 if test -n "$AWK"; then
8464 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8470 test -z "$as_dir" && as_dir
=.
8471 for ac_exec_ext
in '' $ac_executable_extensions; do
8472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8473 ac_cv_prog_AWK
="$ac_prog"
8474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 if test -n "$AWK"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8486 $as_echo "$AWK" >&6; }
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 $as_echo "no" >&6; }
8493 test -n "$AWK" && break
8496 # We need awk to create options.cc and options.h.
8497 # Bail out if it's missing.
8499 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8503 $as_echo_n "checking whether ln -s works... " >&6; }
8504 if ${gcc_cv_prog_LN_S+:} false
; then :
8505 $as_echo_n "(cached) " >&6
8507 rm -f conftestdata_t
8508 echo >conftestdata_f
8509 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8511 gcc_cv_prog_LN_S
="ln -s"
8513 if ln conftestdata_f conftestdata_t
2>/dev
/null
8517 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8519 gcc_cv_prog_LN_S
="cp -p"
8525 rm -f conftestdata_f conftestdata_t
8528 LN_S
="$gcc_cv_prog_LN_S"
8529 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531 $as_echo "yes" >&6; }
8533 if test "$gcc_cv_prog_LN_S" = "ln"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8535 $as_echo "no, using ln" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8538 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8543 $as_echo_n "checking whether ln works... " >&6; }
8544 if ${acx_cv_prog_LN+:} false
; then :
8545 $as_echo_n "(cached) " >&6
8547 rm -f conftestdata_t
8548 echo >conftestdata_f
8549 if ln conftestdata_f conftestdata_t
2>/dev
/null
8555 rm -f conftestdata_f conftestdata_t
8558 if test $acx_cv_prog_LN = no
; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8561 $as_echo "no, using $LN" >&6; }
8563 LN
="$acx_cv_prog_LN"
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8565 $as_echo "yes" >&6; }
8568 if test -n "$ac_tool_prefix"; then
8569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8570 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if ${ac_cv_prog_RANLIB+:} false
; then :
8574 $as_echo_n "(cached) " >&6
8576 if test -n "$RANLIB"; then
8577 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8583 test -z "$as_dir" && as_dir
=.
8584 for ac_exec_ext
in '' $ac_executable_extensions; do
8585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8586 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 RANLIB
=$ac_cv_prog_RANLIB
8597 if test -n "$RANLIB"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8599 $as_echo "$RANLIB" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8607 if test -z "$ac_cv_prog_RANLIB"; then
8608 ac_ct_RANLIB
=$RANLIB
8609 # Extract the first word of "ranlib", so it can be a program name with args.
8610 set dummy ranlib
; ac_word
=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8614 $as_echo_n "(cached) " >&6
8616 if test -n "$ac_ct_RANLIB"; then
8617 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8623 test -z "$as_dir" && as_dir
=.
8624 for ac_exec_ext
in '' $ac_executable_extensions; do
8625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8626 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8637 if test -n "$ac_ct_RANLIB"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8639 $as_echo "$ac_ct_RANLIB" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8645 if test "x$ac_ct_RANLIB" = x
; then
8648 case $cross_compiling:$ac_tool_warned in
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8652 ac_tool_warned
=yes ;;
8654 RANLIB
=$ac_ct_RANLIB
8657 RANLIB
="$ac_cv_prog_RANLIB"
8663 # Find a good install program. We prefer a C program (faster),
8664 # so one script is as good as another. But avoid the broken or
8665 # incompatible versions:
8666 # SysV /etc/install, /usr/sbin/install
8667 # SunOS /usr/etc/install
8668 # IRIX /sbin/install
8670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8672 # ./install, which can be erroneously created by make from ./install.sh.
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8674 $as_echo_n "checking for a BSD compatible install... " >&6; }
8675 if test -z "$INSTALL"; then
8676 if ${ac_cv_path_install+:} false
; then :
8677 $as_echo_n "(cached) " >&6
8679 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8680 for ac_dir
in $PATH; do
8681 # Account for people who put trailing slashes in PATH elements.
8683 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8685 # OSF1 and SCO ODT 3.0 have their own names for install.
8686 for ac_prog
in ginstall scoinst
install; do
8687 if test -f $ac_dir/$ac_prog; then
8688 if test $ac_prog = install &&
8689 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8690 # AIX install. It has an incompatible calling convention.
8691 # OSF/1 installbsd also uses dspmsg, but is usable.
8694 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8705 if test "${ac_cv_path_install+set}" = set; then
8706 INSTALL
="$ac_cv_path_install"
8708 # As a last resort, use the slow shell script. We don't cache a
8709 # path for INSTALL within a source directory, because that will
8710 # break other packages using the cache if that directory is
8711 # removed, or if the path is relative.
8712 INSTALL
="$ac_install_sh"
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8716 $as_echo "$INSTALL" >&6; }
8718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8719 # It thinks the first close brace ends the variable substitution.
8720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8722 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8725 # See if cmp has --ignore-initial.
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8727 $as_echo_n "checking for cmp's capabilities... " >&6; }
8728 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8729 $as_echo_n "(cached) " >&6
8733 gcc_cv_prog_cmp_skip
=slowcompare
8734 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8735 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8738 gcc_cv_prog_cmp_skip
=gnucompare
8741 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8742 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8743 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8746 gcc_cv_prog_cmp_skip
=fastcompare
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8754 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8755 make_compare_target
=$gcc_cv_prog_cmp_skip
8759 # See if we have the mktemp command.
8760 # Extract the first word of "mktemp", so it can be a program name with args.
8761 set dummy mktemp
; ac_word
=$2
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 $as_echo_n "checking for $ac_word... " >&6; }
8764 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8765 $as_echo_n "(cached) " >&6
8767 if test -n "$have_mktemp_command"; then
8768 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8774 test -z "$as_dir" && as_dir
=.
8775 for ac_exec_ext
in '' $ac_executable_extensions; do
8776 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8777 ac_cv_prog_have_mktemp_command
="yes"
8778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8788 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8789 if test -n "$have_mktemp_command"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8791 $as_echo "$have_mktemp_command" >&6; }
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8799 # See if makeinfo has been installed and is modern enough
8800 # that we can use it.
8802 # Extract the first word of "makeinfo", so it can be a program name with args.
8803 set dummy makeinfo
; ac_word
=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8807 $as_echo_n "(cached) " >&6
8809 if test -n "$MAKEINFO"; then
8810 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8816 test -z "$as_dir" && as_dir
=.
8817 for ac_exec_ext
in '' $ac_executable_extensions; do
8818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_MAKEINFO
="makeinfo"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8829 MAKEINFO
=$ac_cv_prog_MAKEINFO
8830 if test -n "$MAKEINFO"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8832 $as_echo "$MAKEINFO" >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8839 if test -n "$MAKEINFO"; then
8840 # Found it, now check the version.
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8842 $as_echo_n "checking for modern makeinfo... " >&6; }
8843 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8844 $as_echo_n "(cached) " >&6
8846 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8847 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8849 case $ac_prog_version in
8850 '') gcc_cv_prog_makeinfo_modern
=no
;;
8851 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8852 *) gcc_cv_prog_makeinfo_modern
=no
;;
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8857 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8859 gcc_cv_prog_makeinfo_modern
=no
8861 if test $gcc_cv_prog_makeinfo_modern = no
; then
8862 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8865 if test $gcc_cv_prog_makeinfo_modern = no
; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8867 *** Makeinfo is missing or too old.
8868 *** Info documentation will not be built." >&5
8869 $as_echo "$as_me: WARNING:
8870 *** Makeinfo is missing or too old.
8871 *** Info documentation will not be built." >&2;}
8878 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8879 # If it does, we want to pass it to makeinfo in order to restore the old
8880 # behavior of @{summary,}contents placement.
8881 MAKEINFO_TOC_INLINE_FLAG
=
8882 if test x
"$MAKEINFO" != x
; then :
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8885 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8886 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8887 $as_echo_n "(cached) " >&6
8890 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8891 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8892 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8893 gcc_cv_texi_add_toc_inline_flags
=no
8895 gcc_cv_texi_add_toc_inline_flags
=yes
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8900 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8901 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8902 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8908 # Is pod2man recent enough to regenerate manpages?
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8910 $as_echo_n "checking for recent Pod::Man... " >&6; }
8911 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8913 $as_echo "yes" >&6; }
8914 GENERATED_MANPAGES
=generated-manpages
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8922 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8927 # Extract the first word of "$ac_prog", so it can be a program name with args.
8928 set dummy
$ac_prog; ac_word
=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if ${ac_cv_prog_FLEX+:} false
; then :
8932 $as_echo_n "(cached) " >&6
8934 if test -n "$FLEX"; then
8935 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8941 test -z "$as_dir" && as_dir
=.
8942 for ac_exec_ext
in '' $ac_executable_extensions; do
8943 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8944 ac_cv_prog_FLEX
="$ac_prog"
8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 FLEX
=$ac_cv_prog_FLEX
8955 if test -n "$FLEX"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8957 $as_echo "$FLEX" >&6; }
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8964 test -n "$FLEX" && break
8966 test -n "$FLEX" || FLEX
="$MISSING flex"
8970 for ac_prog
in bison
8972 # Extract the first word of "$ac_prog", so it can be a program name with args.
8973 set dummy
$ac_prog; ac_word
=$2
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8975 $as_echo_n "checking for $ac_word... " >&6; }
8976 if ${ac_cv_prog_BISON+:} false
; then :
8977 $as_echo_n "(cached) " >&6
8979 if test -n "$BISON"; then
8980 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8986 test -z "$as_dir" && as_dir
=.
8987 for ac_exec_ext
in '' $ac_executable_extensions; do
8988 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8989 ac_cv_prog_BISON
="$ac_prog"
8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 BISON
=$ac_cv_prog_BISON
9000 if test -n "$BISON"; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9002 $as_echo "$BISON" >&6; }
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005 $as_echo "no" >&6; }
9009 test -n "$BISON" && break
9011 test -n "$BISON" || BISON
="$MISSING bison"
9016 # Extract the first word of "python3", so it can be a program name with args.
9017 set dummy python3
; ac_word
=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if ${ac_cv_prog_PYTHON+:} false
; then :
9021 $as_echo_n "(cached) " >&6
9023 if test -n "$PYTHON"; then
9024 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
9026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9030 test -z "$as_dir" && as_dir
=.
9031 for ac_exec_ext
in '' $ac_executable_extensions; do
9032 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9033 ac_cv_prog_PYTHON
="python3"
9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 PYTHON
=$ac_cv_prog_PYTHON
9044 if test -n "$PYTHON"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9046 $as_echo "$PYTHON" >&6; }
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9053 if test -n "$PYTHON"; then
9054 # Found it, now check the version.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9056 $as_echo_n "checking for modern python3... " >&6; }
9057 if ${gcc_cv_prog_python3_modern+:} false
; then :
9058 $as_echo_n "(cached) " >&6
9060 ac_prog_version
=`eval $PYTHON --version 2>&1 |
9061 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9063 case $ac_prog_version in
9064 '') gcc_cv_prog_python3_modern
=no
;;
9065 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
9066 *) gcc_cv_prog_python3_modern
=no
;;
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9071 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9073 gcc_cv_prog_python3_modern
=no
9075 if test $gcc_cv_prog_python3_modern = no
; then
9076 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9079 if test $gcc_cv_prog_python3_modern = no
; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9081 *** Python3 is missing.
9082 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9083 $as_echo "$as_me: WARNING:
9084 *** Python3 is missing.
9085 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9092 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9093 # check for build == host before using them.
9096 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9097 && test -d ..
/binutils
; then
9098 NM
='${objdir}/../binutils/nm-new'
9100 # Extract the first word of "nm", so it can be a program name with args.
9101 set dummy nm
; ac_word
=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if ${ac_cv_prog_NM+:} false
; then :
9105 $as_echo_n "(cached) " >&6
9107 if test -n "$NM"; then
9108 ac_cv_prog_NM
="$NM" # Let the user override the test.
9110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9114 test -z "$as_dir" && as_dir
=.
9115 for ac_exec_ext
in '' $ac_executable_extensions; do
9116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9129 if test -n "$NM"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9131 $as_echo "$NM" >&6; }
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9141 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9142 && test -d ..
/binutils
; then
9143 AR
='${objdir}/../binutils/ar'
9145 # Extract the first word of "ar", so it can be a program name with args.
9146 set dummy
ar; ac_word
=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_prog_AR+:} false
; then :
9150 $as_echo_n "(cached) " >&6
9152 if test -n "$AR"; then
9153 ac_cv_prog_AR
="$AR" # Let the user override the test.
9155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9159 test -z "$as_dir" && as_dir
=.
9160 for ac_exec_ext
in '' $ac_executable_extensions; do
9161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9174 if test -n "$AR"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9176 $as_echo "$AR" >&6; }
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9185 # The jit documentation looks better if built with sphinx, but can be
9186 # built with texinfo if sphinx is not available.
9187 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9188 # Extract the first word of "sphinx-build", so it can be a program name with args.
9189 set dummy sphinx-build
; ac_word
=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9193 $as_echo_n "(cached) " >&6
9195 if test -n "$doc_build_sys"; then
9196 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9202 test -z "$as_dir" && as_dir
=.
9203 for ac_exec_ext
in '' $ac_executable_extensions; do
9204 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9205 ac_cv_prog_doc_build_sys
="sphinx"
9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9216 doc_build_sys
=$ac_cv_prog_doc_build_sys
9217 if test -n "$doc_build_sys"; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9219 $as_echo "$doc_build_sys" >&6; }
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9227 # --------------------
9228 # Checks for C headers
9229 # --------------------
9231 # Need to reject headers which give warnings, so that the -Werror bootstrap
9232 # works later. *sigh* This needs to come before all header checks.
9234 ac_c_preproc_warn_flag
=yes
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9237 $as_echo_n "checking for ANSI C header files... " >&6; }
9238 if ${ac_cv_header_stdc+:} false
; then :
9239 $as_echo_n "(cached) " >&6
9241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9256 if ac_fn_cxx_try_compile
"$LINENO"; then :
9257 ac_cv_header_stdc
=yes
9259 ac_cv_header_stdc
=no
9261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9263 if test $ac_cv_header_stdc = yes; then
9264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9271 $EGREP "memchr" >/dev
/null
2>&1; then :
9274 ac_cv_header_stdc
=no
9280 if test $ac_cv_header_stdc = yes; then
9281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9288 $EGREP "free" >/dev
/null
2>&1; then :
9291 ac_cv_header_stdc
=no
9297 if test $ac_cv_header_stdc = yes; then
9298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9299 if test "$cross_compiling" = yes; then :
9302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9306 #if ((' ' & 0x0FF) == 0x020)
9307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9310 # define ISLOWER(c) \
9311 (('a' <= (c) && (c) <= 'i') \
9312 || ('j' <= (c) && (c) <= 'r') \
9313 || ('s' <= (c) && (c) <= 'z'))
9314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9322 for (i = 0; i < 256; i++)
9323 if (XOR (islower (i), ISLOWER (i))
9324 || toupper (i) != TOUPPER (i))
9329 if ac_fn_cxx_try_run
"$LINENO"; then :
9332 ac_cv_header_stdc
=no
9334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9341 $as_echo "$ac_cv_header_stdc" >&6; }
9342 if test $ac_cv_header_stdc = yes; then
9344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9349 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9350 if ${ac_cv_header_time+:} false
; then :
9351 $as_echo_n "(cached) " >&6
9353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 #include <sys/types.h>
9356 #include <sys/time.h>
9362 if ((struct tm *) 0)
9368 if ac_fn_cxx_try_compile
"$LINENO"; then :
9369 ac_cv_header_time
=yes
9371 ac_cv_header_time
=no
9373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9376 $as_echo "$ac_cv_header_time" >&6; }
9377 if test $ac_cv_header_time = yes; then
9379 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9384 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9385 if ${gcc_cv_header_string+:} false
; then :
9386 $as_echo_n "(cached) " >&6
9388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9391 #include <strings.h>
9400 if ac_fn_cxx_try_compile
"$LINENO"; then :
9401 gcc_cv_header_string
=yes
9403 gcc_cv_header_string
=no
9405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9408 $as_echo "$gcc_cv_header_string" >&6; }
9409 if test $gcc_cv_header_string = yes; then
9411 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9416 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9417 if ${ac_cv_header_sys_wait_h+:} false
; then :
9418 $as_echo_n "(cached) " >&6
9420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 #include <sys/types.h>
9423 #include <sys/wait.h>
9425 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9428 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9436 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9441 if ac_fn_cxx_try_compile
"$LINENO"; then :
9442 ac_cv_header_sys_wait_h
=yes
9444 ac_cv_header_sys_wait_h
=no
9446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9449 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9450 if test $ac_cv_header_sys_wait_h = yes; then
9452 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9457 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9458 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9459 $as_echo_n "(cached) " >&6
9461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 #include <sys/types.h>
9464 #include <termios.h>
9470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9471 $EGREP "yes" >/dev
/null
2>&1; then :
9472 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9474 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9480 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9482 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9484 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9485 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9486 $as_echo_n "(cached) " >&6
9488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490 #include <sys/types.h>
9491 #include <sys/ioctl.h>
9497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9498 $EGREP "yes" >/dev
/null
2>&1; then :
9499 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9501 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9507 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9509 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9511 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9516 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9517 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9518 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9519 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9521 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9522 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9523 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9524 cat >>confdefs.h
<<_ACEOF
9525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9532 # Check for thread headers.
9533 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9534 if test "x$ac_cv_header_thread_h" = xyes
; then :
9540 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9541 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9548 # These tests can't be done till we know if we have limits.h.
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9550 $as_echo_n "checking for CHAR_BIT... " >&6; }
9551 if ${gcc_cv_decl_char_bit+:} false
; then :
9552 $as_echo_n "(cached) " >&6
9554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 #ifdef HAVE_LIMITS_H
9563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9564 $EGREP "found" >/dev
/null
2>&1; then :
9565 gcc_cv_decl_char_bit
=yes
9567 gcc_cv_decl_char_bit
=no
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9574 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9575 if test $gcc_cv_decl_char_bit = no
; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9577 $as_echo_n "checking number of bits in a byte... " >&6; }
9578 if ${gcc_cv_c_nbby+:} false
; then :
9579 $as_echo_n "(cached) " >&6
9583 while test $i -lt 65; do
9584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9591 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9592 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9598 if ac_fn_cxx_try_compile
"$LINENO"; then :
9599 gcc_cv_c_nbby
=$i; break
9601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9604 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9608 $as_echo "$gcc_cv_c_nbby" >&6; }
9609 if test $gcc_cv_c_nbby = failed
; then
9610 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9613 cat >>confdefs.h
<<_ACEOF
9614 #define CHAR_BIT $gcc_cv_c_nbby
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9620 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9621 if ${ac_cv_c_bigendian+:} false
; then :
9622 $as_echo_n "(cached) " >&6
9624 ac_cv_c_bigendian
=unknown
9625 # See if we're dealing with a universal compiler.
9626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 #ifndef __APPLE_CC__
9629 not a universal capable compiler
9634 if ac_fn_cxx_try_compile
"$LINENO"; then :
9636 # Check for potential -arch flags. It is not universal unless
9637 # there are at least two -arch flags with different values.
9640 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9641 if test -n "$ac_prev"; then
9643 i?
86 | x86_64 | ppc | ppc64
)
9644 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9647 ac_cv_c_bigendian
=universal
9653 elif test "x$ac_word" = "x-arch"; then
9658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9659 if test $ac_cv_c_bigendian = unknown
; then
9660 # See if sys/param.h defines the BYTE_ORDER macro.
9661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 #include <sys/types.h>
9664 #include <sys/param.h>
9669 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9670 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9679 if ac_fn_cxx_try_compile
"$LINENO"; then :
9680 # It does; now see whether it defined to BIG_ENDIAN or not.
9681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683 #include <sys/types.h>
9684 #include <sys/param.h>
9689 #if BYTE_ORDER != BIG_ENDIAN
9697 if ac_fn_cxx_try_compile
"$LINENO"; then :
9698 ac_cv_c_bigendian
=yes
9700 ac_cv_c_bigendian
=no
9702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9706 if test $ac_cv_c_bigendian = unknown
; then
9707 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9715 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9723 if ac_fn_cxx_try_compile
"$LINENO"; then :
9724 # It does; now see whether it defined to _BIG_ENDIAN or not.
9725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9740 if ac_fn_cxx_try_compile
"$LINENO"; then :
9741 ac_cv_c_bigendian
=yes
9743 ac_cv_c_bigendian
=no
9745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9749 if test $ac_cv_c_bigendian = unknown
; then
9750 # Compile a test program.
9751 if test "$cross_compiling" = yes; then :
9752 # Try to guess by grepping values from an object file.
9753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 short int ascii_mm[] =
9756 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9757 short int ascii_ii[] =
9758 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9759 int use_ascii (int i) {
9760 return ascii_mm[i] + ascii_ii[i];
9762 short int ebcdic_ii[] =
9763 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9764 short int ebcdic_mm[] =
9765 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9766 int use_ebcdic (int i) {
9767 return ebcdic_mm[i] + ebcdic_ii[i];
9774 return use_ascii (foo) == use_ebcdic (foo);
9779 if ac_fn_cxx_try_compile
"$LINENO"; then :
9780 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9781 ac_cv_c_bigendian
=yes
9783 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9784 if test "$ac_cv_c_bigendian" = unknown
; then
9785 ac_cv_c_bigendian
=no
9787 # finding both strings is unlikely to happen, but who knows?
9788 ac_cv_c_bigendian
=unknown
9792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9796 $ac_includes_default
9801 /* Are we little or big endian? From Harbison&Steele. */
9805 char c[sizeof (long int)];
9808 return u.c[sizeof (long int) - 1] == 1;
9814 if ac_fn_cxx_try_run
"$LINENO"; then :
9815 ac_cv_c_bigendian
=no
9817 ac_cv_c_bigendian
=yes
9819 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9820 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9826 $as_echo "$ac_cv_c_bigendian" >&6; }
9827 case $ac_cv_c_bigendian in #(
9829 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9835 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9839 as_fn_error $?
"unknown endianness
9840 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9844 # ----------------------
9845 # Checks for C++ headers
9846 # ----------------------
9849 ac_cpp
='$CXXCPP $CPPFLAGS'
9850 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9851 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9852 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9854 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9855 if test -z "$CXXCPP"; then
9856 if ${ac_cv_prog_CXXCPP+:} false
; then :
9857 $as_echo_n "(cached) " >&6
9859 # Double quotes because CXXCPP needs to be expanded
9860 for CXXCPP
in "$CXX -E" "/lib/cpp"
9863 for ac_cxx_preproc_warn_flag
in '' yes
9865 # Use a header file that comes with gcc, so configuring glibc
9866 # with a fresh cross-compiler works.
9867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9868 # <limits.h> exists even on freestanding compilers.
9869 # On the NeXT, cc -E runs the code through the compiler's parser,
9870 # not just through cpp. "Syntax error" is here to catch this case.
9871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9874 # include <limits.h>
9876 # include <assert.h>
9880 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9883 # Broken: fails on valid input.
9886 rm -f conftest.err conftest.i conftest.
$ac_ext
9888 # OK, works on sane cases. Now check whether nonexistent headers
9889 # can be detected and how.
9890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 #include <ac_nonexistent.h>
9894 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9895 # Broken: success on invalid input.
9898 # Passes both tests.
9902 rm -f conftest.err conftest.i conftest.
$ac_ext
9905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9906 rm -f conftest.i conftest.err conftest.
$ac_ext
9907 if $ac_preproc_ok; then :
9912 ac_cv_prog_CXXCPP
=$CXXCPP
9915 CXXCPP
=$ac_cv_prog_CXXCPP
9917 ac_cv_prog_CXXCPP
=$CXXCPP
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9920 $as_echo "$CXXCPP" >&6; }
9922 for ac_cxx_preproc_warn_flag
in '' yes
9924 # Use a header file that comes with gcc, so configuring glibc
9925 # with a fresh cross-compiler works.
9926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9927 # <limits.h> exists even on freestanding compilers.
9928 # On the NeXT, cc -E runs the code through the compiler's parser,
9929 # not just through cpp. "Syntax error" is here to catch this case.
9930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9933 # include <limits.h>
9935 # include <assert.h>
9939 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9942 # Broken: fails on valid input.
9945 rm -f conftest.err conftest.i conftest.
$ac_ext
9947 # OK, works on sane cases. Now check whether nonexistent headers
9948 # can be detected and how.
9949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 #include <ac_nonexistent.h>
9953 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9954 # Broken: success on invalid input.
9957 # Passes both tests.
9961 rm -f conftest.err conftest.i conftest.
$ac_ext
9964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9965 rm -f conftest.i conftest.err conftest.
$ac_ext
9966 if $ac_preproc_ok; then :
9969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9972 See \`config.log' for more details" >&5
9973 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9974 See \`config.log' for more details" >&2;}; }
9978 ac_cpp
='$CXXCPP $CPPFLAGS'
9979 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9980 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9981 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9984 for ac_header
in unordered_map
9986 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9987 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9988 cat >>confdefs.h
<<_ACEOF
9989 #define HAVE_UNORDERED_MAP 1
9995 for ac_header
in tr1/unordered_map
9997 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9998 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9999 cat >>confdefs.h
<<_ACEOF
10000 #define HAVE_TR1_UNORDERED_MAP 1
10006 for ac_header
in ext
/hash_map
10008 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
10009 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
10010 cat >>confdefs.h
<<_ACEOF
10011 #define HAVE_EXT_HASH_MAP 1
10019 # Dependency checking.
10022 rm -rf .tst
2>/dev
/null
10023 mkdir .tst
2>/dev
/null
10024 if test -d .tst
; then
10029 rmdir .tst
2>/dev
/null
10031 DEPDIR
="${am__leading_dot}deps"
10033 ac_config_commands
="$ac_config_commands depdir"
10036 ac_config_commands
="$ac_config_commands gccdepdir"
10039 depcc
="$CXX" am_compiler_list
=
10041 am_depcomp
=$ac_aux_dir/depcomp
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10043 $as_echo_n "checking dependency style of $depcc... " >&6; }
10044 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
10045 $as_echo_n "(cached) " >&6
10047 if test -f "$am_depcomp"; then
10048 # We make a subdir and do the tests there. Otherwise we can end up
10049 # making bogus files that we don't know about and never remove. For
10050 # instance it was reported that on HP-UX the gcc test will end up
10051 # making a dummy file named `D' -- because `-MD' means `put the output
10054 # Copy depcomp to subdir because otherwise we won't find it if we're
10055 # using a relative directory.
10056 cp "$am_depcomp" conftest.dir
10058 # We will build objects and dependencies in a subdirectory because
10059 # it helps to detect inapplicable dependency modes. For instance
10060 # both Tru64's cc and ICC support -MD to output dependencies as a
10061 # side effect of compilation, but ICC will put the dependencies in
10062 # the current directory while Tru64 will put them in the object
10066 am_cv_CXX_dependencies_compiler_type
=none
10067 if test "$am_compiler_list" = ""; then
10068 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10070 for depmode
in $am_compiler_list; do
10071 if test $depmode = none
; then break; fi
10073 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10074 # Setup a source with many dependencies, because some compilers
10075 # like to wrap large dependency lists on column 80 (with \), and
10076 # we should not choose a depcomp mode which is confused by this.
10078 # We need to recreate these files for each test, as the compiler may
10079 # overwrite some of them when testing with obscure command lines.
10080 # This happens at least with the AIX C compiler.
10082 for i
in 1 2 3 4 5 6; do
10083 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10084 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10085 # Solaris 8's {/usr,}/bin/sh.
10086 touch sub
/conftst
$i.h
10088 echo "include sub/conftest.Po" > confmf
10090 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10091 # mode. It turns out that the SunPro C++ compiler does not properly
10092 # handle `-M -o', and we need to detect this.
10093 depcmd
="depmode=$depmode \
10094 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10096 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10097 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10098 if env
$depcmd > conftest.err
2>&1 &&
10099 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10100 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10101 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10102 # icc doesn't choke on unknown options, it will just issue warnings
10103 # or remarks (even with -Werror). So we grep stderr for any message
10104 # that says an option was ignored or not supported.
10105 # When given -MP, icc 7.0 and 7.1 complain thusly:
10106 # icc: Command line warning: ignoring option '-M'; no argument required
10107 # The diagnosis changed in icc 8.0:
10108 # icc: Command line remark: option '-MP' not supported
10109 if (grep 'ignoring option' conftest.err ||
10110 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10111 am_cv_CXX_dependencies_compiler_type
=$depmode
10112 $as_echo "$as_me:$LINENO: success" >&5
10116 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10117 sed -e 's/^/| /' < conftest.err
>&5
10121 rm -rf conftest.dir
10123 am_cv_CXX_dependencies_compiler_type
=none
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10128 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10129 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10130 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10131 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10141 # These libraries may be used by collect2.
10142 # We may need a special search path to get them linked.
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10144 $as_echo_n "checking for collect2 libraries... " >&6; }
10145 if ${gcc_cv_collect2_libs+:} false
; then :
10146 $as_echo_n "(cached) " >&6
10149 for libs
in '' -lld -lmld \
10150 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10151 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10157 /* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
10172 if ac_fn_cxx_try_link
"$LINENO"; then :
10173 gcc_cv_collect2_libs
="$libs"; break
10175 rm -f core conftest.err conftest.
$ac_objext \
10176 conftest
$ac_exeext conftest.
$ac_ext
10179 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10182 $as_echo "$gcc_cv_collect2_libs" >&6; }
10183 case $gcc_cv_collect2_libs in
10184 "none required") ;;
10185 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10189 # When building Ada code on Alpha, we need exc_resume which is usually in
10190 # -lexc. So test for it.
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10194 $as_echo_n "checking for library containing exc_resume... " >&6; }
10195 if ${ac_cv_search_exc_resume+:} false
; then :
10196 $as_echo_n "(cached) " >&6
10198 ac_func_search_save_LIBS
=$LIBS
10199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10202 /* Override any GCC internal prototype to avoid an error.
10203 Use char because int might match the return type of a GCC
10204 builtin and then its argument prototype would still apply. */
10208 char exc_resume ();
10212 return exc_resume ();
10217 for ac_lib
in '' exc
; do
10218 if test -z "$ac_lib"; then
10219 ac_res
="none required"
10222 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10224 if ac_fn_cxx_try_link
"$LINENO"; then :
10225 ac_cv_search_exc_resume
=$ac_res
10227 rm -f core conftest.err conftest.
$ac_objext \
10229 if ${ac_cv_search_exc_resume+:} false
; then :
10233 if ${ac_cv_search_exc_resume+:} false
; then :
10236 ac_cv_search_exc_resume
=no
10238 rm conftest.
$ac_ext
10239 LIBS
=$ac_func_search_save_LIBS
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10242 $as_echo "$ac_cv_search_exc_resume" >&6; }
10243 ac_res
=$ac_cv_search_exc_resume
10244 if test "$ac_res" != no
; then :
10245 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10249 GNAT_LIBEXC
="$LIBS"
10253 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10257 $as_echo_n "checking for library containing kstat_open... " >&6; }
10258 if ${ac_cv_search_kstat_open+:} false
; then :
10259 $as_echo_n "(cached) " >&6
10261 ac_func_search_save_LIBS
=$LIBS
10262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10265 /* Override any GCC internal prototype to avoid an error.
10266 Use char because int might match the return type of a GCC
10267 builtin and then its argument prototype would still apply. */
10271 char kstat_open ();
10275 return kstat_open ();
10280 for ac_lib
in '' kstat
; do
10281 if test -z "$ac_lib"; then
10282 ac_res
="none required"
10285 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10287 if ac_fn_cxx_try_link
"$LINENO"; then :
10288 ac_cv_search_kstat_open
=$ac_res
10290 rm -f core conftest.err conftest.
$ac_objext \
10292 if ${ac_cv_search_kstat_open+:} false
; then :
10296 if ${ac_cv_search_kstat_open+:} false
; then :
10299 ac_cv_search_kstat_open
=no
10301 rm conftest.
$ac_ext
10302 LIBS
=$ac_func_search_save_LIBS
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10305 $as_echo "$ac_cv_search_kstat_open" >&6; }
10306 ac_res
=$ac_cv_search_kstat_open
10307 if test "$ac_res" != no
; then :
10308 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10312 EXTRA_GCC_LIBS
="$LIBS"
10316 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10317 # C++ needs those for libcody.
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10322 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10323 if ${ac_cv_search_gethostbyname+:} false
; then :
10324 $as_echo_n "(cached) " >&6
10326 ac_func_search_save_LIBS
=$LIBS
10327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10336 char gethostbyname ();
10340 return gethostbyname ();
10345 for ac_lib
in '' nsl
; do
10346 if test -z "$ac_lib"; then
10347 ac_res
="none required"
10350 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10352 if ac_fn_cxx_try_link
"$LINENO"; then :
10353 ac_cv_search_gethostbyname
=$ac_res
10355 rm -f core conftest.err conftest.
$ac_objext \
10357 if ${ac_cv_search_gethostbyname+:} false
; then :
10361 if ${ac_cv_search_gethostbyname+:} false
; then :
10364 ac_cv_search_gethostbyname
=no
10366 rm conftest.
$ac_ext
10367 LIBS
=$ac_func_search_save_LIBS
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10370 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10371 ac_res
=$ac_cv_search_gethostbyname
10372 if test "$ac_res" != no
; then :
10373 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10378 $as_echo_n "checking for library containing socket... " >&6; }
10379 if ${ac_cv_search_socket+:} false
; then :
10380 $as_echo_n "(cached) " >&6
10382 ac_func_search_save_LIBS
=$LIBS
10383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10401 for ac_lib
in '' socket
; do
10402 if test -z "$ac_lib"; then
10403 ac_res
="none required"
10406 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10408 if ac_fn_cxx_try_link
"$LINENO"; then :
10409 ac_cv_search_socket
=$ac_res
10411 rm -f core conftest.err conftest.
$ac_objext \
10413 if ${ac_cv_search_socket+:} false
; then :
10417 if ${ac_cv_search_socket+:} false
; then :
10420 ac_cv_search_socket
=no
10422 rm conftest.
$ac_ext
10423 LIBS
=$ac_func_search_save_LIBS
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10426 $as_echo "$ac_cv_search_socket" >&6; }
10427 ac_res
=$ac_cv_search_socket
10428 if test "$ac_res" != no
; then :
10429 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10434 $as_echo_n "checking for socket in -lsocket... " >&6; }
10435 if ${ac_cv_lib_socket_socket+:} false
; then :
10436 $as_echo_n "(cached) " >&6
10438 ac_check_lib_save_LIBS
=$LIBS
10439 LIBS
="-lsocket -lnsl $LIBS"
10440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10443 /* Override any GCC internal prototype to avoid an error.
10444 Use char because int might match the return type of a GCC
10445 builtin and then its argument prototype would still apply. */
10458 if ac_fn_cxx_try_link
"$LINENO"; then :
10459 ac_cv_lib_socket_socket
=yes
10461 ac_cv_lib_socket_socket
=no
10463 rm -f core conftest.err conftest.
$ac_objext \
10464 conftest
$ac_exeext conftest.
$ac_ext
10465 LIBS
=$ac_check_lib_save_LIBS
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10468 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10469 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10470 LIBS
="-lsocket -lnsl $LIBS"
10480 # Some systems put ldexp and frexp in libm instead of libc; assume
10481 # they're both in the same place. jcf-dump needs them.
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10485 $as_echo_n "checking for library containing ldexp... " >&6; }
10486 if ${ac_cv_search_ldexp+:} false
; then :
10487 $as_echo_n "(cached) " >&6
10489 ac_func_search_save_LIBS
=$LIBS
10490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10493 /* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10508 for ac_lib
in '' m
; do
10509 if test -z "$ac_lib"; then
10510 ac_res
="none required"
10513 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10515 if ac_fn_cxx_try_link
"$LINENO"; then :
10516 ac_cv_search_ldexp
=$ac_res
10518 rm -f core conftest.err conftest.
$ac_objext \
10520 if ${ac_cv_search_ldexp+:} false
; then :
10524 if ${ac_cv_search_ldexp+:} false
; then :
10527 ac_cv_search_ldexp
=no
10529 rm conftest.
$ac_ext
10530 LIBS
=$ac_func_search_save_LIBS
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10533 $as_echo "$ac_cv_search_ldexp" >&6; }
10534 ac_res
=$ac_cv_search_ldexp
10535 if test "$ac_res" != no
; then :
10536 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10544 # Some systems need dlopen
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10548 $as_echo_n "checking for library containing dlopen... " >&6; }
10549 if ${ac_cv_search_dlopen+:} false
; then :
10550 $as_echo_n "(cached) " >&6
10552 ac_func_search_save_LIBS
=$LIBS
10553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10554 /* end confdefs.h. */
10556 /* Override any GCC internal prototype to avoid an error.
10557 Use char because int might match the return type of a GCC
10558 builtin and then its argument prototype would still apply. */
10571 for ac_lib
in '' dl
; do
10572 if test -z "$ac_lib"; then
10573 ac_res
="none required"
10576 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10578 if ac_fn_cxx_try_link
"$LINENO"; then :
10579 ac_cv_search_dlopen
=$ac_res
10581 rm -f core conftest.err conftest.
$ac_objext \
10583 if ${ac_cv_search_dlopen+:} false
; then :
10587 if ${ac_cv_search_dlopen+:} false
; then :
10590 ac_cv_search_dlopen
=no
10592 rm conftest.
$ac_ext
10593 LIBS
=$ac_func_search_save_LIBS
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10596 $as_echo "$ac_cv_search_dlopen" >&6; }
10597 ac_res
=$ac_cv_search_dlopen
10598 if test "$ac_res" != no
; then :
10599 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10607 # Use <inttypes.h> only if it exists,
10608 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10611 $as_echo_n "checking for inttypes.h... " >&6; }
10612 if ${gcc_cv_header_inttypes_h+:} false
; then :
10613 $as_echo_n "(cached) " >&6
10615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617 #define __STDC_FORMAT_MACROS
10618 #include <sys/types.h>
10619 #include <inttypes.h>
10631 if ac_fn_cxx_try_compile
"$LINENO"; then :
10632 gcc_cv_header_inttypes_h
=yes
10634 gcc_cv_header_inttypes_h
=no
10636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10640 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10641 if test $gcc_cv_header_inttypes_h = yes; then
10643 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10647 # Look for the ZSTD package.
10657 # Check whether --with-zstd was given.
10658 if test "${with_zstd+set}" = set; then :
10659 withval
=$with_zstd;
10663 # Check whether --with-zstd-include was given.
10664 if test "${with_zstd_include+set}" = set; then :
10665 withval
=$with_zstd_include;
10669 # Check whether --with-zstd-lib was given.
10670 if test "${with_zstd_lib+set}" = set; then :
10671 withval
=$with_zstd_lib;
10674 case "x$with_zstd" in
10680 *) ZSTD_INCLUDE
=$with_zstd/include
10681 ZSTD_LIB
=$with_zstd/lib
10685 if test "x$with_zstd" != xno
; then
10686 if test "x$with_zstd_include" != x
; then
10687 ZSTD_INCLUDE
=$with_zstd_include
10689 if test "x$with_zstd_lib" != x
; then
10690 ZSTD_LIB
=$with_zstd_lib
10692 if test "x$ZSTD_INCLUDE" != x \
10693 && test "x$ZSTD_INCLUDE" != xno
; then
10694 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10696 if test "x$ZSTD_LIB" != x \
10697 && test "x$ZSTD_LIB" != xno
; then
10698 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10701 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10702 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10704 # LTO can use zstd compression algorithm
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10708 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10709 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10710 $as_echo_n "(cached) " >&6
10712 ac_func_search_save_LIBS
=$LIBS
10713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10716 /* Override any GCC internal prototype to avoid an error.
10717 Use char because int might match the return type of a GCC
10718 builtin and then its argument prototype would still apply. */
10722 char ZSTD_compress ();
10726 return ZSTD_compress ();
10731 for ac_lib
in '' zstd
; do
10732 if test -z "$ac_lib"; then
10733 ac_res
="none required"
10736 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10738 if ac_fn_cxx_try_link
"$LINENO"; then :
10739 ac_cv_search_ZSTD_compress
=$ac_res
10741 rm -f core conftest.err conftest.
$ac_objext \
10743 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10747 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10750 ac_cv_search_ZSTD_compress
=no
10752 rm conftest.
$ac_ext
10753 LIBS
=$ac_func_search_save_LIBS
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10756 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10757 ac_res
=$ac_cv_search_ZSTD_compress
10758 if test "$ac_res" != no
; then :
10759 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10762 gcc_cv_header_zstd_h
=no
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10770 $as_echo_n "checking for zstd.h... " >&6; }
10771 if ${gcc_cv_header_zstd_h+:} false
; then :
10772 $as_echo_n "(cached) " >&6
10774 # We require version 1.3.0 or later. This is the first version that has
10775 # ZSTD_getFrameContentSize.
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 #if ZSTD_VERSION_NUMBER < 10300
10780 #error "need zstd 1.3.0 or better"
10790 if ac_fn_cxx_try_compile
"$LINENO"; then :
10791 gcc_cv_header_zstd_h
=yes
10793 gcc_cv_header_zstd_h
=no
10795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10799 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10800 if test $gcc_cv_header_zstd_h = yes; then
10802 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10804 elif test "x$with_zstd" != x
; then
10805 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10811 for ac_func
in times clock kill getrlimit setrlimit atoq \
10812 popen sysconf strsignal getrusage nl_langinfo \
10813 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10814 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
10816 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10817 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10818 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10819 cat >>confdefs.h
<<_ACEOF
10820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10827 if test x
$ac_cv_func_mbstowcs = xyes
; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10829 $as_echo_n "checking whether mbstowcs works... " >&6; }
10830 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10831 $as_echo_n "(cached) " >&6
10833 if test "$cross_compiling" = yes; then :
10834 gcc_cv_func_mbstowcs_works
=yes
10836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10838 #include <stdlib.h>
10841 mbstowcs(0, "", 0);
10845 if ac_fn_cxx_try_run
"$LINENO"; then :
10846 gcc_cv_func_mbstowcs_works
=yes
10848 gcc_cv_func_mbstowcs_works
=no
10850 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10851 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10856 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10857 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10859 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10864 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10865 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10869 cat >>confdefs.h
<<_ACEOF
10870 #define ssize_t int
10875 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10876 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10880 cat >>confdefs.h
<<_ACEOF
10881 #define caddr_t char *
10886 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10888 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10890 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10896 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10897 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10898 gcc_header_sys_mman_h
=yes
10900 gcc_header_sys_mman_h
=no
10903 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10904 if test "x$ac_cv_func_mmap" = xyes
; then :
10910 if test "$gcc_header_sys_mman_h" != yes \
10911 ||
test "$gcc_func_mmap" != yes; then
10912 gcc_cv_func_mmap_file
=no
10913 gcc_cv_func_mmap_dev_zero
=no
10914 gcc_cv_func_mmap_anon
=no
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10917 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10918 if ${gcc_cv_func_mmap_file+:} false
; then :
10919 $as_echo_n "(cached) " >&6
10921 # Add a system to this blacklist if
10922 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10923 # memory area containing the same data that you'd get if you applied
10924 # read() to the same fd. The only system known to have a problem here
10925 # is VMS, where text files have record structure.
10928 gcc_cv_func_mmap_file
=no
;;
10930 gcc_cv_func_mmap_file
=yes;;
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10934 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10936 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10937 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10938 $as_echo_n "(cached) " >&6
10940 # Add a system to this blacklist if it has mmap() but /dev/zero
10941 # does not exist, or if mmapping /dev/zero does not give anonymous
10942 # zeroed pages with both the following properties:
10943 # 1. If you map N consecutive pages in with one call, and then
10944 # unmap any subset of those pages, the pages that were not
10945 # explicitly unmapped remain accessible.
10946 # 2. If you map two adjacent blocks of memory and then unmap them
10947 # both at once, they must both go away.
10948 # Systems known to be in this category are Windows (all variants),
10951 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10952 gcc_cv_func_mmap_dev_zero
=no
;;
10954 gcc_cv_func_mmap_dev_zero
=yes;;
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10958 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10960 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10962 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10963 if ${gcc_cv_decl_map_anon+:} false
; then :
10964 $as_echo_n "(cached) " >&6
10966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968 #include <sys/types.h>
10969 #include <sys/mman.h>
10970 #include <unistd.h>
10972 #ifndef MAP_ANONYMOUS
10973 #define MAP_ANONYMOUS MAP_ANON
10979 int n = MAP_ANONYMOUS;
10984 if ac_fn_cxx_try_compile
"$LINENO"; then :
10985 gcc_cv_decl_map_anon
=yes
10987 gcc_cv_decl_map_anon
=no
10989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10992 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10994 if test $gcc_cv_decl_map_anon = no
; then
10995 gcc_cv_func_mmap_anon
=no
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10998 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10999 if ${gcc_cv_func_mmap_anon+:} false
; then :
11000 $as_echo_n "(cached) " >&6
11002 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11003 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11004 # doesn't give anonymous zeroed pages with the same properties listed
11005 # above for use of /dev/zero.
11006 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11008 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
11009 gcc_cv_func_mmap_anon
=no
;;
11011 gcc_cv_func_mmap_anon
=yes;;
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
11015 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
11019 if test $gcc_cv_func_mmap_file = yes; then
11021 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11024 if test $gcc_cv_func_mmap_dev_zero = yes; then
11026 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11029 if test $gcc_cv_func_mmap_anon = yes; then
11031 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11038 # Under VMS, vfork works very differently than on Unix. The standard test
11039 # won't work, and it isn't easily adaptable. It makes more sense to
11041 ac_cv_func_vfork_works
=yes
11044 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11045 if test "x$ac_cv_type_pid_t" = xyes
; then :
11049 cat >>confdefs.h
<<_ACEOF
11055 for ac_header
in vfork.h
11057 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11058 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11059 cat >>confdefs.h
<<_ACEOF
11060 #define HAVE_VFORK_H 1
11066 for ac_func
in fork vfork
11068 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11070 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11071 cat >>confdefs.h
<<_ACEOF
11072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11078 if test "x$ac_cv_func_fork" = xyes
; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11080 $as_echo_n "checking for working fork... " >&6; }
11081 if ${ac_cv_func_fork_works+:} false
; then :
11082 $as_echo_n "(cached) " >&6
11084 if test "$cross_compiling" = yes; then :
11085 ac_cv_func_fork_works
=cross
11087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11089 $ac_includes_default
11094 /* By Ruediger Kuhlmann. */
11095 return fork () < 0;
11101 if ac_fn_cxx_try_run
"$LINENO"; then :
11102 ac_cv_func_fork_works
=yes
11104 ac_cv_func_fork_works
=no
11106 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11107 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11112 $as_echo "$ac_cv_func_fork_works" >&6; }
11115 ac_cv_func_fork_works
=$ac_cv_func_fork
11117 if test "x$ac_cv_func_fork_works" = xcross
; then
11119 *-*-amigaos* |
*-*-msdosdjgpp*)
11120 # Override, as these systems have only a dummy fork() stub
11121 ac_cv_func_fork_works
=no
11124 ac_cv_func_fork_works
=yes
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11128 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11130 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11131 if test "x$ac_cv_func_vfork" = xyes
; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11133 $as_echo_n "checking for working vfork... " >&6; }
11134 if ${ac_cv_func_vfork_works+:} false
; then :
11135 $as_echo_n "(cached) " >&6
11137 if test "$cross_compiling" = yes; then :
11138 ac_cv_func_vfork_works
=cross
11140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11142 /* Thanks to Paul Eggert for this test. */
11143 $ac_includes_default
11144 #include <sys/wait.h>
11145 #ifdef HAVE_VFORK_H
11146 # include <vfork.h>
11148 /* On some sparc systems, changes by the child to local and incoming
11149 argument registers are propagated back to the parent. The compiler
11150 is told about this with #include <vfork.h>, but some compilers
11151 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11152 static variable whose address is put into a register that is
11153 clobbered by the vfork. */
11156 sparc_address_test (int arg)
11158 sparc_address_test (arg) int arg;
11161 static pid_t child;
11179 pid_t parent = getpid ();
11182 sparc_address_test (0);
11187 /* Here is another test for sparc vfork register problems. This
11188 test uses lots of local variables, at least as many local
11189 variables as main has allocated so far including compiler
11190 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11191 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11192 reuse the register of parent for one of the local variables,
11193 since it will think that parent can't possibly be used any more
11194 in this routine. Assigning to the local variable will thus
11195 munge parent in the parent process. */
11197 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11198 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11199 /* Convince the compiler that p..p7 are live; otherwise, it might
11200 use the same hardware register for all 8 local variables. */
11201 if (p != p1 || p != p2 || p != p3 || p != p4
11202 || p != p5 || p != p6 || p != p7)
11205 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11206 from child file descriptors. If the child closes a descriptor
11207 before it execs or exits, this munges the parent's descriptor
11208 as well. Test for this by closing stdout in the child. */
11209 _exit(close(fileno(stdout)) != 0);
11214 while (wait(&status) != child)
11217 /* Was there some problem with vforking? */
11220 /* Did the child fail? (This shouldn't happen.) */
11223 /* Did the vfork/compiler bug occur? */
11224 || parent != getpid()
11226 /* Did the file descriptor bug occur? */
11227 || fstat(fileno(stdout), &st) != 0
11232 if ac_fn_cxx_try_run
"$LINENO"; then :
11233 ac_cv_func_vfork_works
=yes
11235 ac_cv_func_vfork_works
=no
11237 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11238 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11243 $as_echo "$ac_cv_func_vfork_works" >&6; }
11246 if test "x$ac_cv_func_fork_works" = xcross
; then
11247 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11249 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11252 if test "x$ac_cv_func_vfork_works" = xyes
; then
11254 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11258 $as_echo "#define vfork fork" >>confdefs.h
11261 if test "x$ac_cv_func_fork_works" = xyes
; then
11263 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11269 if test "X$prefix" = "XNONE"; then
11270 acl_final_prefix
="$ac_default_prefix"
11272 acl_final_prefix
="$prefix"
11274 if test "X$exec_prefix" = "XNONE"; then
11275 acl_final_exec_prefix
='${prefix}'
11277 acl_final_exec_prefix
="$exec_prefix"
11279 acl_save_prefix
="$prefix"
11280 prefix
="$acl_final_prefix"
11281 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11282 prefix
="$acl_save_prefix"
11285 # Check whether --with-gnu-ld was given.
11286 if test "${with_gnu_ld+set}" = set; then :
11287 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11292 # Prepare PATH_SEPARATOR.
11293 # The user is always right.
11294 if test "${PATH_SEPARATOR+set}" != set; then
11295 echo "#! /bin/sh" >conf$$.sh
11296 echo "exit 0" >>conf$$.sh
11298 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11306 if test "$GCC" = yes; then
11307 # Check if gcc -print-prog-name=ld gives a path.
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11309 $as_echo_n "checking for ld used by GCC... " >&6; }
11312 # gcc leaves a trailing carriage return which upsets mingw
11313 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11315 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11318 # Accept absolute paths.
11319 [\\/]* |
[A-Za-z
]:[\\/]*)
11320 re_direlt
='/[^/][^/]*/\.\./'
11321 # Canonicalize the path of ld
11322 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11323 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11324 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11326 test -z "$LD" && LD
="$ac_prog"
11329 # If it fails, then pretend we aren't using GCC.
11333 # If it is relative, then search for the first ld in PATH.
11334 with_gnu_ld
=unknown
11337 elif test "$with_gnu_ld" = yes; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11339 $as_echo_n "checking for GNU ld... " >&6; }
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11342 $as_echo_n "checking for non-GNU ld... " >&6; }
11344 if ${acl_cv_path_LD+:} false
; then :
11345 $as_echo_n "(cached) " >&6
11347 if test -z "$LD"; then
11348 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11349 for ac_dir
in $PATH; do
11350 test -z "$ac_dir" && ac_dir
=.
11351 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11352 acl_cv_path_LD
="$ac_dir/$ac_prog"
11353 # Check to see if the program is GNU ld. I'd rather use --version,
11354 # but apparently some GNU ld's only accept -v.
11355 # Break only if it was the GNU/non-GNU ld that we prefer.
11356 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
11357 test "$with_gnu_ld" != no
&& break
11359 test "$with_gnu_ld" != yes && break
11365 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11369 LD
="$acl_cv_path_LD"
11370 if test -n "$LD"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11372 $as_echo "$LD" >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11377 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11380 if ${acl_cv_prog_gnu_ld+:} false
; then :
11381 $as_echo_n "(cached) " >&6
11383 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11384 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
11385 acl_cv_prog_gnu_ld
=yes
11387 acl_cv_prog_gnu_ld
=no
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11391 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11392 with_gnu_ld
=$acl_cv_prog_gnu_ld
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11397 $as_echo_n "checking for shared library run path origin... " >&6; }
11398 if ${acl_cv_rpath+:} false
; then :
11399 $as_echo_n "(cached) " >&6
11402 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11403 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11405 rm -f .
/conftest.sh
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11410 $as_echo "$acl_cv_rpath" >&6; }
11412 libext
="$acl_cv_libext"
11413 shlibext
="$acl_cv_shlibext"
11414 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11415 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11416 hardcode_direct
="$acl_cv_hardcode_direct"
11417 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11418 # Check whether --enable-rpath was given.
11419 if test "${enable_rpath+set}" = set; then :
11420 enableval
=$enable_rpath; :
11434 acl_save_prefix
="$prefix"
11435 prefix
="$acl_final_prefix"
11436 acl_save_exec_prefix
="$exec_prefix"
11437 exec_prefix
="$acl_final_exec_prefix"
11439 eval additional_includedir
=\"$includedir\"
11440 eval additional_libdir
=\"$libdir\"
11442 exec_prefix
="$acl_save_exec_prefix"
11443 prefix
="$acl_save_prefix"
11446 # Check whether --with-libiconv-prefix was given.
11447 if test "${with_libiconv_prefix+set}" = set; then :
11448 withval
=$with_libiconv_prefix;
11449 if test "X$withval" = "Xno"; then
11452 if test "X$withval" = "X"; then
11454 acl_save_prefix
="$prefix"
11455 prefix
="$acl_final_prefix"
11456 acl_save_exec_prefix
="$exec_prefix"
11457 exec_prefix
="$acl_final_exec_prefix"
11459 eval additional_includedir
=\"$includedir\"
11460 eval additional_libdir
=\"$libdir\"
11462 exec_prefix
="$acl_save_exec_prefix"
11463 prefix
="$acl_save_prefix"
11466 additional_includedir
="$withval/include"
11467 additional_libdir
="$withval/lib"
11474 # Check whether --with-libiconv-type was given.
11475 if test "${with_libiconv_type+set}" = set; then :
11476 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11478 with_libiconv_type
=auto
11481 lib_type
=`eval echo \$with_libiconv_type`
11488 names_already_handled
=
11489 names_next_round
='iconv '
11490 while test -n "$names_next_round"; do
11491 names_this_round
="$names_next_round"
11493 for name
in $names_this_round; do
11495 for n
in $names_already_handled; do
11496 if test "$n" = "$name"; then
11497 already_handled
=yes
11501 if test -z "$already_handled"; then
11502 names_already_handled
="$names_already_handled $name"
11503 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11504 eval value
=\"\
$HAVE_LIB$uppername\"
11505 if test -n "$value"; then
11506 if test "$value" = yes; then
11507 eval value
=\"\
$LIB$uppername\"
11508 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11509 eval value
=\"\
$LTLIB$uppername\"
11510 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11519 if test $use_additional = yes; then
11520 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11521 found_dir
="$additional_libdir"
11522 found_so
="$additional_libdir/lib$name.$shlibext"
11523 if test -f "$additional_libdir/lib$name.la"; then
11524 found_la
="$additional_libdir/lib$name.la"
11526 elif test x
$lib_type != xshared
; then
11527 if test -f "$additional_libdir/lib$name.$libext"; then
11528 found_dir
="$additional_libdir"
11529 found_a
="$additional_libdir/lib$name.$libext"
11530 if test -f "$additional_libdir/lib$name.la"; then
11531 found_la
="$additional_libdir/lib$name.la"
11536 if test "X$found_dir" = "X"; then
11537 for x
in $LDFLAGS $LTLIBICONV; do
11539 acl_save_prefix
="$prefix"
11540 prefix
="$acl_final_prefix"
11541 acl_save_exec_prefix
="$exec_prefix"
11542 exec_prefix
="$acl_final_exec_prefix"
11544 exec_prefix
="$acl_save_exec_prefix"
11545 prefix
="$acl_save_prefix"
11549 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11550 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11552 found_so
="$dir/lib$name.$shlibext"
11553 if test -f "$dir/lib$name.la"; then
11554 found_la
="$dir/lib$name.la"
11556 elif test x
$lib_type != xshared
; then
11557 if test -f "$dir/lib$name.$libext"; then
11559 found_a
="$dir/lib$name.$libext"
11560 if test -f "$dir/lib$name.la"; then
11561 found_la
="$dir/lib$name.la"
11567 if test "X$found_dir" != "X"; then
11572 if test "X$found_dir" != "X"; then
11573 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11574 if test "X$found_so" != "X"; then
11575 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11576 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11579 for x
in $ltrpathdirs; do
11580 if test "X$x" = "X$found_dir"; then
11585 if test -z "$haveit"; then
11586 ltrpathdirs
="$ltrpathdirs $found_dir"
11588 if test "$hardcode_direct" = yes; then
11589 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11591 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11592 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11594 for x
in $rpathdirs; do
11595 if test "X$x" = "X$found_dir"; then
11600 if test -z "$haveit"; then
11601 rpathdirs
="$rpathdirs $found_dir"
11605 for x
in $LDFLAGS $LIBICONV; do
11607 acl_save_prefix
="$prefix"
11608 prefix
="$acl_final_prefix"
11609 acl_save_exec_prefix
="$exec_prefix"
11610 exec_prefix
="$acl_final_exec_prefix"
11612 exec_prefix
="$acl_save_exec_prefix"
11613 prefix
="$acl_save_prefix"
11615 if test "X$x" = "X-L$found_dir"; then
11620 if test -z "$haveit"; then
11621 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11623 if test "$hardcode_minus_L" != no
; then
11624 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11626 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11632 if test "X$found_a" != "X"; then
11633 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11635 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11638 additional_includedir
=
11639 case "$found_dir" in
11641 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11642 additional_includedir
="$basedir/include"
11645 if test "X$additional_includedir" != "X"; then
11646 if test "X$additional_includedir" != "X/usr/include"; then
11648 if test "X$additional_includedir" = "X/usr/local/include"; then
11649 if test -n "$GCC"; then
11651 linux
*) haveit
=yes;;
11655 if test -z "$haveit"; then
11656 for x
in $CPPFLAGS $INCICONV; do
11658 acl_save_prefix
="$prefix"
11659 prefix
="$acl_final_prefix"
11660 acl_save_exec_prefix
="$exec_prefix"
11661 exec_prefix
="$acl_final_exec_prefix"
11663 exec_prefix
="$acl_save_exec_prefix"
11664 prefix
="$acl_save_prefix"
11666 if test "X$x" = "X-I$additional_includedir"; then
11671 if test -z "$haveit"; then
11672 if test -d "$additional_includedir"; then
11673 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11679 if test -n "$found_la"; then
11680 save_libdir
="$libdir"
11681 case "$found_la" in
11682 */* |
*\\*) .
"$found_la" ;;
11683 *) .
"./$found_la" ;;
11685 libdir
="$save_libdir"
11686 for dep
in $dependency_libs; do
11689 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11690 if test "X$additional_libdir" != "X/usr/lib"; then
11692 if test "X$additional_libdir" = "X/usr/local/lib"; then
11693 if test -n "$GCC"; then
11695 linux
*) haveit
=yes;;
11699 if test -z "$haveit"; then
11701 for x
in $LDFLAGS $LIBICONV; do
11703 acl_save_prefix
="$prefix"
11704 prefix
="$acl_final_prefix"
11705 acl_save_exec_prefix
="$exec_prefix"
11706 exec_prefix
="$acl_final_exec_prefix"
11708 exec_prefix
="$acl_save_exec_prefix"
11709 prefix
="$acl_save_prefix"
11711 if test "X$x" = "X-L$additional_libdir"; then
11716 if test -z "$haveit"; then
11717 if test -d "$additional_libdir"; then
11718 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11722 for x
in $LDFLAGS $LTLIBICONV; do
11724 acl_save_prefix
="$prefix"
11725 prefix
="$acl_final_prefix"
11726 acl_save_exec_prefix
="$exec_prefix"
11727 exec_prefix
="$acl_final_exec_prefix"
11729 exec_prefix
="$acl_save_exec_prefix"
11730 prefix
="$acl_save_prefix"
11732 if test "X$x" = "X-L$additional_libdir"; then
11737 if test -z "$haveit"; then
11738 if test -d "$additional_libdir"; then
11739 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11746 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11747 if test "$enable_rpath" != no
; then
11749 for x
in $rpathdirs; do
11750 if test "X$x" = "X$dir"; then
11755 if test -z "$haveit"; then
11756 rpathdirs
="$rpathdirs $dir"
11759 for x
in $ltrpathdirs; do
11760 if test "X$x" = "X$dir"; then
11765 if test -z "$haveit"; then
11766 ltrpathdirs
="$ltrpathdirs $dir"
11771 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11774 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11777 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11778 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11784 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11785 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11786 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11788 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11789 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11796 if test "X$rpathdirs" != "X"; then
11797 if test -n "$hardcode_libdir_separator"; then
11799 for found_dir
in $rpathdirs; do
11800 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11802 acl_save_libdir
="$libdir"
11804 eval flag
=\"$hardcode_libdir_flag_spec\"
11805 libdir
="$acl_save_libdir"
11806 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11808 for found_dir
in $rpathdirs; do
11809 acl_save_libdir
="$libdir"
11810 libdir
="$found_dir"
11811 eval flag
=\"$hardcode_libdir_flag_spec\"
11812 libdir
="$acl_save_libdir"
11813 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11817 if test "X$ltrpathdirs" != "X"; then
11818 for found_dir
in $ltrpathdirs; do
11819 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11830 $as_echo_n "checking for iconv... " >&6; }
11831 if ${am_cv_func_iconv+:} false
; then :
11832 $as_echo_n "(cached) " >&6
11835 am_cv_func_iconv
="no, consider installing GNU libiconv"
11837 am_save_CPPFLAGS
="$CPPFLAGS"
11838 CPPFLAGS
="$CPPFLAGS $INCICONV"
11839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11841 #include <stdlib.h>
11846 iconv_t cd = iconv_open("","");
11847 iconv(cd,NULL,NULL,NULL,NULL);
11853 if ac_fn_cxx_try_link
"$LINENO"; then :
11854 am_cv_func_iconv
=yes
11856 rm -f core conftest.err conftest.
$ac_objext \
11857 conftest
$ac_exeext conftest.
$ac_ext
11858 CPPFLAGS
="$am_save_CPPFLAGS"
11860 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11861 for _libs
in .libs _libs
; do
11862 am_save_CPPFLAGS
="$CPPFLAGS"
11863 am_save_LIBS
="$LIBS"
11864 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11865 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868 #include <stdlib.h>
11873 iconv_t cd = iconv_open("","");
11874 iconv(cd,NULL,NULL,NULL,NULL);
11880 if ac_fn_cxx_try_link
"$LINENO"; then :
11881 INCICONV
="-I../libiconv/include"
11882 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11883 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11884 am_cv_lib_iconv
=yes
11885 am_cv_func_iconv
=yes
11887 rm -f core conftest.err conftest.
$ac_objext \
11888 conftest
$ac_exeext conftest.
$ac_ext
11889 CPPFLAGS
="$am_save_CPPFLAGS"
11890 LIBS
="$am_save_LIBS"
11891 if test "$am_cv_func_iconv" = "yes"; then
11897 if test "$am_cv_func_iconv" != yes; then
11898 am_save_CPPFLAGS
="$CPPFLAGS"
11899 am_save_LIBS
="$LIBS"
11900 CPPFLAGS
="$CPPFLAGS $INCICONV"
11901 LIBS
="$LIBS $LIBICONV"
11902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904 #include <stdlib.h>
11909 iconv_t cd = iconv_open("","");
11910 iconv(cd,NULL,NULL,NULL,NULL);
11916 if ac_fn_cxx_try_link
"$LINENO"; then :
11917 am_cv_lib_iconv
=yes
11918 am_cv_func_iconv
=yes
11920 rm -f core conftest.err conftest.
$ac_objext \
11921 conftest
$ac_exeext conftest.
$ac_ext
11922 CPPFLAGS
="$am_save_CPPFLAGS"
11923 LIBS
="$am_save_LIBS"
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11928 $as_echo "$am_cv_func_iconv" >&6; }
11929 if test "$am_cv_func_iconv" = yes; then
11931 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11934 if test "$am_cv_lib_iconv" = yes; then
11936 for element
in $INCICONV; do
11938 for x
in $CPPFLAGS; do
11940 acl_save_prefix
="$prefix"
11941 prefix
="$acl_final_prefix"
11942 acl_save_exec_prefix
="$exec_prefix"
11943 exec_prefix
="$acl_final_exec_prefix"
11945 exec_prefix
="$acl_save_exec_prefix"
11946 prefix
="$acl_save_prefix"
11948 if test "X$x" = "X$element"; then
11953 if test -z "$haveit"; then
11954 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11959 $as_echo_n "checking how to link with libiconv... " >&6; }
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11961 $as_echo "$LIBICONV" >&6; }
11969 if test "$am_cv_func_iconv" = yes; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11971 $as_echo_n "checking for iconv declaration... " >&6; }
11972 if ${am_cv_proto_iconv+:} false
; then :
11973 $as_echo_n "(cached) " >&6
11976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 #include <stdlib.h>
11985 #if defined(__STDC__) || defined(__cplusplus)
11986 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11999 if ac_fn_cxx_try_compile
"$LINENO"; then :
12000 am_cv_proto_iconv_arg1
=""
12002 am_cv_proto_iconv_arg1
="const"
12004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12005 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);"
12008 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12010 }$am_cv_proto_iconv" >&5
12012 }$am_cv_proto_iconv" >&6; }
12014 cat >>confdefs.h
<<_ACEOF
12015 #define ICONV_CONST $am_cv_proto_iconv_arg1
12021 # Until we have in-tree GNU iconv:
12023 if test -f "$LTLIBICONV"; then
12024 LIBICONV_DEP
=$LTLIBICONV
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12030 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12031 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12032 $as_echo_n "(cached) " >&6
12034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036 #include <locale.h>
12045 if ac_fn_cxx_try_link
"$LINENO"; then :
12046 am_cv_val_LC_MESSAGES
=yes
12048 am_cv_val_LC_MESSAGES
=no
12050 rm -f core conftest.err conftest.
$ac_objext \
12051 conftest
$ac_exeext conftest.
$ac_ext
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12054 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12055 if test $am_cv_val_LC_MESSAGES = yes; then
12057 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12064 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12065 if ${am_cv_langinfo_codeset+:} false
; then :
12066 $as_echo_n "(cached) " >&6
12068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070 #include <langinfo.h>
12074 char* cs = nl_langinfo(CODESET);
12079 if ac_fn_cxx_try_link
"$LINENO"; then :
12080 am_cv_langinfo_codeset
=yes
12082 am_cv_langinfo_codeset
=no
12084 rm -f core conftest.err conftest.
$ac_objext \
12085 conftest
$ac_exeext conftest.
$ac_ext
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12089 $as_echo "$am_cv_langinfo_codeset" >&6; }
12090 if test $am_cv_langinfo_codeset = yes; then
12092 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12097 # We will need to find libiberty.h and ansidecl.h
12098 saved_CFLAGS
="$CFLAGS"
12099 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12100 saved_CXXFLAGS
="$CXXFLAGS"
12101 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12103 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12104 # normal autoconf function for these. But force definition of
12105 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12106 # basename handling in libiberty.h.
12107 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12108 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12109 #undef HAVE_DECL_BASENAME
12110 #define HAVE_DECL_BASENAME 1
12111 #include \"ansidecl.h\"
12112 #include \"system.h\"
12114 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12120 cat >>confdefs.h
<<_ACEOF
12121 #define HAVE_DECL_BASENAME $ac_have_decl
12123 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12124 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12125 #undef HAVE_DECL_BASENAME
12126 #define HAVE_DECL_BASENAME 1
12127 #include \"ansidecl.h\"
12128 #include \"system.h\"
12130 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12136 cat >>confdefs.h
<<_ACEOF
12137 #define HAVE_DECL_STRSTR $ac_have_decl
12141 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12142 madvise stpcpy strnlen strsignal strverscmp \
12143 strtol strtoul strtoll strtoull setenv unsetenv \
12144 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12145 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
12147 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12149 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12150 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12151 $as_echo_n "(cached) " >&6
12153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12156 #define $ac_tr_decl 1
12158 #include "ansidecl.h"
12159 #include "system.h"
12165 char *(*pfn) = (char *(*)) $ac_func ;
12171 if ac_fn_cxx_try_compile
"$LINENO"; then :
12172 eval "gcc_cv_have_decl_$ac_func=yes"
12174 eval "gcc_cv_have_decl_$ac_func=no"
12176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12179 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12181 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12182 #define $ac_tr_decl 1
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12188 #define $ac_tr_decl 0
12196 for ac_func
in getrlimit setrlimit getrusage
12198 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12200 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12201 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12202 $as_echo_n "(cached) " >&6
12204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12207 #define $ac_tr_decl 1
12209 #include "ansidecl.h"
12210 #include "system.h"
12211 #ifdef HAVE_SYS_RESOURCE_H
12212 #include <sys/resource.h>
12220 char *(*pfn) = (char *(*)) $ac_func ;
12226 if ac_fn_cxx_try_compile
"$LINENO"; then :
12227 eval "gcc_cv_have_decl_$ac_func=yes"
12229 eval "gcc_cv_have_decl_$ac_func=no"
12231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12234 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12236 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12237 #define $ac_tr_decl 1
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12243 #define $ac_tr_decl 0
12251 for ac_func
in mallinfo mallinfo2
12253 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12255 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12256 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12257 $as_echo_n "(cached) " >&6
12259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12262 #define $ac_tr_decl 1
12264 #include "ansidecl.h"
12265 #include "system.h"
12266 #ifdef HAVE_MALLOC_H
12267 #include <malloc.h>
12275 char *(*pfn) = (char *(*)) $ac_func ;
12281 if ac_fn_cxx_try_compile
"$LINENO"; then :
12282 eval "gcc_cv_have_decl_$ac_func=yes"
12284 eval "gcc_cv_have_decl_$ac_func=no"
12286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12289 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12291 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12292 #define $ac_tr_decl 1
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12298 #define $ac_tr_decl 0
12306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12309 #include "ansidecl.h"
12310 #include "system.h"
12311 #ifdef HAVE_SYS_RESOURCE_H
12312 #include <sys/resource.h>
12323 if ac_fn_cxx_try_compile
"$LINENO"; then :
12327 $as_echo "#define rlim_t long" >>confdefs.h
12330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12332 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12333 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12334 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12335 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12336 for ac_func
in ldgetname
12338 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12340 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12341 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12342 $as_echo_n "(cached) " >&6
12344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 #define $ac_tr_decl 1
12349 #include "ansidecl.h"
12350 #include "system.h"
12351 #ifdef HAVE_LDFCN_H
12362 char *(*pfn) = (char *(*)) $ac_func ;
12368 if ac_fn_cxx_try_compile
"$LINENO"; then :
12369 eval "gcc_cv_have_decl_$ac_func=yes"
12371 eval "gcc_cv_have_decl_$ac_func=no"
12373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12376 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12378 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12379 #define $ac_tr_decl 1
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12385 #define $ac_tr_decl 0
12393 for ac_func
in times
12395 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12397 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12398 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12399 $as_echo_n "(cached) " >&6
12401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 #define $ac_tr_decl 1
12406 #include "ansidecl.h"
12407 #include "system.h"
12408 #ifdef HAVE_SYS_TIMES_H
12409 #include <sys/times.h>
12417 char *(*pfn) = (char *(*)) $ac_func ;
12423 if ac_fn_cxx_try_compile
"$LINENO"; then :
12424 eval "gcc_cv_have_decl_$ac_func=yes"
12426 eval "gcc_cv_have_decl_$ac_func=no"
12428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12431 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12433 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12434 #define $ac_tr_decl 1
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12440 #define $ac_tr_decl 0
12448 for ac_func
in sigaltstack
12450 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12452 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12453 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12454 $as_echo_n "(cached) " >&6
12456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12459 #define $ac_tr_decl 1
12461 #include "ansidecl.h"
12462 #include "system.h"
12463 #include <signal.h>
12470 char *(*pfn) = (char *(*)) $ac_func ;
12476 if ac_fn_cxx_try_compile
"$LINENO"; then :
12477 eval "gcc_cv_have_decl_$ac_func=yes"
12479 eval "gcc_cv_have_decl_$ac_func=no"
12481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12484 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12487 #define $ac_tr_decl 1
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12493 #define $ac_tr_decl 0
12501 # More time-related stuff.
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12503 $as_echo_n "checking for struct tms... " >&6; }
12504 if ${ac_cv_struct_tms+:} false
; then :
12505 $as_echo_n "(cached) " >&6
12508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12511 #include "ansidecl.h"
12512 #include "system.h"
12513 #ifdef HAVE_SYS_TIMES_H
12514 #include <sys/times.h>
12525 if ac_fn_cxx_try_compile
"$LINENO"; then :
12526 ac_cv_struct_tms
=yes
12528 ac_cv_struct_tms
=no
12530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12533 $as_echo "$ac_cv_struct_tms" >&6; }
12534 if test $ac_cv_struct_tms = yes; then
12536 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12540 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12541 # revisit after autoconf 2.50.
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12543 $as_echo_n "checking for clock_t... " >&6; }
12544 if ${gcc_cv_type_clock_t+:} false
; then :
12545 $as_echo_n "(cached) " >&6
12548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12551 #include "ansidecl.h"
12552 #include "system.h"
12562 if ac_fn_cxx_try_compile
"$LINENO"; then :
12563 gcc_cv_type_clock_t
=yes
12565 gcc_cv_type_clock_t
=no
12567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12570 $as_echo "$gcc_cv_type_clock_t" >&6; }
12571 if test $gcc_cv_type_clock_t = yes; then
12573 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12577 # Check if F_SETLKW is supported by fcntl.
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12579 $as_echo_n "checking for F_SETLKW... " >&6; }
12580 if ${ac_cv_f_setlkw+:} false
; then :
12581 $as_echo_n "(cached) " >&6
12584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12597 return fcntl (1, F_SETLKW, &fl);
12602 if ac_fn_cxx_try_compile
"$LINENO"; then :
12607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12610 $as_echo "$ac_cv_f_setlkw" >&6; }
12611 if test $ac_cv_f_setlkw = yes; then
12613 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12617 # Check if O_CLOEXEC is defined by fcntl
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12619 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12620 if ${ac_cv_o_cloexec+:} false
; then :
12621 $as_echo_n "(cached) " >&6
12624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12632 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12637 if ac_fn_cxx_try_compile
"$LINENO"; then :
12638 ac_cv_o_cloexec
=yes
12642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12645 $as_echo "$ac_cv_o_cloexec" >&6; }
12646 if test $ac_cv_o_cloexec = yes; then
12648 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12652 # Check if O_NONBLOCK is defined by fcntl
12653 for ac_header
in fcntl.h
12655 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12656 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12657 cat >>confdefs.h
<<_ACEOF
12658 #define HAVE_FCNTL_H 1
12664 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12666 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12670 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12672 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12677 # C++ Modules would like some networking features to provide the mapping
12678 # server. You can still use modules without them though.
12679 # The following network-related checks could probably do with some
12680 # Windows and other non-linux defenses and checking.
12682 # Local socket connectivity wants AF_UNIX networking
12683 # Check for AF_UNIX networking
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12685 $as_echo_n "checking for AF_UNIX... " >&6; }
12686 if ${ac_cv_af_unix+:} false
; then :
12687 $as_echo_n "(cached) " >&6
12690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12693 #include <sys/types.h>
12694 #include <sys/socket.h>
12695 #include <sys/un.h>
12696 #include <netinet/in.h>
12702 un.sun_family = AF_UNSPEC;
12703 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12704 connect (fd, (sockaddr *)&un, sizeof (un));
12709 if ac_fn_cxx_try_compile
"$LINENO"; then :
12714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12717 $as_echo "$ac_cv_af_unix" >&6; }
12718 if test $ac_cv_af_unix = yes; then
12720 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12724 # Remote socket connectivity wants AF_INET6 networking
12725 # Check for AF_INET6 networking
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12727 $as_echo_n "checking for AF_INET6... " >&6; }
12728 if ${ac_cv_af_inet6+:} false
; then :
12729 $as_echo_n "(cached) " >&6
12732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12735 #include <sys/types.h>
12736 #include <sys/socket.h>
12737 #include <netinet/in.h>
12744 in6.sin6_family = AF_UNSPEC;
12745 struct addrinfo *addrs = 0;
12746 struct addrinfo hints;
12747 hints.ai_flags = 0;
12748 hints.ai_family = AF_INET6;
12749 hints.ai_socktype = SOCK_STREAM;
12750 hints.ai_protocol = 0;
12751 hints.ai_canonname = 0;
12754 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12755 const char *str = gai_strerror (e);
12756 freeaddrinfo (addrs);
12757 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12758 connect (fd, (sockaddr *)&in6, sizeof (in6));
12763 if ac_fn_cxx_try_compile
"$LINENO"; then :
12768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12771 $as_echo "$ac_cv_af_inet6" >&6; }
12772 if test $ac_cv_af_inet6 = yes; then
12774 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12778 # Check if _LK_LOCK is supported by _locking
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12780 $as_echo_n "checking for _LK_LOCK... " >&6; }
12781 if ${ac_cv_lk_lock+:} false
; then :
12782 $as_echo_n "(cached) " >&6
12785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12786 /* end confdefs.h. */
12789 #include <sys/locking.h>
12795 return _locking (fd, _LK_LOCK, 0);
12800 if ac_fn_cxx_try_compile
"$LINENO"; then :
12805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12808 $as_echo "$ac_cv_lk_lock" >&6; }
12809 if test $ac_cv_lk_lock = yes; then
12811 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12815 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12816 CFLAGS
="$saved_CFLAGS"
12817 CXXFLAGS
="$saved_CXXFLAGS"
12819 # mkdir takes a single argument on some systems.
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12821 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12822 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12823 $as_echo_n "(cached) " >&6
12825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12828 #include <sys/types.h>
12829 #ifdef HAVE_SYS_STAT_H
12830 # include <sys/stat.h>
12832 #ifdef HAVE_UNISTD_H
12833 # include <unistd.h>
12835 #ifdef HAVE_DIRECT_H
12836 # include <direct.h>
12846 if ac_fn_cxx_try_compile
"$LINENO"; then :
12847 gcc_cv_mkdir_takes_one_arg
=no
12849 gcc_cv_mkdir_takes_one_arg
=yes
12851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12854 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12855 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12857 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12868 # With Setjmp/Longjmp based exception handling.
12869 # Check whether --enable-sjlj-exceptions was given.
12870 if test "${enable_sjlj_exceptions+set}" = set; then :
12871 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12875 force_sjlj_exceptions
=yes
12879 force_sjlj_exceptions
=no
12884 if test $force_sjlj_exceptions = yes; then
12885 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12887 cat >>confdefs.h
<<_ACEOF
12888 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12893 # --------------------------------------------------------
12894 # Build, host, and target specific configuration fragments
12895 # --------------------------------------------------------
12897 # Collect build-machine-specific information.
12898 .
${srcdir}/config.build ||
exit 1
12900 # Collect host-machine-specific information.
12901 .
${srcdir}/config.
host ||
exit 1
12905 # Collect target-machine-specific information.
12906 .
${srcdir}/config.gcc ||
exit 1
12908 extra_objs
="${host_extra_objs} ${extra_objs}"
12909 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12911 # Default the target-machine variables that were not explicitly set.
12912 if test x
"$tm_file" = x
12913 then tm_file
=$cpu_type/$cpu_type.h
; fi
12915 if test x
"$extra_headers" = x
12916 then extra_headers
=; fi
12918 if test x
$md_file = x
12919 then md_file
=$cpu_type/$cpu_type.md
; fi
12921 if test x
$out_file = x
12922 then out_file
=$cpu_type/$cpu_type.cc
; fi
12924 if test x
"$tmake_file" = x
12925 then tmake_file
=$cpu_type/t-
$cpu_type
12928 # Support --enable-initfini-array.
12929 if test x
$enable_initfini_array != xno
; then
12930 tm_file
="${tm_file} initfini-array.h"
12933 if test x
"$dwarf2" = xyes
12934 then tm_file
="$tm_file tm-dwarf2.h"
12937 # Say what files are being used for the output code and MD file.
12938 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12939 echo "Using \`$srcdir/config/$md_file' as machine description file."
12941 # If any of the xm_file variables contain nonexistent files, warn
12942 # about them and drop them.
12945 for x
in $build_xm_file; do
12946 if test -f $srcdir/config
/$x
12948 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12949 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12952 build_xm_file
="$bx"
12955 for x
in $host_xm_file; do
12956 if test -f $srcdir/config
/$x
12958 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12959 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12965 for x
in $xm_file; do
12966 if test -f $srcdir/config
/$x
12968 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12969 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12975 for f
in $tm_file; do
12978 if test $count = ax
; then
12979 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12981 echo "Using the following target machine macro files:"
12982 for f
in $tm_file; do
12983 echo " $srcdir/config/$f"
12987 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12989 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12993 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12995 cat >>confdefs.h
<<_ACEOF
12996 #define HAVE_GNU_LD $gnu_ld_bool
13000 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13002 cat >>confdefs.h
<<_ACEOF
13003 #define HAVE_GNU_AS $gnu_as_bool
13008 for f
in $host_xm_file; do
13011 if test $count = a
; then
13013 elif test $count = ax
; then
13014 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13016 echo "Using the following host machine macro files:"
13017 for f
in $host_xm_file; do
13018 echo " $srcdir/config/$f"
13021 echo "Using ${out_host_hook_obj} for host machine hooks."
13023 if test "$host_xm_file" != "$build_xm_file"; then
13025 for f
in $build_xm_file; do
13028 if test $count = a
; then
13030 elif test $count = ax
; then
13031 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13033 echo "Using the following build machine macro files:"
13034 for f
in $build_xm_file; do
13035 echo " $srcdir/config/$f"
13040 if test -n "$configured_native_system_header_dir"; then
13041 native_system_header_dir
=$configured_native_system_header_dir
13043 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
13047 powerpc
*-*-darwin*)
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13049 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13050 if ${gcc_cv_mcontext_underscores+:} false
; then :
13051 $as_echo_n "(cached) " >&6
13053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13056 #include <sys/cdefs.h>
13057 #include <sys/signal.h>
13058 #include <ucontext.h>
13059 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13062 if ac_fn_cxx_try_compile
"$LINENO"; then :
13063 gcc_cv_mcontext_underscores
=no
13065 gcc_cv_mcontext_underscores
=yes
13067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13070 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13071 if test $gcc_cv_mcontext_underscores = yes; then
13073 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13083 # Check if a valid thread package
13084 case ${enable_threads} in
13087 target_thread_file
='single'
13091 target_thread_file
='single'
13093 aix | dce | lynx | mipssde | posix | rtems | \
13094 single | tpf | vxworks | win32 | mcf
)
13095 target_thread_file
=${enable_threads}
13098 echo "${enable_threads} is an unknown thread package" 1>&2
13103 if test x
${thread_file} = x
; then
13104 # No thread file set by target-specific clauses in config.gcc,
13105 # so use file chosen by default logic above
13106 thread_file
=${target_thread_file}
13114 if test x
$enable___cxa_atexit = xyes || \
13115 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13116 if test x
$host = x
$target; then
13118 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13119 # keyed to flag_use_cxa_atexit
13127 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13128 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13131 echo "__cxa_atexit can't be enabled on this target"
13137 # We can't check for __cxa_atexit when building a cross, so assume
13141 if test x
$use_cxa_atexit = xyes
; then
13143 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13148 # Look for a file containing extra machine modes.
13149 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13150 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13153 cat >>confdefs.h
<<_ACEOF
13154 #define EXTRA_MODES_FILE "config/$extra_modes"
13159 # Convert extra_options into a form suitable for Makefile use.
13162 for f
in $extra_options; do
13163 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13164 all_opt_files
="$all_opt_files $srcdir/config/$f"
13168 # auto-host.h is the file containing items generated by autoconf and is
13169 # the first file included by config.h.
13170 # If host=build, it is correct to have bconfig include auto-host.h
13171 # as well. If host!=build, we are in error and need to do more
13172 # work to find out the build config parameters.
13173 if test x
$host = x
$build
13175 build_auto
=auto-host.h
13176 HAVE_AUTO_BUILD
='# '
13178 # We create a subdir, then run autoconf in the subdir.
13179 # To prevent recursion we set host and build for the new
13180 # invocation of configure to the build for this invocation
13187 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13188 *) realsrcdir
=..
/${srcdir};;
13190 # Clearing GMPINC is necessary to prevent host headers being
13191 # used by the build compiler. Defining GENERATOR_FILE stops
13192 # system.h from including gmp.h.
13193 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13194 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13195 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13196 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13197 ${realsrcdir}/configure \
13198 --enable-languages=${enable_languages-all} \
13199 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13200 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13201 --target=$target_alias --host=$build_alias \
13202 --build=$build_alias ||
exit # retaining $tempdir
13204 # We just finished tests for the build machine, so rename
13205 # the file auto-build.h in the gcc directory.
13206 mv auto-host.h ..
/auto-build.h
13209 build_auto
=auto-build.h
13215 tm_file
="${tm_file} defaults.h"
13216 tm_p_file
="${tm_p_file} tm-preds.h"
13217 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13218 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13219 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13220 # put this back in temporarily.
13221 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13227 # Compile in configure arguments.
13228 if test -f configargs.h
; then
13229 # Being re-configured.
13230 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13231 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13232 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13233 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13236 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13239 # Double all backslashes and backslash all quotes to turn
13240 # gcc_config_arguments into a C string.
13241 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13242 $gcc_config_arguments
13244 gcc_config_arguments_str
=`cat conftest.out`
13247 cat > configargs.h
<<EOF
13248 /* Generated automatically. */
13249 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13250 static const char thread_model[] = "$thread_file";
13252 static const struct {
13253 const char *name, *value;
13254 } configure_default_options[] = $configure_default_options;
13257 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13258 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13259 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13260 if test -f $srcdir/REVISION
; then
13261 gcc_REVISION
=`cat $srcdir/REVISION`
13265 cat > plugin-version.h
<<EOF
13266 #include "configargs.h"
13268 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13269 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13270 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13271 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13273 static char basever[] = "$gcc_BASEVER";
13274 static char datestamp[] = "$gcc_DATESTAMP";
13275 static char devphase[] = "$gcc_DEVPHASE";
13276 static char revision[] = "$gcc_REVISION";
13278 /* FIXME plugins: We should make the version information more precise.
13279 One way to do is to add a checksum. */
13281 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13282 devphase, revision,
13283 configuration_arguments};
13286 # Determine what GCC version number to use in filesystem paths.
13288 get_gcc_base_ver
="cat"
13290 # Check whether --with-gcc-major-version-only was given.
13291 if test "${with_gcc_major_version_only+set}" = set; then :
13292 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13293 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13301 # Internationalization
13302 # If we haven't got the data from the intl directory,
13303 # assume NLS is disabled.
13312 if test -f ..
/intl
/config.intl
; then
13313 . ..
/intl
/config.intl
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13316 $as_echo_n "checking whether NLS is requested... " >&6; }
13317 if test x
"$USE_NLS" != xyes
; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13322 $as_echo "yes" >&6; }
13324 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13328 $as_echo_n "checking for catalogs to be installed... " >&6; }
13329 # Look for .po and .gmo files in the source directory.
13332 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13333 # If there aren't any .gmo files the shell will give us the
13334 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13336 case "$cat" in *\
**)
13339 # The quadruple backslash is collapsed to a double backslash
13340 # by the backticks, then collapsed again by the double quotes,
13341 # leaving us with one backslash in the sed expression (right
13342 # before the dot that mustn't act as a wildcard).
13343 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13344 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13345 # The user is allowed to set LINGUAS to a list of languages to
13346 # install catalogs for. If it's empty that means "all of them."
13347 if test "x$LINGUAS" = x
; then
13348 CATALOGS
="$CATALOGS $cat"
13349 XLINGUAS
="$XLINGUAS $lang"
13351 case "$LINGUAS" in *$lang*)
13352 CATALOGS
="$CATALOGS $cat"
13353 XLINGUAS
="$XLINGUAS $lang"
13358 LINGUAS
="$XLINGUAS"
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13360 $as_echo "$LINGUAS" >&6; }
13373 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13374 # -liconv on the link line twice.
13375 case "$LIBINTL" in *$LIBICONV*)
13379 # Check whether --enable-secureplt was given.
13380 if test "${enable_secureplt+set}" = set; then :
13381 enableval
=$enable_secureplt;
13385 # Check whether --enable-mingw-wildcard was given.
13386 if test "${enable_mingw_wildcard+set}" = set; then :
13387 enableval
=$enable_mingw_wildcard;
13389 enable_mingw_wildcard
=platform
13392 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13394 cat >>confdefs.h
<<_ACEOF
13395 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13400 # Check whether --enable-large-address-aware was given.
13401 if test "${enable_large_address_aware+set}" = set; then :
13402 enableval
=$enable_large_address_aware;
13405 if test x
"$enable_large_address_aware" = xyes
; then :
13407 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13411 # Check whether --enable-leading-mingw64-underscores was given.
13412 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13413 enableval
=$enable_leading_mingw64_underscores;
13416 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13418 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13422 # Check whether --enable-cld was given.
13423 if test "${enable_cld+set}" = set; then :
13424 enableval
=$enable_cld;
13430 # Check whether --enable-frame-pointer was given.
13431 if test "${enable_frame_pointer+set}" = set; then :
13432 enableval
=$enable_frame_pointer;
13436 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13437 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13438 enable_frame_pointer
=no
13441 enable_frame_pointer
=yes
13449 i
[34567]86-*-* | x86_64-
*-*)
13450 if test "x$enable_cld" = xyes
; then
13451 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13453 if test "x$enable_frame_pointer" = xyes
; then
13454 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13459 # Windows32 Registry support for specifying GCC installation paths.
13460 # Check whether --enable-win32-registry was given.
13461 if test "${enable_win32_registry+set}" = set; then :
13462 enableval
=$enable_win32_registry;
13467 win32 | pe | cygwin
* | mingw32
*)
13468 if test "x$enable_win32_registry" != xno
; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13470 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13471 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13472 $as_echo_n "(cached) " >&6
13474 ac_func_search_save_LIBS
=$LIBS
13475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13478 /* Override any GCC internal prototype to avoid an error.
13479 Use char because int might match the return type of a GCC
13480 builtin and then its argument prototype would still apply. */
13484 char RegOpenKeyExA ();
13488 return RegOpenKeyExA ();
13493 for ac_lib
in '' advapi32
; do
13494 if test -z "$ac_lib"; then
13495 ac_res
="none required"
13498 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13500 if ac_fn_cxx_try_link
"$LINENO"; then :
13501 ac_cv_search_RegOpenKeyExA
=$ac_res
13503 rm -f core conftest.err conftest.
$ac_objext \
13505 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13509 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13512 ac_cv_search_RegOpenKeyExA
=no
13514 rm conftest.
$ac_ext
13515 LIBS
=$ac_func_search_save_LIBS
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13518 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13519 ac_res
=$ac_cv_search_RegOpenKeyExA
13520 if test "$ac_res" != no
; then :
13521 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13524 enable_win32_registry
=no
13529 if test "x$enable_win32_registry" != xno
; then
13531 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13534 if test "x$enable_win32_registry" != xyes \
13535 && test "x$enable_win32_registry" != x
; then
13537 cat >>confdefs.h
<<_ACEOF
13538 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13546 # Get an absolute path to the GCC top-level source directory
13547 holddir
=`${PWDCMD-pwd}`
13549 topdir
=`${PWDCMD-pwd}`
13552 # Conditionalize the makefile for this host machine.
13554 for f
in ${host_xmake_file}
13556 if test -f ${srcdir}/config
/$f
13558 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13562 # Conditionalize the makefile for this target machine.
13564 for f
in ${tmake_file}
13566 if test -f ${srcdir}/config
/$f
13568 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13571 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13573 out_object_file
=`basename $out_file .cc`.o
13574 common_out_object_file
=`basename $common_out_file .cc`.o
13576 tm_file_list
="options.h"
13577 tm_include_list
="options.h insn-constants.h"
13578 for f
in $tm_file; do
13581 f
=`echo $f | sed 's/^..//'`
13582 tm_file_list
="${tm_file_list} $f"
13583 tm_include_list
="${tm_include_list} $f"
13586 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13587 tm_include_list
="${tm_include_list} $f"
13590 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13591 tm_include_list
="${tm_include_list} config/$f"
13598 for f
in $tm_p_file; do
13601 tm_p_file_list
="${tm_p_file_list} $f"
13602 tm_p_include_list
="${tm_p_include_list} $f"
13605 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13606 tm_p_include_list
="${tm_p_include_list} config/$f"
13612 for f
in $tm_d_file; do
13615 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13616 tm_d_include_list
="${tm_d_include_list} config/$f"
13622 tm_rust_include_list
=
13623 for f
in $tm_rust_file; do
13626 tm_rust_file_list
="${tm_rust_file_list} \$(srcdir)/config/$f"
13627 tm_rust_include_list
="${tm_rust_include_list} config/$f"
13634 for f
in $xm_file; do
13637 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13638 xm_include_list
="${xm_include_list} $f"
13641 xm_file_list
="${xm_file_list} $f"
13642 xm_include_list
="${xm_include_list} $f"
13645 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13646 xm_include_list
="${xm_include_list} config/$f"
13652 host_xm_include_list
=
13653 for f
in $host_xm_file; do
13656 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13657 host_xm_include_list
="${host_xm_include_list} $f"
13660 host_xm_file_list
="${host_xm_file_list} $f"
13661 host_xm_include_list
="${host_xm_include_list} $f"
13664 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13665 host_xm_include_list
="${host_xm_include_list} config/$f"
13670 build_xm_file_list
=
13671 for f
in $build_xm_file; do
13674 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13675 build_xm_include_list
="${build_xm_include_list} $f"
13677 auto-build.h | auto-host.h
)
13678 build_xm_file_list
="${build_xm_file_list} $f"
13679 build_xm_include_list
="${build_xm_include_list} $f"
13682 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13683 build_xm_include_list
="${build_xm_include_list} config/$f"
13688 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13689 # cross-compiler which does not use the native headers and libraries.
13690 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13693 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13694 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13696 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13697 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13698 if test "x$with_build_sysroot" != x
; then
13699 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13701 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13704 if test x
$host != x
$target
13706 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13708 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13709 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13710 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13713 if test "x$with_build_sysroot" != "x"; then
13714 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13715 elif test "x$with_sysroot" = x
; then
13716 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13717 elif test "x$with_sysroot" = xyes
; then
13718 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13720 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13723 target_header_dir
=${native_system_header_dir}
13726 # If this is a cross-compiler that does not
13727 # have its own set of headers then define
13730 # If this is using newlib, without having the headers available now,
13731 # then define inhibit_libc in LIBGCC2_CFLAGS.
13732 # This prevents libgcc2 from containing any code which requires libc
13734 : ${inhibit_libc=false}
13735 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13736 test x
$with_newlib = xyes
; } &&
13737 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13742 # When building gcc with a cross-compiler, we need to adjust things so
13743 # that the generator programs are still built with the native compiler.
13744 # Also, we cannot run fixincludes.
13746 # These are the normal (build=host) settings:
13747 CC_FOR_BUILD
='$(CC)'
13748 CXX_FOR_BUILD
='$(CXX)'
13749 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13750 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13751 BUILD_LDFLAGS
='$(LDFLAGS)'
13752 STMP_FIXINC
=stmp-fixinc
13754 # And these apply if build != host, or we are generating coverage data
13755 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13757 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13758 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13759 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13763 if test x
$enable_fixincludes = xno
;
13768 # Expand extra_headers to include complete path.
13769 # This substitutes for lots of t-* files.
13770 extra_headers_list
=
13771 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13772 for file in ${extra_headers} ; do
13773 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13776 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13777 if test x
"$use_gcc_tgmath" = xyes
13778 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13781 # Define collect2 in Makefile.
13782 case $host_can_use_collect2 in
13784 *) collect2
='collect2$(exeext)' ;;
13788 # Add a definition of USE_COLLECT2 if system wants one.
13789 case $use_collect2 in
13790 no
) use_collect2
= ;;
13793 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13794 xm_defines
="${xm_defines} USE_COLLECT2"
13795 case $host_can_use_collect2 in
13797 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13804 cat >>confdefs.h
<<_ACEOF
13805 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13809 # ---------------------------
13810 # Assembler & linker features
13811 # ---------------------------
13813 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13814 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13815 # However when ld-new is first executed from the build tree, libtool will
13816 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13817 # to the build tree. While doing this we need to use the previous-stage
13818 # linker, or we have an infinite loop. The presence of a shell script as
13819 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13820 # the gcc/collect-ld script. So we need to know how libtool works, or
13821 # exec-tool will fail.
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13827 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13832 macro_version
='2.2.7a'
13833 macro_revision
='1.3134'
13847 ltmain
="$ac_aux_dir/ltmain.sh"
13849 # Backslashify metacharacters that are still active within
13850 # double-quoted strings.
13851 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13853 # Same as above, but do not quote variable references.
13854 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13856 # Sed substitution to delay expansion of an escaped shell variable in a
13857 # double_quote_subst'ed string.
13858 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13860 # Sed substitution to delay expansion of an escaped single quote.
13861 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13863 # Sed substitution to avoid accidental globbing in evaled expressions
13864 no_glob_subst
='s/\*/\\\*/g'
13866 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13867 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13868 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13871 $as_echo_n "checking how to print strings... " >&6; }
13872 # Test print first, because it will be a builtin if present.
13873 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13874 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13876 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13879 # Use this function as a fallback that always works.
13880 func_fallback_echo ()
13882 eval 'cat <<_LTECHO_EOF
13886 ECHO='func_fallback_echo
'
13889 # func_echo_all arg...
13890 # Invoke $ECHO with all args, space-separated.
13897 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13898 $as_echo "printf" >&6; } ;;
13899 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13900 $as_echo "print -r" >&6; } ;;
13901 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13902 $as_echo "cat" >&6; } ;;
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13919 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13920 if ${ac_cv_path_SED+:} false; then :
13921 $as_echo_n "(cached) " >&6
13923 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13924 for ac_i in 1 2 3 4 5 6 7; do
13925 ac_script="$ac_script$as_nl$ac_script"
13927 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13928 { ac_script=; unset ac_script;}
13929 if test -z "$SED"; then
13930 ac_path_SED_found=false
13931 # Loop through the user's path and
test for each of PROGNAME-LIST
13932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13933 for as_dir
in $PATH
13936 test -z "$as_dir" && as_dir
=.
13937 for ac_prog
in sed gsed
; do
13938 for ac_exec_ext
in '' $ac_executable_extensions; do
13939 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13940 as_fn_executable_p
"$ac_path_SED" ||
continue
13941 # Check for GNU ac_path_SED and select it if it is found.
13942 # Check for GNU $ac_path_SED
13943 case `"$ac_path_SED" --version 2>&1` in
13945 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13948 $as_echo_n 0123456789 >"conftest.in"
13951 cat "conftest.in" "conftest.in" >"conftest.tmp"
13952 mv "conftest.tmp" "conftest.in"
13953 cp "conftest.in" "conftest.nl"
13954 $as_echo '' >> "conftest.nl"
13955 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13956 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13957 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13958 if test $ac_count -gt ${ac_path_SED_max-0}; then
13959 # Best one so far, save it but keep looking for a better one
13960 ac_cv_path_SED
="$ac_path_SED"
13961 ac_path_SED_max
=$ac_count
13963 # 10*(2^10) chars as input seems more than enough
13964 test $ac_count -gt 10 && break
13966 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13969 $ac_path_SED_found && break 3
13974 if test -z "$ac_cv_path_SED"; then
13975 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13978 ac_cv_path_SED
=$SED
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13983 $as_echo "$ac_cv_path_SED" >&6; }
13984 SED
="$ac_cv_path_SED"
13987 test -z "$SED" && SED
=sed
13988 Xsed
="$SED -e 1s/^X//"
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
14001 $as_echo_n "checking for fgrep... " >&6; }
14002 if ${ac_cv_path_FGREP+:} false
; then :
14003 $as_echo_n "(cached) " >&6
14005 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
14006 then ac_cv_path_FGREP
="$GREP -F"
14008 if test -z "$FGREP"; then
14009 ac_path_FGREP_found
=false
14010 # Loop through the user's path and test for each of PROGNAME-LIST
14011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14012 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
14015 test -z "$as_dir" && as_dir
=.
14016 for ac_prog
in fgrep
; do
14017 for ac_exec_ext
in '' $ac_executable_extensions; do
14018 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
14019 as_fn_executable_p
"$ac_path_FGREP" ||
continue
14020 # Check for GNU ac_path_FGREP and select it if it is found.
14021 # Check for GNU $ac_path_FGREP
14022 case `"$ac_path_FGREP" --version 2>&1` in
14024 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
14027 $as_echo_n 0123456789 >"conftest.in"
14030 cat "conftest.in" "conftest.in" >"conftest.tmp"
14031 mv "conftest.tmp" "conftest.in"
14032 cp "conftest.in" "conftest.nl"
14033 $as_echo 'FGREP' >> "conftest.nl"
14034 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
14035 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
14036 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
14037 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14038 # Best one so far, save it but keep looking for a better one
14039 ac_cv_path_FGREP
="$ac_path_FGREP"
14040 ac_path_FGREP_max
=$ac_count
14042 # 10*(2^10) chars as input seems more than enough
14043 test $ac_count -gt 10 && break
14045 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
14048 $ac_path_FGREP_found && break 3
14053 if test -z "$ac_cv_path_FGREP"; then
14054 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14057 ac_cv_path_FGREP
=$FGREP
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14063 $as_echo "$ac_cv_path_FGREP" >&6; }
14064 FGREP
="$ac_cv_path_FGREP"
14067 test -z "$GREP" && GREP
=grep
14087 # Check whether --with-gnu-ld was given.
14088 if test "${with_gnu_ld+set}" = set; then :
14089 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14095 if test "$GCC" = yes; then
14096 # Check if gcc -print-prog-name=ld gives a path.
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14098 $as_echo_n "checking for ld used by $CC... " >&6; }
14101 # gcc leaves a trailing carriage return which upsets mingw
14102 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14104 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14107 # Accept absolute paths.
14109 re_direlt
='/[^/][^/]*/\.\./'
14110 # Canonicalize the pathname of ld
14111 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14112 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14113 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14115 test -z "$LD" && LD
="$ac_prog"
14118 # If it fails, then pretend we aren't using GCC.
14122 # If it is relative, then search for the first ld in PATH.
14123 with_gnu_ld
=unknown
14126 elif test "$with_gnu_ld" = yes; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14128 $as_echo_n "checking for GNU ld... " >&6; }
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14131 $as_echo_n "checking for non-GNU ld... " >&6; }
14133 if ${lt_cv_path_LD+:} false
; then :
14134 $as_echo_n "(cached) " >&6
14136 if test -z "$LD"; then
14137 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14138 for ac_dir
in $PATH; do
14140 test -z "$ac_dir" && ac_dir
=.
14141 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14142 lt_cv_path_LD
="$ac_dir/$ac_prog"
14143 # Check to see if the program is GNU ld. I'd rather use --version,
14144 # but apparently some variants of GNU ld only accept -v.
14145 # Break only if it was the GNU/non-GNU ld that we prefer.
14146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14147 *GNU
* |
*'with BFD'*)
14148 test "$with_gnu_ld" != no
&& break
14151 test "$with_gnu_ld" != yes && break
14158 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14162 LD
="$lt_cv_path_LD"
14163 if test -n "$LD"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14165 $as_echo "$LD" >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168 $as_echo "no" >&6; }
14170 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14173 if ${lt_cv_prog_gnu_ld+:} false
; then :
14174 $as_echo_n "(cached) " >&6
14176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14177 case `$LD -v 2>&1 </dev/null` in
14178 *GNU
* |
*'with BFD'*)
14179 lt_cv_prog_gnu_ld
=yes
14182 lt_cv_prog_gnu_ld
=no
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14188 with_gnu_ld
=$lt_cv_prog_gnu_ld
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14199 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14200 if ${lt_cv_path_NM+:} false
; then :
14201 $as_echo_n "(cached) " >&6
14203 if test -n "$NM"; then
14204 # Let the user override the nm to test.
14205 lt_nm_to_check
="$NM"
14207 lt_nm_to_check
="${ac_tool_prefix}nm"
14208 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14209 lt_nm_to_check
="$lt_nm_to_check nm"
14212 for lt_tmp_nm
in "$lt_nm_to_check"; do
14213 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14214 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14216 test -z "$ac_dir" && ac_dir
=.
14217 # Strip out any user-provided options from the nm to test twice,
14218 # the first time to test to see if nm (rather than its options) has
14219 # an explicit path, the second time to yield a file which can be
14221 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
14222 case "$tmp_nm_path" in
14223 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
14224 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
14226 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
14227 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
14228 # Check to see if the nm accepts a BSD-compat flag.
14229 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14230 # nm: unknown option "B" ignored
14231 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14232 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
14236 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14238 lt_cv_path_NM
="$tmp_nm -p"
14242 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14243 continue # so that we can try to find one that supports BSD flags
14252 : ${lt_cv_path_NM=no}
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14255 $as_echo "$lt_cv_path_NM" >&6; }
14256 if test "$lt_cv_path_NM" != "no"; then
14257 NM
="$lt_cv_path_NM"
14259 # Didn't find any BSD compatible name lister, look for dumpbin.
14260 if test -n "$DUMPBIN"; then :
14261 # Let the user override the test.
14263 if test -n "$ac_tool_prefix"; then
14264 for ac_prog
in dumpbin
"link -dump"
14266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14267 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 $as_echo_n "checking for $ac_word... " >&6; }
14270 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14271 $as_echo_n "(cached) " >&6
14273 if test -n "$DUMPBIN"; then
14274 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14277 for as_dir
in $PATH
14280 test -z "$as_dir" && as_dir
=.
14281 for ac_exec_ext
in '' $ac_executable_extensions; do
14282 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14283 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 DUMPBIN
=$ac_cv_prog_DUMPBIN
14294 if test -n "$DUMPBIN"; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14296 $as_echo "$DUMPBIN" >&6; }
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 $as_echo "no" >&6; }
14303 test -n "$DUMPBIN" && break
14306 if test -z "$DUMPBIN"; then
14307 ac_ct_DUMPBIN
=$DUMPBIN
14308 for ac_prog
in dumpbin
"link -dump"
14310 # Extract the first word of "$ac_prog", so it can be a program name with args.
14311 set dummy
$ac_prog; ac_word
=$2
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14313 $as_echo_n "checking for $ac_word... " >&6; }
14314 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14315 $as_echo_n "(cached) " >&6
14317 if test -n "$ac_ct_DUMPBIN"; then
14318 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14321 for as_dir
in $PATH
14324 test -z "$as_dir" && as_dir
=.
14325 for ac_exec_ext
in '' $ac_executable_extensions; do
14326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14327 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14337 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14338 if test -n "$ac_ct_DUMPBIN"; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14340 $as_echo "$ac_ct_DUMPBIN" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14347 test -n "$ac_ct_DUMPBIN" && break
14350 if test "x$ac_ct_DUMPBIN" = x
; then
14353 case $cross_compiling:$ac_tool_warned in
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14357 ac_tool_warned
=yes ;;
14359 DUMPBIN
=$ac_ct_DUMPBIN
14363 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14365 DUMPBIN
="$DUMPBIN -symbols"
14373 if test "$DUMPBIN" != ":"; then
14377 test -z "$NM" && NM
=nm
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14385 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14386 if ${lt_cv_nm_interface+:} false
; then :
14387 $as_echo_n "(cached) " >&6
14389 lt_cv_nm_interface
="BSD nm"
14390 echo "int some_variable = 0;" > conftest.
$ac_ext
14391 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14392 (eval "$ac_compile" 2>conftest.err
)
14393 cat conftest.err
>&5
14394 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14395 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14396 cat conftest.err
>&5
14397 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14398 cat conftest.out
>&5
14399 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14400 lt_cv_nm_interface
="MS dumpbin"
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14405 $as_echo "$lt_cv_nm_interface" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14408 $as_echo_n "checking whether ln -s works... " >&6; }
14410 if test "$LN_S" = "ln -s"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14412 $as_echo "yes" >&6; }
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14415 $as_echo "no, using $LN_S" >&6; }
14418 # find the maximum length of command line arguments
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14420 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14421 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14422 $as_echo_n "(cached) " >&6
14429 # On DJGPP, this test can blow up pretty badly due to problems in libc
14430 # (any single argument exceeding 2000 bytes causes a buffer overrun
14431 # during glob expansion). Even if it were fixed, the result of this
14432 # check would be larger than it should be.
14433 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14437 # Under GNU Hurd, this test is not required because there is
14438 # no limit to the length of command line arguments.
14439 # Libtool will interpret -1 as no limit whatsoever
14440 lt_cv_sys_max_cmd_len
=-1;
14443 cygwin
* | mingw
* | cegcc
*)
14444 # On Win9x/ME, this test blows up -- it succeeds, but takes
14445 # about 5 minutes as the teststring grows exponentially.
14446 # Worse, since 9x/ME are not pre-emptively multitasking,
14447 # you end up with a "frozen" computer, even though with patience
14448 # the test eventually succeeds (with a max line length of 256k).
14449 # Instead, let's just punt: use the minimum linelength reported by
14450 # all of the supported platforms: 8192 (on NT/2K/XP).
14451 lt_cv_sys_max_cmd_len
=8192;
14455 # On MiNT this can take a long time and run out of memory.
14456 lt_cv_sys_max_cmd_len
=8192;
14460 # On AmigaOS with pdksh, this test takes hours, literally.
14461 # So we just punt and use a minimum line length of 8192.
14462 lt_cv_sys_max_cmd_len
=8192;
14465 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14466 # This has been around since 386BSD, at least. Likely further.
14467 if test -x /sbin
/sysctl
; then
14468 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14469 elif test -x /usr
/sbin
/sysctl
; then
14470 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14472 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14474 # And add a safety zone
14475 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14476 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14481 lt_cv_sys_max_cmd_len
=196608
14485 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14486 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14487 # nice to cause kernel panics so lets avoid the loop below.
14488 # First set a reasonable default.
14489 lt_cv_sys_max_cmd_len
=16384
14491 if test -x /sbin
/sysconfig
; then
14492 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14493 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14498 lt_cv_sys_max_cmd_len
=102400
14500 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14501 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14502 if test -n "$kargmax"; then
14503 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14505 lt_cv_sys_max_cmd_len
=32768
14509 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14510 if test -n "$lt_cv_sys_max_cmd_len"; then
14511 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14512 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14514 # Make teststring a little bigger before we do anything with it.
14515 # a 1K string should be a reasonable start.
14516 for i
in 1 2 3 4 5 6 7 8 ; do
14517 teststring
=$teststring$teststring
14519 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14520 # If test is not a shell built-in, we'll probably end up computing a
14521 # maximum length that is only half of the actual maximum length, but
14523 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14524 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14525 test $i != 17 # 1/2 MB should be enough
14528 teststring
=$teststring$teststring
14530 # Only check the string length outside the loop.
14531 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14533 # Add a significant safety factor because C++ compilers can tack on
14534 # massive amounts of additional arguments before passing them to the
14535 # linker. It appears as though 1/2 is a usable value.
14536 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14543 if test -n $lt_cv_sys_max_cmd_len ; then
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14545 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14548 $as_echo "none" >&6; }
14550 max_cmd_len
=$lt_cv_sys_max_cmd_len
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14562 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14563 # Try some XSI features
14565 ( _lt_dummy
="a/b/c"
14566 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14568 && eval 'test $(( 1 + 1 )) -eq 2 \
14569 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14572 $as_echo "$xsi_shell" >&6; }
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14576 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14578 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14580 && lt_shell_append=yes
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14582 $as_echo "$lt_shell_append" >&6; }
14585 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14595 # test EBCDIC or ASCII
14596 case `echo X|tr X '\101'` in
14597 A) # ASCII based system
14598 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14599 lt_SP2NL='tr \040 \012'
14600 lt_NL2SP='tr \015\012 \040\040'
14602 *) # EBCDIC based system
14603 lt_SP2NL='tr \100 \n'
14604 lt_NL2SP='tr \r\n \100\100'
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14617 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14618 if ${lt_cv_ld_reload_flag+:} false; then :
14619 $as_echo_n "(cached
) " >&6
14621 lt_cv_ld_reload_flag='-r'
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14624 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14625 reload_flag=$lt_cv_ld_reload_flag
14626 case $reload_flag in
14628 *) reload_flag=" $reload_flag" ;;
14630 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14633 if test "$GCC" = yes; then
14634 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14636 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14649 if test -n "$ac_tool_prefix"; then
14650 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14651 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14653 $as_echo_n "checking
for $ac_word...
" >&6; }
14654 if ${ac_cv_prog_OBJDUMP+:} false; then :
14655 $as_echo_n "(cached
) " >&6
14657 if test -n "$OBJDUMP"; then
14658 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14661 for as_dir in $PATH
14664 test -z "$as_dir" && as_dir=.
14665 for ac_exec_ext in '' $ac_executable_extensions; do
14666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14667 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14668 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14677 OBJDUMP=$ac_cv_prog_OBJDUMP
14678 if test -n "$OBJDUMP"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14680 $as_echo "$OBJDUMP" >&6; }
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14683 $as_echo "no
" >&6; }
14688 if test -z "$ac_cv_prog_OBJDUMP"; then
14689 ac_ct_OBJDUMP=$OBJDUMP
14690 # Extract the first word of "objdump
", so it can be a program name with args.
14691 set dummy objdump; ac_word=$2
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14693 $as_echo_n "checking
for $ac_word...
" >&6; }
14694 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14695 $as_echo_n "(cached
) " >&6
14697 if test -n "$ac_ct_OBJDUMP"; then
14698 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14701 for as_dir in $PATH
14704 test -z "$as_dir" && as_dir=.
14705 for ac_exec_ext in '' $ac_executable_extensions; do
14706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14707 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14717 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14718 if test -n "$ac_ct_OBJDUMP"; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14720 $as_echo "$ac_ct_OBJDUMP" >&6; }
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14723 $as_echo "no
" >&6; }
14726 if test "x
$ac_ct_OBJDUMP" = x; then
14729 case $cross_compiling:$ac_tool_warned in
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14732 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14733 ac_tool_warned=yes ;;
14735 OBJDUMP=$ac_ct_OBJDUMP
14738 OBJDUMP="$ac_cv_prog_OBJDUMP"
14741 test -z "$OBJDUMP" && OBJDUMP=objdump
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14752 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14753 if ${lt_cv_deplibs_check_method+:} false; then :
14754 $as_echo_n "(cached
) " >&6
14756 lt_cv_file_magic_cmd='$MAGIC_CMD'
14757 lt_cv_file_magic_test_file=
14758 lt_cv_deplibs_check_method='unknown'
14759 # Need to set the preceding variable on all platforms that support
14760 # interlibrary dependencies.
14761 # 'none' -- dependencies not supported.
14762 # `unknown' -- same as none, but documents that we really don't know.
14763 # 'pass_all' -- all dependencies passed with no checks.
14764 # 'test_compile' -- check by making test program.
14765 # 'file_magic [[regex]]' -- check by looking for files in library path
14766 # which responds to the $file_magic_cmd with a given extended regex.
14767 # If you have `file' or equivalent on your system and you're not sure
14768 # whether `pass_all' will *always* work, you probably want this one.
14772 lt_cv_deplibs_check_method=pass_all
14776 lt_cv_deplibs_check_method=pass_all
14780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14781 lt_cv_file_magic_cmd='/usr/bin/file -L'
14782 lt_cv_file_magic_test_file=/shlib/libc.so
14786 # func_win32_libid is a shell function defined in ltmain.sh
14787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14788 lt_cv_file_magic_cmd='func_win32_libid'
14792 # Base MSYS/MinGW do not provide the 'file' command needed by
14793 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14794 # unless we find 'file', for example because we are cross-compiling.
14795 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14796 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14797 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14798 lt_cv_file_magic_cmd='func_win32_libid'
14800 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14801 lt_cv_file_magic_cmd='$OBJDUMP -f'
14806 # use the weaker test based on 'objdump'. See mingw*.
14807 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14808 lt_cv_file_magic_cmd='$OBJDUMP -f'
14811 darwin* | rhapsody*)
14812 lt_cv_deplibs_check_method=pass_all
14815 freebsd* | dragonfly*)
14816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14819 # Not sure whether the presence of OpenBSD here was a mistake.
14820 # Let's accept both of them until this is cleared up.
14821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14822 lt_cv_file_magic_cmd=/usr/bin/file
14823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14827 lt_cv_deplibs_check_method=pass_all
14832 lt_cv_deplibs_check_method=pass_all
14836 lt_cv_deplibs_check_method=pass_all
14839 hpux10.20* | hpux11*)
14840 lt_cv_file_magic_cmd=/usr/bin/file
14843 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14844 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14847 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]'
14848 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14852 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14858 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14862 irix5* | irix6* | nonstopux*)
14864 *-32|*"-32 ") libmagic=32-bit;;
14865 *-n32|*"-n32 ") libmagic=N32;;
14866 *-64|*"-64 ") libmagic=64-bit;;
14867 *) libmagic=never-match;;
14869 lt_cv_deplibs_check_method=pass_all
14872 # This must be Linux ELF.
14873 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14874 lt_cv_deplibs_check_method=pass_all
14878 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14887 lt_cv_file_magic_cmd=/usr/bin/file
14888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14892 lt_cv_deplibs_check_method=pass_all
14896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14903 osf3* | osf4* | osf5*)
14904 lt_cv_deplibs_check_method=pass_all
14908 lt_cv_deplibs_check_method=pass_all
14912 lt_cv_deplibs_check_method=pass_all
14915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14916 lt_cv_deplibs_check_method=pass_all
14920 case $host_vendor in
14922 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]'
14923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14926 lt_cv_deplibs_check_method=pass_all
14929 lt_cv_file_magic_cmd='/bin/file'
14930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14933 lt_cv_file_magic_cmd='/bin/file'
14934 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14935 lt_cv_file_magic_test_file=/lib/libc.so
14938 lt_cv_deplibs_check_method=pass_all
14941 lt_cv_deplibs_check_method=pass_all
14947 lt_cv_deplibs_check_method=pass_all
14950 # Assume VxWorks cross toolchains are built on Linux, possibly
14951 # as canadian for Windows hosts.
14952 lt_cv_deplibs_check_method=pass_all
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14958 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14959 file_magic_cmd=$lt_cv_file_magic_cmd
14960 deplibs_check_method=$lt_cv_deplibs_check_method
14961 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14975 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
14976 for plugin in $plugin_names; do
14977 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14978 if test x$plugin_so = x$plugin; then
14979 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14981 if test x$plugin_so != x$plugin; then
14982 plugin_option="--plugin $plugin_so"
14987 if test -n "$ac_tool_prefix"; then
14988 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14989 set dummy ${ac_tool_prefix}ar; ac_word=$2
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14991 $as_echo_n "checking
for $ac_word...
" >&6; }
14992 if ${ac_cv_prog_AR+:} false; then :
14993 $as_echo_n "(cached
) " >&6
14995 if test -n "$AR"; then
14996 ac_cv_prog_AR="$AR" # Let the user override the test.
14998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14999 for as_dir in $PATH
15002 test -z "$as_dir" && as_dir=.
15003 for ac_exec_ext in '' $ac_executable_extensions; do
15004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15005 ac_cv_prog_AR="${ac_tool_prefix}ar"
15006 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15016 if test -n "$AR"; then
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
15018 $as_echo "$AR" >&6; }
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15021 $as_echo "no
" >&6; }
15026 if test -z "$ac_cv_prog_AR"; then
15028 # Extract the first word of "ar", so it can be a program name with args.
15029 set dummy ar; ac_word=$2
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15031 $as_echo_n "checking
for $ac_word...
" >&6; }
15032 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15033 $as_echo_n "(cached
) " >&6
15035 if test -n "$ac_ct_AR"; then
15036 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15039 for as_dir in $PATH
15042 test -z "$as_dir" && as_dir=.
15043 for ac_exec_ext in '' $ac_executable_extensions; do
15044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15045 ac_cv_prog_ac_ct_AR="ar"
15046 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15055 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15056 if test -n "$ac_ct_AR"; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
15058 $as_echo "$ac_ct_AR" >&6; }
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15061 $as_echo "no
" >&6; }
15064 if test "x
$ac_ct_AR" = x; then
15067 case $cross_compiling:$ac_tool_warned in
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15070 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15071 ac_tool_warned=yes ;;
15076 AR="$ac_cv_prog_AR"
15079 test -z "$AR" && AR=ar
15080 if test -n "$plugin_option"; then
15081 if $AR --help 2>&1 | grep -q "\
--plugin"; then
15083 $AR $plugin_option rc conftest.a conftest.c
15084 if test "$?
" != 0; then
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
15086 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
15088 AR="$AR $plugin_option"
15093 test -z "$AR_FLAGS" && AR_FLAGS=cru
15105 if test -n "$ac_tool_prefix"; then
15106 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15107 set dummy ${ac_tool_prefix}strip; ac_word=$2
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15109 $as_echo_n "checking
for $ac_word...
" >&6; }
15110 if ${ac_cv_prog_STRIP+:} false; then :
15111 $as_echo_n "(cached
) " >&6
15113 if test -n "$STRIP"; then
15114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15120 test -z "$as_dir" && as_dir=.
15121 for ac_exec_ext in '' $ac_executable_extensions; do
15122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15123 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15124 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15133 STRIP=$ac_cv_prog_STRIP
15134 if test -n "$STRIP"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
15136 $as_echo "$STRIP" >&6; }
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15139 $as_echo "no
" >&6; }
15144 if test -z "$ac_cv_prog_STRIP"; then
15146 # Extract the first word of "strip
", so it can be a program name with args.
15147 set dummy strip; ac_word=$2
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15149 $as_echo_n "checking
for $ac_word...
" >&6; }
15150 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15151 $as_echo_n "(cached
) " >&6
15153 if test -n "$ac_ct_STRIP"; then
15154 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157 for as_dir in $PATH
15160 test -z "$as_dir" && as_dir=.
15161 for ac_exec_ext in '' $ac_executable_extensions; do
15162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15163 ac_cv_prog_ac_ct_STRIP="strip
"
15164 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15173 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15174 if test -n "$ac_ct_STRIP"; then
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
15176 $as_echo "$ac_ct_STRIP" >&6; }
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15179 $as_echo "no
" >&6; }
15182 if test "x
$ac_ct_STRIP" = x; then
15185 case $cross_compiling:$ac_tool_warned in
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15188 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15189 ac_tool_warned=yes ;;
15194 STRIP="$ac_cv_prog_STRIP"
15197 test -z "$STRIP" && STRIP=:
15204 if test -n "$ac_tool_prefix"; then
15205 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15208 $as_echo_n "checking
for $ac_word...
" >&6; }
15209 if ${ac_cv_prog_RANLIB+:} false; then :
15210 $as_echo_n "(cached
) " >&6
15212 if test -n "$RANLIB"; then
15213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15216 for as_dir in $PATH
15219 test -z "$as_dir" && as_dir=.
15220 for ac_exec_ext in '' $ac_executable_extensions; do
15221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15223 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15232 RANLIB=$ac_cv_prog_RANLIB
15233 if test -n "$RANLIB"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
15235 $as_echo "$RANLIB" >&6; }
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15238 $as_echo "no
" >&6; }
15243 if test -z "$ac_cv_prog_RANLIB"; then
15244 ac_ct_RANLIB=$RANLIB
15245 # Extract the first word of "ranlib
", so it can be a program name with args.
15246 set dummy ranlib; ac_word=$2
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15248 $as_echo_n "checking
for $ac_word...
" >&6; }
15249 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15250 $as_echo_n "(cached
) " >&6
15252 if test -n "$ac_ct_RANLIB"; then
15253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256 for as_dir in $PATH
15259 test -z "$as_dir" && as_dir=.
15260 for ac_exec_ext in '' $ac_executable_extensions; do
15261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15262 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15273 if test -n "$ac_ct_RANLIB"; then
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15275 $as_echo "$ac_ct_RANLIB" >&6; }
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15278 $as_echo "no
" >&6; }
15281 if test "x
$ac_ct_RANLIB" = x; then
15284 case $cross_compiling:$ac_tool_warned in
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15287 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15288 ac_tool_warned=yes ;;
15290 RANLIB=$ac_ct_RANLIB
15293 RANLIB="$ac_cv_prog_RANLIB"
15296 test -z "$RANLIB" && RANLIB=:
15297 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
15298 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
15299 RANLIB="$RANLIB $plugin_option"
15308 # Determine commands to create old-style static archives.
15309 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15310 old_postinstall_cmds='chmod 644 $oldlib'
15311 old_postuninstall_cmds=
15313 if test -n "$RANLIB"; then
15316 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15319 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15322 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15327 lock_old_archive_extraction=yes ;;
15329 lock_old_archive_extraction=no ;;
15370 # If no C compiler was specified, use CC.
15373 # If no C compiler flags were specified, use CFLAGS.
15374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15376 # Allow CC to be a program name with arguments.
15380 # Check for command to grab the raw symbol name followed by C symbol from nm.
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15382 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15383 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15384 $as_echo_n "(cached
) " >&6
15387 # These are sane defaults that work on at least a few old systems.
15388 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15390 # Character class describing NM global symbol codes.
15391 symcode='[BCDEGRST]'
15393 # Regexp to match symbols that can be accessed directly from C.
15394 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15396 # Define system-specific variables.
15401 cygwin* | mingw* | pw32* | cegcc*)
15402 symcode='[ABCDGISTW]'
15405 if test "$host_cpu" = ia64; then
15406 symcode='[ABCDEGRST]'
15409 irix* | nonstopux*)
15410 symcode='[BCDEGRST]'
15413 symcode='[BCDEGQRST]'
15424 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15432 # If we're using GNU nm, then use its standard symbol codes.
15433 case `$NM -V 2>&1` in
15434 *GNU* | *'with BFD'*)
15435 symcode='[ABCDGIRSTW]' ;;
15438 # Transform an extracted symbol line into a proper C declaration.
15439 # Some systems (esp. on ia64) link data and code symbols differently,
15440 # so use this general approach.
15441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15443 # Transform an extracted symbol line into symbol name and symbol address
15444 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15445 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'"
15447 # Handle CRLF in mingw tool chain
15451 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15455 # Try without a prefix underscore, then with it.
15456 for ac_symprfx in "" "_
"; do
15458 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15459 symxfrm="\\1 $ac_symprfx\\2 \\2"
15461 # Write the raw and C identifiers.
15462 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15463 # Fake it for dumpbin and say T for any non-static function
15464 # and D for any global variable.
15465 # Also find C++ and __fastcall symbols from MSVC++,
15466 # which start with @ or ?.
15467 lt_cv_sys_global_symbol_pipe="$AWK '"\
15468 " {last_section=section; section=\$ 3};"\
15469 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15470 " \$ 0!~/External *\|/{next};"\
15471 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15472 " {if(hide[section]) next};"\
15473 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15474 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15475 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15476 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15477 " ' prfx
=^
$ac_symprfx"
15479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15482 # Check to see that the pipe works correctly.
15486 cat > conftest.$ac_ext <<_LT_EOF
15491 void nm_test_func(void);
15492 void nm_test_func(void){}
15496 int main(){nm_test_var='a';nm_test_func();return(0);}
15499 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15500 (eval $ac_compile) 2>&5
15502 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15503 test $ac_status = 0; }; then
15504 # Now try to grab the symbols.
15506 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15507 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15509 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15510 test $ac_status = 0; } && test -s "$nlist"; then
15511 # Try sorting and uniquifying the output.
15512 if sort "$nlist" | uniq > "$nlist"T; then
15513 mv -f "$nlist"T "$nlist"
15518 # Make sure that we snagged all the symbols we need.
15519 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15520 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15521 cat <<_LT_EOF > conftest.$ac_ext
15527 # Now generate the symbol file.
15528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15530 cat <<_LT_EOF >> conftest.$ac_ext
15532 /* The mapping between symbol names and symbols. */
15537 lt__PROGRAM__LTX_preloaded_symbols[] =
15539 { "@PROGRAM@
", (void *) 0 },
15541 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15542 cat <<\_LT_EOF >> conftest.$ac_ext
15546 /* This works around a problem in FreeBSD linker */
15547 #ifdef FREEBSD_WORKAROUND
15548 static const void *lt_preloaded_setup() {
15549 return lt__PROGRAM__LTX_preloaded_symbols;
15557 # Now try linking the two files.
15558 mv conftest.$ac_objext conftstm.$ac_objext
15559 lt_save_LIBS="$LIBS"
15560 lt_save_CFLAGS="$CFLAGS"
15561 LIBS="conftstm.
$ac_objext"
15562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15563 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15564 (eval $ac_link) 2>&5
15566 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15567 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15570 LIBS="$lt_save_LIBS"
15571 CFLAGS="$lt_save_CFLAGS"
15573 echo "cannot
find nm_test_func
in $nlist" >&5
15576 echo "cannot
find nm_test_var
in $nlist" >&5
15579 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15582 echo "$progname: failed program was
:" >&5
15583 cat conftest.$ac_ext >&5
15585 rm -rf conftest* conftst*
15587 # Do not use the global_symbol_pipe unless it works.
15588 if test "$pipe_works" = yes; then
15591 lt_cv_sys_global_symbol_pipe=
15597 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15598 lt_cv_sys_global_symbol_to_cdecl=
15600 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15602 $as_echo "failed
" >&6; }
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15605 $as_echo "ok
" >&6; }
15629 # Check whether --enable-libtool-lock was given.
15630 if test "${enable_libtool_lock+set}" = set; then :
15631 enableval=$enable_libtool_lock;
15634 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15636 # Some flags need to be propagated to the compiler or linker for good
15640 # Find out which ABI we are using.
15641 echo 'int i;' > conftest.$ac_ext
15642 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15643 (eval $ac_compile) 2>&5
15645 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15646 test $ac_status = 0; }; then
15647 case `/usr/bin/file conftest.$ac_objext` in
15649 HPUX_IA64_MODE="32"
15652 HPUX_IA64_MODE="64"
15659 # Find out which ABI we are using.
15660 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15661 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15662 (eval $ac_compile) 2>&5
15664 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15665 test $ac_status = 0; }; then
15666 if test "$lt_cv_prog_gnu_ld" = yes; then
15667 case `/usr/bin/file conftest.$ac_objext` in
15669 LD="${LD-ld} -melf32bsmip"
15672 LD="${LD-ld} -melf32bmipn32"
15675 LD="${LD-ld} -melf64bmip"
15679 case `/usr/bin/file conftest.$ac_objext` in
15695 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15696 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15697 # Find out which ABI we are using.
15698 echo 'int i;' > conftest.$ac_ext
15699 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15700 (eval $ac_compile) 2>&5
15702 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15703 test $ac_status = 0; }; then
15704 case `/usr/bin/file conftest.o` in
15707 x86_64-*kfreebsd*-gnu)
15708 LD="${LD-ld} -m elf_i386_fbsd
"
15711 case `/usr/bin/file conftest.o` in
15713 LD="${LD-ld} -m elf32_x86_64
"
15716 LD="${LD-ld} -m elf_i386
"
15720 powerpc64le-*linux*)
15721 LD="${LD-ld} -m elf32lppclinux
"
15724 LD="${LD-ld} -m elf32ppclinux
"
15727 LD="${LD-ld} -m elf_s390
"
15730 LD="${LD-ld} -m elf32_sparc
"
15736 x86_64-*kfreebsd*-gnu)
15737 LD="${LD-ld} -m elf_x86_64_fbsd
"
15740 LD="${LD-ld} -m elf_x86_64
"
15743 LD="${LD-ld} -m elf64lppc
"
15746 LD="${LD-ld} -m elf64ppc
"
15748 s390*-*linux*|s390*-*tpf*)
15749 LD="${LD-ld} -m elf64_s390
"
15752 LD="${LD-ld} -m elf64_sparc
"
15762 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15763 SAVE_CFLAGS="$CFLAGS"
15764 CFLAGS="$CFLAGS -belf"
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15766 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15767 if ${lt_cv_cc_needs_belf+:} false; then :
15768 $as_echo_n "(cached
) " >&6
15771 ac_cpp='$CPP $CPPFLAGS'
15772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15787 if ac_fn_c_try_link "$LINENO"; then :
15788 lt_cv_cc_needs_belf=yes
15790 lt_cv_cc_needs_belf=no
15792 rm -f core conftest.err conftest.$ac_objext \
15793 conftest$ac_exeext conftest.$ac_ext
15795 ac_cpp='$CPP $CPPFLAGS'
15796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15802 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15803 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15804 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15805 CFLAGS="$SAVE_CFLAGS"
15809 # Find out which ABI we are using.
15810 echo 'int i;' > conftest.$ac_ext
15811 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15812 (eval $ac_compile) 2>&5
15814 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15815 test $ac_status = 0; }; then
15816 case `/usr/bin/file conftest.o` in
15818 case $lt_cv_prog_gnu_ld in
15819 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15821 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15833 need_locks="$enable_libtool_lock"
15837 rhapsody* | darwin*)
15838 if test -n "$ac_tool_prefix"; then
15839 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15840 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15842 $as_echo_n "checking
for $ac_word...
" >&6; }
15843 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15844 $as_echo_n "(cached
) " >&6
15846 if test -n "$DSYMUTIL"; then
15847 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850 for as_dir in $PATH
15853 test -z "$as_dir" && as_dir=.
15854 for ac_exec_ext in '' $ac_executable_extensions; do
15855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15856 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15866 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15867 if test -n "$DSYMUTIL"; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15869 $as_echo "$DSYMUTIL" >&6; }
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15872 $as_echo "no
" >&6; }
15877 if test -z "$ac_cv_prog_DSYMUTIL"; then
15878 ac_ct_DSYMUTIL=$DSYMUTIL
15879 # Extract the first word of "dsymutil
", so it can be a program name with args.
15880 set dummy dsymutil; ac_word=$2
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15882 $as_echo_n "checking
for $ac_word...
" >&6; }
15883 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15884 $as_echo_n "(cached
) " >&6
15886 if test -n "$ac_ct_DSYMUTIL"; then
15887 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 for as_dir in $PATH
15893 test -z "$as_dir" && as_dir=.
15894 for ac_exec_ext in '' $ac_executable_extensions; do
15895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15896 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15897 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15906 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15907 if test -n "$ac_ct_DSYMUTIL"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15909 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15912 $as_echo "no
" >&6; }
15915 if test "x
$ac_ct_DSYMUTIL" = x; then
15918 case $cross_compiling:$ac_tool_warned in
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15921 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15922 ac_tool_warned=yes ;;
15924 DSYMUTIL=$ac_ct_DSYMUTIL
15927 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15930 if test -n "$ac_tool_prefix"; then
15931 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15932 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15934 $as_echo_n "checking
for $ac_word...
" >&6; }
15935 if ${ac_cv_prog_NMEDIT+:} false; then :
15936 $as_echo_n "(cached
) " >&6
15938 if test -n "$NMEDIT"; then
15939 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15942 for as_dir in $PATH
15945 test -z "$as_dir" && as_dir=.
15946 for ac_exec_ext in '' $ac_executable_extensions; do
15947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15948 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15949 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15958 NMEDIT=$ac_cv_prog_NMEDIT
15959 if test -n "$NMEDIT"; then
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15961 $as_echo "$NMEDIT" >&6; }
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15964 $as_echo "no
" >&6; }
15969 if test -z "$ac_cv_prog_NMEDIT"; then
15970 ac_ct_NMEDIT=$NMEDIT
15971 # Extract the first word of "nmedit
", so it can be a program name with args.
15972 set dummy nmedit; ac_word=$2
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15974 $as_echo_n "checking
for $ac_word...
" >&6; }
15975 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15976 $as_echo_n "(cached
) " >&6
15978 if test -n "$ac_ct_NMEDIT"; then
15979 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982 for as_dir in $PATH
15985 test -z "$as_dir" && as_dir=.
15986 for ac_exec_ext in '' $ac_executable_extensions; do
15987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15998 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15999 if test -n "$ac_ct_NMEDIT"; then
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
16001 $as_echo "$ac_ct_NMEDIT" >&6; }
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16004 $as_echo "no
" >&6; }
16007 if test "x
$ac_ct_NMEDIT" = x; then
16010 case $cross_compiling:$ac_tool_warned in
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16013 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16014 ac_tool_warned=yes ;;
16016 NMEDIT=$ac_ct_NMEDIT
16019 NMEDIT="$ac_cv_prog_NMEDIT"
16022 if test -n "$ac_tool_prefix"; then
16023 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
16024 set dummy ${ac_tool_prefix}lipo; ac_word=$2
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16026 $as_echo_n "checking
for $ac_word...
" >&6; }
16027 if ${ac_cv_prog_LIPO+:} false; then :
16028 $as_echo_n "(cached
) " >&6
16030 if test -n "$LIPO"; then
16031 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034 for as_dir in $PATH
16037 test -z "$as_dir" && as_dir=.
16038 for ac_exec_ext in '' $ac_executable_extensions; do
16039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16040 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
16041 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16050 LIPO=$ac_cv_prog_LIPO
16051 if test -n "$LIPO"; then
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
16053 $as_echo "$LIPO" >&6; }
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16056 $as_echo "no
" >&6; }
16061 if test -z "$ac_cv_prog_LIPO"; then
16063 # Extract the first word of "lipo
", so it can be a program name with args.
16064 set dummy lipo; ac_word=$2
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16066 $as_echo_n "checking
for $ac_word...
" >&6; }
16067 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16068 $as_echo_n "(cached
) " >&6
16070 if test -n "$ac_ct_LIPO"; then
16071 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074 for as_dir in $PATH
16077 test -z "$as_dir" && as_dir=.
16078 for ac_exec_ext in '' $ac_executable_extensions; do
16079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16080 ac_cv_prog_ac_ct_LIPO="lipo
"
16081 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16090 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16091 if test -n "$ac_ct_LIPO"; then
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
16093 $as_echo "$ac_ct_LIPO" >&6; }
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16096 $as_echo "no
" >&6; }
16099 if test "x
$ac_ct_LIPO" = x; then
16102 case $cross_compiling:$ac_tool_warned in
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16105 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16106 ac_tool_warned=yes ;;
16111 LIPO="$ac_cv_prog_LIPO"
16114 if test -n "$ac_tool_prefix"; then
16115 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
16116 set dummy ${ac_tool_prefix}otool; ac_word=$2
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16118 $as_echo_n "checking
for $ac_word...
" >&6; }
16119 if ${ac_cv_prog_OTOOL+:} false; then :
16120 $as_echo_n "(cached
) " >&6
16122 if test -n "$OTOOL"; then
16123 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16129 test -z "$as_dir" && as_dir=.
16130 for ac_exec_ext in '' $ac_executable_extensions; do
16131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16132 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16142 OTOOL=$ac_cv_prog_OTOOL
16143 if test -n "$OTOOL"; then
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
16145 $as_echo "$OTOOL" >&6; }
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16148 $as_echo "no
" >&6; }
16153 if test -z "$ac_cv_prog_OTOOL"; then
16155 # Extract the first word of "otool
", so it can be a program name with args.
16156 set dummy otool; ac_word=$2
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16158 $as_echo_n "checking
for $ac_word...
" >&6; }
16159 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16160 $as_echo_n "(cached
) " >&6
16162 if test -n "$ac_ct_OTOOL"; then
16163 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16169 test -z "$as_dir" && as_dir=.
16170 for ac_exec_ext in '' $ac_executable_extensions; do
16171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16172 ac_cv_prog_ac_ct_OTOOL="otool
"
16173 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16182 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16183 if test -n "$ac_ct_OTOOL"; then
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
16185 $as_echo "$ac_ct_OTOOL" >&6; }
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16188 $as_echo "no
" >&6; }
16191 if test "x
$ac_ct_OTOOL" = x; then
16194 case $cross_compiling:$ac_tool_warned in
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16197 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16198 ac_tool_warned=yes ;;
16203 OTOOL="$ac_cv_prog_OTOOL"
16206 if test -n "$ac_tool_prefix"; then
16207 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16208 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16210 $as_echo_n "checking
for $ac_word...
" >&6; }
16211 if ${ac_cv_prog_OTOOL64+:} false; then :
16212 $as_echo_n "(cached
) " >&6
16214 if test -n "$OTOOL64"; then
16215 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16218 for as_dir in $PATH
16221 test -z "$as_dir" && as_dir=.
16222 for ac_exec_ext in '' $ac_executable_extensions; do
16223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16224 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16225 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16234 OTOOL64=$ac_cv_prog_OTOOL64
16235 if test -n "$OTOOL64"; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
16237 $as_echo "$OTOOL64" >&6; }
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16240 $as_echo "no
" >&6; }
16245 if test -z "$ac_cv_prog_OTOOL64"; then
16246 ac_ct_OTOOL64=$OTOOL64
16247 # Extract the first word of "otool64
", so it can be a program name with args.
16248 set dummy otool64; ac_word=$2
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16250 $as_echo_n "checking
for $ac_word...
" >&6; }
16251 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16252 $as_echo_n "(cached
) " >&6
16254 if test -n "$ac_ct_OTOOL64"; then
16255 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16258 for as_dir in $PATH
16261 test -z "$as_dir" && as_dir=.
16262 for ac_exec_ext in '' $ac_executable_extensions; do
16263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16264 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16265 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16274 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16275 if test -n "$ac_ct_OTOOL64"; then
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16277 $as_echo "$ac_ct_OTOOL64" >&6; }
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16280 $as_echo "no
" >&6; }
16283 if test "x
$ac_ct_OTOOL64" = x; then
16286 case $cross_compiling:$ac_tool_warned in
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16289 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16290 ac_tool_warned=yes ;;
16292 OTOOL64=$ac_ct_OTOOL64
16295 OTOOL64="$ac_cv_prog_OTOOL64"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16325 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16326 if ${lt_cv_apple_cc_single_mod+:} false; then :
16327 $as_echo_n "(cached
) " >&6
16329 lt_cv_apple_cc_single_mod=no
16330 if test -z "${LT_MULTI_MODULE}"; then
16331 # By default we will add the -single_module flag. You can override
16332 # by either setting the environment variable LT_MULTI_MODULE
16333 # non-empty at configure time, or by adding -multi_module to the
16335 rm -rf libconftest.dylib*
16336 echo "int foo
(void
){return 1;}" > conftest.c
16337 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16338 -dynamiclib -Wl,-single_module conftest.c
" >&5
16339 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16340 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16342 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16343 lt_cv_apple_cc_single_mod=yes
16345 cat conftest.err >&5
16347 rm -rf libconftest.dylib*
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16352 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16354 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16355 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16356 $as_echo_n "(cached
) " >&6
16358 lt_cv_ld_exported_symbols_list=no
16359 save_LDFLAGS=$LDFLAGS
16360 echo "_main
" > conftest.sym
16361 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16373 if ac_fn_c_try_link "$LINENO"; then :
16374 lt_cv_ld_exported_symbols_list=yes
16376 lt_cv_ld_exported_symbols_list=no
16378 rm -f core conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16380 LDFLAGS="$save_LDFLAGS"
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16384 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16386 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16387 if ${lt_cv_ld_force_load+:} false; then :
16388 $as_echo_n "(cached
) " >&6
16390 lt_cv_ld_force_load=no
16391 cat > conftest.c << _LT_EOF
16392 int forced_loaded() { return 2;}
16394 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16395 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16396 echo "$AR cru libconftest.a conftest.o
" >&5
16397 $AR cru libconftest.a conftest.o 2>&5
16398 cat > conftest.c << _LT_EOF
16399 int main() { return 0;}
16401 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16402 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16404 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16405 lt_cv_ld_force_load=yes
16407 cat conftest.err >&5
16409 rm -f conftest.err libconftest.a conftest conftest.c
16410 rm -rf conftest.dSYM
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16414 $as_echo "$lt_cv_ld_force_load" >&6; }
16415 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16416 # build without first building modern cctools / linker.
16417 case $host_cpu-$host_os in
16418 *-rhapsody* | *-darwin1.[012])
16419 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16421 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16423 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16424 # deployment target is forced to an earlier version.
16425 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16426 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
16429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16436 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16437 _lt_dar_single_mod='$single_module'
16439 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16440 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16442 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16444 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16445 _lt_dsymutil='~$DSYMUTIL $lib || :'
16453 for ac_header in dlfcn.h
16455 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16456 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16457 cat >>confdefs.h <<_ACEOF
16458 #define HAVE_DLFCN_H 1
16475 enable_win32_dll=no
16478 # Check whether --enable-shared was given.
16479 if test "${enable_shared+set}" = set; then :
16480 enableval=$enable_shared; p=${PACKAGE-default}
16482 yes) enable_shared=yes ;;
16483 no) enable_shared=no ;;
16486 # Look at the argument we got. We use all the common list separators.
16487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16488 for pkg in $enableval; do
16490 if test "X
$pkg" = "X
$p"; then
16509 # Check whether --enable-static was given.
16510 if test "${enable_static+set}" = set; then :
16511 enableval=$enable_static; p=${PACKAGE-default}
16513 yes) enable_static=yes ;;
16514 no) enable_static=no ;;
16517 # Look at the argument we got. We use all the common list separators.
16518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16519 for pkg in $enableval; do
16521 if test "X
$pkg" = "X
$p"; then
16541 # Check whether --with-pic was given.
16542 if test "${with_pic+set}" = set; then :
16543 withval=$with_pic; pic_mode="$withval"
16549 test -z "$pic_mode" && pic_mode=default
16557 # Check whether --enable-fast-install was given.
16558 if test "${enable_fast_install+set}" = set; then :
16559 enableval=$enable_fast_install; p=${PACKAGE-default}
16561 yes) enable_fast_install=yes ;;
16562 no) enable_fast_install=no ;;
16564 enable_fast_install=no
16565 # Look at the argument we got. We use all the common list separators.
16566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16567 for pkg in $enableval; do
16569 if test "X
$pkg" = "X
$p"; then
16570 enable_fast_install=yes
16577 enable_fast_install=yes
16590 # This can be used to rebuild libtool when needed
16591 LIBTOOL_DEPS="$ltmain"
16593 # Always use our own libtool.
16594 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16621 test -z "$LN_S" && LN_S="ln -s"
16636 if test -n "${ZSH_VERSION+set}" ; then
16637 setopt NO_GLOB_SUBST
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16641 $as_echo_n "checking
for objdir...
" >&6; }
16642 if ${lt_cv_objdir+:} false; then :
16643 $as_echo_n "(cached
) " >&6
16645 rm -f .libs 2>/dev/null
16646 mkdir .libs 2>/dev/null
16647 if test -d .libs; then
16650 # MS-DOS does not allow filenames that begin with a dot.
16653 rmdir .libs 2>/dev/null
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16656 $as_echo "$lt_cv_objdir" >&6; }
16657 objdir=$lt_cv_objdir
16663 cat >>confdefs.h <<_ACEOF
16664 #define LT_OBJDIR "$lt_cv_objdir/"
16672 # AIX sometimes has problems with the GCC collect2 program. For some
16673 # reason, if we set the COLLECT_NAMES environment variable, the problems
16674 # vanish in a puff of smoke.
16675 if test "X
${COLLECT_NAMES+set}" != Xset; then
16677 export COLLECT_NAMES
16682 # Global variables:
16684 can_build_shared=yes
16686 # All known linkers require a `.a' archive for static linking (except MSVC,
16687 # which needs '.lib').
16690 with_gnu_ld="$lt_cv_prog_gnu_ld"
16693 old_CFLAGS="$CFLAGS"
16695 # Set sane defaults for various variables
16696 test -z "$CC" && CC=cc
16697 test -z "$LTCC" && LTCC=$CC
16698 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16699 test -z "$LD" && LD=ld
16700 test -z "$ac_objext" && ac_objext=o
16702 for cc_temp in $compiler""; do
16704 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16705 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16710 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16713 # Only perform the check for file, if the check method requires it
16714 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16715 case $deplibs_check_method in
16717 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16719 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16720 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16721 $as_echo_n "(cached
) " >&6
16725 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16728 lt_save_MAGIC_CMD="$MAGIC_CMD"
16729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16730 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16731 for ac_dir in $ac_dummy; do
16733 test -z "$ac_dir" && ac_dir=.
16734 if test -f $ac_dir/${ac_tool_prefix}file; then
16735 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16736 if test -n "$file_magic_test_file"; then
16737 case $deplibs_check_method in
16739 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16741 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16742 $EGREP "$file_magic_regex" > /dev/null; then
16747 *** Warning: the command libtool uses to detect shared libraries,
16748 *** $file_magic_cmd, produces output that libtool cannot recognize.
16749 *** The result is that libtool may fail to recognize shared libraries
16750 *** as such. This will affect the creation of libtool libraries that
16751 *** depend on shared libraries, but programs linked with such libtool
16752 *** libraries will work regardless of this problem. Nevertheless, you
16753 *** may want to report the problem to your system manager and/or to
16754 *** bug-libtool@gnu.org
16764 MAGIC_CMD="$lt_save_MAGIC_CMD"
16769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16770 if test -n "$MAGIC_CMD"; then
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16772 $as_echo "$MAGIC_CMD" >&6; }
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16775 $as_echo "no
" >&6; }
16782 if test -z "$lt_cv_path_MAGIC_CMD"; then
16783 if test -n "$ac_tool_prefix"; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16785 $as_echo_n "checking
for file...
" >&6; }
16786 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16787 $as_echo_n "(cached
) " >&6
16791 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16794 lt_save_MAGIC_CMD="$MAGIC_CMD"
16795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16796 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16797 for ac_dir in $ac_dummy; do
16799 test -z "$ac_dir" && ac_dir=.
16800 if test -f $ac_dir/file; then
16801 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16802 if test -n "$file_magic_test_file"; then
16803 case $deplibs_check_method in
16805 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16807 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16808 $EGREP "$file_magic_regex" > /dev/null; then
16813 *** Warning: the command libtool uses to detect shared libraries,
16814 *** $file_magic_cmd, produces output that libtool cannot recognize.
16815 *** The result is that libtool may fail to recognize shared libraries
16816 *** as such. This will affect the creation of libtool libraries that
16817 *** depend on shared libraries, but programs linked with such libtool
16818 *** libraries will work regardless of this problem. Nevertheless, you
16819 *** may want to report the problem to your system manager and/or to
16820 *** bug-libtool@gnu.org
16830 MAGIC_CMD="$lt_save_MAGIC_CMD"
16835 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16836 if test -n "$MAGIC_CMD"; then
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16838 $as_echo "$MAGIC_CMD" >&6; }
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16841 $as_echo "no
" >&6; }
16854 # Use C for the default configuration in the libtool script
16858 ac_cpp='$CPP $CPPFLAGS'
16859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16864 # Source file extension for C test sources.
16867 # Object file extension for compiled C test sources.
16871 # Code to be used in simple compile tests
16872 lt_simple_compile_test_code="int some_variable
= 0;"
16874 # Code to be used in simple link tests
16875 lt_simple_link_test_code='int main(){return(0);}'
16883 # If no C compiler was specified, use CC.
16886 # If no C compiler flags were specified, use CFLAGS.
16887 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16889 # Allow CC to be a program name with arguments.
16892 # Save the default compiler, since it gets overwritten when the other
16893 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16894 compiler_DEFAULT=$CC
16896 # save warnings/boilerplate of simple test code
16897 ac_outfile=conftest.$ac_objext
16898 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16899 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16900 _lt_compiler_boilerplate=`cat conftest.err`
16903 ac_outfile=conftest.$ac_objext
16904 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16905 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16906 _lt_linker_boilerplate=`cat conftest.err`
16911 ## There is no encapsulation within the following macros, do not change
16912 ## the running order or otherwise move them around unless you know exactly
16913 ## what you are doing...
16914 if test -n "$compiler"; then
16916 lt_prog_compiler_no_builtin_flag=
16918 if test "$GCC" = yes; then
16919 case $cc_basename in
16921 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16923 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16927 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16928 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16929 $as_echo_n "(cached
) " >&6
16931 lt_cv_prog_compiler_rtti_exceptions=no
16932 ac_outfile=conftest.$ac_objext
16933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16934 lt_compiler_flag="-fno-rtti -fno-exceptions"
16935 # Insert the option either (1) after the last *FLAGS variable, or
16936 # (2) before a word containing "conftest.
", or (3) at the end.
16937 # Note that $ac_compile itself does not contain backslashes and begins
16938 # with a dollar sign (not a hyphen), so the echo should work correctly.
16939 # The option is referenced via a variable to avoid confusing sed.
16940 lt_compile=`echo "$ac_compile" | $SED \
16941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16943 -e 's:$: $lt_compiler_flag:'`
16944 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16945 (eval "$lt_compile" 2>conftest.err)
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16949 if (exit $ac_status) && test -s "$ac_outfile"; then
16950 # The compiler can only warn and ignore the option if not recognized
16951 # So say no if there are warnings other than the usual output.
16952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16955 lt_cv_prog_compiler_rtti_exceptions=yes
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16962 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16964 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16965 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16977 lt_prog_compiler_wl=
16978 lt_prog_compiler_pic=
16979 lt_prog_compiler_static=
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16982 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16984 if test "$GCC" = yes; then
16985 lt_prog_compiler_wl='-Wl,'
16986 lt_prog_compiler_static='-static'
16990 # All AIX code is PIC.
16991 if test "$host_cpu" = ia64; then
16992 # AIX 5 now supports IA64 processor
16993 lt_prog_compiler_static='-Bstatic'
16995 lt_prog_compiler_pic='-fPIC'
17001 # see comment about AmigaOS4 .so support
17002 lt_prog_compiler_pic='-fPIC'
17005 # FIXME: we need at least 68020 code to build shared libraries, but
17006 # adding the `-m68020' flag to GCC prevents building anything better,
17008 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17013 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17014 # PIC is the default for these OSes.
17017 mingw* | cygwin* | pw32* | os2* | cegcc*)
17018 # This hack is so that the source file can tell whether it is being
17019 # built for inclusion in a dll (and should export symbols for example).
17020 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17021 # (--disable-auto-import) libraries
17022 lt_prog_compiler_pic='-DDLL_EXPORT'
17025 darwin* | rhapsody*)
17026 # PIC is the default on this platform
17027 # Common symbols not allowed in MH_DYLIB files
17028 lt_prog_compiler_pic='-fno-common'
17032 # PIC is the default for Haiku.
17033 # The "-static" flag exists, but is broken.
17034 lt_prog_compiler_static=
17038 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17039 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17040 # sets the default TLS model and affects inlining.
17046 lt_prog_compiler_pic='-fPIC'
17052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17053 # Instead, we relocate shared libraries at runtime.
17057 # Just because we use GCC doesn't mean we suddenly get shared libraries
17058 # on systems that don't support them.
17059 lt_prog_compiler_can_build_shared=no
17064 # QNX uses GNU C++, but need to define -shared option too, otherwise
17065 # it will coredump.
17066 lt_prog_compiler_pic='-fPIC -shared'
17070 if test -d /usr/nec; then
17071 lt_prog_compiler_pic=-Kconform_pic
17076 lt_prog_compiler_pic='-fPIC'
17080 case $cc_basename in
17081 nvcc*) # Cuda Compiler Driver 2.2
17082 lt_prog_compiler_wl='-Xlinker '
17083 lt_prog_compiler_pic='-Xcompiler -fPIC'
17087 # PORTME Check for flag to pass linker flags through the system compiler.
17090 lt_prog_compiler_wl='-Wl,'
17091 if test "$host_cpu" = ia64; then
17092 # AIX 5 now supports IA64 processor
17093 lt_prog_compiler_static='-Bstatic'
17095 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17099 mingw* | cygwin* | pw32* | os2* | cegcc*)
17100 # This hack is so that the source file can tell whether it is being
17101 # built for inclusion in a dll (and should export symbols for example).
17102 lt_prog_compiler_pic='-DDLL_EXPORT'
17105 hpux9* | hpux10* | hpux11*)
17106 lt_prog_compiler_wl='-Wl,'
17107 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17108 # not for PA HP-UX.
17114 lt_prog_compiler_pic='+Z'
17117 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17118 lt_prog_compiler_static='${wl}-a ${wl}archive'
17121 irix5* | irix6* | nonstopux*)
17122 lt_prog_compiler_wl='-Wl,'
17123 # PIC (with -KPIC) is the default.
17124 lt_prog_compiler_static='-non_shared'
17127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17128 case $cc_basename in
17129 # old Intel for x86_64 which still supported -KPIC.
17131 lt_prog_compiler_wl='-Wl,'
17132 lt_prog_compiler_pic='-KPIC'
17133 lt_prog_compiler_static='-static'
17135 # icc used to be incompatible with GCC.
17136 # ICC 10 doesn't accept -KPIC any more.
17138 lt_prog_compiler_wl='-Wl,'
17139 lt_prog_compiler_pic='-fPIC'
17140 lt_prog_compiler_static='-static'
17142 # Lahey Fortran 8.1.
17144 lt_prog_compiler_wl='-Wl,'
17145 lt_prog_compiler_pic='--shared'
17146 lt_prog_compiler_static='--static'
17148 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17149 # Portland Group compilers (*not* the Pentium gcc compiler,
17150 # which looks to be a dead project)
17151 lt_prog_compiler_wl='-Wl,'
17152 lt_prog_compiler_pic='-fpic'
17153 lt_prog_compiler_static='-Bstatic'
17156 lt_prog_compiler_wl='-Wl,'
17157 # All Alpha code is PIC.
17158 lt_prog_compiler_static='-non_shared'
17160 xl* | bgxl* | bgf* | mpixl*)
17161 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17162 lt_prog_compiler_wl='-Wl,'
17163 lt_prog_compiler_pic='-qpic'
17164 lt_prog_compiler_static='-qstaticlink'
17167 case `$CC -V 2>&1 | sed 5q` in
17168 *Sun\ F* | *Sun*Fortran*)
17169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17170 lt_prog_compiler_pic='-KPIC'
17171 lt_prog_compiler_static='-Bstatic'
17172 lt_prog_compiler_wl=''
17176 lt_prog_compiler_pic='-KPIC'
17177 lt_prog_compiler_static='-Bstatic'
17178 lt_prog_compiler_wl='-Wl,'
17186 lt_prog_compiler_pic='-KPIC'
17187 lt_prog_compiler_static='-Bstatic'
17191 # QNX uses GNU C++, but need to define -shared option too, otherwise
17192 # it will coredump.
17193 lt_prog_compiler_pic='-fPIC -shared'
17196 osf3* | osf4* | osf5*)
17197 lt_prog_compiler_wl='-Wl,'
17198 # All OSF/1 code is PIC.
17199 lt_prog_compiler_static='-non_shared'
17203 lt_prog_compiler_static='-non_shared'
17207 lt_prog_compiler_pic='-KPIC'
17208 lt_prog_compiler_static='-Bstatic'
17209 case $cc_basename in
17210 f77* | f90* | f95*)
17211 lt_prog_compiler_wl='-Qoption ld ';;
17213 lt_prog_compiler_wl='-Wl,';;
17218 lt_prog_compiler_wl='-Qoption ld '
17219 lt_prog_compiler_pic='-PIC'
17220 lt_prog_compiler_static='-Bstatic'
17223 sysv4 | sysv4.2uw2* | sysv4.3*)
17224 lt_prog_compiler_wl='-Wl,'
17225 lt_prog_compiler_pic='-KPIC'
17226 lt_prog_compiler_static='-Bstatic'
17230 if test -d /usr/nec ;then
17231 lt_prog_compiler_pic='-Kconform_pic'
17232 lt_prog_compiler_static='-Bstatic'
17236 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17237 lt_prog_compiler_wl='-Wl,'
17238 lt_prog_compiler_pic='-KPIC'
17239 lt_prog_compiler_static='-Bstatic'
17243 lt_prog_compiler_wl='-Wl,'
17244 lt_prog_compiler_can_build_shared=no
17248 lt_prog_compiler_pic='-pic'
17249 lt_prog_compiler_static='-Bstatic'
17253 lt_prog_compiler_can_build_shared=no
17259 # For platforms which do not support PIC, -DPIC is meaningless:
17261 lt_prog_compiler_pic=
17264 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17268 $as_echo "$lt_prog_compiler_pic" >&6; }
17276 # Check to make sure the PIC flag actually works.
17278 if test -n "$lt_prog_compiler_pic"; then
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17280 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17281 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17282 $as_echo_n "(cached
) " >&6
17284 lt_cv_prog_compiler_pic_works=no
17285 ac_outfile=conftest.$ac_objext
17286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17287 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17288 # Insert the option either (1) after the last *FLAGS variable, or
17289 # (2) before a word containing "conftest.
", or (3) at the end.
17290 # Note that $ac_compile itself does not contain backslashes and begins
17291 # with a dollar sign (not a hyphen), so the echo should work correctly.
17292 # The option is referenced via a variable to avoid confusing sed.
17293 lt_compile=`echo "$ac_compile" | $SED \
17294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17296 -e 's:$: $lt_compiler_flag:'`
17297 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17298 (eval "$lt_compile" 2>conftest.err)
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17302 if (exit $ac_status) && test -s "$ac_outfile"; then
17303 # The compiler can only warn and ignore the option if not recognized
17304 # So say no if there are warnings other than the usual output.
17305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17307 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17308 lt_cv_prog_compiler_pic_works=yes
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17315 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17317 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17318 case $lt_prog_compiler_pic in
17320 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17323 lt_prog_compiler_pic=
17324 lt_prog_compiler_can_build_shared=no
17335 # Check to make sure the static flag actually works.
17337 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17339 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17340 if ${lt_cv_prog_compiler_static_works+:} false; then :
17341 $as_echo_n "(cached
) " >&6
17343 lt_cv_prog_compiler_static_works=no
17344 save_LDFLAGS="$LDFLAGS"
17345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17348 # The linker can only warn and ignore the option if not recognized
17349 # So say no if there are warnings
17350 if test -s conftest.err; then
17351 # Append any errors to the config.log.
17352 cat conftest.err 1>&5
17353 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17355 if diff conftest.exp conftest.er2 >/dev/null; then
17356 lt_cv_prog_compiler_static_works=yes
17359 lt_cv_prog_compiler_static_works=yes
17363 LDFLAGS="$save_LDFLAGS"
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17367 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17369 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17372 lt_prog_compiler_static=
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17382 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17383 if ${lt_cv_prog_compiler_c_o+:} false; then :
17384 $as_echo_n "(cached
) " >&6
17386 lt_cv_prog_compiler_c_o=no
17387 $RM -r conftest 2>/dev/null
17391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17393 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17394 # Insert the option either (1) after the last *FLAGS variable, or
17395 # (2) before a word containing "conftest.
", or (3) at the end.
17396 # Note that $ac_compile itself does not contain backslashes and begins
17397 # with a dollar sign (not a hyphen), so the echo should work correctly.
17398 lt_compile=`echo "$ac_compile" | $SED \
17399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17401 -e 's:$: $lt_compiler_flag:'`
17402 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17403 (eval "$lt_compile" 2>out/conftest.err)
17405 cat out/conftest.err >&5
17406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17409 # The compiler can only warn and ignore the option if not recognized
17410 # So say no if there are warnings
17411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17414 lt_cv_prog_compiler_c_o=yes
17419 # SGI C++ compiler will create directory out/ii_files/ for
17420 # template instantiation
17421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17422 $RM out/* && rmdir out
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17429 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17437 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17438 if ${lt_cv_prog_compiler_c_o+:} false; then :
17439 $as_echo_n "(cached
) " >&6
17441 lt_cv_prog_compiler_c_o=no
17442 $RM -r conftest 2>/dev/null
17446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17448 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17449 # Insert the option either (1) after the last *FLAGS variable, or
17450 # (2) before a word containing "conftest.
", or (3) at the end.
17451 # Note that $ac_compile itself does not contain backslashes and begins
17452 # with a dollar sign (not a hyphen), so the echo should work correctly.
17453 lt_compile=`echo "$ac_compile" | $SED \
17454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17456 -e 's:$: $lt_compiler_flag:'`
17457 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17458 (eval "$lt_compile" 2>out/conftest.err)
17460 cat out/conftest.err >&5
17461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17464 # The compiler can only warn and ignore the option if not recognized
17465 # So say no if there are warnings
17466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17469 lt_cv_prog_compiler_c_o=yes
17474 # SGI C++ compiler will create directory out/ii_files/ for
17475 # template instantiation
17476 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17477 $RM out/* && rmdir out
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17484 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17489 hard_links="nottested
"
17490 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17491 # do not overwrite the value of need_locks provided by the user
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17493 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17498 ln conftest.a conftest.b 2>&5 || hard_links=no
17499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17501 $as_echo "$hard_links" >&6; }
17502 if test "$hard_links" = no; then
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17504 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17517 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17520 allow_undefined_flag=
17521 always_export_symbols=no
17523 archive_expsym_cmds=
17524 compiler_needs_object=no
17525 enable_shared_with_static_runtimes=no
17526 export_dynamic_flag_spec=
17527 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17528 hardcode_automatic=no
17530 hardcode_direct_absolute=no
17531 hardcode_libdir_flag_spec=
17532 hardcode_libdir_flag_spec_ld=
17533 hardcode_libdir_separator=
17534 hardcode_minus_L=no
17535 hardcode_shlibpath_var=unsupported
17537 link_all_deplibs=unknown
17539 module_expsym_cmds=
17540 old_archive_from_new_cmds=
17541 old_archive_from_expsyms_cmds=
17542 thread_safe_flag_spec=
17543 whole_archive_flag_spec=
17544 # include_expsyms should be a list of space-separated symbols to be *always*
17545 # included in the symbol list
17547 # exclude_expsyms can be an extended regexp of symbols to exclude
17548 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17549 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17550 # as well as any symbol that contains `d'.
17551 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17552 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17553 # platforms (ab)use it in PIC code, but their linkers get confused if
17554 # the symbol is explicitly referenced. Since portable code cannot
17555 # rely on this symbol name, it's probably fine to never include it in
17556 # preloaded symbol tables.
17557 # Exclude shared library initialization/finalization symbols.
17558 extract_expsyms_cmds=
17561 cygwin* | mingw* | pw32* | cegcc*)
17562 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17563 # When not using gcc, we currently assume that we are using
17564 # Microsoft Visual C++.
17565 if test "$GCC" != yes; then
17570 # we just hope/assume this is gcc and not c89 (= MSVC++)
17580 # On some targets, GNU ld is compatible enough with the native linker
17581 # that we're better off using the native interface for both.
17582 lt_use_gnu_ld_interface=no
17583 if test "$with_gnu_ld" = yes; then
17586 # The AIX port of GNU ld has always aspired to compatibility
17587 # with the native linker. However, as the warning in the GNU ld
17588 # block says, versions before 2.19.5* couldn't really create working
17589 # shared libraries, regardless of the interface used.
17590 case `$LD -v 2>&1` in
17591 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17592 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17593 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17595 lt_use_gnu_ld_interface=yes
17600 lt_use_gnu_ld_interface=yes
17605 if test "$lt_use_gnu_ld_interface" = yes; then
17606 # If archive_cmds runs LD, not CC, wlarc should be empty
17609 # Set some defaults for GNU ld with shared library support. These
17610 # are reset later if shared libraries are not supported. Putting them
17611 # here allows them to be overridden if necessary.
17612 runpath_var=LD_RUN_PATH
17613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17614 export_dynamic_flag_spec='${wl}--export-dynamic'
17615 # ancient GNU ld didn't support --whole-archive et. al.
17616 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17617 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17619 whole_archive_flag_spec=
17621 supports_anon_versioning=no
17622 case `$LD -v 2>&1` in
17623 *GNU\ gold*) supports_anon_versioning=yes ;;
17624 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17625 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17626 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17627 *\ 2.11.*) ;; # other 2.11 versions
17628 *) supports_anon_versioning=yes ;;
17631 # See if GNU ld supports shared libraries.
17634 # On AIX/PPC, the GNU linker is very broken
17635 if test "$host_cpu" != ia64; then
17639 *** Warning: the GNU linker, at least up to release 2.19, is reported
17640 *** to be unable to reliably create shared libraries on AIX.
17641 *** Therefore, libtool is disabling shared libraries support. If you
17642 *** really care for shared libraries, you may want to install binutils
17643 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17644 *** You will then need to restart the configuration process.
17653 # see comment about AmigaOS4 .so support
17654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17655 archive_expsym_cmds=''
17658 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)'
17659 hardcode_libdir_flag_spec
='-L$libdir'
17660 hardcode_minus_L
=yes
17666 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17667 allow_undefined_flag
=unsupported
17668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17669 # support --undefined. This deserves some investigation. FIXME
17670 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17676 cygwin
* | mingw
* | pw32
* | cegcc
*)
17677 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17678 # as there is no search path for DLLs.
17679 hardcode_libdir_flag_spec
='-L$libdir'
17680 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17681 allow_undefined_flag
=unsupported
17682 always_export_symbols
=no
17683 enable_shared_with_static_runtimes
=yes
17684 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17686 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17687 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17688 # If the export-symbols file already is a .def file (1st line
17689 # is EXPORTS), use it as is; otherwise, prepend...
17690 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17691 cp $export_symbols $output_objdir/$soname.def;
17693 echo EXPORTS > $output_objdir/$soname.def;
17694 cat $export_symbols >> $output_objdir/$soname.def;
17696 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17703 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17704 link_all_deplibs
=yes
17709 hardcode_shlibpath_var
=no
17710 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17711 export_dynamic_flag_spec
='${wl}-E'
17712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17713 # Instead, shared libraries are loaded at an image base (0x10000000 by
17714 # default) and relocated if they conflict, which is a slow very memory
17715 # consuming and fragmenting process. To avoid this, we pick a random,
17716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17717 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17718 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17719 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'
17722 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17724 if test "$host_os" = linux-dietlibc
; then
17725 case $cc_basename in
17726 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17729 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17730 && test "$tmp_diet" = no
17732 tmp_addflag
=' $pic_flag'
17733 tmp_sharedflag
='-shared'
17734 case $cc_basename,$host_cpu in
17735 pgcc
*) # Portland Group C compiler
17736 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'
17737 tmp_addflag
=' $pic_flag'
17739 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17740 # Portland Group f77 and f90 compilers
17741 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'
17742 tmp_addflag
=' $pic_flag -Mnomain' ;;
17743 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17744 tmp_addflag
=' -i_dynamic' ;;
17745 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17746 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17747 ifc
* | ifort
*) # Intel Fortran compiler
17748 tmp_addflag
=' -nofor_main' ;;
17749 lf95
*) # Lahey Fortran 8.1
17750 whole_archive_flag_spec
=
17751 tmp_sharedflag
='--shared' ;;
17752 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17753 tmp_sharedflag
='-qmkshrobj'
17755 nvcc
*) # Cuda Compiler Driver 2.2
17756 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'
17757 compiler_needs_object
=yes
17760 case `$CC -V 2>&1 | sed 5q` in
17761 *Sun\ C
*) # Sun C 5.9
17762 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'
17763 compiler_needs_object
=yes
17764 tmp_sharedflag
='-G' ;;
17765 *Sun\ F
*) # Sun Fortran 8.3
17766 tmp_sharedflag
='-G' ;;
17768 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17770 if test "x$supports_anon_versioning" = xyes
; then
17771 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17773 echo "local: *; };" >> $output_objdir/$libname.ver~
17774 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17777 case $cc_basename in
17778 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17779 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17780 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17781 hardcode_libdir_flag_spec
=
17782 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17783 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17784 if test "x$supports_anon_versioning" = xyes
; then
17785 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17787 echo "local: *; };" >> $output_objdir/$libname.ver~
17788 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17798 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17799 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17802 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17803 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17808 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17812 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17813 *** create shared libraries on Solaris systems. Therefore, libtool
17814 *** is disabling shared libraries support. We urge you to upgrade GNU
17815 *** binutils to release 2.9.1 or newer. Another option is to modify
17816 *** your PATH or compiler configuration so that the native linker is
17817 *** used, and then restart.
17820 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17821 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17822 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17828 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17829 case `$LD -v 2>&1` in
17830 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17834 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17835 *** reliably create shared libraries on SCO systems. Therefore, libtool
17836 *** is disabling shared libraries support. We urge you to upgrade GNU
17837 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17838 *** your PATH or compiler configuration so that the native linker is
17839 *** used, and then restart.
17844 # For security reasons, it is highly recommended that you always
17845 # use absolute paths for naming shared libraries, and exclude the
17846 # DT_RUNPATH tag from executables and libraries. But doing so
17847 # requires that you compile everything twice, which is a pain.
17848 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17849 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17850 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17851 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17860 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17862 hardcode_direct
=yes
17863 hardcode_shlibpath_var
=no
17867 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17868 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17869 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17876 if test "$ld_shlibs" = no
; then
17878 hardcode_libdir_flag_spec
=
17879 export_dynamic_flag_spec
=
17880 whole_archive_flag_spec
=
17883 # PORTME fill in a description of your system's linker (not GNU ld)
17886 allow_undefined_flag
=unsupported
17887 always_export_symbols
=yes
17888 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'
17889 # Note: this linker hardcodes the directories in LIBPATH if there
17890 # are no directories specified by -L.
17891 hardcode_minus_L
=yes
17892 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17893 # Neither direct hardcoding nor static linking is supported with a
17895 hardcode_direct
=unsupported
17900 if test "$host_cpu" = ia64
; then
17901 # On IA64, the linker does run time linking by default, so we don't
17902 # have to do anything special.
17903 aix_use_runtimelinking
=no
17904 exp_sym_flag
='-Bexport'
17907 # If we're using GNU nm, then we don't want the "-C" option.
17908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17909 # Also, AIX nm treats weak defined symbols like other global
17910 # defined symbols, whereas GNU nm marks them as "W".
17911 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17912 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'
17914 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'
17916 aix_use_runtimelinking
=no
17918 # Test if we are trying to use run time linking or normal
17919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17920 # need to do runtime linking.
17921 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17922 for ld_flag
in $LDFLAGS; do
17923 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17924 aix_use_runtimelinking
=yes
17931 exp_sym_flag
='-bexport'
17932 no_entry_flag
='-bnoentry'
17935 # When large executables or shared objects are built, AIX ld can
17936 # have problems creating the table of contents. If linking a library
17937 # or program results in "error TOC overflow" add -mminimal-toc to
17938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17942 hardcode_direct
=yes
17943 hardcode_direct_absolute
=yes
17944 hardcode_libdir_separator
=':'
17945 link_all_deplibs
=yes
17946 file_list_spec
='${wl}-f,'
17948 if test "$GCC" = yes; then
17949 case $host_os in aix4.
[012]|aix4.
[012].
*)
17950 # We only want to do this on AIX 4.2 and lower, the check
17951 # below for broken collect2 doesn't work under 4.3+
17952 collect2name
=`${CC} -print-prog-name=collect2`
17953 if test -f "$collect2name" &&
17954 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17956 # We have reworked collect2
17959 # We have old collect2
17960 hardcode_direct
=unsupported
17961 # It fails to find uninstalled libraries when the uninstalled
17962 # path is not listed in the libpath. Setting hardcode_minus_L
17963 # to unsupported forces relinking
17964 hardcode_minus_L
=yes
17965 hardcode_libdir_flag_spec
='-L$libdir'
17966 hardcode_libdir_separator
=
17970 shared_flag
='-shared'
17971 if test "$aix_use_runtimelinking" = yes; then
17972 shared_flag
="$shared_flag "'${wl}-G'
17976 if test "$host_cpu" = ia64
; then
17977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17978 # chokes on -Wl,-G. The following line is correct:
17981 if test "$aix_use_runtimelinking" = yes; then
17982 shared_flag
='${wl}-G'
17984 shared_flag
='${wl}-bM:SRE'
17989 export_dynamic_flag_spec
='${wl}-bexpall'
17990 # It seems that -bexpall does not export symbols beginning with
17991 # underscore (_), so it is better to generate a list of symbols to export.
17992 always_export_symbols
=yes
17993 if test "$aix_use_runtimelinking" = yes; then
17994 # Warning - without using the other runtime loading flags (-brtl),
17995 # -berok will link without error, but may produce a broken library.
17996 allow_undefined_flag
='-berok'
17997 # Determine the default libpath from the value encoded in an
17998 # empty executable.
17999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18010 if ac_fn_c_try_link
"$LINENO"; then :
18012 lt_aix_libpath_sed
='
18013 /Import File Strings/,/^$/ {
18019 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18020 # Check for a 64-bit object if we didn't find anything.
18021 if test -z "$aix_libpath"; then
18022 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18025 rm -f core conftest.err conftest.
$ac_objext \
18026 conftest
$ac_exeext conftest.
$ac_ext
18027 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18029 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18030 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"
18032 if test "$host_cpu" = ia64
; then
18033 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
18034 allow_undefined_flag
="-z nodefs"
18035 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"
18037 # Determine the default libpath from the value encoded in an
18038 # empty executable.
18039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18050 if ac_fn_c_try_link
"$LINENO"; then :
18052 lt_aix_libpath_sed
='
18053 /Import File Strings/,/^$/ {
18059 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18060 # Check for a 64-bit object if we didn't find anything.
18061 if test -z "$aix_libpath"; then
18062 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18065 rm -f core conftest.err conftest.
$ac_objext \
18066 conftest
$ac_exeext conftest.
$ac_ext
18067 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18069 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18070 # Warning - without using the other run time loading flags,
18071 # -berok will link without error, but may produce a broken library.
18072 no_undefined_flag
=' ${wl}-bernotok'
18073 allow_undefined_flag
=' ${wl}-berok'
18074 if test "$with_gnu_ld" = yes; then
18075 # We only use this code for GNU lds that support --whole-archive.
18076 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18078 # Exported symbols can be pulled into shared objects from archives
18079 whole_archive_flag_spec
='$convenience'
18081 archive_cmds_need_lc
=yes
18082 # This is similar to how AIX traditionally builds its shared libraries.
18083 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'
18091 # see comment about AmigaOS4 .so support
18092 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18093 archive_expsym_cmds
=''
18096 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)'
18097 hardcode_libdir_flag_spec
='-L$libdir'
18098 hardcode_minus_L
=yes
18104 export_dynamic_flag_spec
=-rdynamic
18107 cygwin
* | mingw
* | pw32
* | cegcc
*)
18108 # When not using gcc, we currently assume that we are using
18109 # Microsoft Visual C++.
18110 # hardcode_libdir_flag_spec is actually meaningless, as there is
18111 # no search path for DLLs.
18112 hardcode_libdir_flag_spec
=' '
18113 allow_undefined_flag
=unsupported
18114 # Tell ltmain to make .lib files, not .a files.
18116 # Tell ltmain to make .dll files, not .so files.
18118 # FIXME: Setting linknames here is a bad hack.
18119 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18120 # The linker will automatically build a .lib file if we build a DLL.
18121 old_archive_from_new_cmds
='true'
18122 # FIXME: Should let the user specify the lib program.
18123 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18124 fix_srcfile_path
='`cygpath -w "$srcfile"`'
18125 enable_shared_with_static_runtimes
=yes
18128 darwin
* | rhapsody
*)
18132 # Publish an arg to allow the user to select that Darwin host (and target)
18133 # libraries should be given install-names like @rpath/libfoo.dylib. This
18134 # requires that the user of the library then adds an 'rpath' to the DSO that
18136 # NOTE: there are defaults below, for systems that support rpaths. The person
18137 # configuring can override the defaults for any system version that supports
18138 # them - they are, however, forced off for system versions without support.
18139 # Check whether --enable-darwin-at-rpath was given.
18140 if test "${enable_darwin_at_rpath+set}" = set; then :
18141 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
18142 # This is not supported before macOS 10.5 / Darwin9.
18143 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
18144 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
18146 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
18147 enable_darwin_at_rpath
=no
18152 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
18153 # As above, before 10.5 / Darwin9 this does not work.
18154 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
18155 enable_darwin_at_rpath
=no
18158 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
18159 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
18160 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
18161 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
18163 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
18164 enable_darwin_at_rpath
=yes
18166 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
18167 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
18174 archive_cmds_need_lc
=no
18176 hardcode_automatic
=yes
18177 hardcode_shlibpath_var
=unsupported
18178 if test "$lt_cv_ld_force_load" = "yes"; then
18179 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\"`'
18181 whole_archive_flag_spec
=''
18183 link_all_deplibs
=yes
18184 allow_undefined_flag
="$_lt_dar_allow_undefined"
18185 case $cc_basename in
18186 ifort
*) _lt_dar_can_shared
=yes ;;
18187 *) _lt_dar_can_shared
=$GCC ;;
18189 if test "$_lt_dar_can_shared" = "yes"; then
18190 output_verbose_link_cmd
=func_echo_all
18191 _lt_install_name
='\$rpath/\$soname'
18192 if test "x$enable_darwin_at_rpath" = "xyes"; then
18193 _lt_install_name
='@rpath/\$soname'
18195 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
18196 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18197 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
18198 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}"
18207 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18208 hardcode_libdir_flag_spec
='-L$libdir'
18209 hardcode_shlibpath_var
=no
18212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18213 # support. Future versions do this automatically, but an explicit c++rt0.o
18214 # does not break anything, and helps significantly (at the cost of a little
18217 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18218 hardcode_libdir_flag_spec
='-R$libdir'
18219 hardcode_direct
=yes
18220 hardcode_shlibpath_var
=no
18223 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18225 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18226 hardcode_direct
=yes
18227 hardcode_minus_L
=yes
18228 hardcode_shlibpath_var
=no
18231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18232 freebsd
* | dragonfly
*)
18233 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18234 hardcode_libdir_flag_spec
='-R$libdir'
18235 hardcode_direct
=yes
18236 hardcode_shlibpath_var
=no
18240 if test "$GCC" = yes; then
18241 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'
18243 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'
18245 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18246 hardcode_libdir_separator
=:
18247 hardcode_direct
=yes
18249 # hardcode_minus_L: Not really in the search PATH,
18250 # but as the default location of the library.
18251 hardcode_minus_L
=yes
18252 export_dynamic_flag_spec
='${wl}-E'
18256 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18257 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18259 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18261 if test "$with_gnu_ld" = no
; then
18262 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18263 hardcode_libdir_flag_spec_ld
='+b $libdir'
18264 hardcode_libdir_separator
=:
18265 hardcode_direct
=yes
18266 hardcode_direct_absolute
=yes
18267 export_dynamic_flag_spec
='${wl}-E'
18268 # hardcode_minus_L: Not really in the search PATH,
18269 # but as the default location of the library.
18270 hardcode_minus_L
=yes
18275 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18278 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18281 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18284 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18290 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18293 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18297 # Older versions of the 11.00 compiler do not understand -b yet
18298 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18300 $as_echo_n "checking if $CC understands -b... " >&6; }
18301 if ${lt_cv_prog_compiler__b+:} false
; then :
18302 $as_echo_n "(cached) " >&6
18304 lt_cv_prog_compiler__b
=no
18305 save_LDFLAGS
="$LDFLAGS"
18306 LDFLAGS
="$LDFLAGS -b"
18307 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18308 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18309 # The linker can only warn and ignore the option if not recognized
18310 # So say no if there are warnings
18311 if test -s conftest.err
; then
18312 # Append any errors to the config.log.
18313 cat conftest.err
1>&5
18314 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18315 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18316 if diff conftest.exp conftest.er2
>/dev
/null
; then
18317 lt_cv_prog_compiler__b
=yes
18320 lt_cv_prog_compiler__b
=yes
18324 LDFLAGS
="$save_LDFLAGS"
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18328 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18330 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18331 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18333 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18339 if test "$with_gnu_ld" = no
; then
18340 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18341 hardcode_libdir_separator
=:
18346 hardcode_shlibpath_var
=no
18349 hardcode_direct
=yes
18350 hardcode_direct_absolute
=yes
18351 export_dynamic_flag_spec
='${wl}-E'
18353 # hardcode_minus_L: Not really in the search PATH,
18354 # but as the default location of the library.
18355 hardcode_minus_L
=yes
18361 irix5
* | irix6
* | nonstopux
*)
18362 if test "$GCC" = yes; then
18363 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'
18364 # Try to use the -exported_symbol ld option, if it does not
18365 # work, assume that -exports_file does not work either and
18366 # implicitly export all symbols.
18367 save_LDFLAGS
="$LDFLAGS"
18368 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h. */
18373 if ac_fn_c_try_link
"$LINENO"; then :
18374 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'
18377 rm -f core conftest.err conftest.
$ac_objext \
18378 conftest
$ac_exeext conftest.
$ac_ext
18379 LDFLAGS
="$save_LDFLAGS"
18381 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'
18382 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'
18384 archive_cmds_need_lc
='no'
18385 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18386 hardcode_libdir_separator
=:
18388 link_all_deplibs
=yes
18392 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18393 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18395 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18397 hardcode_libdir_flag_spec
='-R$libdir'
18398 hardcode_direct
=yes
18399 hardcode_shlibpath_var
=no
18403 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18404 hardcode_direct
=yes
18405 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18406 hardcode_libdir_separator
=:
18407 hardcode_shlibpath_var
=no
18414 if test -f /usr
/libexec
/ld.so
; then
18415 hardcode_direct
=yes
18416 hardcode_shlibpath_var
=no
18417 hardcode_direct_absolute
=yes
18418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18419 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18420 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18421 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18422 export_dynamic_flag_spec
='${wl}-E'
18425 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18426 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18427 hardcode_libdir_flag_spec
='-R$libdir'
18430 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18431 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18441 hardcode_libdir_flag_spec
='-L$libdir'
18442 hardcode_minus_L
=yes
18443 allow_undefined_flag
=unsupported
18444 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'
18445 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18449 if test "$GCC" = yes; then
18450 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18451 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'
18453 allow_undefined_flag
=' -expect_unresolved \*'
18454 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'
18456 archive_cmds_need_lc
='no'
18457 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18458 hardcode_libdir_separator
=:
18461 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18462 if test "$GCC" = yes; then
18463 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18464 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'
18465 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18467 allow_undefined_flag
=' -expect_unresolved \*'
18468 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'
18469 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~
18470 $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'
18472 # Both c and cxx compiler support -rpath directly
18473 hardcode_libdir_flag_spec
='-rpath $libdir'
18475 archive_cmds_need_lc
='no'
18476 hardcode_libdir_separator
=:
18480 no_undefined_flag
=' -z defs'
18481 if test "$GCC" = yes; then
18483 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18484 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18485 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18487 case `$CC -V 2>&1` in
18490 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18491 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18492 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18496 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18497 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18498 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18502 hardcode_libdir_flag_spec
='-R$libdir'
18503 hardcode_shlibpath_var
=no
18505 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18507 # The compiler driver will combine and reorder linker options,
18508 # but understands `-z linker_flag'. GCC discards it without `$wl',
18509 # but is careful enough not to reorder.
18510 # Supported since Solaris 2.6 (maybe 2.5.1?)
18511 if test "$GCC" = yes; then
18512 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18514 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18518 link_all_deplibs
=yes
18522 if test "x$host_vendor" = xsequent
; then
18523 # Use $CC to link under sequent, because it throws in some extra .o
18524 # files that make .init and .fini sections work.
18525 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18527 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18529 hardcode_libdir_flag_spec
='-L$libdir'
18530 hardcode_direct
=yes
18531 hardcode_minus_L
=yes
18532 hardcode_shlibpath_var
=no
18536 case $host_vendor in
18538 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18539 hardcode_direct
=yes # is this really true???
18542 ## LD is ld it makes a PLAMLIB
18543 ## CC just makes a GrossModule.
18544 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18545 reload_cmds
='$CC -r -o $output$reload_objs'
18549 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18550 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18553 runpath_var
='LD_RUN_PATH'
18554 hardcode_shlibpath_var
=no
18558 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18559 hardcode_shlibpath_var
=no
18560 export_dynamic_flag_spec
='-Bexport'
18564 if test -d /usr
/nec
; then
18565 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18566 hardcode_shlibpath_var
=no
18567 runpath_var
=LD_RUN_PATH
18568 hardcode_runpath_var
=yes
18573 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18574 no_undefined_flag
='${wl}-z,text'
18575 archive_cmds_need_lc
=no
18576 hardcode_shlibpath_var
=no
18577 runpath_var
='LD_RUN_PATH'
18579 if test "$GCC" = yes; then
18580 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18581 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18583 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18584 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18588 sysv5
* | sco3.2v5
* | sco5v6
*)
18589 # Note: We can NOT use -z defs as we might desire, because we do not
18590 # link with -lc, and that would cause any symbols used from libc to
18591 # always be unresolved, which means just about no library would
18592 # ever link correctly. If we're not using GNU ld we use -z text
18593 # though, which does catch some bad symbols but isn't as heavy-handed
18595 no_undefined_flag
='${wl}-z,text'
18596 allow_undefined_flag
='${wl}-z,nodefs'
18597 archive_cmds_need_lc
=no
18598 hardcode_shlibpath_var
=no
18599 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18600 hardcode_libdir_separator
=':'
18601 link_all_deplibs
=yes
18602 export_dynamic_flag_spec
='${wl}-Bexport'
18603 runpath_var
='LD_RUN_PATH'
18605 if test "$GCC" = yes; then
18606 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18607 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18609 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18610 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18615 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18616 hardcode_libdir_flag_spec
='-L$libdir'
18617 hardcode_shlibpath_var
=no
18625 if test x
$host_vendor = xsni
; then
18627 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18628 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18635 $as_echo "$ld_shlibs" >&6; }
18636 test "$ld_shlibs" = no
&& can_build_shared
=no
18638 with_gnu_ld
=$with_gnu_ld
18655 # Do we need to explicitly link libc?
18657 case "x$archive_cmds_need_lc" in
18659 # Assume -lc should be added
18660 archive_cmds_need_lc
=yes
18662 if test "$enable_shared" = yes && test "$GCC" = yes; then
18663 case $archive_cmds in
18665 # FIXME: we may have to deal with multi-command sequences.
18668 # Test whether the compiler implicitly links with -lc since on some
18669 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18670 # to ld, don't add -lc before -lgcc.
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18672 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18673 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18674 $as_echo_n "(cached) " >&6
18677 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18680 (eval $ac_compile) 2>&5
18682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18683 test $ac_status = 0; } 2>conftest.err
; then
18686 libobjs
=conftest.
$ac_objext
18688 wl
=$lt_prog_compiler_wl
18689 pic_flag
=$lt_prog_compiler_pic
18695 lt_save_allow_undefined_flag
=$allow_undefined_flag
18696 allow_undefined_flag
=
18697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18698 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18701 test $ac_status = 0; }
18703 lt_cv_archive_cmds_need_lc
=no
18705 lt_cv_archive_cmds_need_lc
=yes
18707 allow_undefined_flag
=$lt_save_allow_undefined_flag
18709 cat conftest.err
1>&5
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18715 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18716 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18880 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18882 if test "$GCC" = yes; then
18884 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18885 *) lt_awk_arg
="/^libraries:/" ;;
18888 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18889 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18891 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18892 case $lt_search_path_spec in
18894 # if the path contains ";" then we assume it to be the separator
18895 # otherwise default to the standard path separator (i.e. ":") - it is
18896 # assumed that no part of a normal pathname contains ";" but that should
18897 # okay in the real world where ";" in dirpaths is itself problematic.
18898 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18901 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18904 # Ok, now we have the path, separated by spaces, we can step through it
18905 # and add multilib dir if necessary.
18906 lt_tmp_lt_search_path_spec
=
18907 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18908 for lt_sys_path
in $lt_search_path_spec; do
18909 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18910 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18912 test -d "$lt_sys_path" && \
18913 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18916 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18917 BEGIN {RS=" "; FS="/|\n";} {
18920 for (lt_i = NF; lt_i > 0; lt_i--) {
18921 if ($lt_i != "" && $lt_i != ".") {
18922 if ($lt_i == "..") {
18925 if (lt_count == 0) {
18926 lt_foo="/" $lt_i lt_foo;
18933 if (lt_foo != "") { lt_freq[lt_foo]++; }
18934 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18936 # AWK program above erroneously prepends '/' to C:/dos/paths
18939 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18940 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18942 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18944 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18946 library_names_spec
=
18947 libname_spec
='lib$name'
18951 postuninstall_cmds
=
18955 shlibpath_overrides_runpath
=unknown
18957 dynamic_linker
="$host_os ld.so"
18958 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18959 need_lib_prefix
=unknown
18960 hardcode_into_libs
=no
18962 # when you set need_version to no, make sure it does not cause -set_version
18963 # flags to be left without arguments
18964 need_version
=unknown
18969 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18970 shlibpath_var
=LIBPATH
18972 # AIX 3 has no versioning support, so we append a major version to the name.
18973 soname_spec
='${libname}${release}${shared_ext}$major'
18980 hardcode_into_libs
=yes
18981 if test "$host_cpu" = ia64
; then
18982 # AIX 5 supports IA64
18983 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18984 shlibpath_var
=LD_LIBRARY_PATH
18986 # With GCC up to 2.95.x, collect2 would create an import file
18987 # for dependence libraries. The import file would start with
18988 # the line `#! .'. This would cause the generated library to
18989 # depend on `.', always an invalid library. This was fixed in
18990 # development snapshots of GCC prior to 3.0.
18992 aix4 | aix4.
[01] | aix4.
[01].
*)
18993 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18995 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18998 can_build_shared
=no
19002 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19003 # soname into executable. Probably we can add versioning support to
19004 # collect2, so additional links can be useful in future.
19005 if test "$aix_use_runtimelinking" = yes; then
19006 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19007 # instead of lib<name>.a to let people know that these are not
19008 # typical AIX shared libraries.
19009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19011 # We preserve .a as extension for shared libraries through AIX4.2
19012 # and later when we are not doing run time linking.
19013 library_names_spec
='${libname}${release}.a $libname.a'
19014 soname_spec
='${libname}${release}${shared_ext}$major'
19016 shlibpath_var
=LIBPATH
19023 # Since July 2007 AmigaOS4 officially supports .so libraries.
19024 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19028 library_names_spec
='$libname.ixlibrary $libname.a'
19029 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19030 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'
19036 library_names_spec
='${libname}${shared_ext}'
19037 dynamic_linker
="$host_os ld.so"
19038 shlibpath_var
=LIBRARY_PATH
19044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19045 soname_spec
='${libname}${release}${shared_ext}$major'
19046 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19047 shlibpath_var
=LD_LIBRARY_PATH
19048 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19049 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19050 # the default ld.so.conf also contains /usr/contrib/lib and
19051 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19052 # libtool to hard-code these into programs
19055 cygwin
* | mingw
* | pw32
* | cegcc
*)
19056 version_type
=windows
19061 case $GCC,$host_os in
19062 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19063 library_names_spec
='$libname.dll.a'
19064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19065 postinstall_cmds
='base_file=`basename \${file}`~
19066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19067 dldir=$destdir/`dirname \$dlpath`~
19068 test -d \$dldir || mkdir -p \$dldir~
19069 $install_prog $dir/$dlname \$dldir/$dlname~
19070 chmod a+x \$dldir/$dlname~
19071 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19072 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19074 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19075 dlpath=$dir/\$dldll~
19077 shlibpath_overrides_runpath
=yes
19081 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19082 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19084 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
19087 # MinGW DLLs use traditional 'lib' prefix
19088 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19091 # pw32 DLLs use 'pw' prefix rather than 'lib'
19092 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19098 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19101 dynamic_linker
='Win32 ld.exe'
19102 # FIXME: first we should search . and the directory the executable is in
19106 darwin
* | rhapsody
*)
19107 dynamic_linker
="$host_os dyld"
19108 version_type
=darwin
19111 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19112 soname_spec
='${libname}${release}${major}$shared_ext'
19113 shlibpath_overrides_runpath
=yes
19114 shlibpath_var
=DYLD_LIBRARY_PATH
19115 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19117 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
19118 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19126 soname_spec
='${libname}${release}${shared_ext}$major'
19127 shlibpath_var
=LD_LIBRARY_PATH
19130 freebsd
* | dragonfly
*)
19131 # DragonFly does not have aout. When/if they implement a new
19132 # versioning mechanism, adjust this.
19133 if test -x /usr
/bin
/objformat
; then
19134 objformat
=`/usr/bin/objformat`
19137 freebsd
[23].
*) objformat
=aout
;;
19138 *) objformat
=elf
;;
19141 version_type
=freebsd-
$objformat
19142 case $version_type in
19144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19149 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19153 shlibpath_var
=LD_LIBRARY_PATH
19156 shlibpath_overrides_runpath
=yes
19158 freebsd3.
[01]* | freebsdelf3.
[01]*)
19159 shlibpath_overrides_runpath
=yes
19160 hardcode_into_libs
=yes
19162 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19163 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19164 shlibpath_overrides_runpath
=no
19165 hardcode_into_libs
=yes
19167 *) # from 4.6 on, and DragonFly
19168 shlibpath_overrides_runpath
=yes
19169 hardcode_into_libs
=yes
19178 dynamic_linker
="$host_os runtime_loader"
19179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19180 soname_spec
='${libname}${release}${shared_ext}$major'
19181 shlibpath_var
=LIBRARY_PATH
19182 shlibpath_overrides_runpath
=yes
19183 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19184 hardcode_into_libs
=yes
19187 hpux9
* | hpux10
* | hpux11
*)
19188 # Give a soname corresponding to the major version so that dld.sl refuses to
19189 # link against other versions.
19196 hardcode_into_libs
=yes
19197 dynamic_linker
="$host_os dld.so"
19198 shlibpath_var
=LD_LIBRARY_PATH
19199 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19201 soname_spec
='${libname}${release}${shared_ext}$major'
19202 if test "X$HPUX_IA64_MODE" = X32
; then
19203 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19205 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19207 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19211 hardcode_into_libs
=yes
19212 dynamic_linker
="$host_os dld.sl"
19213 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19214 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19216 soname_spec
='${libname}${release}${shared_ext}$major'
19217 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19218 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19222 dynamic_linker
="$host_os dld.sl"
19223 shlibpath_var
=SHLIB_PATH
19224 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19226 soname_spec
='${libname}${release}${shared_ext}$major'
19229 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19230 postinstall_cmds
='chmod 555 $lib'
19231 # or fails outright, so override atomically:
19232 install_override_mode
=555
19239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19240 soname_spec
='${libname}${release}${shared_ext}$major'
19241 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19242 shlibpath_var
=LD_LIBRARY_PATH
19243 shlibpath_overrides_runpath
=no
19244 hardcode_into_libs
=yes
19247 irix5
* | irix6
* | nonstopux
*)
19249 nonstopux
*) version_type
=nonstopux
;;
19251 if test "$lt_cv_prog_gnu_ld" = yes; then
19259 soname_spec
='${libname}${release}${shared_ext}$major'
19260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19262 irix5
* | nonstopux
*)
19263 libsuff
= shlibsuff
=
19266 case $LD in # libtool.m4 will add one of these switches to LD
19267 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19268 libsuff
= shlibsuff
= libmagic
=32-bit;;
19269 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19270 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19271 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19272 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19273 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19277 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19278 shlibpath_overrides_runpath
=no
19279 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19280 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19281 hardcode_into_libs
=yes
19284 # No shared lib support for Linux oldld, aout, or coff.
19285 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19289 # This must be Linux ELF.
19291 # uclinux* changes (here and below) have been submitted to the libtool
19292 # project, but have not yet been accepted: they are GCC-local changes
19293 # for the time being. (See
19294 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19295 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
19299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300 soname_spec
='${libname}${release}${shared_ext}$major'
19301 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19302 shlibpath_var
=LD_LIBRARY_PATH
19303 shlibpath_overrides_runpath
=no
19305 # Some binutils ld are patched to set DT_RUNPATH
19306 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19307 $as_echo_n "(cached) " >&6
19309 lt_cv_shlibpath_overrides_runpath
=no
19310 save_LDFLAGS
=$LDFLAGS
19311 save_libdir
=$libdir
19312 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19313 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19315 /* end confdefs.h. */
19325 if ac_fn_c_try_link
"$LINENO"; then :
19326 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19327 lt_cv_shlibpath_overrides_runpath
=yes
19330 rm -f core conftest.err conftest.
$ac_objext \
19331 conftest
$ac_exeext conftest.
$ac_ext
19332 LDFLAGS
=$save_LDFLAGS
19333 libdir
=$save_libdir
19337 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19339 # This implies no fast_install, which is unacceptable.
19340 # Some rework will be needed to allow for fast_install
19341 # before this can be enabled.
19342 hardcode_into_libs
=yes
19344 # Append ld.so.conf contents to the search path
19345 if test -f /etc
/ld.so.conf
; then
19346 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' ' '`
19347 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19350 # We used to test for /lib/ld.so.1 and disable shared libraries on
19351 # powerpc, because MkLinux only supported shared libraries with the
19352 # GNU dynamic linker. Since this was broken with cross compilers,
19353 # most powerpc-linux boxes support dynamic linking these days and
19354 # people can always --disable-shared, the test was removed, and we
19355 # assume the GNU/Linux dynamic linker is in use.
19356 dynamic_linker
='GNU/Linux ld.so'
19363 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19365 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19366 dynamic_linker
='NetBSD (a.out) ld.so'
19368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19369 soname_spec
='${libname}${release}${shared_ext}$major'
19370 dynamic_linker
='NetBSD ld.elf_so'
19372 shlibpath_var
=LD_LIBRARY_PATH
19373 shlibpath_overrides_runpath
=yes
19374 hardcode_into_libs
=yes
19379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19380 shlibpath_var
=LD_LIBRARY_PATH
19381 shlibpath_overrides_runpath
=yes
19388 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19389 soname_spec
='${libname}${release}${shared_ext}$major'
19390 shlibpath_var
=LD_LIBRARY_PATH
19391 shlibpath_overrides_runpath
=no
19392 hardcode_into_libs
=yes
19393 dynamic_linker
='ldqnx.so'
19398 sys_lib_dlsearch_path_spec
="/usr/lib"
19400 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19402 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19403 *) need_version
=no
;;
19405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19406 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19407 shlibpath_var
=LD_LIBRARY_PATH
19408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19410 openbsd2.
[89] | openbsd2.
[89].
*)
19411 shlibpath_overrides_runpath
=no
19414 shlibpath_overrides_runpath
=yes
19418 shlibpath_overrides_runpath
=yes
19423 libname_spec
='$name'
19426 library_names_spec
='$libname${shared_ext} $libname.a'
19427 dynamic_linker
='OS/2 ld.exe'
19428 shlibpath_var
=LIBPATH
19431 osf3
* | osf4
* | osf5
*)
19435 soname_spec
='${libname}${release}${shared_ext}$major'
19436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19437 shlibpath_var
=LD_LIBRARY_PATH
19438 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19439 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19451 soname_spec
='${libname}${release}${shared_ext}$major'
19452 shlibpath_var
=LD_LIBRARY_PATH
19453 shlibpath_overrides_runpath
=yes
19454 hardcode_into_libs
=yes
19455 # ldd complains unless libraries are executable
19456 postinstall_cmds
='chmod +x $lib'
19461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19462 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19463 shlibpath_var
=LD_LIBRARY_PATH
19464 shlibpath_overrides_runpath
=yes
19465 if test "$with_gnu_ld" = yes; then
19473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19474 soname_spec
='${libname}${release}${shared_ext}$major'
19475 shlibpath_var
=LD_LIBRARY_PATH
19476 case $host_vendor in
19478 shlibpath_overrides_runpath
=no
19480 runpath_var
=LD_RUN_PATH
19488 shlibpath_overrides_runpath
=no
19489 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19495 if test -d /usr
/nec
;then
19497 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19498 soname_spec
='$libname${shared_ext}.$major'
19499 shlibpath_var
=LD_LIBRARY_PATH
19503 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19504 version_type
=freebsd-elf
19507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19508 soname_spec
='${libname}${release}${shared_ext}$major'
19509 shlibpath_var
=LD_LIBRARY_PATH
19510 shlibpath_overrides_runpath
=yes
19511 hardcode_into_libs
=yes
19512 if test "$with_gnu_ld" = yes; then
19513 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19515 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19518 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19522 sys_lib_dlsearch_path_spec
='/usr/lib'
19526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19531 shlibpath_var
=LD_LIBRARY_PATH
19532 shlibpath_overrides_runpath
=no
19533 hardcode_into_libs
=yes
19538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19539 soname_spec
='${libname}${release}${shared_ext}$major'
19540 shlibpath_var
=LD_LIBRARY_PATH
19543 # Shared libraries for VwWorks, >= 7 only at this stage
19544 # and (fpic) still incompatible with "large" code models
19545 # in a few configurations. Only for RTP mode in any case,
19546 # and upon explicit request at configure time.
19549 case ${with_multisubdir}-${enable_shared} in
19556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557 soname_spec
='${libname}${release}${shared_ext}$major'
19558 dynamic_linker
="$host_os module_loader"
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19567 $as_echo "$dynamic_linker" >&6; }
19568 test "$dynamic_linker" = no
&& can_build_shared
=no
19570 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19571 if test "$GCC" = yes; then
19572 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19575 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19576 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19578 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19579 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19674 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19676 if test -n "$hardcode_libdir_flag_spec" ||
19677 test -n "$runpath_var" ||
19678 test "X$hardcode_automatic" = "Xyes" ; then
19680 # We can hardcode non-existent directories.
19681 if test "$hardcode_direct" != no
&&
19682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19683 # have to relink, otherwise we might link with an installed library
19684 # when we should be linking with a yet-to-be-installed one
19685 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19686 test "$hardcode_minus_L" != no
; then
19687 # Linking always hardcodes the temporary library directory.
19688 hardcode_action
=relink
19690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19691 hardcode_action
=immediate
19694 # We cannot hardcode anything, or else we can only hardcode existing
19696 hardcode_action
=unsupported
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19699 $as_echo "$hardcode_action" >&6; }
19701 if test "$hardcode_action" = relink ||
19702 test "$inherit_rpath" = yes; then
19703 # Fast installation is not supported
19704 enable_fast_install
=no
19705 elif test "$shlibpath_overrides_runpath" = yes ||
19706 test "$enable_shared" = no
; then
19707 # Fast installation is not necessary
19708 enable_fast_install
=needless
19716 if test "x$enable_dlopen" != xyes
; then
19717 enable_dlopen
=unknown
19718 enable_dlopen_self
=unknown
19719 enable_dlopen_self_static
=unknown
19726 lt_cv_dlopen
="load_add_on"
19728 lt_cv_dlopen_self
=yes
19731 mingw
* | pw32
* | cegcc
*)
19732 lt_cv_dlopen
="LoadLibrary"
19737 lt_cv_dlopen
="dlopen"
19742 # if libdl is installed we need to link against it
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19744 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19745 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19746 $as_echo_n "(cached) " >&6
19748 ac_check_lib_save_LIBS
=$LIBS
19750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h. */
19753 /* Override any GCC internal prototype to avoid an error.
19754 Use char because int might match the return type of a GCC
19755 builtin and then its argument prototype would still apply. */
19768 if ac_fn_c_try_link
"$LINENO"; then :
19769 ac_cv_lib_dl_dlopen
=yes
19771 ac_cv_lib_dl_dlopen
=no
19773 rm -f core conftest.err conftest.
$ac_objext \
19774 conftest
$ac_exeext conftest.
$ac_ext
19775 LIBS
=$ac_check_lib_save_LIBS
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19778 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19779 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19780 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19783 lt_cv_dlopen
="dyld"
19785 lt_cv_dlopen_self
=yes
19792 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19793 if test "x$ac_cv_func_shl_load" = xyes
; then :
19794 lt_cv_dlopen
="shl_load"
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19797 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19798 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19799 $as_echo_n "(cached) " >&6
19801 ac_check_lib_save_LIBS
=$LIBS
19803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19804 /* end confdefs.h. */
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19816 return shl_load ();
19821 if ac_fn_c_try_link
"$LINENO"; then :
19822 ac_cv_lib_dld_shl_load
=yes
19824 ac_cv_lib_dld_shl_load
=no
19826 rm -f core conftest.err conftest.
$ac_objext \
19827 conftest
$ac_exeext conftest.
$ac_ext
19828 LIBS
=$ac_check_lib_save_LIBS
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19831 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19832 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19833 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19835 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19836 if test "x$ac_cv_func_dlopen" = xyes
; then :
19837 lt_cv_dlopen
="dlopen"
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19840 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19841 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19842 $as_echo_n "(cached) " >&6
19844 ac_check_lib_save_LIBS
=$LIBS
19846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h. */
19849 /* Override any GCC internal prototype to avoid an error.
19850 Use char because int might match the return type of a GCC
19851 builtin and then its argument prototype would still apply. */
19864 if ac_fn_c_try_link
"$LINENO"; then :
19865 ac_cv_lib_dl_dlopen
=yes
19867 ac_cv_lib_dl_dlopen
=no
19869 rm -f core conftest.err conftest.
$ac_objext \
19870 conftest
$ac_exeext conftest.
$ac_ext
19871 LIBS
=$ac_check_lib_save_LIBS
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19874 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19875 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19876 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19879 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19880 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19881 $as_echo_n "(cached) " >&6
19883 ac_check_lib_save_LIBS
=$LIBS
19884 LIBS
="-lsvld $LIBS"
19885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19886 /* end confdefs.h. */
19888 /* Override any GCC internal prototype to avoid an error.
19889 Use char because int might match the return type of a GCC
19890 builtin and then its argument prototype would still apply. */
19903 if ac_fn_c_try_link
"$LINENO"; then :
19904 ac_cv_lib_svld_dlopen
=yes
19906 ac_cv_lib_svld_dlopen
=no
19908 rm -f core conftest.err conftest.
$ac_objext \
19909 conftest
$ac_exeext conftest.
$ac_ext
19910 LIBS
=$ac_check_lib_save_LIBS
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19913 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19914 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19915 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19918 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19919 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19920 $as_echo_n "(cached) " >&6
19922 ac_check_lib_save_LIBS
=$LIBS
19924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19925 /* end confdefs.h. */
19927 /* Override any GCC internal prototype to avoid an error.
19928 Use char because int might match the return type of a GCC
19929 builtin and then its argument prototype would still apply. */
19937 return dld_link ();
19942 if ac_fn_c_try_link
"$LINENO"; then :
19943 ac_cv_lib_dld_dld_link
=yes
19945 ac_cv_lib_dld_dld_link
=no
19947 rm -f core conftest.err conftest.
$ac_objext \
19948 conftest
$ac_exeext conftest.
$ac_ext
19949 LIBS
=$ac_check_lib_save_LIBS
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19952 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19953 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19954 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19975 if test "x$lt_cv_dlopen" != xno
; then
19981 case $lt_cv_dlopen in
19983 save_CPPFLAGS
="$CPPFLAGS"
19984 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19986 save_LDFLAGS
="$LDFLAGS"
19987 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19990 LIBS
="$lt_cv_dlopen_libs $LIBS"
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19993 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19994 if ${lt_cv_dlopen_self+:} false
; then :
19995 $as_echo_n "(cached) " >&6
19997 if test "$cross_compiling" = yes; then :
19998 lt_cv_dlopen_self
=cross
20000 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20001 lt_status
=$lt_dlunknown
20002 cat > conftest.
$ac_ext <<_LT_EOF
20003 #line 19995 "configure"
20004 #include "confdefs.h"
20013 # define LT_DLGLOBAL RTLD_GLOBAL
20016 # define LT_DLGLOBAL DL_GLOBAL
20018 # define LT_DLGLOBAL 0
20022 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20023 find out it does not work in some platform. */
20024 #ifndef LT_DLLAZY_OR_NOW
20026 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20029 # define LT_DLLAZY_OR_NOW DL_LAZY
20032 # define LT_DLLAZY_OR_NOW RTLD_NOW
20035 # define LT_DLLAZY_OR_NOW DL_NOW
20037 # define LT_DLLAZY_OR_NOW 0
20044 /* When -fvisbility=hidden is used, assume the code has been annotated
20045 correspondingly for the symbols needed. */
20046 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20047 void fnord () __attribute__((visibility("default")));
20050 void fnord () { int i=42; }
20053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20054 int status = $lt_dlunknown;
20058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20061 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20062 else puts (dlerror ());
20064 /* dlclose (self); */
20072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20073 (eval $ac_link) 2>&5
20075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20076 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20077 (.
/conftest
; exit; ) >&5 2>/dev
/null
20079 case x
$lt_status in
20080 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
20081 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
20082 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
20085 # compilation failed
20086 lt_cv_dlopen_self
=no
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20094 $as_echo "$lt_cv_dlopen_self" >&6; }
20096 if test "x$lt_cv_dlopen_self" = xyes
; then
20097 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20099 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20100 if ${lt_cv_dlopen_self_static+:} false
; then :
20101 $as_echo_n "(cached) " >&6
20103 if test "$cross_compiling" = yes; then :
20104 lt_cv_dlopen_self_static
=cross
20106 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20107 lt_status
=$lt_dlunknown
20108 cat > conftest.
$ac_ext <<_LT_EOF
20109 #line 20101 "configure"
20110 #include "confdefs.h"
20119 # define LT_DLGLOBAL RTLD_GLOBAL
20122 # define LT_DLGLOBAL DL_GLOBAL
20124 # define LT_DLGLOBAL 0
20128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20129 find out it does not work in some platform. */
20130 #ifndef LT_DLLAZY_OR_NOW
20132 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20135 # define LT_DLLAZY_OR_NOW DL_LAZY
20138 # define LT_DLLAZY_OR_NOW RTLD_NOW
20141 # define LT_DLLAZY_OR_NOW DL_NOW
20143 # define LT_DLLAZY_OR_NOW 0
20150 /* When -fvisbility=hidden is used, assume the code has been annotated
20151 correspondingly for the symbols needed. */
20152 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20153 void fnord () __attribute__((visibility("default")));
20156 void fnord () { int i=42; }
20159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20160 int status = $lt_dlunknown;
20164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20168 else puts (dlerror ());
20170 /* dlclose (self); */
20178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20179 (eval $ac_link) 2>&5
20181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20182 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20183 (.
/conftest
; exit; ) >&5 2>/dev
/null
20185 case x
$lt_status in
20186 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20187 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20188 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20191 # compilation failed
20192 lt_cv_dlopen_self_static
=no
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20200 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20203 CPPFLAGS
="$save_CPPFLAGS"
20204 LDFLAGS
="$save_LDFLAGS"
20209 case $lt_cv_dlopen_self in
20210 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20211 *) enable_dlopen_self
=unknown
;;
20214 case $lt_cv_dlopen_self_static in
20215 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20216 *) enable_dlopen_self_static
=unknown
;;
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20239 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20240 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20241 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20242 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20244 $as_echo "yes" >&6; }
20246 # FIXME - insert some real tests, host_os isn't really good enough
20249 if test -n "$STRIP" ; then
20250 striplib
="$STRIP -x"
20251 old_striplib
="$STRIP -S"
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20253 $as_echo "yes" >&6; }
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20256 $as_echo "no" >&6; }
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20261 $as_echo "no" >&6; }
20277 # Report which library types will actually be built
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20279 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20281 $as_echo "$can_build_shared" >&6; }
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20284 $as_echo_n "checking whether to build shared libraries... " >&6; }
20285 test "$can_build_shared" = "no" && enable_shared
=no
20287 # On AIX, shared libraries and static libraries use the same namespace, and
20288 # are all built from PIC.
20291 test "$enable_shared" = yes && enable_static
=no
20292 if test -n "$RANLIB"; then
20293 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20294 postinstall_cmds
='$RANLIB $lib'
20299 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20300 test "$enable_shared" = yes && enable_static
=no
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20305 $as_echo "$enable_shared" >&6; }
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20308 $as_echo_n "checking whether to build static libraries... " >&6; }
20309 # Make sure either enable_shared or enable_static is yes.
20310 test "$enable_shared" = yes || enable_static
=yes
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20312 $as_echo "$enable_static" >&6; }
20319 ac_cpp
='$CXXCPP $CPPFLAGS'
20320 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20321 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20322 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20326 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20327 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20328 (test "X$CXX" != "Xg++"))) ; then
20330 ac_cpp
='$CXXCPP $CPPFLAGS'
20331 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20332 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20333 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20335 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20336 if test -z "$CXXCPP"; then
20337 if ${ac_cv_prog_CXXCPP+:} false
; then :
20338 $as_echo_n "(cached) " >&6
20340 # Double quotes because CXXCPP needs to be expanded
20341 for CXXCPP
in "$CXX -E" "/lib/cpp"
20343 ac_preproc_ok
=false
20344 for ac_cxx_preproc_warn_flag
in '' yes
20346 # Use a header file that comes with gcc, so configuring glibc
20347 # with a fresh cross-compiler works.
20348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20349 # <limits.h> exists even on freestanding compilers.
20350 # On the NeXT, cc -E runs the code through the compiler's parser,
20351 # not just through cpp. "Syntax error" is here to catch this case.
20352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20355 # include <limits.h>
20357 # include <assert.h>
20361 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20364 # Broken: fails on valid input.
20367 rm -f conftest.err conftest.i conftest.
$ac_ext
20369 # OK, works on sane cases. Now check whether nonexistent headers
20370 # can be detected and how.
20371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20372 /* end confdefs.h. */
20373 #include <ac_nonexistent.h>
20375 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20376 # Broken: success on invalid input.
20379 # Passes both tests.
20383 rm -f conftest.err conftest.i conftest.
$ac_ext
20386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20387 rm -f conftest.i conftest.err conftest.
$ac_ext
20388 if $ac_preproc_ok; then :
20393 ac_cv_prog_CXXCPP
=$CXXCPP
20396 CXXCPP
=$ac_cv_prog_CXXCPP
20398 ac_cv_prog_CXXCPP
=$CXXCPP
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20401 $as_echo "$CXXCPP" >&6; }
20402 ac_preproc_ok
=false
20403 for ac_cxx_preproc_warn_flag
in '' yes
20405 # Use a header file that comes with gcc, so configuring glibc
20406 # with a fresh cross-compiler works.
20407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20408 # <limits.h> exists even on freestanding compilers.
20409 # On the NeXT, cc -E runs the code through the compiler's parser,
20410 # not just through cpp. "Syntax error" is here to catch this case.
20411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h. */
20414 # include <limits.h>
20416 # include <assert.h>
20420 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20423 # Broken: fails on valid input.
20426 rm -f conftest.err conftest.i conftest.
$ac_ext
20428 # OK, works on sane cases. Now check whether nonexistent headers
20429 # can be detected and how.
20430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20431 /* end confdefs.h. */
20432 #include <ac_nonexistent.h>
20434 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20435 # Broken: success on invalid input.
20438 # Passes both tests.
20442 rm -f conftest.err conftest.i conftest.
$ac_ext
20445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20446 rm -f conftest.i conftest.err conftest.
$ac_ext
20447 if $ac_preproc_ok; then :
20450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20452 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20453 See \`config.log' for more details" "$LINENO" 5; }
20457 ac_cpp
='$CXXCPP $CPPFLAGS'
20458 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20459 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20460 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20463 _lt_caught_CXX_error
=yes
20467 ac_cpp
='$CXXCPP $CPPFLAGS'
20468 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20472 archive_cmds_need_lc_CXX
=no
20473 allow_undefined_flag_CXX
=
20474 always_export_symbols_CXX
=no
20475 archive_expsym_cmds_CXX
=
20476 compiler_needs_object_CXX
=no
20477 export_dynamic_flag_spec_CXX
=
20478 hardcode_direct_CXX
=no
20479 hardcode_direct_absolute_CXX
=no
20480 hardcode_libdir_flag_spec_CXX
=
20481 hardcode_libdir_flag_spec_ld_CXX
=
20482 hardcode_libdir_separator_CXX
=
20483 hardcode_minus_L_CXX
=no
20484 hardcode_shlibpath_var_CXX
=unsupported
20485 hardcode_automatic_CXX
=no
20486 inherit_rpath_CXX
=no
20488 module_expsym_cmds_CXX
=
20489 link_all_deplibs_CXX
=unknown
20490 old_archive_cmds_CXX
=$old_archive_cmds
20491 reload_flag_CXX
=$reload_flag
20492 reload_cmds_CXX
=$reload_cmds
20493 no_undefined_flag_CXX
=
20494 whole_archive_flag_spec_CXX
=
20495 enable_shared_with_static_runtimes_CXX
=no
20497 # Source file extension for C++ test sources.
20500 # Object file extension for compiled C++ test sources.
20504 # No sense in running all these tests if we already determined that
20505 # the CXX compiler isn't working. Some variables (like enable_shared)
20506 # are currently assumed to apply to all compilers on this platform,
20507 # and will be corrupted by setting them based on a non-working compiler.
20508 if test "$_lt_caught_CXX_error" != yes; then
20509 # Code to be used in simple compile tests
20510 lt_simple_compile_test_code
="int some_variable = 0;"
20512 # Code to be used in simple link tests
20513 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20515 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20522 # If no C compiler was specified, use CC.
20525 # If no C compiler flags were specified, use CFLAGS.
20526 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20528 # Allow CC to be a program name with arguments.
20532 # save warnings/boilerplate of simple test code
20533 ac_outfile
=conftest.
$ac_objext
20534 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20535 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20536 _lt_compiler_boilerplate
=`cat conftest.err`
20539 ac_outfile
=conftest.
$ac_objext
20540 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20541 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20542 _lt_linker_boilerplate
=`cat conftest.err`
20546 # Allow CC to be a program name with arguments.
20551 lt_save_with_gnu_ld
=$with_gnu_ld
20552 lt_save_path_LD
=$lt_cv_path_LD
20553 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20554 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20556 $as_unset lt_cv_prog_gnu_ld
20558 if test -n "${lt_cv_path_LDCXX+set}"; then
20559 lt_cv_path_LD
=$lt_cv_path_LDCXX
20561 $as_unset lt_cv_path_LD
20563 test -z "${LDCXX+set}" || LD
=$LDCXX
20567 for cc_temp
in $compiler""; do
20569 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20570 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20575 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20578 if test -n "$compiler"; then
20579 # We don't want -fno-exception when compiling C++ code, so set the
20580 # no_builtin_flag separately
20581 if test "$GXX" = yes; then
20582 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20584 lt_prog_compiler_no_builtin_flag_CXX
=
20587 if test "$GXX" = yes; then
20588 # Set up default GNU C++ configuration
20592 # Check whether --with-gnu-ld was given.
20593 if test "${with_gnu_ld+set}" = set; then :
20594 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20600 if test "$GCC" = yes; then
20601 # Check if gcc -print-prog-name=ld gives a path.
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20603 $as_echo_n "checking for ld used by $CC... " >&6; }
20606 # gcc leaves a trailing carriage return which upsets mingw
20607 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20609 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20612 # Accept absolute paths.
20614 re_direlt
='/[^/][^/]*/\.\./'
20615 # Canonicalize the pathname of ld
20616 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20617 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20618 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20620 test -z "$LD" && LD
="$ac_prog"
20623 # If it fails, then pretend we aren't using GCC.
20627 # If it is relative, then search for the first ld in PATH.
20628 with_gnu_ld
=unknown
20631 elif test "$with_gnu_ld" = yes; then
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20633 $as_echo_n "checking for GNU ld... " >&6; }
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20636 $as_echo_n "checking for non-GNU ld... " >&6; }
20638 if ${lt_cv_path_LD+:} false
; then :
20639 $as_echo_n "(cached) " >&6
20641 if test -z "$LD"; then
20642 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20643 for ac_dir
in $PATH; do
20645 test -z "$ac_dir" && ac_dir
=.
20646 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20647 lt_cv_path_LD
="$ac_dir/$ac_prog"
20648 # Check to see if the program is GNU ld. I'd rather use --version,
20649 # but apparently some variants of GNU ld only accept -v.
20650 # Break only if it was the GNU/non-GNU ld that we prefer.
20651 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20652 *GNU
* |
*'with BFD'*)
20653 test "$with_gnu_ld" != no
&& break
20656 test "$with_gnu_ld" != yes && break
20663 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20667 LD
="$lt_cv_path_LD"
20668 if test -n "$LD"; then
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20670 $as_echo "$LD" >&6; }
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20673 $as_echo "no" >&6; }
20675 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20677 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20678 if ${lt_cv_prog_gnu_ld+:} false
; then :
20679 $as_echo_n "(cached) " >&6
20681 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20682 case `$LD -v 2>&1 </dev/null` in
20683 *GNU
* |
*'with BFD'*)
20684 lt_cv_prog_gnu_ld
=yes
20687 lt_cv_prog_gnu_ld
=no
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20692 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20693 with_gnu_ld
=$lt_cv_prog_gnu_ld
20701 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20702 # archiving commands below assume that GNU ld is being used.
20703 if test "$with_gnu_ld" = yes; then
20704 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20705 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'
20707 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20708 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20710 # If archive_cmds runs LD, not CC, wlarc should be empty
20711 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20712 # investigate it a little bit more. (MM)
20715 # ancient GNU ld didn't support --whole-archive et. al.
20716 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20717 $GREP 'no-whole-archive' > /dev
/null
; then
20718 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20720 whole_archive_flag_spec_CXX
=
20726 # A generic and very simple default shared library creation
20727 # command for GNU C++ for the case where it uses the native
20728 # linker, instead of GNU ld. If possible, this setting should
20729 # overridden to take advantage of the native linker features on
20730 # the platform it is being used on.
20731 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20734 # Commands to make compiler produce verbose output that lists
20735 # what "hidden" libraries, object files and flags are used when
20736 # linking a shared library.
20737 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20745 # PORTME: fill in a description of your system's C++ link characteristics
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20747 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20751 # FIXME: insert proper C++ library support
20755 if test "$host_cpu" = ia64
; then
20756 # On IA64, the linker does run time linking by default, so we don't
20757 # have to do anything special.
20758 aix_use_runtimelinking
=no
20759 exp_sym_flag
='-Bexport'
20762 aix_use_runtimelinking
=no
20764 # Test if we are trying to use run time linking or normal
20765 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20766 # need to do runtime linking.
20767 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20768 for ld_flag
in $LDFLAGS; do
20771 aix_use_runtimelinking
=yes
20779 exp_sym_flag
='-bexport'
20780 no_entry_flag
='-bnoentry'
20783 # When large executables or shared objects are built, AIX ld can
20784 # have problems creating the table of contents. If linking a library
20785 # or program results in "error TOC overflow" add -mminimal-toc to
20786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20789 archive_cmds_CXX
=''
20790 hardcode_direct_CXX
=yes
20791 hardcode_direct_absolute_CXX
=yes
20792 hardcode_libdir_separator_CXX
=':'
20793 link_all_deplibs_CXX
=yes
20794 file_list_spec_CXX
='${wl}-f,'
20796 if test "$GXX" = yes; then
20797 case $host_os in aix4.
[012]|aix4.
[012].
*)
20798 # We only want to do this on AIX 4.2 and lower, the check
20799 # below for broken collect2 doesn't work under 4.3+
20800 collect2name
=`${CC} -print-prog-name=collect2`
20801 if test -f "$collect2name" &&
20802 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20804 # We have reworked collect2
20807 # We have old collect2
20808 hardcode_direct_CXX
=unsupported
20809 # It fails to find uninstalled libraries when the uninstalled
20810 # path is not listed in the libpath. Setting hardcode_minus_L
20811 # to unsupported forces relinking
20812 hardcode_minus_L_CXX
=yes
20813 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20814 hardcode_libdir_separator_CXX
=
20817 shared_flag
='-shared'
20818 if test "$aix_use_runtimelinking" = yes; then
20819 shared_flag
="$shared_flag "'${wl}-G'
20823 if test "$host_cpu" = ia64
; then
20824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20825 # chokes on -Wl,-G. The following line is correct:
20828 if test "$aix_use_runtimelinking" = yes; then
20829 shared_flag
='${wl}-G'
20831 shared_flag
='${wl}-bM:SRE'
20836 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20837 # It seems that -bexpall does not export symbols beginning with
20838 # underscore (_), so it is better to generate a list of symbols to
20840 always_export_symbols_CXX
=yes
20841 if test "$aix_use_runtimelinking" = yes; then
20842 # Warning - without using the other runtime loading flags (-brtl),
20843 # -berok will link without error, but may produce a broken library.
20844 allow_undefined_flag_CXX
='-berok'
20845 # Determine the default libpath from the value encoded in an empty
20847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20848 /* end confdefs.h. */
20858 if ac_fn_cxx_try_link
"$LINENO"; then :
20860 lt_aix_libpath_sed
='
20861 /Import File Strings/,/^$/ {
20867 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20868 # Check for a 64-bit object if we didn't find anything.
20869 if test -z "$aix_libpath"; then
20870 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20873 rm -f core conftest.err conftest.
$ac_objext \
20874 conftest
$ac_exeext conftest.
$ac_ext
20875 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20877 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20879 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"
20881 if test "$host_cpu" = ia64
; then
20882 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20883 allow_undefined_flag_CXX
="-z nodefs"
20884 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"
20886 # Determine the default libpath from the value encoded in an
20887 # empty executable.
20888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20899 if ac_fn_cxx_try_link
"$LINENO"; then :
20901 lt_aix_libpath_sed
='
20902 /Import File Strings/,/^$/ {
20908 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20909 # Check for a 64-bit object if we didn't find anything.
20910 if test -z "$aix_libpath"; then
20911 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20914 rm -f core conftest.err conftest.
$ac_objext \
20915 conftest
$ac_exeext conftest.
$ac_ext
20916 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20918 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20919 # Warning - without using the other run time loading flags,
20920 # -berok will link without error, but may produce a broken library.
20921 no_undefined_flag_CXX
=' ${wl}-bernotok'
20922 allow_undefined_flag_CXX
=' ${wl}-berok'
20923 if test "$with_gnu_ld" = yes; then
20924 # We only use this code for GNU lds that support --whole-archive.
20925 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20927 # Exported symbols can be pulled into shared objects from archives
20928 whole_archive_flag_spec_CXX
='$convenience'
20930 archive_cmds_need_lc_CXX
=yes
20931 # This is similar to how AIX traditionally builds its shared
20933 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'
20939 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20940 allow_undefined_flag_CXX
=unsupported
20941 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20942 # support --undefined. This deserves some investigation. FIXME
20943 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20950 case $cc_basename in
20952 # FIXME: insert proper C++ library support
20958 cygwin
* | mingw
* | pw32
* | cegcc
*)
20959 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20960 # as there is no search path for DLLs.
20961 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20962 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20963 allow_undefined_flag_CXX
=unsupported
20964 always_export_symbols_CXX
=no
20965 enable_shared_with_static_runtimes_CXX
=yes
20967 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20968 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'
20969 # If the export-symbols file already is a .def file (1st line
20970 # is EXPORTS), use it as is; otherwise, prepend...
20971 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20972 cp $export_symbols $output_objdir/$soname.def;
20974 echo EXPORTS > $output_objdir/$soname.def;
20975 cat $export_symbols >> $output_objdir/$soname.def;
20977 $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'
20982 darwin
* | rhapsody
*)
20986 # Publish an arg to allow the user to select that Darwin host (and target)
20987 # libraries should be given install-names like @rpath/libfoo.dylib. This
20988 # requires that the user of the library then adds an 'rpath' to the DSO that
20990 # NOTE: there are defaults below, for systems that support rpaths. The person
20991 # configuring can override the defaults for any system version that supports
20992 # them - they are, however, forced off for system versions without support.
20993 # Check whether --enable-darwin-at-rpath was given.
20994 if test "${enable_darwin_at_rpath+set}" = set; then :
20995 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
20996 # This is not supported before macOS 10.5 / Darwin9.
20997 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
20998 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
21000 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
21001 enable_darwin_at_rpath
=no
21006 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
21007 # As above, before 10.5 / Darwin9 this does not work.
21008 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
21009 enable_darwin_at_rpath
=no
21012 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
21013 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
21014 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
21015 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
21017 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
21018 enable_darwin_at_rpath
=yes
21020 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
21021 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
21028 archive_cmds_need_lc_CXX
=no
21029 hardcode_direct_CXX
=no
21030 hardcode_automatic_CXX
=yes
21031 hardcode_shlibpath_var_CXX
=unsupported
21032 if test "$lt_cv_ld_force_load" = "yes"; then
21033 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\"`'
21035 whole_archive_flag_spec_CXX
=''
21037 link_all_deplibs_CXX
=yes
21038 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
21039 case $cc_basename in
21040 ifort
*) _lt_dar_can_shared
=yes ;;
21041 *) _lt_dar_can_shared
=$GCC ;;
21043 if test "$_lt_dar_can_shared" = "yes"; then
21044 output_verbose_link_cmd
=func_echo_all
21045 _lt_install_name
='\$rpath/\$soname'
21046 if test "x$enable_darwin_at_rpath" = "xyes"; then
21047 _lt_install_name
='@rpath/\$soname'
21049 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
21050 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21051 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
21052 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}"
21053 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
21054 _lt_install_name
='\$rpath/\$soname'
21055 if test "x$enable_darwin_at_rpath" = "xyes"; then
21056 _lt_install_name
='@rpath/\$soname'
21058 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
21059 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}"
21069 case $cc_basename in
21071 # FIXME: insert proper C++ library support
21075 # Green Hills C++ Compiler
21076 # FIXME: insert proper C++ library support
21080 # FIXME: insert proper C++ library support
21087 # C++ shared libraries reported to be fairly broken before
21093 archive_cmds_need_lc_CXX
=no
21096 freebsd
* | dragonfly
*)
21097 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21106 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21107 link_all_deplibs_CXX
=yes
21111 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
21112 hardcode_libdir_separator_CXX
=:
21113 export_dynamic_flag_spec_CXX
='${wl}-E'
21114 hardcode_direct_CXX
=yes
21115 hardcode_minus_L_CXX
=yes # Not in the search PATH,
21116 # but as the default
21117 # location of the library.
21119 case $cc_basename in
21121 # FIXME: insert proper C++ library support
21125 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'
21126 # Commands to make compiler produce verbose output that lists
21127 # what "hidden" libraries, object files and flags are used when
21128 # linking a shared library.
21130 # There doesn't appear to be a way to prevent this compiler from
21131 # explicitly linking system object files so we need to strip them
21132 # from the output so that they don't get included in the library
21134 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"'
21137 if test "$GXX" = yes; then
21138 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'
21140 # FIXME: insert proper C++ library support
21148 if test $with_gnu_ld = no
; then
21149 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
21150 hardcode_libdir_separator_CXX
=:
21156 export_dynamic_flag_spec_CXX
='${wl}-E'
21162 hardcode_direct_CXX
=no
21163 hardcode_shlibpath_var_CXX
=no
21166 hardcode_direct_CXX
=yes
21167 hardcode_direct_absolute_CXX
=yes
21168 hardcode_minus_L_CXX
=yes # Not in the search PATH,
21169 # but as the default
21170 # location of the library.
21174 case $cc_basename in
21176 # FIXME: insert proper C++ library support
21182 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21185 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21188 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21191 # Commands to make compiler produce verbose output that lists
21192 # what "hidden" libraries, object files and flags are used when
21193 # linking a shared library.
21195 # There doesn't appear to be a way to prevent this compiler from
21196 # explicitly linking system object files so we need to strip them
21197 # from the output so that they don't get included in the library
21199 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"'
21202 if test "$GXX" = yes; then
21203 if test $with_gnu_ld = no
; then
21206 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21209 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21212 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'
21217 # FIXME: insert proper C++ library support
21225 hardcode_direct_CXX
=no
21226 hardcode_shlibpath_var_CXX
=no
21227 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21228 export_dynamic_flag_spec_CXX
='${wl}-E'
21229 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21230 # Instead, shared libraries are loaded at an image base (0x10000000 by
21231 # default) and relocated if they conflict, which is a slow very memory
21232 # consuming and fragmenting process. To avoid this, we pick a random,
21233 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21234 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21235 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'
21236 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'
21239 case $cc_basename in
21242 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'
21244 # Archives containing C++ object files must be created using
21245 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21246 # necessary to make sure instantiated templates are included
21248 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
21251 if test "$GXX" = yes; then
21252 if test "$with_gnu_ld" = no
; then
21253 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'
21255 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'
21258 link_all_deplibs_CXX
=yes
21261 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21262 hardcode_libdir_separator_CXX
=:
21263 inherit_rpath_CXX
=yes
21266 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21267 case $cc_basename in
21269 # Kuck and Associates, Inc. (KAI) C++ Compiler
21271 # KCC will only create a shared library if the output file
21272 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21273 # to its proper name (with version) after linking.
21274 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'
21275 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'
21276 # Commands to make compiler produce verbose output that lists
21277 # what "hidden" libraries, object files and flags are used when
21278 # linking a shared library.
21280 # There doesn't appear to be a way to prevent this compiler from
21281 # explicitly linking system object files so we need to strip them
21282 # from the output so that they don't get included in the library
21284 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"'
21286 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21287 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21289 # Archives containing C++ object files must be created using
21290 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21291 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
21296 # version 8.0 and above of icpc choke on multiply defined symbols
21297 # if we add $predep_objects and $postdep_objects, however 7.1 and
21298 # earlier do not add the objects themselves.
21299 case `$CC -V 2>&1` in
21301 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21302 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'
21304 *) # Version 8.0 or newer
21307 ia64
*) tmp_idyn
=' -i_dynamic';;
21309 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21310 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'
21313 archive_cmds_need_lc_CXX
=no
21314 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21315 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21316 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21319 # Portland Group C++ compiler
21321 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
21322 prelink_cmds_CXX
='tpldir=Template.dir~
21324 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21325 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21326 old_archive_cmds_CXX
='tpldir=Template.dir~
21328 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21329 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21331 archive_cmds_CXX
='tpldir=Template.dir~
21333 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21334 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21335 archive_expsym_cmds_CXX
='tpldir=Template.dir~
21337 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21338 $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'
21340 *) # Version 6 and above use weak symbols
21341 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21342 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'
21346 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
21347 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21348 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'
21352 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21353 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'
21355 runpath_var
=LD_RUN_PATH
21356 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21357 hardcode_libdir_separator_CXX
=:
21359 # Commands to make compiler produce verbose output that lists
21360 # what "hidden" libraries, object files and flags are used when
21361 # linking a shared library.
21363 # There doesn't appear to be a way to prevent this compiler from
21364 # explicitly linking system object files so we need to strip them
21365 # from the output so that they don't get included in the library
21367 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'
21369 xl
* | mpixl
* | bgxl
*)
21370 # IBM XL 8.0 on PPC, with GNU ld
21371 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21372 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21373 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21374 if test "x$supports_anon_versioning" = xyes
; then
21375 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21377 echo "local: *; };" >> $output_objdir/$libname.ver~
21378 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21382 case `$CC -V 2>&1 | sed 5q` in
21385 no_undefined_flag_CXX
=' -zdefs'
21386 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21387 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'
21388 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21389 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'
21390 compiler_needs_object_CXX
=yes
21392 # Not sure whether something based on
21393 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21395 output_verbose_link_cmd
='func_echo_all'
21397 # Archives containing C++ object files must be created using
21398 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21399 # necessary to make sure instantiated templates are included
21401 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21409 # FIXME: insert proper C++ library support
21414 # FIXME: insert proper C++ library support
21419 case $cc_basename in
21421 # FIXME: insert proper C++ library support
21425 # FIXME: insert proper C++ library support
21432 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21433 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21435 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21436 hardcode_direct_CXX
=yes
21437 hardcode_shlibpath_var_CXX
=no
21439 # Workaround some broken pre-1.5 toolchains
21440 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21448 # C++ shared libraries are fairly broken
21453 if test -f /usr
/libexec
/ld.so
; then
21454 hardcode_direct_CXX
=yes
21455 hardcode_shlibpath_var_CXX
=no
21456 hardcode_direct_absolute_CXX
=yes
21457 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21458 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21460 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21461 export_dynamic_flag_spec_CXX
='${wl}-E'
21462 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21464 output_verbose_link_cmd
=func_echo_all
21470 osf3
* | osf4
* | osf5
*)
21471 case $cc_basename in
21473 # Kuck and Associates, Inc. (KAI) C++ Compiler
21475 # KCC will only create a shared library if the output file
21476 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21477 # to its proper name (with version) after linking.
21478 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'
21480 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21481 hardcode_libdir_separator_CXX
=:
21483 # Archives containing C++ object files must be created using
21484 # the KAI C++ compiler.
21486 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21487 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21491 # Rational C++ 2.4.1
21492 # FIXME: insert proper C++ library support
21498 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21499 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'
21500 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21503 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21504 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'
21505 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21506 echo "-hidden">> $lib.exp~
21507 $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~
21509 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21513 hardcode_libdir_separator_CXX
=:
21515 # Commands to make compiler produce verbose output that lists
21516 # what "hidden" libraries, object files and flags are used when
21517 # linking a shared library.
21519 # There doesn't appear to be a way to prevent this compiler from
21520 # explicitly linking system object files so we need to strip them
21521 # from the output so that they don't get included in the library
21523 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"'
21526 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21527 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21530 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'
21533 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'
21537 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21538 hardcode_libdir_separator_CXX
=:
21540 # Commands to make compiler produce verbose output that lists
21541 # what "hidden" libraries, object files and flags are used when
21542 # linking a shared library.
21543 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21546 # FIXME: insert proper C++ library support
21554 # FIXME: insert proper C++ library support
21559 case $cc_basename in
21562 # FIXME: insert proper C++ library support
21567 # FIXME: insert proper C++ library support
21571 # FIXME: insert proper C++ library support
21578 case $cc_basename in
21580 # Sun C++ 4.2, 5.x and Centerline C++
21581 archive_cmds_need_lc_CXX
=yes
21582 no_undefined_flag_CXX
=' -zdefs'
21583 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21584 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21585 $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'
21587 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21588 hardcode_shlibpath_var_CXX
=no
21590 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21592 # The compiler driver will combine and reorder linker options,
21593 # but understands `-z linker_flag'.
21594 # Supported since Solaris 2.6 (maybe 2.5.1?)
21595 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21598 link_all_deplibs_CXX
=yes
21600 output_verbose_link_cmd
='func_echo_all'
21602 # Archives containing C++ object files must be created using
21603 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21604 # necessary to make sure instantiated templates are included
21606 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21609 # Green Hills C++ Compiler
21610 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21612 # The C++ compiler must be used to create the archive.
21613 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21616 # GNU C++ compiler with Solaris linker
21617 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21618 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21619 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21620 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21621 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21622 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21624 # Commands to make compiler produce verbose output that lists
21625 # what "hidden" libraries, object files and flags are used when
21626 # linking a shared library.
21627 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21629 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21631 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21632 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21633 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21635 # Commands to make compiler produce verbose output that lists
21636 # what "hidden" libraries, object files and flags are used when
21637 # linking a shared library.
21638 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21641 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21643 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21645 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21653 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21654 no_undefined_flag_CXX
='${wl}-z,text'
21655 archive_cmds_need_lc_CXX
=no
21656 hardcode_shlibpath_var_CXX
=no
21657 runpath_var
='LD_RUN_PATH'
21659 case $cc_basename in
21661 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21662 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21665 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21666 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21671 sysv5
* | sco3.2v5
* | sco5v6
*)
21672 # Note: We can NOT use -z defs as we might desire, because we do not
21673 # link with -lc, and that would cause any symbols used from libc to
21674 # always be unresolved, which means just about no library would
21675 # ever link correctly. If we're not using GNU ld we use -z text
21676 # though, which does catch some bad symbols but isn't as heavy-handed
21678 no_undefined_flag_CXX
='${wl}-z,text'
21679 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21680 archive_cmds_need_lc_CXX
=no
21681 hardcode_shlibpath_var_CXX
=no
21682 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21683 hardcode_libdir_separator_CXX
=':'
21684 link_all_deplibs_CXX
=yes
21685 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21686 runpath_var
='LD_RUN_PATH'
21688 case $cc_basename in
21690 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21691 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21692 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21693 '"$old_archive_cmds_CXX"
21694 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21695 '"$reload_cmds_CXX"
21698 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21699 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21705 case $cc_basename in
21707 # NonStop-UX NCC 3.20
21708 # FIXME: insert proper C++ library support
21712 # FIXME: insert proper C++ library support
21719 # For VxWorks ports, we assume the use of a GNU linker with
21720 # standard elf conventions.
21725 # FIXME: insert proper C++ library support
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21731 $as_echo "$ld_shlibs_CXX" >&6; }
21732 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21738 ## There is no encapsulation within the following macros, do not change
21739 ## the running order or otherwise move them around unless you know exactly
21740 ## what you are doing...
21741 # Dependencies to place before and after the object being linked:
21742 predep_objects_CXX
=
21743 postdep_objects_CXX
=
21746 compiler_lib_search_path_CXX
=
21748 cat > conftest.
$ac_ext <<_LT_EOF
21752 Foo (void) { a = 0; }
21758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21759 (eval $ac_compile) 2>&5
21761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21762 test $ac_status = 0; }; then
21763 # Parse the compiler output and extract the necessary
21764 # objects, libraries and library flags.
21766 # Sentinel used to keep track of whether or not we are before
21767 # the conftest object file.
21768 pre_test_object_deps_done
=no
21770 for p
in `eval "$output_verbose_link_cmd"`; do
21774 # Some compilers place space between "-{L,R}" and the path.
21775 # Remove the space.
21776 if test $p = "-L" ||
21777 test $p = "-R"; then
21784 if test "$pre_test_object_deps_done" = no
; then
21787 # Internal compiler library paths should come after those
21788 # provided the user. The postdeps already come after the
21789 # user supplied libs so there is no need to process them.
21790 if test -z "$compiler_lib_search_path_CXX"; then
21791 compiler_lib_search_path_CXX
="${prev}${p}"
21793 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21796 # The "-l" case would never come before the object being
21797 # linked, so don't bother handling this case.
21800 if test -z "$postdeps_CXX"; then
21801 postdeps_CXX
="${prev}${p}"
21803 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21809 # This assumes that the test object file only shows up
21810 # once in the compiler output.
21811 if test "$p" = "conftest.$objext"; then
21812 pre_test_object_deps_done
=yes
21816 if test "$pre_test_object_deps_done" = no
; then
21817 if test -z "$predep_objects_CXX"; then
21818 predep_objects_CXX
="$p"
21820 predep_objects_CXX
="$predep_objects_CXX $p"
21823 if test -z "$postdep_objects_CXX"; then
21824 postdep_objects_CXX
="$p"
21826 postdep_objects_CXX
="$postdep_objects_CXX $p"
21831 *) ;; # Ignore the rest.
21839 echo "libtool.m4: error: problem compiling CXX test program"
21842 $RM -f confest.
$objext
21844 # PORTME: override above test on systems where it is broken
21847 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21848 # hack all around it, let's just trust "g++" to DTRT.
21849 predep_objects_CXX
=
21850 postdep_objects_CXX
=
21855 case `$CC -V 2>&1 | sed 5q` in
21859 # The more standards-conforming stlport4 library is
21860 # incompatible with the Cstd library. Avoid specifying
21861 # it if it's in CXXFLAGS. Ignore libCrun as
21862 # -library=stlport4 depends on it.
21863 case " $CXX $CXXFLAGS " in
21864 *" -library=stlport4 "*)
21865 solaris_use_stlport4
=yes
21869 if test "$solaris_use_stlport4" != yes; then
21870 postdeps_CXX
='-library=Cstd -library=Crun'
21877 case $cc_basename in
21879 # The more standards-conforming stlport4 library is
21880 # incompatible with the Cstd library. Avoid specifying
21881 # it if it's in CXXFLAGS. Ignore libCrun as
21882 # -library=stlport4 depends on it.
21883 case " $CXX $CXXFLAGS " in
21884 *" -library=stlport4 "*)
21885 solaris_use_stlport4
=yes
21889 # Adding this requires a known-good setup of shared libraries for
21890 # Sun compiler versions before 5.6, else PIC objects from an old
21891 # archive will be linked into the output, leading to subtle bugs.
21892 if test "$solaris_use_stlport4" != yes; then
21893 postdeps_CXX
='-library=Cstd -library=Crun'
21901 case " $postdeps_CXX " in
21902 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21904 compiler_lib_search_dirs_CXX
=
21905 if test -n "${compiler_lib_search_path_CXX}"; then
21906 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21939 lt_prog_compiler_wl_CXX
=
21940 lt_prog_compiler_pic_CXX
=
21941 lt_prog_compiler_static_CXX
=
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21944 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21946 # C++ specific cases for pic, static, wl, etc.
21947 if test "$GXX" = yes; then
21948 lt_prog_compiler_wl_CXX
='-Wl,'
21949 lt_prog_compiler_static_CXX
='-static'
21953 # All AIX code is PIC.
21954 if test "$host_cpu" = ia64
; then
21955 # AIX 5 now supports IA64 processor
21956 lt_prog_compiler_static_CXX
='-Bstatic'
21958 lt_prog_compiler_pic_CXX
='-fPIC'
21964 # see comment about AmigaOS4 .so support
21965 lt_prog_compiler_pic_CXX
='-fPIC'
21968 # FIXME: we need at least 68020 code to build shared libraries, but
21969 # adding the `-m68020' flag to GCC prevents building anything better,
21971 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21976 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21977 # PIC is the default for these OSes.
21979 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21980 # This hack is so that the source file can tell whether it is being
21981 # built for inclusion in a dll (and should export symbols for example).
21982 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21983 # (--disable-auto-import) libraries
21984 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21986 darwin
* | rhapsody
*)
21987 # PIC is the default on this platform
21988 # Common symbols not allowed in MH_DYLIB files
21989 lt_prog_compiler_pic_CXX
='-fno-common'
21992 # DJGPP does not support shared libraries at all
21993 lt_prog_compiler_pic_CXX
=
21996 # PIC is the default for Haiku.
21997 # The "-static" flag exists, but is broken.
21998 lt_prog_compiler_static_CXX
=
22001 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22002 # Instead, we relocate shared libraries at runtime.
22005 if test -d /usr
/nec
; then
22006 lt_prog_compiler_pic_CXX
=-Kconform_pic
22010 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22011 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
22012 # sets the default TLS model and affects inlining.
22017 lt_prog_compiler_pic_CXX
='-fPIC'
22022 # QNX uses GNU C++, but need to define -shared option too, otherwise
22023 # it will coredump.
22024 lt_prog_compiler_pic_CXX
='-fPIC -shared'
22027 lt_prog_compiler_pic_CXX
='-fPIC'
22033 # All AIX code is PIC.
22034 if test "$host_cpu" = ia64
; then
22035 # AIX 5 now supports IA64 processor
22036 lt_prog_compiler_static_CXX
='-Bstatic'
22038 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
22042 case $cc_basename in
22044 # Green Hills C++ Compiler
22045 # _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"
22050 case $cc_basename in
22052 lt_prog_compiler_pic_CXX
='-KPIC'
22055 # Green Hills C++ Compiler
22056 lt_prog_compiler_pic_CXX
='-pic'
22062 freebsd
* | dragonfly
*)
22063 # FreeBSD uses GNU C++
22065 hpux9
* | hpux10
* | hpux11
*)
22066 case $cc_basename in
22068 lt_prog_compiler_wl_CXX
='-Wl,'
22069 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
22070 if test "$host_cpu" != ia64
; then
22071 lt_prog_compiler_pic_CXX
='+Z'
22075 lt_prog_compiler_wl_CXX
='-Wl,'
22076 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
22082 lt_prog_compiler_pic_CXX
='+Z'
22091 # This is c89, which is MS Visual C++ (no shared libs)
22092 # Anyone wants to do a port?
22094 irix5
* | irix6
* | nonstopux
*)
22095 case $cc_basename in
22097 lt_prog_compiler_wl_CXX
='-Wl,'
22098 lt_prog_compiler_static_CXX
='-non_shared'
22099 # CC pic flag -KPIC is the default.
22105 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
22106 case $cc_basename in
22109 lt_prog_compiler_wl_CXX
='--backend -Wl,'
22110 lt_prog_compiler_pic_CXX
='-fPIC'
22113 # old Intel C++ for x86_64 which still supported -KPIC.
22114 lt_prog_compiler_wl_CXX
='-Wl,'
22115 lt_prog_compiler_pic_CXX
='-KPIC'
22116 lt_prog_compiler_static_CXX
='-static'
22119 # Intel C++, used to be incompatible with GCC.
22120 # ICC 10 doesn't accept -KPIC any more.
22121 lt_prog_compiler_wl_CXX
='-Wl,'
22122 lt_prog_compiler_pic_CXX
='-fPIC'
22123 lt_prog_compiler_static_CXX
='-static'
22126 # Portland Group C++ compiler
22127 lt_prog_compiler_wl_CXX
='-Wl,'
22128 lt_prog_compiler_pic_CXX
='-fpic'
22129 lt_prog_compiler_static_CXX
='-Bstatic'
22133 # Make sure the PIC flag is empty. It appears that all Alpha
22134 # Linux and Compaq Tru64 Unix objects are PIC.
22135 lt_prog_compiler_pic_CXX
=
22136 lt_prog_compiler_static_CXX
='-non_shared'
22138 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
22139 # IBM XL 8.0, 9.0 on PPC and BlueGene
22140 lt_prog_compiler_wl_CXX
='-Wl,'
22141 lt_prog_compiler_pic_CXX
='-qpic'
22142 lt_prog_compiler_static_CXX
='-qstaticlink'
22145 case `$CC -V 2>&1 | sed 5q` in
22148 lt_prog_compiler_pic_CXX
='-KPIC'
22149 lt_prog_compiler_static_CXX
='-Bstatic'
22150 lt_prog_compiler_wl_CXX
='-Qoption ld '
22161 case $cc_basename in
22163 lt_prog_compiler_pic_CXX
='-W c,exportall'
22172 # QNX uses GNU C++, but need to define -shared option too, otherwise
22173 # it will coredump.
22174 lt_prog_compiler_pic_CXX
='-fPIC -shared'
22176 osf3
* | osf4
* | osf5
*)
22177 case $cc_basename in
22179 lt_prog_compiler_wl_CXX
='--backend -Wl,'
22182 # Rational C++ 2.4.1
22183 lt_prog_compiler_pic_CXX
='-pic'
22186 # Digital/Compaq C++
22187 lt_prog_compiler_wl_CXX
='-Wl,'
22188 # Make sure the PIC flag is empty. It appears that all Alpha
22189 # Linux and Compaq Tru64 Unix objects are PIC.
22190 lt_prog_compiler_pic_CXX
=
22191 lt_prog_compiler_static_CXX
='-non_shared'
22200 case $cc_basename in
22202 # Sun C++ 4.2, 5.x and Centerline C++
22203 lt_prog_compiler_pic_CXX
='-KPIC'
22204 lt_prog_compiler_static_CXX
='-Bstatic'
22205 lt_prog_compiler_wl_CXX
='-Qoption ld '
22208 # Green Hills C++ Compiler
22209 lt_prog_compiler_pic_CXX
='-PIC'
22216 case $cc_basename in
22219 lt_prog_compiler_pic_CXX
='-pic'
22220 lt_prog_compiler_static_CXX
='-Bstatic'
22224 lt_prog_compiler_pic_CXX
='-pic'
22230 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
22231 case $cc_basename in
22233 lt_prog_compiler_wl_CXX
='-Wl,'
22234 lt_prog_compiler_pic_CXX
='-KPIC'
22235 lt_prog_compiler_static_CXX
='-Bstatic'
22240 case $cc_basename in
22242 # NonStop-UX NCC 3.20
22243 lt_prog_compiler_pic_CXX
='-KPIC'
22252 lt_prog_compiler_can_build_shared_CXX
=no
22258 # For platforms which do not support PIC, -DPIC is meaningless:
22260 lt_prog_compiler_pic_CXX
=
22263 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22267 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22272 # Check to make sure the PIC flag actually works.
22274 if test -n "$lt_prog_compiler_pic_CXX"; then
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22276 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22277 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
22278 $as_echo_n "(cached) " >&6
22280 lt_cv_prog_compiler_pic_works_CXX
=no
22281 ac_outfile
=conftest.
$ac_objext
22282 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22283 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
22284 # Insert the option either (1) after the last *FLAGS variable, or
22285 # (2) before a word containing "conftest.", or (3) at the end.
22286 # Note that $ac_compile itself does not contain backslashes and begins
22287 # with a dollar sign (not a hyphen), so the echo should work correctly.
22288 # The option is referenced via a variable to avoid confusing sed.
22289 lt_compile
=`echo "$ac_compile" | $SED \
22290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22292 -e 's:$: $lt_compiler_flag:'`
22293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22294 (eval "$lt_compile" 2>conftest.err
)
22296 cat conftest.err
>&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 if (exit $ac_status) && test -s "$ac_outfile"; then
22299 # The compiler can only warn and ignore the option if not recognized
22300 # So say no if there are warnings other than the usual output.
22301 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
22302 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22303 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
22304 lt_cv_prog_compiler_pic_works_CXX
=yes
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22311 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22313 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
22314 case $lt_prog_compiler_pic_CXX in
22316 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
22319 lt_prog_compiler_pic_CXX
=
22320 lt_prog_compiler_can_build_shared_CXX
=no
22328 # Check to make sure the static flag actually works.
22330 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22332 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22333 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
22334 $as_echo_n "(cached) " >&6
22336 lt_cv_prog_compiler_static_works_CXX
=no
22337 save_LDFLAGS
="$LDFLAGS"
22338 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
22339 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
22340 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
22341 # The linker can only warn and ignore the option if not recognized
22342 # So say no if there are warnings
22343 if test -s conftest.err
; then
22344 # Append any errors to the config.log.
22345 cat conftest.err
1>&5
22346 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
22347 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22348 if diff conftest.exp conftest.er2
>/dev
/null
; then
22349 lt_cv_prog_compiler_static_works_CXX
=yes
22352 lt_cv_prog_compiler_static_works_CXX
=yes
22356 LDFLAGS
="$save_LDFLAGS"
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22360 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22362 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22365 lt_prog_compiler_static_CXX
=
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22372 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22373 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22374 $as_echo_n "(cached) " >&6
22376 lt_cv_prog_compiler_c_o_CXX
=no
22377 $RM -r conftest
2>/dev
/null
22381 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22383 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22384 # Insert the option either (1) after the last *FLAGS variable, or
22385 # (2) before a word containing "conftest.", or (3) at the end.
22386 # Note that $ac_compile itself does not contain backslashes and begins
22387 # with a dollar sign (not a hyphen), so the echo should work correctly.
22388 lt_compile
=`echo "$ac_compile" | $SED \
22389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22391 -e 's:$: $lt_compiler_flag:'`
22392 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22393 (eval "$lt_compile" 2>out
/conftest.err
)
22395 cat out
/conftest.err
>&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22399 # The compiler can only warn and ignore the option if not recognized
22400 # So say no if there are warnings
22401 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22402 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22403 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22404 lt_cv_prog_compiler_c_o_CXX
=yes
22409 # SGI C++ compiler will create directory out/ii_files/ for
22410 # template instantiation
22411 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22412 $RM out
/* && rmdir out
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22419 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22424 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22425 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22426 $as_echo_n "(cached) " >&6
22428 lt_cv_prog_compiler_c_o_CXX
=no
22429 $RM -r conftest
2>/dev
/null
22433 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22435 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22436 # Insert the option either (1) after the last *FLAGS variable, or
22437 # (2) before a word containing "conftest.", or (3) at the end.
22438 # Note that $ac_compile itself does not contain backslashes and begins
22439 # with a dollar sign (not a hyphen), so the echo should work correctly.
22440 lt_compile
=`echo "$ac_compile" | $SED \
22441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22443 -e 's:$: $lt_compiler_flag:'`
22444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22445 (eval "$lt_compile" 2>out
/conftest.err
)
22447 cat out
/conftest.err
>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22451 # The compiler can only warn and ignore the option if not recognized
22452 # So say no if there are warnings
22453 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22454 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22455 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22456 lt_cv_prog_compiler_c_o_CXX
=yes
22461 # SGI C++ compiler will create directory out/ii_files/ for
22462 # template instantiation
22463 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22464 $RM out
/* && rmdir out
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22471 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22476 hard_links
="nottested"
22477 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22478 # do not overwrite the value of need_locks provided by the user
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22480 $as_echo_n "checking if we can lock with hard links... " >&6; }
22483 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22485 ln conftest.a conftest.b
2>&5 || hard_links
=no
22486 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22488 $as_echo "$hard_links" >&6; }
22489 if test "$hard_links" = no
; then
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22491 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22501 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22503 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22506 # If we're using GNU nm, then we don't want the "-C" option.
22507 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22508 # Also, AIX nm treats weak defined symbols like other global defined
22509 # symbols, whereas GNU nm marks them as "W".
22510 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22511 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'
22513 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'
22517 export_symbols_cmds_CXX
="$ltdll_cmds"
22519 cygwin
* | mingw
* | cegcc
*)
22520 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'
22523 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22526 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22529 $as_echo "$ld_shlibs_CXX" >&6; }
22530 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22532 with_gnu_ld_CXX
=$with_gnu_ld
22540 # Do we need to explicitly link libc?
22542 case "x$archive_cmds_need_lc_CXX" in
22544 # Assume -lc should be added
22545 archive_cmds_need_lc_CXX
=yes
22547 if test "$enable_shared" = yes && test "$GCC" = yes; then
22548 case $archive_cmds_CXX in
22550 # FIXME: we may have to deal with multi-command sequences.
22553 # Test whether the compiler implicitly links with -lc since on some
22554 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22555 # to ld, don't add -lc before -lgcc.
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22557 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22558 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22559 $as_echo_n "(cached) " >&6
22562 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22565 (eval $ac_compile) 2>&5
22567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22568 test $ac_status = 0; } 2>conftest.err
; then
22571 libobjs
=conftest.
$ac_objext
22573 wl
=$lt_prog_compiler_wl_CXX
22574 pic_flag
=$lt_prog_compiler_pic_CXX
22580 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22581 allow_undefined_flag_CXX
=
22582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22583 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22586 test $ac_status = 0; }
22588 lt_cv_archive_cmds_need_lc_CXX
=no
22590 lt_cv_archive_cmds_need_lc_CXX
=yes
22592 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22594 cat conftest.err
1>&5
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22600 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22601 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22672 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22674 library_names_spec
=
22675 libname_spec
='lib$name'
22679 postuninstall_cmds
=
22683 shlibpath_overrides_runpath
=unknown
22685 dynamic_linker
="$host_os ld.so"
22686 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22687 need_lib_prefix
=unknown
22688 hardcode_into_libs
=no
22690 # when you set need_version to no, make sure it does not cause -set_version
22691 # flags to be left without arguments
22692 need_version
=unknown
22697 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22698 shlibpath_var
=LIBPATH
22700 # AIX 3 has no versioning support, so we append a major version to the name.
22701 soname_spec
='${libname}${release}${shared_ext}$major'
22708 hardcode_into_libs
=yes
22709 if test "$host_cpu" = ia64
; then
22710 # AIX 5 supports IA64
22711 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22712 shlibpath_var
=LD_LIBRARY_PATH
22714 # With GCC up to 2.95.x, collect2 would create an import file
22715 # for dependence libraries. The import file would start with
22716 # the line `#! .'. This would cause the generated library to
22717 # depend on `.', always an invalid library. This was fixed in
22718 # development snapshots of GCC prior to 3.0.
22720 aix4 | aix4.
[01] | aix4.
[01].
*)
22721 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22723 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22726 can_build_shared
=no
22730 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22731 # soname into executable. Probably we can add versioning support to
22732 # collect2, so additional links can be useful in future.
22733 if test "$aix_use_runtimelinking" = yes; then
22734 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22735 # instead of lib<name>.a to let people know that these are not
22736 # typical AIX shared libraries.
22737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739 # We preserve .a as extension for shared libraries through AIX4.2
22740 # and later when we are not doing run time linking.
22741 library_names_spec
='${libname}${release}.a $libname.a'
22742 soname_spec
='${libname}${release}${shared_ext}$major'
22744 shlibpath_var
=LIBPATH
22751 # Since July 2007 AmigaOS4 officially supports .so libraries.
22752 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22753 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22756 library_names_spec
='$libname.ixlibrary $libname.a'
22757 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22758 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'
22764 library_names_spec
='${libname}${shared_ext}'
22765 dynamic_linker
="$host_os ld.so"
22766 shlibpath_var
=LIBRARY_PATH
22772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec
='${libname}${release}${shared_ext}$major'
22774 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22775 shlibpath_var
=LD_LIBRARY_PATH
22776 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22777 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22778 # the default ld.so.conf also contains /usr/contrib/lib and
22779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22780 # libtool to hard-code these into programs
22783 cygwin
* | mingw
* | pw32
* | cegcc
*)
22784 version_type
=windows
22789 case $GCC,$host_os in
22790 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22791 library_names_spec
='$libname.dll.a'
22792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22793 postinstall_cmds
='base_file=`basename \${file}`~
22794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22795 dldir=$destdir/`dirname \$dlpath`~
22796 test -d \$dldir || mkdir -p \$dldir~
22797 $install_prog $dir/$dlname \$dldir/$dlname~
22798 chmod a+x \$dldir/$dlname~
22799 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22800 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22802 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22803 dlpath=$dir/\$dldll~
22805 shlibpath_overrides_runpath
=yes
22809 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22810 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22814 # MinGW DLLs use traditional 'lib' prefix
22815 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22818 # pw32 DLLs use 'pw' prefix rather than 'lib'
22819 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22825 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22828 dynamic_linker
='Win32 ld.exe'
22829 # FIXME: first we should search . and the directory the executable is in
22833 darwin
* | rhapsody
*)
22834 dynamic_linker
="$host_os dyld"
22835 version_type
=darwin
22838 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22839 soname_spec
='${libname}${release}${major}$shared_ext'
22840 shlibpath_overrides_runpath
=yes
22841 shlibpath_var
=DYLD_LIBRARY_PATH
22842 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22844 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22852 soname_spec
='${libname}${release}${shared_ext}$major'
22853 shlibpath_var
=LD_LIBRARY_PATH
22856 freebsd
* | dragonfly
*)
22857 # DragonFly does not have aout. When/if they implement a new
22858 # versioning mechanism, adjust this.
22859 if test -x /usr
/bin
/objformat
; then
22860 objformat
=`/usr/bin/objformat`
22863 freebsd
[23].
*) objformat
=aout
;;
22864 *) objformat
=elf
;;
22867 version_type
=freebsd-
$objformat
22868 case $version_type in
22870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22875 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22879 shlibpath_var
=LD_LIBRARY_PATH
22882 shlibpath_overrides_runpath
=yes
22884 freebsd3.
[01]* | freebsdelf3.
[01]*)
22885 shlibpath_overrides_runpath
=yes
22886 hardcode_into_libs
=yes
22888 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22889 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22890 shlibpath_overrides_runpath
=no
22891 hardcode_into_libs
=yes
22893 *) # from 4.6 on, and DragonFly
22894 shlibpath_overrides_runpath
=yes
22895 hardcode_into_libs
=yes
22904 dynamic_linker
="$host_os runtime_loader"
22905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22906 soname_spec
='${libname}${release}${shared_ext}$major'
22907 shlibpath_var
=LIBRARY_PATH
22908 shlibpath_overrides_runpath
=yes
22909 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22910 hardcode_into_libs
=yes
22913 hpux9
* | hpux10
* | hpux11
*)
22914 # Give a soname corresponding to the major version so that dld.sl refuses to
22915 # link against other versions.
22922 hardcode_into_libs
=yes
22923 dynamic_linker
="$host_os dld.so"
22924 shlibpath_var
=LD_LIBRARY_PATH
22925 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22926 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22927 soname_spec
='${libname}${release}${shared_ext}$major'
22928 if test "X$HPUX_IA64_MODE" = X32
; then
22929 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22931 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22933 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22937 hardcode_into_libs
=yes
22938 dynamic_linker
="$host_os dld.sl"
22939 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22940 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22942 soname_spec
='${libname}${release}${shared_ext}$major'
22943 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22944 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22948 dynamic_linker
="$host_os dld.sl"
22949 shlibpath_var
=SHLIB_PATH
22950 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22952 soname_spec
='${libname}${release}${shared_ext}$major'
22955 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22956 postinstall_cmds
='chmod 555 $lib'
22957 # or fails outright, so override atomically:
22958 install_override_mode
=555
22965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22966 soname_spec
='${libname}${release}${shared_ext}$major'
22967 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22968 shlibpath_var
=LD_LIBRARY_PATH
22969 shlibpath_overrides_runpath
=no
22970 hardcode_into_libs
=yes
22973 irix5
* | irix6
* | nonstopux
*)
22975 nonstopux
*) version_type
=nonstopux
;;
22977 if test "$lt_cv_prog_gnu_ld" = yes; then
22985 soname_spec
='${libname}${release}${shared_ext}$major'
22986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22988 irix5
* | nonstopux
*)
22989 libsuff
= shlibsuff
=
22992 case $LD in # libtool.m4 will add one of these switches to LD
22993 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22994 libsuff
= shlibsuff
= libmagic
=32-bit;;
22995 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22996 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22997 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22998 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22999 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23003 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23004 shlibpath_overrides_runpath
=no
23005 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23006 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23007 hardcode_into_libs
=yes
23010 # No shared lib support for Linux oldld, aout, or coff.
23011 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23015 # This must be Linux ELF.
23017 # uclinux* changes (here and below) have been submitted to the libtool
23018 # project, but have not yet been accepted: they are GCC-local changes
23019 # for the time being. (See
23020 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
23021 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
23025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23026 soname_spec
='${libname}${release}${shared_ext}$major'
23027 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23028 shlibpath_var
=LD_LIBRARY_PATH
23029 shlibpath_overrides_runpath
=no
23031 # Some binutils ld are patched to set DT_RUNPATH
23032 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
23033 $as_echo_n "(cached) " >&6
23035 lt_cv_shlibpath_overrides_runpath
=no
23036 save_LDFLAGS
=$LDFLAGS
23037 save_libdir
=$libdir
23038 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
23039 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
23040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h. */
23051 if ac_fn_cxx_try_link
"$LINENO"; then :
23052 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
23053 lt_cv_shlibpath_overrides_runpath
=yes
23056 rm -f core conftest.err conftest.
$ac_objext \
23057 conftest
$ac_exeext conftest.
$ac_ext
23058 LDFLAGS
=$save_LDFLAGS
23059 libdir
=$save_libdir
23063 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
23065 # This implies no fast_install, which is unacceptable.
23066 # Some rework will be needed to allow for fast_install
23067 # before this can be enabled.
23068 hardcode_into_libs
=yes
23070 # Append ld.so.conf contents to the search path
23071 if test -f /etc
/ld.so.conf
; then
23072 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' ' '`
23073 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23076 # We used to test for /lib/ld.so.1 and disable shared libraries on
23077 # powerpc, because MkLinux only supported shared libraries with the
23078 # GNU dynamic linker. Since this was broken with cross compilers,
23079 # most powerpc-linux boxes support dynamic linking these days and
23080 # people can always --disable-shared, the test was removed, and we
23081 # assume the GNU/Linux dynamic linker is in use.
23082 dynamic_linker
='GNU/Linux ld.so'
23089 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
23090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23091 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23092 dynamic_linker
='NetBSD (a.out) ld.so'
23094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23095 soname_spec
='${libname}${release}${shared_ext}$major'
23096 dynamic_linker
='NetBSD ld.elf_so'
23098 shlibpath_var
=LD_LIBRARY_PATH
23099 shlibpath_overrides_runpath
=yes
23100 hardcode_into_libs
=yes
23105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23106 shlibpath_var
=LD_LIBRARY_PATH
23107 shlibpath_overrides_runpath
=yes
23114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23115 soname_spec
='${libname}${release}${shared_ext}$major'
23116 shlibpath_var
=LD_LIBRARY_PATH
23117 shlibpath_overrides_runpath
=no
23118 hardcode_into_libs
=yes
23119 dynamic_linker
='ldqnx.so'
23124 sys_lib_dlsearch_path_spec
="/usr/lib"
23126 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23128 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23129 *) need_version
=no
;;
23131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23132 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23133 shlibpath_var
=LD_LIBRARY_PATH
23134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23136 openbsd2.
[89] | openbsd2.
[89].
*)
23137 shlibpath_overrides_runpath
=no
23140 shlibpath_overrides_runpath
=yes
23144 shlibpath_overrides_runpath
=yes
23149 libname_spec
='$name'
23152 library_names_spec
='$libname${shared_ext} $libname.a'
23153 dynamic_linker
='OS/2 ld.exe'
23154 shlibpath_var
=LIBPATH
23157 osf3
* | osf4
* | osf5
*)
23161 soname_spec
='${libname}${release}${shared_ext}$major'
23162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23163 shlibpath_var
=LD_LIBRARY_PATH
23164 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23165 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23177 soname_spec
='${libname}${release}${shared_ext}$major'
23178 shlibpath_var
=LD_LIBRARY_PATH
23179 shlibpath_overrides_runpath
=yes
23180 hardcode_into_libs
=yes
23181 # ldd complains unless libraries are executable
23182 postinstall_cmds
='chmod +x $lib'
23187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23188 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23189 shlibpath_var
=LD_LIBRARY_PATH
23190 shlibpath_overrides_runpath
=yes
23191 if test "$with_gnu_ld" = yes; then
23199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23200 soname_spec
='${libname}${release}${shared_ext}$major'
23201 shlibpath_var
=LD_LIBRARY_PATH
23202 case $host_vendor in
23204 shlibpath_overrides_runpath
=no
23206 runpath_var
=LD_RUN_PATH
23214 shlibpath_overrides_runpath
=no
23215 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23221 if test -d /usr
/nec
;then
23223 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23224 soname_spec
='$libname${shared_ext}.$major'
23225 shlibpath_var
=LD_LIBRARY_PATH
23229 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23230 version_type
=freebsd-elf
23233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23234 soname_spec
='${libname}${release}${shared_ext}$major'
23235 shlibpath_var
=LD_LIBRARY_PATH
23236 shlibpath_overrides_runpath
=yes
23237 hardcode_into_libs
=yes
23238 if test "$with_gnu_ld" = yes; then
23239 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23241 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23244 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23248 sys_lib_dlsearch_path_spec
='/usr/lib'
23252 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23256 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23257 shlibpath_var
=LD_LIBRARY_PATH
23258 shlibpath_overrides_runpath
=no
23259 hardcode_into_libs
=yes
23264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23265 soname_spec
='${libname}${release}${shared_ext}$major'
23266 shlibpath_var
=LD_LIBRARY_PATH
23269 # Shared libraries for VwWorks, >= 7 only at this stage
23270 # and (fpic) still incompatible with "large" code models
23271 # in a few configurations. Only for RTP mode in any case,
23272 # and upon explicit request at configure time.
23275 case ${with_multisubdir}-${enable_shared} in
23282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23283 soname_spec
='${libname}${release}${shared_ext}$major'
23284 dynamic_linker
="$host_os module_loader"
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23293 $as_echo "$dynamic_linker" >&6; }
23294 test "$dynamic_linker" = no
&& can_build_shared
=no
23296 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23297 if test "$GCC" = yes; then
23298 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23301 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23302 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
23304 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23305 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23346 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23347 hardcode_action_CXX
=
23348 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23349 test -n "$runpath_var_CXX" ||
23350 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23352 # We can hardcode non-existent directories.
23353 if test "$hardcode_direct_CXX" != no
&&
23354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23355 # have to relink, otherwise we might link with an installed library
23356 # when we should be linking with a yet-to-be-installed one
23357 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23358 test "$hardcode_minus_L_CXX" != no
; then
23359 # Linking always hardcodes the temporary library directory.
23360 hardcode_action_CXX
=relink
23362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23363 hardcode_action_CXX
=immediate
23366 # We cannot hardcode anything, or else we can only hardcode existing
23368 hardcode_action_CXX
=unsupported
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23371 $as_echo "$hardcode_action_CXX" >&6; }
23373 if test "$hardcode_action_CXX" = relink ||
23374 test "$inherit_rpath_CXX" = yes; then
23375 # Fast installation is not supported
23376 enable_fast_install
=no
23377 elif test "$shlibpath_overrides_runpath" = yes ||
23378 test "$enable_shared" = no
; then
23379 # Fast installation is not necessary
23380 enable_fast_install
=needless
23389 fi # test -n "$compiler"
23395 with_gnu_ld
=$lt_save_with_gnu_ld
23396 lt_cv_path_LDCXX
=$lt_cv_path_LD
23397 lt_cv_path_LD
=$lt_save_path_LD
23398 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23399 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23400 fi # test "$_lt_caught_CXX_error" != yes
23403 ac_cpp
='$CXXCPP $CPPFLAGS'
23404 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23405 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23406 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23423 # Only expand once:
23429 if test x
$enable_darwin_at_rpath = xyes
; then
23430 ENABLE_DARWIN_AT_RPATH_TRUE
=
23431 ENABLE_DARWIN_AT_RPATH_FALSE
='#'
23433 ENABLE_DARWIN_AT_RPATH_TRUE
='#'
23434 ENABLE_DARWIN_AT_RPATH_FALSE
=
23437 DARWIN_DO_EXTRA_RPATH
=0
23439 # Check whether --with-darwin-extra-rpath was given.
23440 if test "${with_darwin_extra_rpath+set}" = set; then :
23441 withval
=$with_darwin_extra_rpath; if test x
"$withval" != x
; then
23442 DARWIN_ADD_RPATH
="$withval"
23443 DARWIN_DO_EXTRA_RPATH
=1
23448 cat >>confdefs.h
<<_ACEOF
23449 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
23453 cat >>confdefs.h
<<_ACEOF
23454 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
23458 # Identify the assembler which will work hand-in-glove with the newly
23459 # built GCC, so that we can examine its features. This is the assembler
23460 # which will be driven by the driver program.
23462 # If build != host, and we aren't building gas in-tree, we identify a
23463 # build->target assembler and hope that it will have the same features
23464 # as the host->target assembler we'll be using.
23465 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23467 if ${gcc_cv_as+:} false
; then :
23471 if test -x "$DEFAULT_ASSEMBLER"; then
23472 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23473 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23474 && test -f ..
/gas
/Makefile \
23475 && test x
$build = x
$host; then
23476 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23477 elif test -x as
$build_exeext; then
23478 # Build using assembler in the current directory.
23479 gcc_cv_as
=.
/as
$build_exeext
23480 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23481 gcc_cv_as
="$AS_FOR_TARGET"
23483 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23484 set dummy
$AS_FOR_TARGET; ac_word
=$2
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23486 $as_echo_n "checking for $ac_word... " >&6; }
23487 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23488 $as_echo_n "(cached) " >&6
23492 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23496 for as_dir
in $PATH
23499 test -z "$as_dir" && as_dir
=.
23500 for ac_exec_ext
in '' $ac_executable_extensions; do
23501 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23502 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23513 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23514 if test -n "$gcc_cv_as"; then
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23516 $as_echo "$gcc_cv_as" >&6; }
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23519 $as_echo "no" >&6; }
23526 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23528 case "$ORIGINAL_AS_FOR_TARGET" in
23529 .
/as | .
/as
$build_exeext) ;;
23530 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23535 # Check whether --enable-ld was given.
23536 if test "${enable_ld+set}" = set; then :
23537 enableval
=$enable_ld; case "${enableval}" in
23545 install_gold_as_default
=no
23546 # Check whether --enable-gold was given.
23547 if test "${enable_gold+set}" = set; then :
23548 enableval
=$enable_gold; case "${enableval}" in
23550 install_gold_as_default
=yes
23553 if test x
${default_ld} != x
; then
23554 install_gold_as_default
=yes
23560 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23566 # Identify the linker which will work hand-in-glove with the newly
23567 # built GCC, so that we can examine its features. This is the linker
23568 # which will be driven by the driver program.
23570 # If build != host, and we aren't building gas in-tree, we identify a
23571 # build->target linker and hope that it will have the same features
23572 # as the host->target linker we'll be using.
23573 gcc_cv_gld_major_version
=
23574 gcc_cv_gld_minor_version
=
23575 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23576 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23577 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23579 if ${gcc_cv_ld+:} false
; then :
23583 if test -x "$DEFAULT_LINKER"; then
23584 gcc_cv_ld
="$DEFAULT_LINKER"
23585 elif test $install_gold_as_default = yes \
23586 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23587 && test -f ..
/gold
/Makefile \
23588 && test x
$build = x
$host; then
23589 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23590 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23591 && test -f ..
/ld
/Makefile \
23592 && test x
$build = x
$host; then
23593 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23594 elif test -x collect-ld
$build_exeext; then
23595 # Build using linker in the current directory.
23596 gcc_cv_ld
=.
/collect-ld
$build_exeext
23597 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23598 gcc_cv_ld
="$LD_FOR_TARGET"
23600 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23601 set dummy
$LD_FOR_TARGET; ac_word
=$2
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23603 $as_echo_n "checking for $ac_word... " >&6; }
23604 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23605 $as_echo_n "(cached) " >&6
23609 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23613 for as_dir
in $PATH
23616 test -z "$as_dir" && as_dir
=.
23617 for ac_exec_ext
in '' $ac_executable_extensions; do
23618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23619 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23630 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23631 if test -n "$gcc_cv_ld"; then
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23633 $as_echo "$gcc_cv_ld" >&6; }
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23636 $as_echo "no" >&6; }
23643 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23644 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23645 # if the PLUGIN_LD is set ld-new, just have it as ld
23646 # as that is the installed named.
23647 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23648 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23649 PLUGIN_LD_SUFFIX
=ld
23652 # Check whether --with-plugin-ld was given.
23653 if test "${with_plugin_ld+set}" = set; then :
23654 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23655 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23656 PLUGIN_LD_SUFFIX
="$withval"
23662 cat >>confdefs.h
<<_ACEOF
23663 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23667 # Check to see if we are using gold instead of ld
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23669 $as_echo_n "checking whether we are using gold... " >&6; }
23671 if test x
$gcc_cv_ld != x
; then
23672 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23673 |
grep "GNU gold" > /dev
/null
; then
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23678 $as_echo "$ld_is_gold" >&6; }
23680 # Check to see if we are using mold instead of ld
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23682 $as_echo_n "checking whether we are using mold... " >&6; }
23684 if test x
$gcc_cv_ld != x
; then
23685 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23686 |
grep "mold" > /dev
/null
; then
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23691 $as_echo "$ld_is_mold" >&6; }
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23695 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23696 # Check to see if default ld is not gold, but gold is
23697 # available and has support for split stack. If gcc was configured
23698 # with gold then no checking is done.
23700 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23702 # For platforms other than powerpc64*, enable as appropriate.
23704 gold_non_default
=no
23705 ld_gold
=`which ${gcc_cv_ld}.gold`
23706 # Make sure this gold has minimal split stack support
23707 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23708 ld_vers
=`$ld_gold --version | sed 1q`
23709 gold_vers
=`echo $ld_vers | sed -n \
23710 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23712 # check that the gold version contains the complete split stack support
23713 # on powerpc64 big and little endian
23715 case "$gold_vers" in
23716 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23718 *) gold_non_default
=no
23724 if test $gold_non_default = yes; then
23726 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23731 $as_echo "$gold_non_default" >&6; }
23733 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23735 case "$ORIGINAL_LD_FOR_TARGET" in
23736 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23737 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23742 $as_echo_n "checking what linker to use... " >&6; }
23743 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23744 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23745 # Single tree build which includes ld. We want to prefer it
23746 # over whatever linker top-level may have detected, since
23747 # we'll use what we're building after installation anyway.
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23749 $as_echo "newly built ld" >&6; }
23751 in_tree_ld_is_elf
=no
23752 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23753 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23754 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23755 in_tree_ld_is_elf
=yes
23756 elif test "$ld_is_gold" = yes; then
23757 in_tree_ld_is_elf
=yes
23759 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
23761 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23762 if test x
$gcc_cv_gld_version != x
; then
23766 case $gcc_cv_gld_version in
23768 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23770 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23771 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23772 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23773 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23776 $as_echo "$gcc_cv_ld" >&6; }
23778 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23779 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23780 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23786 # Figure out what nm we will be using.
23787 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23788 if ${gcc_cv_nm+:} false
; then :
23792 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23793 && test -f ..
/binutils
/Makefile \
23794 && test x
$build = x
$host; then
23795 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23796 elif test -x nm
$build_exeext; then
23797 gcc_cv_nm
=.
/nm
$build_exeext
23798 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23799 gcc_cv_nm
="$NM_FOR_TARGET"
23801 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23802 set dummy
$NM_FOR_TARGET; ac_word
=$2
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23804 $as_echo_n "checking for $ac_word... " >&6; }
23805 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23806 $as_echo_n "(cached) " >&6
23810 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23814 for as_dir
in $PATH
23817 test -z "$as_dir" && as_dir
=.
23818 for ac_exec_ext
in '' $ac_executable_extensions; do
23819 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23820 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23831 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23832 if test -n "$gcc_cv_nm"; then
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23834 $as_echo "$gcc_cv_nm" >&6; }
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23837 $as_echo "no" >&6; }
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23845 $as_echo_n "checking what nm to use... " >&6; }
23846 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23847 # Single tree build which includes binutils.
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23849 $as_echo "newly built nm" >&6; }
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23853 $as_echo "$gcc_cv_nm" >&6; }
23857 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23859 case "$ORIGINAL_NM_FOR_TARGET" in
23860 .
/nm | .
/nm
$build_exeext) ;;
23861 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23866 # Figure out what objdump we will be using.
23867 if ${gcc_cv_objdump+:} false
; then :
23871 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23872 && test -f ..
/binutils
/Makefile \
23873 && test x
$build = x
$host; then
23874 # Single tree build which includes binutils.
23875 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23876 elif test -x objdump
$build_exeext; then
23877 gcc_cv_objdump
=.
/objdump
$build_exeext
23878 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23879 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23881 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23882 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23884 $as_echo_n "checking for $ac_word... " >&6; }
23885 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23886 $as_echo_n "(cached) " >&6
23888 case $gcc_cv_objdump in
23890 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23894 for as_dir
in $PATH
23897 test -z "$as_dir" && as_dir
=.
23898 for ac_exec_ext
in '' $ac_executable_extensions; do
23899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23900 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23911 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23912 if test -n "$gcc_cv_objdump"; then
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23914 $as_echo "$gcc_cv_objdump" >&6; }
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23917 $as_echo "no" >&6; }
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23925 $as_echo_n "checking what objdump to use... " >&6; }
23926 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23927 # Single tree build which includes binutils.
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23929 $as_echo "newly built objdump" >&6; }
23930 elif test x
$gcc_cv_objdump = x
; then
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23932 $as_echo "not found" >&6; }
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23935 $as_echo "$gcc_cv_objdump" >&6; }
23938 # Figure out what readelf we will be using.
23939 if ${gcc_cv_readelf+:} false
; then :
23943 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23944 && test -f ..
/binutils
/Makefile \
23945 && test x
$build = x
$host; then
23946 # Single tree build which includes binutils.
23947 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23948 elif test -x readelf
$build_exeext; then
23949 gcc_cv_readelf
=.
/readelf
$build_exeext
23950 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23951 gcc_cv_readelf
="$READELF_FOR_TARGET"
23953 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23954 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23956 $as_echo_n "checking for $ac_word... " >&6; }
23957 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23958 $as_echo_n "(cached) " >&6
23960 case $gcc_cv_readelf in
23962 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23966 for as_dir
in $PATH
23969 test -z "$as_dir" && as_dir
=.
23970 for ac_exec_ext
in '' $ac_executable_extensions; do
23971 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23972 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23983 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23984 if test -n "$gcc_cv_readelf"; then
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23986 $as_echo "$gcc_cv_readelf" >&6; }
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23989 $as_echo "no" >&6; }
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23997 $as_echo_n "checking what readelf to use... " >&6; }
23998 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23999 # Single tree build which includes binutils.
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
24001 $as_echo "newly built readelf" >&6; }
24002 elif test x
$gcc_cv_readelf = x
; then
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24004 $as_echo "not found" >&6; }
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
24007 $as_echo "$gcc_cv_readelf" >&6; }
24010 # Figure out what otool we will be using.
24011 if ${gcc_cv_otool+:} false
; then :
24015 if test -x otool
$build_exeext; then
24016 gcc_cv_otool
=.
/otool
$build_exeext
24017 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
24018 gcc_cv_otool
="$OTOOL_FOR_TARGET"
24020 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
24021 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24023 $as_echo_n "checking for $ac_word... " >&6; }
24024 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
24025 $as_echo_n "(cached) " >&6
24027 case $gcc_cv_otool in
24029 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
24032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24033 for as_dir
in $PATH
24036 test -z "$as_dir" && as_dir
=.
24037 for ac_exec_ext
in '' $ac_executable_extensions; do
24038 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24039 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
24040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24050 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
24051 if test -n "$gcc_cv_otool"; then
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24053 $as_echo "$gcc_cv_otool" >&6; }
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24056 $as_echo "no" >&6; }
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
24064 $as_echo_n "checking what otool to use... " >&6; }
24065 if test x
$gcc_cv_otool = x
; then
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24067 $as_echo "not found" >&6; }
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24070 $as_echo "$gcc_cv_otool" >&6; }
24073 # Figure out the dsymutil we will use.
24074 if ${gcc_cv_dsymutil+:} false
; then :
24078 if test -x "$DEFAULT_DSYMUTIL"; then
24079 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
24080 elif test -x dsymutil
$build_exeext; then
24081 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
24082 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
24083 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
24084 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
24085 gcc_cv_dsymutil
=$DSYMUTIL
24087 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
24088 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24090 $as_echo_n "checking for $ac_word... " >&6; }
24091 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
24092 $as_echo_n "(cached) " >&6
24094 case $gcc_cv_dsymutil in
24096 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
24099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24100 for as_dir
in $PATH
24103 test -z "$as_dir" && as_dir
=.
24104 for ac_exec_ext
in '' $ac_executable_extensions; do
24105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24106 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
24107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24117 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
24118 if test -n "$gcc_cv_dsymutil"; then
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
24120 $as_echo "$gcc_cv_dsymutil" >&6; }
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24123 $as_echo "no" >&6; }
24130 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
24132 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
24133 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
24134 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
24138 # Figure out what assembler alignment features are present.
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
24140 $as_echo_n "checking assembler flags... " >&6; }
24141 if ${gcc_cv_as_flags+:} false
; then :
24142 $as_echo_n "(cached) " >&6
24145 i
[34567]86-*-linux*)
24146 gcc_cv_as_flags
=--32
24148 x86_64-
*-linux-gnux32)
24149 gcc_cv_as_flags
=--x32
24152 gcc_cv_as_flags
=--64
24154 powerpc
*-*-darwin*)
24155 gcc_cv_as_flags
="-arch ppc"
24158 gcc_cv_as_flags
=" "
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
24163 $as_echo "$gcc_cv_as_flags" >&6; }
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
24166 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
24167 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
24168 $as_echo_n "(cached) " >&6
24170 gcc_cv_as_balign_and_p2align
=no
24171 if test x
$gcc_cv_as != x
; then
24172 $as_echo '.balign 4
24173 .p2align 2' > conftest.s
24174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24176 (eval $ac_try) 2>&5
24178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24179 test $ac_status = 0; }; }
24181 gcc_cv_as_balign_and_p2align
=yes
24183 echo "configure: failed program was" >&5
24186 rm -f conftest.o conftest.s
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
24190 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
24191 if test $gcc_cv_as_balign_and_p2align = yes; then
24193 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24199 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24200 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
24201 $as_echo_n "(cached) " >&6
24203 gcc_cv_as_max_skip_p2align
=no
24204 if test x
$gcc_cv_as != x
; then
24205 $as_echo '.p2align 4,,7' > conftest.s
24206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24208 (eval $ac_try) 2>&5
24210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24211 test $ac_status = 0; }; }
24213 gcc_cv_as_max_skip_p2align
=yes
24215 echo "configure: failed program was" >&5
24218 rm -f conftest.o conftest.s
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24222 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24223 if test $gcc_cv_as_max_skip_p2align = yes; then
24225 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24231 $as_echo_n "checking assembler for .literal16... " >&6; }
24232 if ${gcc_cv_as_literal16+:} false
; then :
24233 $as_echo_n "(cached) " >&6
24235 gcc_cv_as_literal16
=no
24236 if test x
$gcc_cv_as != x
; then
24237 $as_echo '.literal16' > conftest.s
24238 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24240 (eval $ac_try) 2>&5
24242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24243 test $ac_status = 0; }; }
24245 gcc_cv_as_literal16
=yes
24247 echo "configure: failed program was" >&5
24250 rm -f conftest.o conftest.s
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24254 $as_echo "$gcc_cv_as_literal16" >&6; }
24255 if test $gcc_cv_as_literal16 = yes; then
24257 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24263 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24264 if ${gcc_cv_as_subsection_m1+:} false
; then :
24265 $as_echo_n "(cached) " >&6
24267 gcc_cv_as_subsection_m1
=no
24268 if test x
$gcc_cv_as != x
; then
24269 $as_echo 'conftest_label1: .word 0
24271 conftest_label2: .word 0
24272 .previous' > conftest.s
24273 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24275 (eval $ac_try) 2>&5
24277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24278 test $ac_status = 0; }; }
24280 if test x
$gcc_cv_nm != x
; then
24281 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
24282 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
24283 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
24285 else gcc_cv_as_subsection_m1
=yes
24287 rm -f conftest.nm1 conftest.nm2
24290 echo "configure: failed program was" >&5
24293 rm -f conftest.o conftest.s
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24297 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24298 if test $gcc_cv_as_subsection_m1 = yes; then
24300 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24306 $as_echo_n "checking assembler for .weak... " >&6; }
24307 if ${gcc_cv_as_weak+:} false
; then :
24308 $as_echo_n "(cached) " >&6
24311 if test x
$gcc_cv_as != x
; then
24312 $as_echo ' .weak foobar' > conftest.s
24313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24315 (eval $ac_try) 2>&5
24317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24318 test $ac_status = 0; }; }
24322 echo "configure: failed program was" >&5
24325 rm -f conftest.o conftest.s
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24329 $as_echo "$gcc_cv_as_weak" >&6; }
24330 if test $gcc_cv_as_weak = yes; then
24332 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24338 $as_echo_n "checking assembler for .weakref... " >&6; }
24339 if ${gcc_cv_as_weakref+:} false
; then :
24340 $as_echo_n "(cached) " >&6
24342 gcc_cv_as_weakref
=no
24343 if test x
$gcc_cv_as != x
; then
24344 $as_echo ' .weakref foobar, barfnot' > conftest.s
24345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24347 (eval $ac_try) 2>&5
24349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24350 test $ac_status = 0; }; }
24352 gcc_cv_as_weakref
=yes
24354 echo "configure: failed program was" >&5
24357 rm -f conftest.o conftest.s
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24361 $as_echo "$gcc_cv_as_weakref" >&6; }
24362 if test $gcc_cv_as_weakref = yes; then
24364 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24370 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24371 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
24372 $as_echo_n "(cached) " >&6
24374 gcc_cv_as_nsubspa_comdat
=no
24375 if test x
$gcc_cv_as != x
; then
24376 $as_echo ' .SPACE $TEXT$
24377 .NSUBSPA $CODE$,COMDAT' > conftest.s
24378 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24380 (eval $ac_try) 2>&5
24382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24383 test $ac_status = 0; }; }
24385 gcc_cv_as_nsubspa_comdat
=yes
24387 echo "configure: failed program was" >&5
24390 rm -f conftest.o conftest.s
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24394 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24395 if test $gcc_cv_as_nsubspa_comdat = yes; then
24397 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24402 # .hidden needs to be supported in both the assembler and the linker,
24403 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24404 # This is irritatingly difficult to feature test for; we have to check the
24405 # date string after the version number. If we've got an in-tree
24406 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24408 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24409 case "${target}" in
24411 conftest_s
=' .globl foobar,hidden'
24414 conftest_s
=' .hidden foobar
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24419 $as_echo_n "checking assembler for .hidden... " >&6; }
24420 if ${gcc_cv_as_hidden+:} false
; then :
24421 $as_echo_n "(cached) " >&6
24423 gcc_cv_as_hidden
=no
24424 if test x
$gcc_cv_as != x
; then
24425 $as_echo "$conftest_s" > conftest.s
24426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24428 (eval $ac_try) 2>&5
24430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24431 test $ac_status = 0; }; }
24433 gcc_cv_as_hidden
=yes
24435 echo "configure: failed program was" >&5
24438 rm -f conftest.o conftest.s
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24442 $as_echo "$gcc_cv_as_hidden" >&6; }
24445 case "${target}" in
24447 # Darwin as has some visibility support, though with a different syntax.
24448 gcc_cv_as_hidden
=yes
24452 # gnu_indirect_function type is an extension proposed at
24453 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24454 # selection of function implementation
24455 # Check whether --enable-gnu-indirect-function was given.
24456 if test "${enable_gnu_indirect_function+set}" = set; then :
24457 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24459 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24460 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24463 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24467 case "${target}" in
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24470 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24471 cat > conftest.s
<<EOF
24473 .type foo_resolver, @function
24476 .size foo_resolver, .-foo_resolver
24479 .type foo, %gnu_indirect_function
24480 .set foo, foo_resolver
24483 .type bar, @function
24489 if test x
$gcc_cv_as != x \
24490 && test x
$gcc_cv_ld != x \
24491 && test x
$gcc_cv_readelf != x \
24492 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24493 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24494 && $gcc_cv_readelf --relocs --wide conftest \
24495 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24496 enable_gnu_indirect_function
=yes
24498 rm -f conftest conftest.o conftest.s
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24500 $as_echo "$enable_gnu_indirect_function" >&6; }
24504 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24506 cat >>confdefs.h
<<_ACEOF
24507 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24512 if test $in_tree_ld != yes ; then
24513 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24514 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24515 if test x
"$ld_is_gold" = xyes
; then
24516 # GNU gold --version looks like this:
24518 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24520 # We extract the binutils version which is more familiar and specific
24521 # than the gold version.
24522 ld_vers
=`echo $ld_ver | sed -n \
24523 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24525 # GNU ld --version looks like this:
24527 # GNU ld (GNU Binutils) 2.21.51.20110225
24528 ld_vers
=`echo $ld_ver | sed -n \
24529 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24531 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'`
24532 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24533 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24534 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24536 case "${target}" in
24538 # Solaris 2 ld -V output looks like this for a regular version:
24540 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24542 # but test versions add stuff at the end:
24544 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24546 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24547 # numbers can be used in ld.so.1 feature checks even if a different
24548 # linker is configured.
24549 ld_ver
=`$gcc_cv_ld -V 2>&1`
24550 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24551 ld_vers
=`echo $ld_ver | sed -n \
24552 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24553 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24554 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24562 $as_echo_n "checking linker for .hidden support... " >&6; }
24563 if ${gcc_cv_ld_hidden+:} false
; then :
24564 $as_echo_n "(cached) " >&6
24566 if test $in_tree_ld = yes ; then
24567 gcc_cv_ld_hidden
=no
24568 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 \
24569 && test $in_tree_ld_is_elf = yes; then
24570 gcc_cv_ld_hidden
=yes
24573 gcc_cv_ld_hidden
=yes
24574 if test x
"$ld_is_gold" = xyes
; then
24576 elif test x
"$ld_is_mold" = xyes
; then
24578 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24579 if test 0"$ld_date" -lt 20020404; then
24580 if test -n "$ld_date"; then
24581 # If there was date string, but was earlier than 2002-04-04, fail
24582 gcc_cv_ld_hidden
=no
24583 elif test -z "$ld_vers"; then
24584 # If there was no date string nor ld version number, something is wrong
24585 gcc_cv_ld_hidden
=no
24587 test -z "$ld_vers_patch" && ld_vers_patch
=0
24588 if test "$ld_vers_major" -lt 2; then
24589 gcc_cv_ld_hidden
=no
24590 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24591 gcc_cv_ld_hidden
="no"
24592 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24593 gcc_cv_ld_hidden
=no
24598 case "${target}" in
24600 gcc_cv_ld_hidden
=yes
24603 # Darwin ld has some visibility support.
24604 gcc_cv_ld_hidden
=yes
24606 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24607 gcc_cv_ld_hidden
=yes
24610 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24611 # .symbolic was only added in Solaris 9 12/02.
24612 gcc_cv_ld_hidden
=yes
24615 gcc_cv_ld_hidden
=no
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24622 $as_echo "$gcc_cv_ld_hidden" >&6; }
24623 libgcc_visibility
=no
24626 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24627 libgcc_visibility
=yes
24629 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24634 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24635 gcc_cv_ld_ro_rw_mix
=unknown
24636 if test $in_tree_ld = yes ; then
24637 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 \
24638 && test $in_tree_ld_is_elf = yes; then
24639 gcc_cv_ld_ro_rw_mix
=read-write
24641 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24642 echo '.section myfoosect, "a"' > conftest1.s
24643 echo '.section myfoosect, "aw"' > conftest2.s
24644 echo '.byte 1' >> conftest2.s
24645 echo '.section myfoosect, "a"' > conftest3.s
24646 echo '.byte 0' >> conftest3.s
24647 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24648 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24649 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1; then
24650 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24651 conftest2.o conftest3.o
> /dev
/null
2>&1 \
24652 ||
$gcc_cv_ld -r -o conftest1.so conftest1.o \
24653 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24654 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24655 | sed -e '/myfoosect/!d' -e N`
24656 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24657 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24658 gcc_cv_ld_ro_rw_mix
=read-only
24660 gcc_cv_ld_ro_rw_mix
=read-write
24665 rm -f conftest.
* conftest
[123].
*
24667 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24669 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24673 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24675 # Check whether --enable-initfini-array was given.
24676 if test "${enable_initfini_array+set}" = set; then :
24677 enableval
=$enable_initfini_array;
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24681 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24682 if ${gcc_cv_initfini_array+:} false
; then :
24683 $as_echo_n "(cached) " >&6
24685 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24686 case "${target}" in
24688 if test "$cross_compiling" = yes; then :
24689 gcc_cv_initfini_array
=no
24691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24692 /* end confdefs.h. */
24695 #error Not an ELF OS
24697 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24698 if it can be used. */
24700 int main (void) { return x; }
24701 int foo (void) { x = 0; }
24702 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24705 if ac_fn_cxx_try_run
"$LINENO"; then :
24706 gcc_cv_initfini_array
=yes
24708 gcc_cv_initfini_array
=no
24710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24715 gcc_cv_initfini_array
=no
24716 if test $in_tree_ld = yes ; then
24717 if test "$gcc_cv_gld_major_version" -eq 2 \
24718 -a "$gcc_cv_gld_minor_version" -ge 22 \
24719 -o "$gcc_cv_gld_major_version" -gt 2 \
24720 && test $in_tree_ld_is_elf = yes; then
24721 gcc_cv_initfini_array
=yes
24723 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24724 case $target:$gas in
24727 sh_type
='%progbits'
24729 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24731 sh_type
='@progbits'
24733 sparc
*-*-solaris2*:no
)
24735 sh_type
='#progbits'
24739 case "$target:$gnu_ld" in
24741 cat > conftest.s
<<EOF
24742 .section .dtors,$sh_flags,$sh_type
24744 .byte 'A', 'A', 'A', 'A'
24745 .section .ctors,$sh_flags,$sh_type
24747 .byte 'B', 'B', 'B', 'B'
24748 .section .fini_array.65530,$sh_flags,$sh_type
24750 .byte 'C', 'C', 'C', 'C'
24751 .section .init_array.65530,$sh_flags,$sh_type
24753 .byte 'D', 'D', 'D', 'D'
24754 .section .dtors.64528,$sh_flags,$sh_type
24756 .byte 'E', 'E', 'E', 'E'
24757 .section .ctors.64528,$sh_flags,$sh_type
24759 .byte 'F', 'F', 'F', 'F'
24760 .section .fini_array.01005,$sh_flags,$sh_type
24762 .byte 'G', 'G', 'G', 'G'
24763 .section .init_array.01005,$sh_flags,$sh_type
24765 .byte 'H', 'H', 'H', 'H'
24770 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24771 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24772 && $gcc_cv_objdump -s -j .init_array conftest \
24773 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24774 && $gcc_cv_objdump -s -j .fini_array conftest \
24775 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24776 gcc_cv_initfini_array
=yes
24780 # When Solaris ld added constructor priority support, it was
24781 # decided to only handle .init_array.N/.fini_array.N since
24782 # there was no need for backwards compatibility with
24783 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24784 # sections with correct execution order resp. to
24785 # .init_array/.fini_array, while gld merges them into
24786 # .init_array/.fini_array.
24787 cat > conftest.s
<<EOF
24788 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24790 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24791 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24793 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24794 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24796 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24797 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24799 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24804 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24805 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24806 && $gcc_cv_objdump -s -j .init_array conftest \
24807 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24808 && $gcc_cv_objdump -s -j .fini_array conftest \
24809 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24810 gcc_cv_initfini_array
=yes
24814 rm -f conftest conftest.
*
24816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24817 /* end confdefs.h. */
24820 # error Not an ELF OS
24822 #include <stdlib.h>
24823 #if defined __GLIBC_PREREQ
24824 # if __GLIBC_PREREQ (2, 4)
24826 # error GLIBC 2.4 required
24829 # if defined __sun__ && defined __svr4__
24830 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24832 # error The C library not known to support .init_array/.fini_array
24837 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24840 gcc_cv_initfini_array
=no
24842 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24845 case "${target}" in
24846 aarch64
*-linux-gnu*)
24847 # AArch64 postdates glibc support for .init_array/.fini_array,
24848 # so we don't need the preprocessor test above.
24849 gcc_cv_initfini_array
=yes
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24854 $as_echo_n "checking cross compile... guessing... " >&6; }
24855 gcc_cv_initfini_array
=no
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24861 $as_echo "$gcc_cv_initfini_array" >&6; }
24862 enable_initfini_array
=$gcc_cv_initfini_array
24867 cat >>confdefs.h
<<_ACEOF
24868 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24873 # Some assemblers (GNU as for LoongArch) generates relocations for
24874 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
24875 # probing leb128 support then.
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
24879 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
24880 if ${gcc_cv_as_mno_relax+:} false
; then :
24881 $as_echo_n "(cached) " >&6
24883 gcc_cv_as_mno_relax
=no
24884 if test x
$gcc_cv_as != x
; then
24885 $as_echo '.text' > conftest.s
24886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
24887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888 (eval $ac_try) 2>&5
24890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891 test $ac_status = 0; }; }
24893 gcc_cv_as_mno_relax
=yes
24895 echo "configure: failed program was" >&5
24898 rm -f conftest.o conftest.s
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
24902 $as_echo "$gcc_cv_as_mno_relax" >&6; }
24903 if test $gcc_cv_as_mno_relax = yes; then
24904 check_leb128_asflags
=-mno-relax
24909 check_leb128_asflags
=
24913 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24914 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24915 # these directives, even when they appear to accept them.
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24917 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24918 if ${gcc_cv_as_leb128+:} false
; then :
24919 $as_echo_n "(cached) " >&6
24921 gcc_cv_as_leb128
=no
24922 if test x
$gcc_cv_as != x
; then
24929 .uleb128 0x8000000000000000
24931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
24932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24933 (eval $ac_try) 2>&5
24935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24936 test $ac_status = 0; }; }
24939 if test "x$gcc_cv_objdump" != x
; then
24940 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24941 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24942 gcc_cv_as_leb128
=yes
24944 elif test "x$gcc_cv_otool" != x
; then
24945 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24946 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24947 gcc_cv_as_leb128
=yes
24950 # play safe, assume the assembler is broken.
24955 echo "configure: failed program was" >&5
24958 rm -f conftest.o conftest.s
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24962 $as_echo "$gcc_cv_as_leb128" >&6; }
24963 if test $gcc_cv_as_leb128 = yes; then
24965 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24968 if test $gcc_cv_as_leb128 != yes; then
24970 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24974 # Determine if an .eh_frame section is read-only.
24975 gcc_fn_eh_frame_ro
() {
24976 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24977 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24978 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24981 # Check if we have assembler support for unwind directives.
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24983 $as_echo_n "checking assembler for cfi directives... " >&6; }
24984 if ${gcc_cv_as_cfi_directive+:} false
; then :
24985 $as_echo_n "(cached) " >&6
24987 gcc_cv_as_cfi_directive
=no
24988 if test x
$gcc_cv_as != x
; then
24994 .cfi_escape 1, 2, 3, 4, 5
24995 .cfi_endproc' > conftest.s
24996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24998 (eval $ac_try) 2>&5
25000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25001 test $ac_status = 0; }; }
25005 # If the linker used on Solaris (like Sun ld) isn't capable of merging
25006 # read-only and read-write sections, we need to make sure that the
25007 # assembler used emits read-write .eh_frame sections.
25008 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
25009 gcc_cv_as_cfi_directive
=yes
25010 elif test "x$gcc_cv_objdump" = x
; then
25011 # No objdump, err on the side of caution.
25012 gcc_cv_as_cfi_directive
=no
25014 if test x
$gas = xyes
; then
25022 sparc
*-*-solaris2.
*)
25023 # On Solaris/SPARC, .eh_frame sections should always be read-write.
25024 if gcc_fn_eh_frame_ro
$as_32_opt \
25025 || gcc_fn_eh_frame_ro
$as_64_opt; then
25026 gcc_cv_as_cfi_directive
=no
25028 gcc_cv_as_cfi_directive
=yes
25031 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25032 # On Solaris/x86, make sure that GCC and assembler agree on using
25033 # read-only .eh_frame sections for 64-bit.
25034 if gcc_fn_eh_frame_ro
$as_32_opt; then
25035 gcc_cv_as_cfi_directive
=no
25036 elif gcc_fn_eh_frame_ro
$as_64_opt; then
25037 gcc_cv_as_cfi_directive
=yes
25039 gcc_cv_as_cfi_directive
=no
25046 gcc_cv_as_cfi_directive
=yes
25050 echo "configure: failed program was" >&5
25053 rm -f conftest.o conftest.s
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
25057 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
25060 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
25062 $as_echo_n "checking assembler for working cfi advance... " >&6; }
25063 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
25064 $as_echo_n "(cached) " >&6
25066 gcc_cv_as_cfi_advance_working
=no
25067 if test x
$gcc_cv_as != x
; then
25070 .cfi_adjust_cfa_offset 64
25072 .cfi_adjust_cfa_offset 128
25073 .cfi_endproc' > conftest.s
25074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25082 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
25083 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
25084 gcc_cv_as_cfi_advance_working
=yes
25088 echo "configure: failed program was" >&5
25091 rm -f conftest.o conftest.s
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
25095 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
25099 # no objdump, err on the side of caution
25100 gcc_cv_as_cfi_advance_working
=no
25104 cat >>confdefs.h
<<_ACEOF
25105 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
25106 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
25112 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
25113 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
25114 $as_echo_n "(cached) " >&6
25116 gcc_cv_as_cfi_personality_directive
=no
25117 if test x
$gcc_cv_as != x
; then
25120 .cfi_personality 0, symbol
25121 .cfi_endproc' > conftest.s
25122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25129 gcc_cv_as_cfi_personality_directive
=yes
25131 echo "configure: failed program was" >&5
25134 rm -f conftest.o conftest.s
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
25138 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
25142 cat >>confdefs.h
<<_ACEOF
25143 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
25148 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
25149 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
25150 $as_echo_n "(cached) " >&6
25152 gcc_cv_as_cfi_sections_directive
=no
25153 if test x
$gcc_cv_as != x
; then
25155 .cfi_sections .debug_frame, .eh_frame
25157 .cfi_endproc' > conftest.s
25158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25160 (eval $ac_try) 2>&5
25162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25163 test $ac_status = 0; }; }
25166 win32 | pe | cygwin
* | mingw32
*)
25167 # Need to check that we generated the correct relocation for the
25168 # .debug_frame section. This was fixed for binutils 2.21.
25169 gcc_cv_as_cfi_sections_directive
=no
25170 if test "x$gcc_cv_objdump" != x
; then
25171 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
25172 grep -i secrel
> /dev
/null
; then
25173 gcc_cv_as_cfi_sections_directive
=yes
25178 gcc_cv_as_cfi_sections_directive
=yes
25182 echo "configure: failed program was" >&5
25185 rm -f conftest.o conftest.s
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
25189 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
25194 cat >>confdefs.h
<<_ACEOF
25195 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
25199 # GAS versions up to and including 2.11.0 may mis-optimize
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
25202 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
25203 if ${gcc_cv_as_eh_frame+:} false
; then :
25204 $as_echo_n "(cached) " >&6
25206 gcc_cv_as_eh_frame
=no
25207 if test x
$gcc_cv_as != x
; then
25214 .section .eh_frame,"aw",@progbits
25216 .4byte .LECIE1-.LSCIE1
25230 .4byte .LEFDE1-.LASFDE1
25232 .4byte .LASFDE1-__FRAME_BEGIN__
25239 .LEFDE1:' > conftest.s
25240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242 (eval $ac_try) 2>&5
25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245 test $ac_status = 0; }; }
25247 cat > conftest.lit
<<EOF
25248 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25249 0010 01000000 12000000 18000000 00000000 ................
25250 0020 08000000 04080000 0044 .........D
25252 cat > conftest.big
<<EOF
25253 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25254 0010 00000001 00000012 00000018 00000000 ................
25255 0020 00000008 04000000 0844 .........D
25257 # If the assembler didn't choke, and we can objdump,
25258 # and we got the correct data, then succeed.
25259 # The text in the here-document typically retains its unix-style line
25260 # endings, while the output of objdump will use host line endings.
25261 # Therefore, use diff -b for the comparisons.
25262 if test x
$gcc_cv_objdump != x \
25263 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
25264 |
tail -3 > conftest.got \
25265 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
25266 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
25268 gcc_cv_as_eh_frame
=yes
25269 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25271 (eval $ac_try) 2>&5
25273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25274 test $ac_status = 0; }; }; then
25275 gcc_cv_as_eh_frame
=buggy
25277 # Uh oh, what do we do now?
25278 gcc_cv_as_eh_frame
=no
25281 echo "configure: failed program was" >&5
25284 rm -f conftest.o conftest.s
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25288 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25292 if test $gcc_cv_as_eh_frame = buggy
; then
25294 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25298 # Test if the assembler supports the section flag 'e' or #exclude for
25299 # specifying an excluded section.
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25301 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25302 if ${gcc_cv_as_section_exclude_e+:} false
; then :
25303 $as_echo_n "(cached) " >&6
25305 gcc_cv_as_section_exclude_e
=no
25306 if test x
$gcc_cv_as != x
; then
25307 $as_echo '.section foo1,"e"
25308 .byte 0,0,0,0' > conftest.s
25309 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25311 (eval $ac_try) 2>&5
25313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; }
25316 gcc_cv_as_section_exclude_e
=yes
25318 echo "configure: failed program was" >&5
25321 rm -f conftest.o conftest.s
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25325 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25328 if test $gcc_cv_as_section_exclude_e = no
; then
25329 case "${target}" in
25330 # Solaris as uses #exclude instead.
25332 case "${target}" in
25333 sparc
*-*-solaris2*)
25334 conftest_s
='.section "foo1", #exclude'
25336 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25337 conftest_s
='.section foo1, #exclude'
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25343 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25344 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
25345 $as_echo_n "(cached) " >&6
25347 gcc_cv_as_section_exclude_hash
=no
25348 if test x
$gcc_cv_as != x
; then
25349 $as_echo "$conftest_s
25350 .byte 0,0,0,0" > conftest.s
25351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25353 (eval $ac_try) 2>&5
25355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25356 test $ac_status = 0; }; }
25358 gcc_cv_as_section_exclude_hash
=yes
25360 echo "configure: failed program was" >&5
25363 rm -f conftest.o conftest.s
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25367 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25372 cat >>confdefs.h
<<_ACEOF
25373 #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`
25377 # Test if the assembler supports the section flag 'R' for specifying
25378 # section with SHF_GNU_RETAIN.
25379 case "${target}" in
25380 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25381 # assembler supports the section flag 'R', it doesn't mean that
25382 # Solairs ld supports it.
25384 gcc_cv_as_shf_gnu_retain
=no
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25388 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25389 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
25390 $as_echo_n "(cached) " >&6
25392 gcc_cv_as_shf_gnu_retain
=no
25393 if test x
$gcc_cv_as != x
; then
25394 $as_echo '.section .foo,"awR",%progbits
25395 .byte 0' > conftest.s
25396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25403 gcc_cv_as_shf_gnu_retain
=yes
25405 echo "configure: failed program was" >&5
25408 rm -f conftest.o conftest.s
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25412 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25418 cat >>confdefs.h
<<_ACEOF
25419 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25423 # Test if the assembler supports the section flag 'o' for specifying
25424 # section with link-order.
25425 case "${target}" in
25426 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25427 # assembler supports the section flag 'o', it doesn't mean that
25428 # Solairs ld supports it.
25430 gcc_cv_as_section_link_order
=no
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25434 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25435 if ${gcc_cv_as_section_link_order+:} false
; then :
25436 $as_echo_n "(cached) " >&6
25438 gcc_cv_as_section_link_order
=no
25439 if test x
$gcc_cv_as != x
; then
25440 $as_echo '.section .foo,"a"
25442 .section __patchable_function_entries,"awo",%progbits,.foo
25443 .byte 0' > conftest.s
25444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25446 (eval $ac_try) 2>&5
25448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25449 test $ac_status = 0; }; }
25451 gcc_cv_as_section_link_order
=yes
25453 echo "configure: failed program was" >&5
25456 rm -f conftest.o conftest.s
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25460 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25466 cat >>confdefs.h
<<_ACEOF
25467 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25472 $as_echo_n "checking assembler for section merging support... " >&6; }
25473 if ${gcc_cv_as_shf_merge+:} false
; then :
25474 $as_echo_n "(cached) " >&6
25476 gcc_cv_as_shf_merge
=no
25477 if test x
$gcc_cv_as != x
; then
25478 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25486 gcc_cv_as_shf_merge
=yes
25488 echo "configure: failed program was" >&5
25491 rm -f conftest.o conftest.s
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25495 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25498 if test $gcc_cv_as_shf_merge = no
; then
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25500 $as_echo_n "checking assembler for section merging support... " >&6; }
25501 if ${gcc_cv_as_shf_merge+:} false
; then :
25502 $as_echo_n "(cached) " >&6
25504 gcc_cv_as_shf_merge
=no
25505 if test x
$gcc_cv_as != x
; then
25506 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25514 gcc_cv_as_shf_merge
=yes
25516 echo "configure: failed program was" >&5
25519 rm -f conftest.o conftest.s
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25523 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25528 cat >>confdefs.h
<<_ACEOF
25529 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25533 gcc_cv_ld_aligned_shf_merge
=yes
25535 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25537 sparc
*-*-solaris2.11
*)
25538 if test x
"$gnu_ld" = xno \
25539 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25540 gcc_cv_ld_aligned_shf_merge
=no
25545 cat >>confdefs.h
<<_ACEOF
25546 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25551 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25552 if ${gcc_cv_as_comdat_group+:} false
; then :
25553 $as_echo_n "(cached) " >&6
25555 gcc_cv_as_comdat_group
=no
25556 if test x
$gcc_cv_as != x
; then
25557 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25565 gcc_cv_as_comdat_group
=yes
25567 echo "configure: failed program was" >&5
25570 rm -f conftest.o conftest.s
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25574 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25577 if test $gcc_cv_as_comdat_group = yes; then
25578 gcc_cv_as_comdat_group_percent
=no
25579 gcc_cv_as_comdat_group_group
=no
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25582 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25583 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25584 $as_echo_n "(cached) " >&6
25586 gcc_cv_as_comdat_group_percent
=no
25587 if test x
$gcc_cv_as != x
; then
25588 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25591 (eval $ac_try) 2>&5
25593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25594 test $ac_status = 0; }; }
25596 gcc_cv_as_comdat_group_percent
=yes
25598 echo "configure: failed program was" >&5
25601 rm -f conftest.o conftest.s
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25605 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25608 if test $gcc_cv_as_comdat_group_percent = yes; then
25609 gcc_cv_as_comdat_group_group
=no
25611 case "${target}" in
25612 # Sun as uses a completely different syntax.
25614 case "${target}" in
25615 sparc
*-*-solaris2*)
25617 .group foo,".text%foo",#comdat
25618 .section ".text%foo", #alloc,#execinstr,#progbits
25623 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25625 .group foo,.text%foo,#comdat
25626 .section .text%foo, "ax", @progbits
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25633 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25634 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25635 $as_echo_n "(cached) " >&6
25637 gcc_cv_as_comdat_group_group
=no
25638 if test x
$gcc_cv_as != x
; then
25639 $as_echo "$conftest_s" > conftest.s
25640 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25642 (eval $ac_try) 2>&5
25644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25645 test $ac_status = 0; }; }
25647 gcc_cv_as_comdat_group_group
=yes
25649 echo "configure: failed program was" >&5
25652 rm -f conftest.o conftest.s
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25656 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25661 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25662 gcc_cv_as_comdat_group_group
=no
25666 if test x
"$ld_is_gold" = xyes
; then
25668 elif test x
"$ld_is_mold" = xyes
; then
25670 elif test $in_tree_ld = yes ; then
25672 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 \
25673 && test $in_tree_ld_is_elf = yes; then
25676 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25678 if test 0"$ld_date" -lt 20050308; then
25679 if test -n "$ld_date"; then
25680 # If there was date string, but was earlier than 2005-03-08, fail
25682 elif test "$ld_vers_major" -lt 2; then
25684 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25689 case "${target}" in
25690 *-*-solaris2.1
[1-9]*)
25692 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25693 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25696 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25697 # least ld version 1.2267.
25698 if test "$ld_vers_major" -gt 1; then
25700 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25702 elif test "$ld_vers_minor" -ge 2267; then
25707 # Assume linkers other than GNU ld don't support COMDAT group.
25712 # Allow overriding the automatic COMDAT group tests above.
25713 # Check whether --enable-comdat was given.
25714 if test "${enable_comdat+set}" = set; then :
25715 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25718 if test $comdat_group = no
; then
25719 gcc_cv_as_comdat_group
=no
25720 gcc_cv_as_comdat_group_percent
=no
25721 gcc_cv_as_comdat_group_group
=no
25724 cat >>confdefs.h
<<_ACEOF
25725 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25726 || test $gcc_cv_as_comdat_group_percent = yes \
25727 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25731 # Restrict this test to Solaris/x86: other targets define this statically.
25732 case "${target}" in
25733 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25735 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25736 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25737 hidden_linkonce
=yes
25739 case "${target}" in
25740 # Full support for hidden thunks in linkonce sections only appeared in
25741 # Solaris 11/OpenSolaris.
25742 *-*-solaris2.1
[1-9]*)
25743 hidden_linkonce
=yes
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25751 $as_echo "$hidden_linkonce" >&6; }
25753 cat >>confdefs.h
<<_ACEOF
25754 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25761 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25762 if ${gcc_cv_as_is_stmt+:} false
; then :
25763 $as_echo_n "(cached) " >&6
25765 gcc_cv_as_is_stmt
=no
25766 if test x
$gcc_cv_as != x
; then
25769 .loc 1 1 0 is_stmt 1' > conftest.s
25770 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25772 (eval $ac_try) 2>&5
25774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25775 test $ac_status = 0; }; }
25777 gcc_cv_as_is_stmt
=yes
25779 echo "configure: failed program was" >&5
25782 rm -f conftest.o conftest.s
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25786 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25787 if test $gcc_cv_as_is_stmt = yes; then
25789 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25795 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25796 if ${gcc_cv_as_discriminator+:} false
; then :
25797 $as_echo_n "(cached) " >&6
25799 gcc_cv_as_discriminator
=no
25800 if test x
$gcc_cv_as != x
; then
25803 .loc 1 1 0 discriminator 1' > conftest.s
25804 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25806 (eval $ac_try) 2>&5
25808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25809 test $ac_status = 0; }; }
25811 gcc_cv_as_discriminator
=yes
25813 echo "configure: failed program was" >&5
25816 rm -f conftest.o conftest.s
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25820 $as_echo "$gcc_cv_as_discriminator" >&6; }
25821 if test $gcc_cv_as_discriminator = yes; then
25823 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25828 # Catch the newlib flag of the same name so we can gate GCC features on it.
25829 # Check whether --enable-newlib-nano-formatted-io was given.
25830 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25831 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25835 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25841 # Thread-local storage - the check is heavily parameterized.
25847 .section ".tdata","awT",@progbits
25850 ldq $27,__tls_get_addr($29) !literal!1
25851 lda $16,foo($29) !tlsgd!1
25852 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25853 ldq $27,__tls_get_addr($29) !literal!2
25854 lda $16,foo($29) !tlsldm!2
25855 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25856 ldq $1,foo($29) !gotdtprel
25857 ldah $2,foo($29) !dtprelhi
25858 lda $3,foo($2) !dtprello
25859 lda $4,foo($29) !dtprel
25860 ldq $1,foo($29) !gottprel
25861 ldah $2,foo($29) !tprelhi
25862 lda $3,foo($2) !tprello
25863 lda $4,foo($29) !tprel'
25864 tls_as_opt
=--fatal-warnings
25868 add_s r0,r0, @foo@tpoff'
25870 cris-
*-*|crisv32-
*-*)
25872 .section ".tdata","awT",@progbits
25877 tls_as_opt
=--fatal-warnings
25881 .section ".tdata","awT",@progbits
25884 call #gettlsoff(x)'
25891 .section ".tdata","awT",@progbits
25895 addil LT%foo-$tls_gdidx$,gp
25896 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25899 addil LT%foo-$tls_ldidx$,gp
25901 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25902 addil LR%foo-$tls_dtpoff$,%ret0
25903 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25905 addil LT%foo-$tls_ieoff$,gp
25906 ldw RT%foo-$tls_ieoff$(%r1),%t2
25909 addil LR%foo-$tls_leoff$,%t1
25910 ldo RR%foo-$tls_leoff$(%r1),%t2'
25911 tls_as_opt
=--fatal-warnings
25915 .section ".tdata","awT",%progbits
25918 .word foo(gottpoff)
25924 i
[34567]86-*-* | x86_64-
*-*)
25926 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25933 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25935 .section .tdata,"awt",@progbits'
25938 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25942 .section ".tdata","awT",@progbits'
25944 tls_as_opt
="--fatal-warnings"
25948 if test x
$on_solaris = xyes
; then
25950 yes) tls_as_opt
="$tls_as_opt --32" ;;
25953 conftest_s
="$conftest_s
25957 leal foo@tlsgd(,%ebx,1), %eax
25958 leal foo@tlsldm(%ebx), %eax
25959 leal foo@dtpoff(%eax), %edx
25960 movl foo@gottpoff(%ebx), %eax
25961 subl foo@gottpoff(%ebx), %eax
25962 addl foo@gotntpoff(%ebx), %eax
25963 movl foo@indntpoff, %eax
25964 movl \$foo@tpoff, %eax
25965 subl \$foo@tpoff, %eax
25966 leal foo@ntpoff(%ecx), %eax"
25969 if test x
$on_solaris = xyes
; then
25971 yes) tls_as_opt
="$tls_as_opt --64" ;;
25972 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25975 conftest_s
="$conftest_s
25979 leaq foo@tlsgd(%rip), %rdi
25980 leaq foo@tlsld(%rip), %rdi
25981 leaq foo@dtpoff(%rax), %rdx
25982 movq foo@gottpoff(%rip), %rax
25983 movq \$foo@tpoff, %rax"
25989 .section ".tdata","awT",@progbits
25992 addl r16 = @ltoff(@dtpmod(foo#)), gp
25993 addl r17 = @ltoff(@dtprel(foo#)), gp
25994 addl r18 = @ltoff(@tprel(foo#)), gp
25995 addl r19 = @dtprel(foo#), gp
25996 adds r21 = @dtprel(foo#), r13
25997 movl r23 = @dtprel(foo#)
25998 addl r20 = @tprel(foo#), gp
25999 adds r22 = @tprel(foo#), r13
26000 movl r24 = @tprel(foo#)'
26001 tls_as_opt
=--fatal-warnings
26005 .section .tdata,"awT",@progbits
26012 tls_as_opt
='--fatal-warnings'
26016 .section .tdata,"awT",@progbits
26020 addik r5,r20,x@TLSGD
26021 addik r5,r20,x@TLSLDM'
26022 tls_as_opt
='--fatal-warnings'
26026 .section .tdata,"awT",@progbits
26030 addiu $4, $28, %tlsgd(x)
26031 addiu $4, $28, %tlsldm(x)
26032 lui $4, %dtprel_hi(x)
26033 addiu $4, $4, %dtprel_lo(x)
26034 lw $4, %gottprel(x)($28)
26035 lui $4, %tprel_hi(x)
26036 addiu $4, $4, %tprel_lo(x)'
26037 tls_as_opt
='-32 --fatal-warnings'
26041 .section .tdata,"awT",@progbits
26046 move.l x@TLSGD(%a5),%a0
26047 move.l x@TLSLDM(%a5),%a0
26048 move.l x@TLSLDO(%a5),%a0
26049 move.l x@TLSIE(%a5),%a0
26050 move.l x@TLSLE(%a5),%a0'
26051 tls_as_opt
='--fatal-warnings'
26055 .section ".tdata","awT",@progbits'
26056 tls_as_opt
="--fatal-warnings"
26060 .section ".tdata","awT",%progbits
26064 add x0, x0, #:tlsgd_lo12:x
26067 tls_as_opt
='--fatal-warnings'
26071 .section ".tdata","awT",@progbits
26074 l.movhi r3, tpoffha(foo)
26076 l.lwz r4, tpofflo(foo)(r3)'
26077 tls_as_opt
=--fatal-warnings
26081 .extern __get_tpointer
26097 .section ".tdata","awT",@progbits
26105 addi 3,2,ld0@got@tlsgd
26111 addi 3,2,x1@got@tlsld
26117 addis 9,3,x2@dtprel@ha
26118 addi 9,9,x2@dtprel@l
26121 ld 9,x3@got@dtprel(2)
26125 tls_as_opt
="-a64 --fatal-warnings"
26129 .section ".tdata","awT",@progbits
26137 addi 3,31,ld0@got@tlsgd
26139 addi 3,31,x1@got@tlsld
26142 addis 9,3,x2@dtprel@ha
26143 addi 9,9,x2@dtprel@l
26144 lwz 9,x3@got@tprel(31)
26147 addis 9,2,x2@tprel@ha
26148 addi 9,9,x2@tprel@l'
26149 tls_as_opt
="-a32 --fatal-warnings"
26153 .section .tdata,"awT",@progbits
26157 call __tls_get_addr'
26158 tls_as_opt
='--fatal-warnings'
26162 .section ".tdata","awT",@progbits
26169 .long foo@GOTNTPOFF
26170 .long foo@INDNTPOFF
26171 l %r1,foo@GOTNTPOFF(%r12)
26172 l %r1,0(%r1):tls_load:foo
26173 bas %r14,0(%r1,%r13):tls_gdcall:foo
26174 bas %r14,0(%r1,%r13):tls_ldcall:foo'
26175 tls_as_opt
="-m31 --fatal-warnings"
26179 .section ".tdata","awT",@progbits
26186 .quad foo@GOTNTPOFF
26187 lg %r1,foo@GOTNTPOFF(%r12)
26188 larl %r1,foo@INDNTPOFF
26189 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
26190 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
26191 tls_as_opt
="-m64 -Aesame --fatal-warnings"
26193 sh-
*-* | sh
[123456789lbe
]*-*-*)
26195 .section ".tdata","awT",@progbits
26203 tls_as_opt
=--fatal-warnings
26207 sparc
*-sun-solaris2.
*)
26214 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
26216 .section ".tdata",#alloc,#write,#tls'
26219 .section ".tdata","awT",@progbits'
26220 tls_as_opt
="-32 --fatal-warnings"
26222 conftest_s
="$conftest_s
26225 sethi %tgd_hi22(foo), %o0
26226 add %o0, %tgd_lo10(foo), %o1
26227 add %l7, %o1, %o0, %tgd_add(foo)
26228 call __tls_get_addr, %tgd_call(foo)
26229 sethi %tldm_hi22(foo), %l1
26230 add %l1, %tldm_lo10(foo), %l2
26231 add %l7, %l2, %o0, %tldm_add(foo)
26232 call __tls_get_addr, %tldm_call(foo)
26233 sethi %tldo_hix22(foo), %l3
26234 xor %l3, %tldo_lox10(foo), %l4
26235 add %o0, %l4, %l5, %tldo_add(foo)
26236 sethi %tie_hi22(foo), %o3
26237 add %o3, %tie_lo10(foo), %o3
26238 ld [%l7 + %o3], %o2, %tie_ld(foo)
26239 add %g7, %o2, %o4, %tie_add(foo)
26240 sethi %tle_hix22(foo), %l1
26241 xor %l1, %tle_lox10(foo), %o5
26242 ld [%g7 + %o5], %o1"
26246 .section ".tdata","awT",@progbits
26249 movi a8, foo@TLSFUNC
26250 movi a10, foo@TLSARG
26251 callx8.tls a8, foo@TLSCALL'
26255 if test "x$enable_tls" = xno
; then
26256 : # TLS explicitly disabled.
26257 elif test "x$enable_tls" = xyes
; then
26258 set_have_as_tls
=yes # TLS explicitly enabled.
26259 elif test -z "$conftest_s"; then
26260 : # If we don't have a check, assume no support.
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26263 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26264 if ${gcc_cv_as_tls+:} false
; then :
26265 $as_echo_n "(cached) " >&6
26268 if test x
$gcc_cv_as != x
; then
26269 $as_echo "$conftest_s" > conftest.s
26270 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26272 (eval $ac_try) 2>&5
26274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26275 test $ac_status = 0; }; }
26279 echo "configure: failed program was" >&5
26282 rm -f conftest.o conftest.s
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26286 $as_echo "$gcc_cv_as_tls" >&6; }
26287 if test $gcc_cv_as_tls = yes; then
26288 set_have_as_tls
=yes
26292 if test $set_have_as_tls = yes ; then
26294 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26298 # Target-specific assembler checks.
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26301 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26302 gcc_cv_ld_static_dynamic
=no
26303 gcc_cv_ld_static_option
='-Bstatic'
26304 gcc_cv_ld_dynamic_option
='-Bdynamic'
26305 if test $in_tree_ld = yes ; then
26306 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
26307 gcc_cv_ld_static_dynamic
=yes
26309 elif test x
$gcc_cv_ld != x
; then
26310 # Check if linker supports -Bstatic/-Bdynamic option
26311 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
26312 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
26313 gcc_cv_ld_static_dynamic
=yes
26316 # AIX ld uses -b flags
26317 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
26318 gcc_cv_ld_static_dynamic
=yes
26319 gcc_cv_ld_static_option
="-bstatic"
26320 gcc_cv_ld_dynamic_option
="-bdynamic"
26322 # HP-UX ld uses -a flags to select between shared and archive.
26324 if test x
"$gnu_ld" = xno
; then
26325 gcc_cv_ld_static_dynamic
=yes
26326 gcc_cv_ld_static_option
="-aarchive_shared"
26327 gcc_cv_ld_dynamic_option
="-adefault"
26330 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26332 gcc_cv_ld_static_dynamic
=yes
26337 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
26339 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26342 cat >>confdefs.h
<<_ACEOF
26343 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26347 cat >>confdefs.h
<<_ACEOF
26348 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26353 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26356 $as_echo_n "checking linker --version-script option... " >&6; }
26357 gcc_cv_ld_version_script
=no
26358 ld_version_script_option
=''
26359 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26360 gcc_cv_ld_version_script
=yes
26361 ld_version_script_option
='--version-script'
26362 elif test x
$gcc_cv_ld != x
; then
26364 # Solaris 2 ld always supports -M. It also supports a subset of
26365 # --version-script since Solaris 11.4, but requires
26366 # -z gnu-version-script-compat to activate.
26368 gcc_cv_ld_version_script
=yes
26369 ld_version_script_option
='-M'
26373 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26375 $as_echo "$gcc_cv_ld_version_script" >&6; }
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26379 $as_echo_n "checking linker soname option... " >&6; }
26380 gcc_cv_ld_soname
=no
26381 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26382 gcc_cv_ld_soname
=yes
26383 ld_soname_option
='-soname'
26384 elif test x
$gcc_cv_ld != x
; then
26387 gcc_cv_ld_soname
=yes
26388 ld_soname_option
='-install_name'
26390 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26391 # ld compatiblity since some Solaris 10 update.
26393 gcc_cv_ld_soname
=yes
26394 ld_soname_option
='-h'
26398 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26400 $as_echo "$gcc_cv_ld_soname" >&6; }
26403 if test x
"$demangler_in_ld" = xyes
; then
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26405 $as_echo_n "checking linker --demangle support... " >&6; }
26406 gcc_cv_ld_demangle
=no
26407 if test $in_tree_ld = yes; then
26408 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 \
26409 gcc_cv_ld_demangle
=yes
26411 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26412 # Check if the GNU linker supports --demangle option
26413 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26414 gcc_cv_ld_demangle
=yes
26417 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26419 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26423 $as_echo "$gcc_cv_ld_demangle" >&6; }
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26427 $as_echo_n "checking linker plugin support... " >&6; }
26428 gcc_cv_lto_plugin
=0
26429 if test -f liblto_plugin.la
; then
26430 save_ld_ver
="$ld_ver"
26431 save_ld_vers_major
="$ld_vers_major"
26432 save_ld_vers_minor
="$ld_vers_minor"
26433 save_ld_is_gold
="$ld_is_gold"
26437 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26439 # FIXME: ld_is_gold?
26440 ld_vers_major
="$gcc_cv_gld_major_version"
26441 ld_vers_minor
="$gcc_cv_gld_minor_version"
26443 # Determine plugin linker version.
26444 # FIXME: Partial duplicate from above, generalize.
26445 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26446 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26447 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26449 ld_vers
=`echo $ld_ver | sed -n \
26450 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26452 ld_vers
=`echo $ld_ver | sed -n \
26453 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26455 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26456 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26460 # Determine plugin support.
26461 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26462 # Require GNU ld or gold 2.21+ for plugin support by default.
26463 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26464 gcc_cv_lto_plugin
=2
26465 elif test "$ld_is_mold" = yes; then
26466 gcc_cv_lto_plugin
=2
26467 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26468 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26469 gcc_cv_lto_plugin
=1
26473 ld_ver
="$save_ld_ver"
26474 ld_vers_major
="$save_ld_vers_major"
26475 ld_vers_minor
="$save_ld_vers_minor"
26476 ld_is_gold
="$save_ld_is_gold"
26479 cat >>confdefs.h
<<_ACEOF
26480 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26484 $as_echo "$gcc_cv_lto_plugin" >&6; }
26486 # Target OS-specific assembler checks.
26488 case "$target_os" in
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26491 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26492 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26493 $as_echo_n "(cached) " >&6
26495 gcc_cv_as_mmacosx_version_min
=no
26496 if test x
$gcc_cv_as != x
; then
26497 $as_echo '.text' > conftest.s
26498 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26500 (eval $ac_try) 2>&5
26502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26503 test $ac_status = 0; }; }
26505 gcc_cv_as_mmacosx_version_min
=yes
26507 echo "configure: failed program was" >&5
26510 rm -f conftest.o conftest.s
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26514 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26515 if test $gcc_cv_as_mmacosx_version_min = yes; then
26517 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26521 if test x
$gcc_cv_as_mmacosx_version_min = "xyes"; then
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
26523 $as_echo_n "checking assembler for .build_version... " >&6; }
26524 if ${gcc_cv_as_darwin_build_version+:} false
; then :
26525 $as_echo_n "(cached) " >&6
26527 gcc_cv_as_darwin_build_version
=no
26528 if test x
$gcc_cv_as != x
; then
26529 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
26530 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
26531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26532 (eval $ac_try) 2>&5
26534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26535 test $ac_status = 0; }; }
26537 gcc_cv_as_darwin_build_version
=yes
26539 echo "configure: failed program was" >&5
26542 rm -f conftest.o conftest.s
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
26546 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
26547 if test $gcc_cv_as_darwin_build_version = yes; then
26549 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
26557 # Target CPU-specific assembler checks.
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26562 $as_echo_n "checking assembler for -mabi option... " >&6; }
26563 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26564 $as_echo_n "(cached) " >&6
26566 gcc_cv_as_aarch64_mabi
=no
26567 if test x
$gcc_cv_as != x
; then
26568 $as_echo '.text' > conftest.s
26569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
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; }; }
26576 gcc_cv_as_aarch64_mabi
=yes
26578 echo "configure: failed program was" >&5
26581 rm -f conftest.o conftest.s
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26585 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26588 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26590 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26593 if test x
$with_abi = xilp32
; then
26594 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26595 Upgrade the Assembler." "$LINENO" 5
26597 if test x
"$with_multilib_list" = xdefault
; then
26598 TM_MULTILIB_CONFIG
=lp64
26600 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26601 for aarch64_multilib
in ${aarch64_multilibs}; do
26602 case ${aarch64_multilib} in
26604 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26605 Upgrade the Assembler." "$LINENO" 5
26613 # Check if we have binutils support for relocations types needed by -fpic
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26615 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26616 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26617 $as_echo_n "(cached) " >&6
26619 gcc_cv_as_aarch64_picreloc
=no
26620 if test x
$gcc_cv_as != x
; then
26623 ldr x0, [x2, #:gotpage_lo15:globalsym]
26625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; }
26632 gcc_cv_as_aarch64_picreloc
=yes
26634 echo "configure: failed program was" >&5
26637 rm -f conftest.o conftest.s
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26641 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26642 if test $gcc_cv_as_aarch64_picreloc = yes; then
26644 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26648 # Enable Branch Target Identification Mechanism and Return Address
26649 # Signing by default.
26650 # Check whether --enable-standard-branch-protection was given.
26651 if test "${enable_standard_branch_protection+set}" = set; then :
26652 enableval
=$enable_standard_branch_protection;
26655 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26660 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26661 Valid choices are 'yes' and 'no'." "$LINENO" 5
26667 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26668 # Check whether --enable-fix-cortex-a53-835769 was given.
26669 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26670 enableval
=$enable_fix_cortex_a53_835769;
26673 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26678 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26679 Valid choices are 'yes' and 'no'." "$LINENO" 5
26686 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26687 # Check whether --enable-fix-cortex-a53-843419 was given.
26688 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26689 enableval
=$enable_fix_cortex_a53_843419;
26692 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26697 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26698 Valid choices are 'yes' and 'no'." "$LINENO" 5
26707 # All TARGET_ABI_OSF targets.
26708 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26710 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26711 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26712 $as_echo_n "(cached) " >&6
26714 gcc_cv_as_alpha_explicit_relocs
=no
26715 if test x
$gcc_cv_as != x
; then
26716 $as_echo ' .set nomacro
26718 extbl $3, $2, $3 !lituse_bytoff!1
26719 ldq $2, a($29) !literal!1
26720 ldq $4, b($29) !literal!2
26721 ldq_u $3, 0($2) !lituse_base!1
26722 ldq $27, f($29) !literal!5
26723 jsr $26, ($27), f !lituse_jsr!5
26724 ldah $29, 0($26) !gpdisp!3
26725 lda $0, c($29) !gprel
26726 ldah $1, d($29) !gprelhigh
26727 lda $1, d($1) !gprellow
26728 lda $29, 0($29) !gpdisp!3' > conftest.s
26729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26731 (eval $ac_try) 2>&5
26733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26734 test $ac_status = 0; }; }
26736 gcc_cv_as_alpha_explicit_relocs
=yes
26738 echo "configure: failed program was" >&5
26741 rm -f conftest.o conftest.s
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26745 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26746 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26748 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26753 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26754 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26755 $as_echo_n "(cached) " >&6
26757 gcc_cv_as_alpha_jsrdirect_relocs
=no
26758 if test x
$gcc_cv_as != x
; then
26759 $as_echo ' .set nomacro
26761 ldq $27, a($29) !literal!1
26762 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26765 (eval $ac_try) 2>&5
26767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26768 test $ac_status = 0; }; }
26770 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26772 echo "configure: failed program was" >&5
26775 rm -f conftest.o conftest.s
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26779 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26780 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26782 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26790 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26791 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26792 $as_echo_n "(cached) " >&6
26794 gcc_cv_as_avr_mlink_relax
=no
26795 if test x
$gcc_cv_as != x
; then
26796 $as_echo '.text' > conftest.s
26797 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26799 (eval $ac_try) 2>&5
26801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26802 test $ac_status = 0; }; }
26804 gcc_cv_as_avr_mlink_relax
=yes
26806 echo "configure: failed program was" >&5
26809 rm -f conftest.o conftest.s
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26813 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26814 if test $gcc_cv_as_avr_mlink_relax = yes; then
26816 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26822 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26823 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26824 $as_echo_n "(cached) " >&6
26826 gcc_cv_as_avr_mrmw
=no
26827 if test x
$gcc_cv_as != x
; then
26828 $as_echo '.text' > conftest.s
26829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26831 (eval $ac_try) 2>&5
26833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26834 test $ac_status = 0; }; }
26836 gcc_cv_as_avr_mrmw
=yes
26838 echo "configure: failed program was" >&5
26841 rm -f conftest.o conftest.s
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26845 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26846 if test $gcc_cv_as_avr_mrmw = yes; then
26848 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26854 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26855 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26856 $as_echo_n "(cached) " >&6
26858 gcc_cv_as_avr_mgccisr
=no
26859 if test x
$gcc_cv_as != x
; then
26865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26867 (eval $ac_try) 2>&5
26869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26870 test $ac_status = 0; }; }
26872 gcc_cv_as_avr_mgccisr
=yes
26874 echo "configure: failed program was" >&5
26877 rm -f conftest.o conftest.s
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26881 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26882 if test $gcc_cv_as_avr_mgccisr = yes; then
26884 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26889 # Check how default linker description file implements .rodata for
26890 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26891 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26893 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26894 cat > conftest.s
<<EOF
26895 .section .rodata,"a",@progbits
26897 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26902 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26904 (eval $ac_try) 2>&5
26906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26907 test $ac_status = 0; }; }
26908 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26910 (eval $ac_try) 2>&5
26912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26913 test $ac_status = 0; }; }
26914 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26916 (eval $ac_try) 2>&5
26918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26919 test $ac_status = 0; }; }
26920 if test -s conftest.nm
26922 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26924 $as_echo "yes" >&6; }
26926 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26930 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26931 echo "$as_me: nm output was" >&5
26932 cat conftest.nm
>&5
26933 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26934 { $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
26935 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26939 $as_echo "test failed" >&6; }
26940 echo "$as_me: failed program was" >&5
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26943 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26945 rm -f conftest.s conftest.o conftest.elf conftest.nm
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26950 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26951 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26952 $as_echo_n "(cached) " >&6
26954 gcc_cv_as_cris_no_mul_bug
=no
26955 if test x
$gcc_cv_as != x
; then
26956 $as_echo '.text' > conftest.s
26957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26959 (eval $ac_try) 2>&5
26961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26962 test $ac_status = 0; }; }
26964 gcc_cv_as_cris_no_mul_bug
=yes
26966 echo "configure: failed program was" >&5
26969 rm -f conftest.o conftest.s
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26973 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26974 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26976 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26984 $as_echo_n "checking assembler for -relax option... " >&6; }
26985 if ${gcc_cv_as_sparc_relax+:} false
; then :
26986 $as_echo_n "(cached) " >&6
26988 gcc_cv_as_sparc_relax
=no
26989 if test x
$gcc_cv_as != x
; then
26990 $as_echo '.text' > conftest.s
26991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26993 (eval $ac_try) 2>&5
26995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26996 test $ac_status = 0; }; }
26998 gcc_cv_as_sparc_relax
=yes
27000 echo "configure: failed program was" >&5
27003 rm -f conftest.o conftest.s
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
27007 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
27008 if test $gcc_cv_as_sparc_relax = yes; then
27010 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
27016 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
27017 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
27018 $as_echo_n "(cached) " >&6
27020 gcc_cv_as_sparc_gotdata_op
=no
27021 if test x
$gcc_cv_as != x
; then
27027 sethi %gdop_hix22(foo), %g1
27028 xor %g1, %gdop_lox10(foo), %g1
27029 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
27030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
27031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27032 (eval $ac_try) 2>&5
27034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27035 test $ac_status = 0; }; }
27037 if test x
$gcc_cv_ld != x \
27038 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
27039 if test x
$gcc_cv_objdump != x
; then
27040 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
27041 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
27042 gcc_cv_as_sparc_gotdata_op
=no
27044 gcc_cv_as_sparc_gotdata_op
=yes
27050 echo "configure: failed program was" >&5
27053 rm -f conftest.o conftest.s
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
27057 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
27058 if test $gcc_cv_as_sparc_gotdata_op = yes; then
27060 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
27066 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
27067 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
27068 $as_echo_n "(cached) " >&6
27070 gcc_cv_as_sparc_ua_pcrel
=no
27071 if test x
$gcc_cv_as != x
; then
27078 .uaword %r_disp32(foo)' > conftest.s
27079 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
27080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27081 (eval $ac_try) 2>&5
27083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27084 test $ac_status = 0; }; }
27086 if test x
$gcc_cv_ld != x \
27087 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
27088 gcc_cv_as_sparc_ua_pcrel
=yes
27092 echo "configure: failed program was" >&5
27095 rm -f conftest.o conftest.s
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
27099 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
27100 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
27102 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
27106 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
27107 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
27108 $as_echo_n "(cached) " >&6
27110 gcc_cv_as_sparc_ua_pcrel_hidden
=no
27111 if test x
$gcc_cv_as != x
; then
27115 .uaword %r_disp32(foo)
27116 .byte 0x32, 0x33, 0x34
27120 .skip 4' > conftest.s
27121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
27122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27123 (eval $ac_try) 2>&5
27125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27126 test $ac_status = 0; }; }
27128 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27129 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
27130 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
27131 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
27132 if $gcc_cv_objdump -R conftest
2> /dev
/null \
27133 |
grep 'DISP32' > /dev
/null
2>&1; then
27136 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
27141 echo "configure: failed program was" >&5
27144 rm -f conftest.o conftest.s
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
27148 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
27149 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
27151 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
27157 # unaligned pcrel relocs
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
27160 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
27161 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
27162 $as_echo_n "(cached) " >&6
27164 gcc_cv_as_sparc_offsetable_lo10
=no
27165 if test x
$gcc_cv_as != x
; then
27167 or %g1, %lo(ab) + 12, %g1
27168 or %g1, %lo(ab + 12), %g1' > conftest.s
27169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }
27176 if test x
$gcc_cv_objdump != x \
27177 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
27178 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
27179 gcc_cv_as_sparc_offsetable_lo10
=yes
27182 echo "configure: failed program was" >&5
27185 rm -f conftest.o conftest.s
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
27189 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
27190 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
27192 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
27198 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
27199 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
27200 $as_echo_n "(cached) " >&6
27202 gcc_cv_as_sparc_fmaf
=no
27203 if test x
$gcc_cv_as != x
; then
27205 .register %g2, #scratch
27206 .register %g3, #scratch
27208 fmaddd %f0, %f2, %f4, %f6
27209 addxccc %g1, %g2, %g3
27210 fsrl32 %f2, %f4, %f8
27211 fnaddd %f10, %f12, %f14' > conftest.s
27212 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
27213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27214 (eval $ac_try) 2>&5
27216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27217 test $ac_status = 0; }; }
27219 gcc_cv_as_sparc_fmaf
=yes
27221 echo "configure: failed program was" >&5
27224 rm -f conftest.o conftest.s
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
27228 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
27229 if test $gcc_cv_as_sparc_fmaf = yes; then
27231 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
27237 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
27238 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
27239 $as_echo_n "(cached) " >&6
27241 gcc_cv_as_sparc_sparc4
=no
27242 if test x
$gcc_cv_as != x
; then
27244 .register %g2, #scratch
27245 .register %g3, #scratch
27248 1: cwbneg %g2, %g3, 1f
27251 aes_kexpand0 %f4, %f6, %f8
27252 des_round %f38, %f40, %f42, %f44
27253 camellia_f %f54, %f56, %f58, %f60
27254 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
27255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
27256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27257 (eval $ac_try) 2>&5
27259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27260 test $ac_status = 0; }; }
27262 gcc_cv_as_sparc_sparc4
=yes
27264 echo "configure: failed program was" >&5
27267 rm -f conftest.o conftest.s
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
27271 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27272 if test $gcc_cv_as_sparc_sparc4 = yes; then
27274 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27280 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27281 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
27282 $as_echo_n "(cached) " >&6
27284 gcc_cv_as_sparc_sparc5
=no
27285 if test x
$gcc_cv_as != x
; then
27287 .register %g2, #scratch
27288 .register %g3, #scratch
27290 subxc %g1, %g2, %g3
27291 fpadd8 %f0, %f2, %f4' > conftest.s
27292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
27293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27294 (eval $ac_try) 2>&5
27296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27297 test $ac_status = 0; }; }
27299 gcc_cv_as_sparc_sparc5
=yes
27301 echo "configure: failed program was" >&5
27304 rm -f conftest.o conftest.s
27307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27308 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27309 if test $gcc_cv_as_sparc_sparc5 = yes; then
27311 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27317 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27318 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
27319 $as_echo_n "(cached) " >&6
27321 gcc_cv_as_sparc_sparc6
=no
27322 if test x
$gcc_cv_as != x
; then
27324 .register %g2, #scratch
27325 .register %g3, #scratch
27328 fpsll64x %f0, %f2, %f4' > conftest.s
27329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27331 (eval $ac_try) 2>&5
27333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27334 test $ac_status = 0; }; }
27336 gcc_cv_as_sparc_sparc6
=yes
27338 echo "configure: failed program was" >&5
27341 rm -f conftest.o conftest.s
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27345 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27346 if test $gcc_cv_as_sparc_sparc6 = yes; then
27348 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27354 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27355 if ${gcc_cv_as_sparc_leon+:} false
; then :
27356 $as_echo_n "(cached) " >&6
27358 gcc_cv_as_sparc_leon
=no
27359 if test x
$gcc_cv_as != x
; then
27361 .register %g2, #scratch
27362 .register %g3, #scratch
27366 casa [%g2] 0xb, %g3, %g1' > conftest.s
27367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27369 (eval $ac_try) 2>&5
27371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27372 test $ac_status = 0; }; }
27374 gcc_cv_as_sparc_leon
=yes
27376 echo "configure: failed program was" >&5
27379 rm -f conftest.o conftest.s
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27383 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27384 if test $gcc_cv_as_sparc_leon = yes; then
27386 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27392 i
[34567]86-*-* | x86_64-
*-*)
27395 # Full C++ conformance when using a shared libstdc++-v3 requires some
27396 # support from the Cygwin DLL, which in more recent versions exports
27397 # wrappers to aid in interposing and redirecting operators new, delete,
27398 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27399 # are configuring for a version of Cygwin that exports the wrappers.
27400 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
27401 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27402 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
27403 gcc_ac_cygwin_dll_wrappers
=yes
27405 gcc_ac_cygwin_dll_wrappers
=no
27409 # Can't check presence of libc functions during cross-compile, so
27410 # we just have to assume we're building for an up-to-date target.
27411 gcc_ac_cygwin_dll_wrappers
=yes
27414 cat >>confdefs.h
<<_ACEOF
27415 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27420 cygwin
* | pe | mingw32
*)
27421 # Recent binutils allows the three-operand form of ".comm" on PE. This
27422 # definition is used unconditionally to initialise the default state of
27423 # the target option variable that governs usage of the feature.
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27425 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27426 if ${gcc_cv_as_comm_has_align+:} false
; then :
27427 $as_echo_n "(cached) " >&6
27429 gcc_cv_as_comm_has_align
=no
27430 if test x
$gcc_cv_as != x
; then
27431 $as_echo '.comm foo,1,32' > conftest.s
27432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27434 (eval $ac_try) 2>&5
27436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27437 test $ac_status = 0; }; }
27439 gcc_cv_as_comm_has_align
=yes
27441 echo "configure: failed program was" >&5
27444 rm -f conftest.o conftest.s
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27448 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27452 cat >>confdefs.h
<<_ACEOF
27453 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27456 # Used for DWARF 2 in PE
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27458 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27459 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27460 $as_echo_n "(cached) " >&6
27462 gcc_cv_as_ix86_pe_secrel32
=no
27463 if test x
$gcc_cv_as != x
; then
27467 .secrel32 foo' > conftest.s
27468 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27470 (eval $ac_try) 2>&5
27472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27473 test $ac_status = 0; }; }
27475 if test x
$gcc_cv_ld != x \
27476 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27477 gcc_cv_as_ix86_pe_secrel32
=yes
27481 echo "configure: failed program was" >&5
27484 rm -f conftest.o conftest.s
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27488 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27489 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27491 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27495 # Test if the assembler supports the extended form of the .section
27496 # directive that specifies section alignment. LTO support uses this,
27497 # but normally only after installation, so we warn but don't fail the
27498 # configure if LTO is enabled but the assembler does not support it.
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27500 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27501 if ${gcc_cv_as_section_has_align+:} false
; then :
27502 $as_echo_n "(cached) " >&6
27504 gcc_cv_as_section_has_align
=no
27505 if test x
$gcc_cv_as != x
; then
27506 $as_echo '.section lto_test,"dr0"' > conftest.s
27507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -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_section_has_align
=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_section_has_align" >&5
27523 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27526 if test x
$gcc_cv_as_section_has_align != xyes
; then
27527 case ",$enable_languages," in
27529 { $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
27530 $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;}
27537 darwin2
* | darwin19
*)
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27539 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27540 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27541 $as_echo_n "(cached) " >&6
27543 gcc_cv_as_mllvm_x86_pad_for_align
=no
27544 if test x
$gcc_cv_as != x
; then
27545 $as_echo '.text' > conftest.s
27546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27548 (eval $ac_try) 2>&5
27550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27551 test $ac_status = 0; }; }
27553 gcc_cv_as_mllvm_x86_pad_for_align
=yes
27555 echo "configure: failed program was" >&5
27558 rm -f conftest.o conftest.s
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27562 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27563 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27565 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27573 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27574 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27575 $as_echo_n "(cached) " >&6
27577 gcc_cv_as_ix86_xbrace_comment
=no
27578 if test x
$gcc_cv_as != x
; then
27579 $as_echo '.text' > conftest.s
27580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27582 (eval $ac_try) 2>&5
27584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27585 test $ac_status = 0; }; }
27587 gcc_cv_as_ix86_xbrace_comment
=yes
27589 echo "configure: failed program was" >&5
27592 rm -f conftest.o conftest.s
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27596 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27597 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27599 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27605 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27606 if ${gcc_cv_as_ix86_filds+:} false
; then :
27607 $as_echo_n "(cached) " >&6
27609 gcc_cv_as_ix86_filds
=no
27610 if test x
$gcc_cv_as != x
; then
27611 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27612 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27614 (eval $ac_try) 2>&5
27616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27617 test $ac_status = 0; }; }
27619 gcc_cv_as_ix86_filds
=yes
27621 echo "configure: failed program was" >&5
27624 rm -f conftest.o conftest.s
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27628 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27629 if test $gcc_cv_as_ix86_filds = yes; then
27631 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27637 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27638 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27639 $as_echo_n "(cached) " >&6
27641 gcc_cv_as_ix86_fildq
=no
27642 if test x
$gcc_cv_as != x
; then
27643 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27646 (eval $ac_try) 2>&5
27648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27649 test $ac_status = 0; }; }
27651 gcc_cv_as_ix86_fildq
=yes
27653 echo "configure: failed program was" >&5
27656 rm -f conftest.o conftest.s
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27660 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27661 if test $gcc_cv_as_ix86_fildq = yes; then
27663 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27669 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27670 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27671 $as_echo_n "(cached) " >&6
27673 gcc_cv_as_ix86_cmov_sun_syntax
=no
27674 if test x
$gcc_cv_as != x
; then
27675 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27676 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27678 (eval $ac_try) 2>&5
27680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27681 test $ac_status = 0; }; }
27683 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27685 echo "configure: failed program was" >&5
27688 rm -f conftest.o conftest.s
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27692 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27693 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27695 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27701 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27702 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27703 $as_echo_n "(cached) " >&6
27705 gcc_cv_as_ix86_ffreep
=no
27706 if test x
$gcc_cv_as != x
; then
27707 $as_echo 'ffreep %st(1)' > conftest.s
27708 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27710 (eval $ac_try) 2>&5
27712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27713 test $ac_status = 0; }; }
27715 gcc_cv_as_ix86_ffreep
=yes
27717 echo "configure: failed program was" >&5
27720 rm -f conftest.o conftest.s
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27724 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27725 if test $gcc_cv_as_ix86_ffreep = yes; then
27727 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27733 $as_echo_n "checking assembler for .quad directive... " >&6; }
27734 if ${gcc_cv_as_ix86_quad+:} false
; then :
27735 $as_echo_n "(cached) " >&6
27737 gcc_cv_as_ix86_quad
=no
27738 if test x
$gcc_cv_as != x
; then
27739 $as_echo '.quad 0' > conftest.s
27740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27742 (eval $ac_try) 2>&5
27744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27745 test $ac_status = 0; }; }
27747 gcc_cv_as_ix86_quad
=yes
27749 echo "configure: failed program was" >&5
27752 rm -f conftest.o conftest.s
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27756 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27757 if test $gcc_cv_as_ix86_quad = yes; then
27759 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27765 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27766 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27767 $as_echo_n "(cached) " >&6
27769 gcc_cv_as_ix86_sahf
=no
27770 if test x
$gcc_cv_as != x
; then
27773 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27775 (eval $ac_try) 2>&5
27777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27778 test $ac_status = 0; }; }
27780 gcc_cv_as_ix86_sahf
=yes
27782 echo "configure: failed program was" >&5
27785 rm -f conftest.o conftest.s
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27789 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27790 if test $gcc_cv_as_ix86_sahf = yes; then
27792 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27798 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27799 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27800 $as_echo_n "(cached) " >&6
27802 gcc_cv_as_ix86_interunit_movq
=no
27803 if test x
$gcc_cv_as != x
; then
27806 movq %rax, %xmm0' > conftest.s
27807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27809 (eval $ac_try) 2>&5
27811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27812 test $ac_status = 0; }; }
27814 gcc_cv_as_ix86_interunit_movq
=yes
27816 echo "configure: failed program was" >&5
27819 rm -f conftest.o conftest.s
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27823 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27827 cat >>confdefs.h
<<_ACEOF
27828 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27833 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27834 if ${gcc_cv_as_ix86_hle+:} false
; then :
27835 $as_echo_n "(cached) " >&6
27837 gcc_cv_as_ix86_hle
=no
27838 if test x
$gcc_cv_as != x
; then
27839 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27840 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27842 (eval $ac_try) 2>&5
27844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27845 test $ac_status = 0; }; }
27847 gcc_cv_as_ix86_hle
=yes
27849 echo "configure: failed program was" >&5
27852 rm -f conftest.o conftest.s
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27856 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27857 if test $gcc_cv_as_ix86_hle = yes; then
27859 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27865 $as_echo_n "checking assembler for swap suffix... " >&6; }
27866 if ${gcc_cv_as_ix86_swap+:} false
; then :
27867 $as_echo_n "(cached) " >&6
27869 gcc_cv_as_ix86_swap
=no
27870 if test x
$gcc_cv_as != x
; then
27871 $as_echo 'movl.s %esp, %ebp' > conftest.s
27872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27874 (eval $ac_try) 2>&5
27876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27877 test $ac_status = 0; }; }
27879 gcc_cv_as_ix86_swap
=yes
27881 echo "configure: failed program was" >&5
27884 rm -f conftest.o conftest.s
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27888 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27889 if test $gcc_cv_as_ix86_swap = yes; then
27891 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27897 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27898 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27899 $as_echo_n "(cached) " >&6
27901 gcc_cv_as_ix86_diff_sect_delta
=no
27902 if test x
$gcc_cv_as != x
; then
27903 $as_echo '.section .rodata
27909 .L2: nop' > conftest.s
27910 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27912 (eval $ac_try) 2>&5
27914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27915 test $ac_status = 0; }; }
27917 gcc_cv_as_ix86_diff_sect_delta
=yes
27919 echo "configure: failed program was" >&5
27922 rm -f conftest.o conftest.s
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27926 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27927 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27929 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27935 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27936 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27937 $as_echo_n "(cached) " >&6
27939 gcc_cv_as_ix86_rep_lock_prefix
=no
27940 if test x
$gcc_cv_as != x
; then
27941 $as_echo 'rep movsl
27946 lock addl %edi, (%eax,%esi)
27947 lock orl $0, (%esp)' > conftest.s
27948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27950 (eval $ac_try) 2>&5
27952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27953 test $ac_status = 0; }; }
27955 gcc_cv_as_ix86_rep_lock_prefix
=yes
27957 echo "configure: failed program was" >&5
27960 rm -f conftest.o conftest.s
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27964 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27965 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27967 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27973 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27974 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27975 $as_echo_n "(cached) " >&6
27977 gcc_cv_as_ix86_ud2
=no
27978 if test x
$gcc_cv_as != x
; then
27979 $as_echo 'ud2' > conftest.s
27980 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27982 (eval $ac_try) 2>&5
27984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27985 test $ac_status = 0; }; }
27987 gcc_cv_as_ix86_ud2
=yes
27989 echo "configure: failed program was" >&5
27992 rm -f conftest.o conftest.s
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27996 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27997 if test $gcc_cv_as_ix86_ud2 = yes; then
27999 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
28004 # Enforce 32-bit output with gas and gld.
28005 if test x
$gas = xyes
; then
28006 as_ix86_gas_32_opt
="--32"
28008 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28009 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
28010 ld_ix86_gld_32_opt
="-melf_i386_sol2"
28012 ld_ix86_gld_32_opt
="-melf_i386"
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
28017 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
28018 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
28019 $as_echo_n "(cached) " >&6
28021 gcc_cv_as_ix86_tlsgdplt
=no
28022 if test x
$gcc_cv_as != x
; then
28023 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
28024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28026 (eval $ac_try) 2>&5
28028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28029 test $ac_status = 0; }; }
28031 if test x
$gcc_cv_ld != x \
28032 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
28033 gcc_cv_as_ix86_tlsgdplt
=yes
28037 echo "configure: failed program was" >&5
28040 rm -f conftest.o conftest.s
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
28044 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
28045 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
28047 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
28053 .section .tdata,"aw'$tls_section_flag'",@progbits
28055 .section .text,"ax",@progbits
28056 call tls_ld@tlsldmplt'
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
28059 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
28060 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
28061 $as_echo_n "(cached) " >&6
28063 gcc_cv_as_ix86_tlsldmplt
=no
28064 if test x
$gcc_cv_as != x
; then
28065 $as_echo "$conftest_s" > conftest.s
28066 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28068 (eval $ac_try) 2>&5
28070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28071 test $ac_status = 0; }; }
28073 if test x
$gcc_cv_ld != x \
28074 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
28075 gcc_cv_as_ix86_tlsldmplt
=yes
28079 echo "configure: failed program was" >&5
28082 rm -f conftest.o conftest.s
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
28086 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
28090 cat >>confdefs.h
<<_ACEOF
28091 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
28096 .section .text,"ax",@progbits
28098 .type _start, @function
28100 leal value@tlsldm(%ebx), %eax
28101 call ___tls_get_addr@plt
28103 .section .tdata,"aw'$tls_section_flag'",@progbits
28104 .type value, @object
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
28107 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
28108 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
28109 $as_echo_n "(cached) " >&6
28111 gcc_cv_as_ix86_tlsldm
=no
28112 if test x
$gcc_cv_as != x
; then
28113 $as_echo "$conftest_s" > conftest.s
28114 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28116 (eval $ac_try) 2>&5
28118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28119 test $ac_status = 0; }; }
28121 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
28122 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
28123 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
28124 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
28125 gcc_cv_as_ix86_tlsldm
=yes
28130 echo "configure: failed program was" >&5
28133 rm -f conftest.o conftest.s
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
28137 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
28141 cat >>confdefs.h
<<_ACEOF
28142 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
28156 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
28157 if ${gcc_cv_as_ix86_got32x+:} false
; then :
28158 $as_echo_n "(cached) " >&6
28160 gcc_cv_as_ix86_got32x
=no
28161 if test x
$gcc_cv_as != x
; then
28162 $as_echo "$conftest_s" > conftest.s
28163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28165 (eval $ac_try) 2>&5
28167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28168 test $ac_status = 0; }; }
28170 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
28171 && test x
$gcc_cv_readelf != x \
28172 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
28173 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
28174 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
28175 if $gcc_cv_objdump -dw conftest
2>&1 \
28176 |
grep 0xffffff > /dev
/null
2>&1; then
28177 gcc_cv_as_ix86_got32x
=no
28179 gcc_cv_as_ix86_got32x
=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_ix86_got32x" >&5
28191 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
28195 cat >>confdefs.h
<<_ACEOF
28196 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
28201 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
28202 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
28203 $as_echo_n "(cached) " >&6
28205 gcc_cv_as_ix86_gotoff_in_data
=no
28206 if test x
$gcc_cv_as != x
; then
28211 .long .L0@GOTOFF' > conftest.s
28212 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28214 (eval $ac_try) 2>&5
28216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28217 test $ac_status = 0; }; }
28219 gcc_cv_as_ix86_gotoff_in_data
=yes
28221 echo "configure: failed program was" >&5
28224 rm -f conftest.o conftest.s
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
28228 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
28232 cat >>confdefs.h
<<_ACEOF
28233 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
28238 .section .text,"ax",@progbits
28240 .type _start, @function
28242 leal ld@tlsldm(%ecx), %eax
28243 call *___tls_get_addr@GOT(%ecx)
28244 leal gd@tlsgd(%ecx), %eax
28245 call *___tls_get_addr@GOT(%ecx)
28247 .section .tdata,"aw'$tls_section_flag'",@progbits
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
28256 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
28257 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
28258 $as_echo_n "(cached) " >&6
28260 gcc_cv_as_ix86_tls_get_addr_via_got
=no
28261 if test x
$gcc_cv_as != x
; then
28262 $as_echo "$conftest_s" > conftest.s
28263 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28265 (eval $ac_try) 2>&5
28267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28268 test $ac_status = 0; }; }
28270 if test x
$gcc_cv_ld != x \
28271 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
28272 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
28276 echo "configure: failed program was" >&5
28279 rm -f conftest.o conftest.s
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28283 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28287 cat >>confdefs.h
<<_ACEOF
28288 #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`
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28295 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28296 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
28297 $as_echo_n "(cached) " >&6
28299 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
28300 if test x
$gcc_cv_as != x
; then
28302 addl r15 = @ltoffx(x#), gp
28304 ld8.mov r16 = [r15], x#
28306 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28308 (eval $ac_try) 2>&5
28310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28311 test $ac_status = 0; }; }
28313 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
28315 echo "configure: failed program was" >&5
28318 rm -f conftest.o conftest.s
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28322 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28323 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28325 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28337 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28338 if ${gcc_cv_as_machine_directive+:} false
; then :
28339 $as_echo_n "(cached) " >&6
28341 gcc_cv_as_machine_directive
=no
28342 if test x
$gcc_cv_as != x
; then
28343 $as_echo ' .machine ppc7400' > conftest.s
28344 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28346 (eval $ac_try) 2>&5
28348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28349 test $ac_status = 0; }; }
28351 gcc_cv_as_machine_directive
=yes
28353 echo "configure: failed program was" >&5
28356 rm -f conftest.o conftest.s
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28360 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28363 if test x
$gcc_cv_as_machine_directive != xyes
; then
28364 echo "*** This target requires an assembler supporting \".machine\"" >&2
28365 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
28366 test x
$build = x
$target && exit 1
28372 *-*-aix*) conftest_s
=' .machine "pwr5"
28375 *-*-darwin*) conftest_s
=' .text
28377 *) conftest_s
=' .machine power4
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28383 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28384 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
28385 $as_echo_n "(cached) " >&6
28387 gcc_cv_as_powerpc_mfcrf
=no
28388 if test x
$gcc_cv_as != x
; then
28389 $as_echo "$conftest_s" > conftest.s
28390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28392 (eval $ac_try) 2>&5
28394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28395 test $ac_status = 0; }; }
28397 gcc_cv_as_powerpc_mfcrf
=yes
28399 echo "configure: failed program was" >&5
28402 rm -f conftest.o conftest.s
28405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28406 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28407 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28409 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28415 *-*-aix*) conftest_s
=' .machine "pwr10"
28418 *-*-darwin*) conftest_s
=' .text
28420 *) conftest_s
=' .machine power10
28425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
28426 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
28427 if ${gcc_cv_as_power10_htm+:} false
; then :
28428 $as_echo_n "(cached) " >&6
28430 gcc_cv_as_power10_htm
=no
28431 if test x
$gcc_cv_as != x
; then
28432 $as_echo "$conftest_s" > conftest.s
28433 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28435 (eval $ac_try) 2>&5
28437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28438 test $ac_status = 0; }; }
28440 gcc_cv_as_power10_htm
=yes
28442 echo "configure: failed program was" >&5
28445 rm -f conftest.o conftest.s
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
28449 $as_echo "$gcc_cv_as_power10_htm" >&6; }
28450 if test $gcc_cv_as_power10_htm = yes; then
28452 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
28458 *-*-aix*) conftest_s
=' .csect .text[PR]
28460 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28464 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28465 *) conftest_s
=' .text
28467 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28471 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28472 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
28473 $as_echo_n "(cached) " >&6
28475 gcc_cv_as_powerpc_rel16
=no
28476 if test x
$gcc_cv_as != x
; then
28477 $as_echo "$conftest_s" > conftest.s
28478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28480 (eval $ac_try) 2>&5
28482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28483 test $ac_status = 0; }; }
28485 gcc_cv_as_powerpc_rel16
=yes
28487 echo "configure: failed program was" >&5
28490 rm -f conftest.o conftest.s
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28494 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28495 if test $gcc_cv_as_powerpc_rel16 = yes; then
28497 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28503 *-*-aix*) conftest_s
=' .machine "pwr7"
28506 *) conftest_s
=' .machine power7
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28512 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28513 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28514 $as_echo_n "(cached) " >&6
28516 gcc_cv_as_powerpc_vsx
=no
28517 if test x
$gcc_cv_as != x
; then
28518 $as_echo "$conftest_s" > conftest.s
28519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_vsx
=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_powerpc_vsx" >&5
28535 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28536 if test $gcc_cv_as_powerpc_vsx = yes; then
28538 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28544 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28545 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28546 $as_echo_n "(cached) " >&6
28548 gcc_cv_as_powerpc_gnu_attribute
=no
28549 if test x
$gcc_cv_as != x
; then
28550 $as_echo '.gnu_attribute 4,1' > conftest.s
28551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28553 (eval $ac_try) 2>&5
28555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28556 test $ac_status = 0; }; }
28558 gcc_cv_as_powerpc_gnu_attribute
=yes
28560 echo "configure: failed program was" >&5
28563 rm -f conftest.o conftest.s
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28567 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28568 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28570 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28576 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28577 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28578 $as_echo_n "(cached) " >&6
28580 gcc_cv_as_powerpc_entry_markers
=no
28581 if test x
$gcc_cv_as != x
; then
28582 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28583 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28585 (eval $ac_try) 2>&5
28587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28588 test $ac_status = 0; }; }
28590 gcc_cv_as_powerpc_entry_markers
=yes
28592 echo "configure: failed program was" >&5
28595 rm -f conftest.o conftest.s
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28599 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28600 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28602 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28608 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28609 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28610 $as_echo_n "(cached) " >&6
28612 gcc_cv_as_powerpc_pltseq_markers
=no
28613 if test x
$gcc_cv_as != x
; then
28614 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28615 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28617 (eval $ac_try) 2>&5
28619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28620 test $ac_status = 0; }; }
28622 gcc_cv_as_powerpc_pltseq_markers
=yes
28624 echo "configure: failed program was" >&5
28627 rm -f conftest.o conftest.s
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28631 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28632 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28634 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28642 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28643 if ${gcc_cv_as_aix_ref+:} false
; then :
28644 $as_echo_n "(cached) " >&6
28646 gcc_cv_as_aix_ref
=no
28647 if test x
$gcc_cv_as != x
; then
28648 $as_echo ' .csect stuff[rw]
28654 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28656 (eval $ac_try) 2>&5
28658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28659 test $ac_status = 0; }; }
28661 gcc_cv_as_aix_ref
=yes
28663 echo "configure: failed program was" >&5
28666 rm -f conftest.o conftest.s
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28670 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28671 if test $gcc_cv_as_aix_ref = yes; then
28673 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28679 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28680 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28681 $as_echo_n "(cached) " >&6
28683 gcc_cv_as_aix_dwloc
=no
28684 if test x
$gcc_cv_as != x
; then
28685 $as_echo ' .dwsect 0xA0000
28689 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28691 (eval $ac_try) 2>&5
28693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28694 test $ac_status = 0; }; }
28696 gcc_cv_as_aix_dwloc
=yes
28698 echo "configure: failed program was" >&5
28701 rm -f conftest.o conftest.s
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28705 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28706 if test $gcc_cv_as_aix_dwloc = yes; then
28708 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28718 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28719 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28720 $as_echo_n "(cached) " >&6
28722 gcc_cv_as_mips_explicit_relocs
=no
28723 if test x
$gcc_cv_as != x
; then
28724 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28727 (eval $ac_try) 2>&5
28729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28730 test $ac_status = 0; }; }
28732 gcc_cv_as_mips_explicit_relocs
=yes
28734 echo "configure: failed program was" >&5
28737 rm -f conftest.o conftest.s
28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28741 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28742 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28743 if test x
$target_cpu_default = x
28744 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28745 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28751 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28752 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28753 $as_echo_n "(cached) " >&6
28755 gcc_cv_as_mips_no_shared
=no
28756 if test x
$gcc_cv_as != x
; then
28757 $as_echo 'nop' > conftest.s
28758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28760 (eval $ac_try) 2>&5
28762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28763 test $ac_status = 0; }; }
28765 gcc_cv_as_mips_no_shared
=yes
28767 echo "configure: failed program was" >&5
28770 rm -f conftest.o conftest.s
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28774 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28775 if test $gcc_cv_as_mips_no_shared = yes; then
28777 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28783 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28784 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28785 $as_echo_n "(cached) " >&6
28787 gcc_cv_as_mips_gnu_attribute
=no
28788 if test x
$gcc_cv_as != x
; then
28789 $as_echo '.gnu_attribute 4,1' > conftest.s
28790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28792 (eval $ac_try) 2>&5
28794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28795 test $ac_status = 0; }; }
28797 gcc_cv_as_mips_gnu_attribute
=yes
28799 echo "configure: failed program was" >&5
28802 rm -f conftest.o conftest.s
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28806 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28807 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28809 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28815 $as_echo_n "checking assembler for .module support... " >&6; }
28816 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28817 $as_echo_n "(cached) " >&6
28819 gcc_cv_as_mips_dot_module
=no
28820 if test x
$gcc_cv_as != x
; then
28821 $as_echo '.module mips2
28822 .module fp=xx' > conftest.s
28823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28825 (eval $ac_try) 2>&5
28827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28828 test $ac_status = 0; }; }
28830 gcc_cv_as_mips_dot_module
=yes
28832 echo "configure: failed program was" >&5
28835 rm -f conftest.o conftest.s
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28839 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28840 if test $gcc_cv_as_mips_dot_module = yes; then
28842 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28846 if test x
$gcc_cv_as_mips_dot_module = xno \
28847 && test x
$with_fp_32 != x
; then
28848 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28852 $as_echo_n "checking assembler for .micromips support... " >&6; }
28853 if ${gcc_cv_as_micromips_support+:} false
; then :
28854 $as_echo_n "(cached) " >&6
28856 gcc_cv_as_micromips_support
=no
28857 if test x
$gcc_cv_as != x
; then
28858 $as_echo '.set micromips' > conftest.s
28859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28861 (eval $ac_try) 2>&5
28863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28864 test $ac_status = 0; }; }
28866 gcc_cv_as_micromips_support
=yes
28868 echo "configure: failed program was" >&5
28871 rm -f conftest.o conftest.s
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28875 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28876 if test $gcc_cv_as_micromips_support = yes; then
28878 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28884 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28885 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28886 $as_echo_n "(cached) " >&6
28888 gcc_cv_as_mips_dtprelword
=no
28889 if test x
$gcc_cv_as != x
; then
28890 $as_echo '.section .tdata,"awT",@progbits
28894 .dtprelword x+0x8000' > conftest.s
28895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28897 (eval $ac_try) 2>&5
28899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28900 test $ac_status = 0; }; }
28902 gcc_cv_as_mips_dtprelword
=yes
28904 echo "configure: failed program was" >&5
28907 rm -f conftest.o conftest.s
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28911 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28912 if test $gcc_cv_as_mips_dtprelword = yes; then
28914 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28920 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28921 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28922 $as_echo_n "(cached) " >&6
28924 gcc_cv_as_mips_dspr1_mult
=no
28925 if test x
$gcc_cv_as != x
; then
28926 $as_echo ' .set mips32r2
28934 multu $ac3,$4,$5' > conftest.s
28935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28937 (eval $ac_try) 2>&5
28939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28940 test $ac_status = 0; }; }
28942 gcc_cv_as_mips_dspr1_mult
=yes
28944 echo "configure: failed program was" >&5
28947 rm -f conftest.o conftest.s
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28951 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28952 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28954 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28960 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28961 gcc_cv_as_ld_jalr_reloc
=no
28962 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28963 if test $in_tree_ld = yes ; then
28964 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 \
28965 && test $in_tree_ld_is_elf = yes; then
28966 gcc_cv_as_ld_jalr_reloc
=yes
28968 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28969 echo ' .ent x' > conftest.s
28970 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28971 echo ' lw $25,%call16(y)($28)' >> conftest.s
28972 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28973 echo '1: jalr $25' >> conftest.s
28974 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28975 echo '1: jalr $25' >> conftest.s
28976 echo ' .end x' >> conftest.s
28977 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28978 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28979 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28980 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28981 gcc_cv_as_ld_jalr_reloc
=yes
28987 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28988 if test x
$target_cpu_default = x
; then
28989 target_cpu_default
=MASK_RELAX_PIC_CALLS
28991 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28995 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28998 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28999 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
29000 $as_echo_n "(cached) " >&6
29002 gcc_cv_ld_mips_personality_relaxation
=no
29003 if test $in_tree_ld = yes ; then
29004 if test "$gcc_cv_gld_major_version" -eq 2 \
29005 -a "$gcc_cv_gld_minor_version" -ge 21 \
29006 -o "$gcc_cv_gld_major_version" -gt 2; then
29007 gcc_cv_ld_mips_personality_relaxation
=yes
29009 elif test x
$gcc_cv_as != x \
29010 -a x
$gcc_cv_ld != x \
29011 -a x
$gcc_cv_readelf != x
; then
29012 cat > conftest.s
<<EOF
29014 .cfi_personality 0x80,indirect_ptr
29021 .section .data,"aw",@progbits
29025 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
29026 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
29027 if $gcc_cv_readelf -d conftest
2>&1 \
29028 |
grep TEXTREL
> /dev
/null
2>&1; then
29030 elif $gcc_cv_readelf --relocs conftest
2>&1 \
29031 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
29034 gcc_cv_ld_mips_personality_relaxation
=yes
29038 rm -f conftest.s conftest.o conftest
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
29041 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
29042 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
29044 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
29049 $as_echo_n "checking assembler for -mnan= support... " >&6; }
29050 if ${gcc_cv_as_mips_nan+:} false
; then :
29051 $as_echo_n "(cached) " >&6
29053 gcc_cv_as_mips_nan
=no
29054 if test x
$gcc_cv_as != x
; then
29055 $as_echo '' > conftest.s
29056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -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_mips_nan
=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_mips_nan" >&5
29072 $as_echo "$gcc_cv_as_mips_nan" >&6; }
29073 if test $gcc_cv_as_mips_nan = yes; then
29075 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
29079 if test x
$gcc_cv_as_mips_nan = xno \
29080 && test x
$with_nan != x
; then
29081 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
29085 # Earlier GAS versions generically support .gnu_attribute, but the
29086 # msp430 assembler will not do anything with it.
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29088 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29089 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
29090 $as_echo_n "(cached) " >&6
29092 gcc_cv_as_msp430_gnu_attribute
=no
29093 if test x
$gcc_cv_as != x
; then
29094 $as_echo '.gnu_attribute 4,1' > conftest.s
29095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29097 (eval $ac_try) 2>&5
29099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29100 test $ac_status = 0; }; }
29102 gcc_cv_as_msp430_gnu_attribute
=yes
29104 echo "configure: failed program was" >&5
29107 rm -f conftest.o conftest.s
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
29111 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
29112 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
29114 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
29119 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
29120 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
29121 $as_echo_n "(cached) " >&6
29123 gcc_cv_as_msp430_mspabi_attribute
=no
29124 if test x
$gcc_cv_as != x
; then
29125 $as_echo '.mspabi_attribute 4,2' > conftest.s
29126 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29128 (eval $ac_try) 2>&5
29130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29131 test $ac_status = 0; }; }
29133 gcc_cv_as_msp430_mspabi_attribute
=yes
29135 echo "configure: failed program was" >&5
29138 rm -f conftest.o conftest.s
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
29142 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
29143 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
29145 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
29149 if test x
$enable_newlib_nano_formatted_io = xyes
; then
29151 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
29156 # Versions 2.33 and earlier lacked support for the %gotoff relocation
29157 # syntax that is documented in the ABI specification.
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
29159 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
29160 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
29161 $as_echo_n "(cached) " >&6
29163 gcc_cv_as_nios2_gotoff_relocation
=no
29164 if test x
$gcc_cv_as != x
; then
29165 $as_echo ' .extern foo
29167 .long %gotoff(foo)' > conftest.s
29168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29170 (eval $ac_try) 2>&5
29172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29173 test $ac_status = 0; }; }
29175 gcc_cv_as_nios2_gotoff_relocation
=yes
29177 echo "configure: failed program was" >&5
29180 rm -f conftest.o conftest.s
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
29184 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
29185 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
29187 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
29194 $as_echo_n "checking assembler for .attribute support... " >&6; }
29195 if ${gcc_cv_as_riscv_attribute+:} false
; then :
29196 $as_echo_n "(cached) " >&6
29198 gcc_cv_as_riscv_attribute
=no
29199 if test x
$gcc_cv_as != x
; then
29200 $as_echo '.attribute stack_align,4' > conftest.s
29201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29203 (eval $ac_try) 2>&5
29205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29206 test $ac_status = 0; }; }
29208 gcc_cv_as_riscv_attribute
=yes
29210 echo "configure: failed program was" >&5
29213 rm -f conftest.o conftest.s
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
29217 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
29218 if test $gcc_cv_as_riscv_attribute = yes; then
29220 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
29225 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
29226 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
29227 $as_echo_n "(cached) " >&6
29229 gcc_cv_as_riscv_isa_spec
=no
29230 if test x
$gcc_cv_as != x
; then
29231 $as_echo '' > conftest.s
29232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
29233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29234 (eval $ac_try) 2>&5
29236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29237 test $ac_status = 0; }; }
29239 gcc_cv_as_riscv_isa_spec
=yes
29241 echo "configure: failed program was" >&5
29244 rm -f conftest.o conftest.s
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
29248 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
29249 if test $gcc_cv_as_riscv_isa_spec = yes; then
29251 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
29255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
29256 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
29257 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
29258 $as_echo_n "(cached) " >&6
29260 gcc_cv_as_riscv_march_zifencei
=no
29261 if test x
$gcc_cv_as != x
; then
29262 $as_echo '' > conftest.s
29263 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
29264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29265 (eval $ac_try) 2>&5
29267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29268 test $ac_status = 0; }; }
29270 gcc_cv_as_riscv_march_zifencei
=yes
29272 echo "configure: failed program was" >&5
29275 rm -f conftest.o conftest.s
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
29279 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
29280 if test $gcc_cv_as_riscv_march_zifencei = yes; then
29282 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
29289 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
29290 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
29291 $as_echo_n "(cached) " >&6
29293 gcc_cv_as_loongarch_dtprelword
=no
29294 if test x
$gcc_cv_as != x
; then
29295 $as_echo '' > conftest.s
29296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
29297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29298 (eval $ac_try) 2>&5
29300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29301 test $ac_status = 0; }; }
29303 .section .tdata
,"awT",@progbits
29307 .dtprelword x
+0x8000
29309 echo "configure: failed program was" >&5
29312 rm -f conftest.o conftest.s
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
29316 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
29318 if test $gcc_cv_as_loongarch_dtprelword != yes; then
29320 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
29324 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
29325 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
29326 $as_echo_n "(cached) " >&6
29328 gcc_cv_as_loongarch_explicit_relocs
=no
29329 if test x
$gcc_cv_as != x
; then
29330 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
29331 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29333 (eval $ac_try) 2>&5
29335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29336 test $ac_status = 0; }; }
29338 gcc_cv_as_loongarch_explicit_relocs
=yes
29340 echo "configure: failed program was" >&5
29343 rm -f conftest.o conftest.s
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
29347 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29348 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29350 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29355 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29356 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
29357 $as_echo_n "(cached) " >&6
29359 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
29360 if test x
$gcc_cv_as != x
; then
29361 $as_echo '.cfi_startproc
29362 .cfi_personality 0x9b,a
29364 .cfi_endproc' > conftest.s
29365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29367 (eval $ac_try) 2>&5
29369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29370 test $ac_status = 0; }; }
29372 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
29374 echo "configure: failed program was" >&5
29377 rm -f conftest.o conftest.s
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29381 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29382 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29384 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
29389 $as_echo_n "checking assembler for -mrelax option... " >&6; }
29390 if ${gcc_cv_as_loongarch_relax+:} false
; then :
29391 $as_echo_n "(cached) " >&6
29393 gcc_cv_as_loongarch_relax
=no
29394 if test x
$gcc_cv_as != x
; then
29395 $as_echo '.text' > conftest.s
29396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
29397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29398 (eval $ac_try) 2>&5
29400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29401 test $ac_status = 0; }; }
29403 gcc_cv_as_loongarch_relax
=yes
29405 echo "configure: failed program was" >&5
29408 rm -f conftest.o conftest.s
29411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
29412 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
29413 if test $gcc_cv_as_loongarch_relax = yes; then
29415 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29422 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29423 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
29424 $as_echo_n "(cached) " >&6
29426 gcc_cv_as_s390_gnu_attribute
=no
29427 if test x
$gcc_cv_as != x
; then
29428 $as_echo '.gnu_attribute 8,1' > conftest.s
29429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29431 (eval $ac_try) 2>&5
29433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29434 test $ac_status = 0; }; }
29436 gcc_cv_as_s390_gnu_attribute
=yes
29438 echo "configure: failed program was" >&5
29441 rm -f conftest.o conftest.s
29444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29445 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29446 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29448 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29453 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29454 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
29455 $as_echo_n "(cached) " >&6
29457 gcc_cv_as_s390_machine_machinemode
=no
29458 if test x
$gcc_cv_as != x
; then
29459 $as_echo ' .machinemode push
29462 .machine pop' > conftest.s
29463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29465 (eval $ac_try) 2>&5
29467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29468 test $ac_status = 0; }; }
29470 gcc_cv_as_s390_machine_machinemode
=yes
29472 echo "configure: failed program was" >&5
29475 rm -f conftest.o conftest.s
29478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29479 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29480 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29482 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29487 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29488 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
29489 $as_echo_n "(cached) " >&6
29491 gcc_cv_as_s390_architecture_modifiers
=no
29492 if test x
$gcc_cv_as != x
; then
29493 $as_echo ' .machine z13+vx ' > conftest.s
29494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29496 (eval $ac_try) 2>&5
29498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29499 test $ac_status = 0; }; }
29501 gcc_cv_as_s390_architecture_modifiers
=yes
29503 echo "configure: failed program was" >&5
29506 rm -f conftest.o conftest.s
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29510 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29511 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29513 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29518 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29519 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
29520 $as_echo_n "(cached) " >&6
29522 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
29523 if test x
$gcc_cv_as != x
; then
29524 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29527 (eval $ac_try) 2>&5
29529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29530 test $ac_status = 0; }; }
29532 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29534 echo "configure: failed program was" >&5
29537 rm -f conftest.o conftest.s
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29541 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29542 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29544 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29549 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29550 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
29551 $as_echo_n "(cached) " >&6
29553 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
29554 if test x
$gcc_cv_as != x
; then
29555 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29558 (eval $ac_try) 2>&5
29560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29561 test $ac_status = 0; }; }
29563 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
29565 echo "configure: failed program was" >&5
29568 rm -f conftest.o conftest.s
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29572 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29573 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29575 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29583 # Mips, LoongArch and HP-UX need the GNU assembler.
29584 # Linux on IA64 might be able to use the Intel assembler.
29587 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29588 if test x
$gas_flag = xyes \
29589 ||
test x
"$host" != x
"$build" \
29590 ||
test ! -x "$gcc_cv_as" \
29591 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29594 echo "*** This configuration requires the GNU assembler" >&2
29600 # AMD GCN needs the LLVM assembler and linker.
29601 # Test that LLVM is at least 13.0.1.
29604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29605 $as_echo_n "checking llvm assembler version... " >&6; }
29606 gcc_cv_as_version
="unknown"
29607 if test x
$gcc_cv_as != x
; then
29608 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29609 case "$gcc_cv_as_version" in
29610 13.0.
[1-9]*) ;; # 13.0.1+
29611 13.
[1-9]*) ;; # 13.1+
29612 1[4-9]*) ;; # 14..19
29613 [2-9][0-9]*) ;; # 20..99
29614 [1-9][0-9][0-9]*) ;; # 100+
29615 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
29616 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29620 $as_echo "$gcc_cv_as_version, ok" >&6; }
29626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29627 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29628 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29629 $as_echo_n "(cached) " >&6
29631 gcc_cv_as_arm_option_extensions
=no
29632 if test x
$gcc_cv_as != x
; then
29636 vmov.f32 s0, s1' > conftest.s
29637 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29639 (eval $ac_try) 2>&5
29641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29642 test $ac_status = 0; }; }
29644 gcc_cv_as_arm_option_extensions
=yes
29646 echo "configure: failed program was" >&5
29649 rm -f conftest.o conftest.s
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29653 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29654 if test $gcc_cv_as_arm_option_extensions = yes; then
29656 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29662 # ??? Not all targets support dwarf2 debug_line, even within a version
29663 # of gas. Moreover, we need to emit a valid instruction to trigger any
29664 # info to the output file. So, as supported targets are added to gas 2.11,
29665 # add some instruction here to (also) show we expect this might work.
29666 # ??? Once 2.11 is released, probably need to add first known working
29667 # version to the per-target configury.
29668 case "$cpu_type" in
29669 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29670 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29671 | visium | xstormy16 | xtensa
)
29681 if test x
"$insn" != x
; then
29683 .file 1 \"conftest.s\"
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29687 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29688 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29689 $as_echo_n "(cached) " >&6
29691 gcc_cv_as_dwarf2_debug_line
=no
29692 if test x
$gcc_cv_as != x
; then
29693 $as_echo "$conftest_s" > conftest.s
29694 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29696 (eval $ac_try) 2>&5
29698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29699 test $ac_status = 0; }; }
29701 if test x
$gcc_cv_objdump != x \
29702 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29703 |
grep debug_line
> /dev
/null
2>&1; then
29704 gcc_cv_as_dwarf2_debug_line
=yes
29705 elif test x
$gcc_cv_otool != x \
29706 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29707 |
grep debug_line
> /dev
/null
2>&1; then
29708 gcc_cv_as_dwarf2_debug_line
=yes
29711 echo "configure: failed program was" >&5
29714 rm -f conftest.o conftest.s
29717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29718 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29722 # The .debug_line file table must be in the exact order that
29723 # we specified the files, since these indices are also used
29724 # by DW_AT_decl_file. Approximate this test by testing if
29725 # the assembler bitches if the same index is assigned twice.
29726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29727 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29728 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29729 $as_echo_n "(cached) " >&6
29731 gcc_cv_as_dwarf2_file_buggy
=no
29732 if test x
$gcc_cv_as != x
; then
29733 $as_echo ' .file 1 "foo.s"
29734 .file 1 "bar.s"' > conftest.s
29735 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29737 (eval $ac_try) 2>&5
29739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29740 test $ac_status = 0; }; }
29742 gcc_cv_as_dwarf2_file_buggy
=yes
29744 echo "configure: failed program was" >&5
29747 rm -f conftest.o conftest.s
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29751 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29755 if test $gcc_cv_as_dwarf2_debug_line = yes \
29756 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29758 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29761 if test $gcc_cv_as_leb128 = yes; then
29763 .file 1 \"conftest.s\"
29764 .loc 1 3 0 view .LVU1
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29771 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29772 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29773 $as_echo_n "(cached) " >&6
29775 gcc_cv_as_dwarf2_debug_view
=no
29776 if test x
$gcc_cv_as != x
; then
29777 $as_echo "$conftest_s" > conftest.s
29778 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29780 (eval $ac_try) 2>&5
29782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29783 test $ac_status = 0; }; }
29785 gcc_cv_as_dwarf2_debug_view
=yes
29787 echo "configure: failed program was" >&5
29790 rm -f conftest.o conftest.s
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29794 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29795 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29797 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29805 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29806 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29807 $as_echo_n "(cached) " >&6
29809 gcc_cv_as_gdwarf2_flag
=no
29810 if test x
$gcc_cv_as != x
; then
29811 $as_echo "$insn" > conftest.s
29812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29814 (eval $ac_try) 2>&5
29816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29817 test $ac_status = 0; }; }
29819 gcc_cv_as_gdwarf2_flag
=yes
29821 echo "configure: failed program was" >&5
29824 rm -f conftest.o conftest.s
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29828 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29829 if test $gcc_cv_as_gdwarf2_flag = yes; then
29831 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29837 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29838 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29839 $as_echo_n "(cached) " >&6
29841 gcc_cv_as_gdwarf_5_flag
=no
29842 if test x
$gcc_cv_as != x
; then
29843 $as_echo "$insn" > conftest.s
29844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29846 (eval $ac_try) 2>&5
29848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29849 test $ac_status = 0; }; }
29851 if test x
$gcc_cv_objdump != x \
29852 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29853 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29854 gcc_cv_as_gdwarf_5_flag
=yes;
29857 echo "configure: failed program was" >&5
29860 rm -f conftest.o conftest.s
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29864 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29865 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29867 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29873 win32 | pe | cygwin
* | mingw32
*)
29874 section_flags
=\"dr
\"
29875 function_type
=".def foo; .scl 2; .type 32; .endef"
29878 section_flags
=\"\",%progbits
29879 function_type
=".type foo, %function"
29880 function_size
=".size foo, .-foo";;
29882 dwarf4_debug_info_size
=0x46
29883 dwarf4_high_pc_form
=7
29884 dwarf4_debug_aranges_size
=0x2c
29886 for dwarf4_addr_size
in 8 4; do
29902 .section .debug_info,$section_flags
29904 .4byte $dwarf4_debug_info_size
29906 .4byte .Ldebug_abbrev0
29907 .byte 0x$dwarf4_addr_size
29909 .ascii \"GNU C17\\0\"
29913 .${dwarf4_addr_size}byte .Ltext0
29914 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29915 .4byte .Ldebug_line0
29921 .${dwarf4_addr_size}byte .LFB0
29922 .${dwarf4_addr_size}byte .LFE0-.LFB0
29926 .section .debug_abbrev,$section_flags
29942 .byte 0x$dwarf4_high_pc_form
29963 .byte 0x$dwarf4_high_pc_form
29969 .section .debug_aranges,$section_flags
29970 .4byte $dwarf4_debug_aranges_size
29972 .4byte .Ldebug_info0
29977 .${dwarf4_addr_size}byte .Ltext0
29978 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29979 .${dwarf4_addr_size}byte 0
29980 .${dwarf4_addr_size}byte 0
29981 .section .debug_line,$section_flags
29983 .4byte .LELT0-.LSLT0
29986 .4byte .LELTP0-.LASLTP0
30014 .byte 0x$dwarf4_line_sz
30016 .${dwarf4_addr_size}byte .LM1
30021 .byte 0x$dwarf4_line_sz
30023 .${dwarf4_addr_size}byte .LM2
30028 .byte 0x$dwarf4_line_sz
30030 .${dwarf4_addr_size}byte .Letext0
30035 .section .debug_str,$section_flags
30039 if test $dwarf4_addr_size = 4; then
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
30041 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
30042 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
30043 $as_echo_n "(cached) " >&6
30045 gcc_cv_as_debug_line_32_flag
=no
30046 if test x
$gcc_cv_as != x
; then
30047 $as_echo "$conftest_s" > conftest.s
30048 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30050 (eval $ac_try) 2>&5
30052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30053 test $ac_status = 0; }; }
30055 gcc_cv_as_debug_line_32_flag
=yes
30057 echo "configure: failed program was" >&5
30060 rm -f conftest.o conftest.s
30063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
30064 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
30065 if test $gcc_cv_as_debug_line_32_flag = yes; then
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
30071 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
30072 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
30073 $as_echo_n "(cached) " >&6
30075 gcc_cv_as_debug_line_64_flag
=no
30076 if test x
$gcc_cv_as != x
; then
30077 $as_echo "$conftest_s" > conftest.s
30078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30080 (eval $ac_try) 2>&5
30082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30083 test $ac_status = 0; }; }
30085 gcc_cv_as_debug_line_64_flag
=yes
30087 echo "configure: failed program was" >&5
30090 rm -f conftest.o conftest.s
30093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
30094 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
30095 if test $gcc_cv_as_debug_line_64_flag = yes; then
30100 if test $dwarf4_success = yes; then
30102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
30103 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
30104 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
30105 $as_echo_n "(cached) " >&6
30107 gcc_cv_as_dwarf_4_debug_line_flag
=no
30108 if test x
$gcc_cv_as != x
; then
30109 $as_echo "$conftest_s" > conftest.s
30110 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
30111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30112 (eval $ac_try) 2>&5
30114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30115 test $ac_status = 0; }; }
30117 gcc_cv_as_dwarf_4_debug_line_flag
=yes
30119 echo "configure: failed program was" >&5
30122 rm -f conftest.o conftest.s
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
30126 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
30127 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
30133 dwarf4_debug_info_size
=0x36
30134 dwarf4_high_pc_form
=6
30135 dwarf4_debug_aranges_size
=0x1c
30139 if test $dwarf4_success = yes; then
30157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
30158 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
30159 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
30160 $as_echo_n "(cached) " >&6
30162 gcc_cv_as_dwarf_4_app_flag
=no
30163 if test x
$gcc_cv_as != x
; then
30164 $as_echo "$conftest_s" > conftest.s
30165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
30166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30167 (eval $ac_try) 2>&5
30169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30170 test $ac_status = 0; }; }
30172 gcc_cv_as_dwarf_4_app_flag
=yes
30174 echo "configure: failed program was" >&5
30177 rm -f conftest.o conftest.s
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
30181 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
30182 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
30188 if test $dwarf4_success = yes; then
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
30199 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
30200 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
30201 $as_echo_n "(cached) " >&6
30203 gcc_cv_as_working_gdwarf_n_flag
=no
30204 if test x
$gcc_cv_as != x
; then
30205 $as_echo "$conftest_s" > conftest.s
30206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
30207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30208 (eval $ac_try) 2>&5
30210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30211 test $ac_status = 0; }; }
30213 if test x
$gcc_cv_objdump != x \
30214 && $gcc_cv_objdump -W conftest.o
2>&1 \
30215 |
grep conftest.s
> /dev
/null
2>&1; then
30216 gcc_cv_as_working_gdwarf_n_flag
=no
30218 gcc_cv_as_working_gdwarf_n_flag
=yes
30221 echo "configure: failed program was" >&5
30224 rm -f conftest.o conftest.s
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
30228 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
30231 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
30233 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
30238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
30239 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
30240 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
30241 $as_echo_n "(cached) " >&6
30243 gcc_cv_as_debug_prefix_map_flag
=no
30244 if test x
$gcc_cv_as != x
; then
30245 $as_echo "$insn" > conftest.s
30246 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
30247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30248 (eval $ac_try) 2>&5
30250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30251 test $ac_status = 0; }; }
30253 gcc_cv_as_debug_prefix_map_flag
=yes
30255 echo "configure: failed program was" >&5
30258 rm -f conftest.o conftest.s
30261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
30262 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
30263 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
30265 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
30272 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
30273 if ${gcc_cv_as_compress_debug+:} false
; then :
30274 $as_echo_n "(cached) " >&6
30276 gcc_cv_as_compress_debug
=no
30277 if test x
$gcc_cv_as != x
; then
30278 $as_echo '' > conftest.s
30279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30281 (eval $ac_try) 2>&5
30283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30284 test $ac_status = 0; }; }
30286 # gas compiled without zlib cannot compress debug sections and warns
30287 # about it, but still exits successfully. So check for this, too.
30288 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
30290 gcc_cv_as_compress_debug
=0
30291 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
30293 gcc_cv_as_compress_debug
=1
30294 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
30295 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
30296 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
30297 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
30299 gcc_cv_as_compress_debug
=2
30302 gcc_cv_as_compress_debug
=0
30305 echo "configure: failed program was" >&5
30308 rm -f conftest.o conftest.s
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
30312 $as_echo "$gcc_cv_as_compress_debug" >&6; }
30316 cat >>confdefs.h
<<_ACEOF
30317 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
30321 cat >>confdefs.h
<<_ACEOF
30322 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
30326 cat >>confdefs.h
<<_ACEOF
30327 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
30332 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
30333 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
30334 $as_echo_n "(cached) " >&6
30336 gcc_cv_as_lcomm_with_alignment
=no
30337 if test x
$gcc_cv_as != x
; then
30338 $as_echo '.lcomm bar,4,16' > conftest.s
30339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30341 (eval $ac_try) 2>&5
30343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30344 test $ac_status = 0; }; }
30346 gcc_cv_as_lcomm_with_alignment
=yes
30348 echo "configure: failed program was" >&5
30351 rm -f conftest.o conftest.s
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
30355 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
30356 if test $gcc_cv_as_lcomm_with_alignment = yes; then
30358 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
30363 if test x
$with_sysroot = x
&& test x
$host = x
$target \
30364 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
30365 && test "$prefix" != "NONE"; then
30367 cat >>confdefs.h
<<_ACEOF
30368 #define PREFIX_INCLUDE_DIR "$prefix/include"
30373 # Determine the version of glibc, if any, used on the target.
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30375 $as_echo_n "checking for target glibc version... " >&6; }
30377 # Check whether --with-glibc-version was given.
30378 if test "${with_glibc_version+set}" = set; then :
30379 withval
=$with_glibc_version;
30380 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30381 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30382 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30384 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
30388 glibc_version_major
=0
30389 glibc_version_minor
=0
30390 if test -f $target_header_dir/features.h \
30391 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30392 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30393 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30394 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30399 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30401 cat >>confdefs.h
<<_ACEOF
30402 #define TARGET_GLIBC_MAJOR $glibc_version_major
30406 cat >>confdefs.h
<<_ACEOF
30407 #define TARGET_GLIBC_MINOR $glibc_version_minor
30411 # Check whether --enable-gnu-unique-object was given.
30412 if test "${enable_gnu_unique_object+set}" = set; then :
30413 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30415 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30416 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30420 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30421 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
30422 $as_echo_n "(cached) " >&6
30424 gcc_cv_as_gnu_unique_object
=no
30425 if test x
$gcc_cv_as != x
; then
30426 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30429 (eval $ac_try) 2>&5
30431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30432 test $ac_status = 0; }; }
30434 gcc_cv_as_gnu_unique_object
=yes
30436 echo "configure: failed program was" >&5
30439 rm -f conftest.o conftest.s
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30443 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30444 if test $gcc_cv_as_gnu_unique_object = yes; then
30445 # We need to unquote above to to use the definition from config.gcc.
30446 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30448 if test $glibc_version_major -gt 2 \
30449 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30450 enable_gnu_unique_object
=yes
30457 if test x
$enable_gnu_unique_object = xyes
; then
30459 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30464 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30465 if ${gcc_cv_as_line_zero+:} false
; then :
30466 $as_echo_n "(cached) " >&6
30468 gcc_cv_as_line_zero
=no
30469 if test "x$gcc_cv_as" != x
; then
30470 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30471 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30473 (eval $ac_try) 2>&5
30475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30476 test $ac_status = 0; }; } &&
30477 test "x`cat conftest.out`" = x
30479 gcc_cv_as_line_zero
=yes
30481 echo "configure: failed program was" >&5
30483 echo "configure: error output was" >&5
30484 cat conftest.out
>&5
30486 rm -f conftest.o conftest.s conftest.out
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30490 $as_echo "$gcc_cv_as_line_zero" >&6; }
30491 if test "x$gcc_cv_as_line_zero" = xyes
; then
30493 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30498 $as_echo_n "checking support for thin archives... " >&6; }
30499 thin_archive_support
=no
30500 echo 'int main (void) { return 0; }' > conftest.c
30501 if ($AR --version |
sed 1q |
grep "GNU ar" \
30502 && $CC $CFLAGS -c conftest.c \
30503 && $AR rcT conftest.a conftest.o \
30504 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30505 thin_archive_support
=yes
30507 rm -f conftest.c conftest.o conftest.a conftest
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30509 $as_echo "$thin_archive_support" >&6; }
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30513 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30514 gcc_cv_ld_eh_frame_hdr
=no
30515 if test $in_tree_ld = yes ; then
30516 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 \
30517 && test $in_tree_ld_is_elf = yes; then
30518 gcc_cv_ld_eh_frame_hdr
=yes
30520 elif test x
$gcc_cv_ld != x
; then
30521 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30522 # Check if linker supports --eh-frame-hdr option
30523 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30524 gcc_cv_ld_eh_frame_hdr
=yes
30529 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30530 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30531 gcc_cv_ld_eh_frame_hdr
=yes
30538 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30540 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30544 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30547 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30548 gcc_cv_ld_eh_frame_ciev3
=no
30549 if test $in_tree_ld = yes ; then
30550 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 \
30551 && test $in_tree_ld_is_elf = yes; then
30552 gcc_cv_ld_eh_frame_ciev3
=yes
30554 elif test x
$gcc_cv_ld != x
; then
30555 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30556 gcc_cv_ld_eh_frame_ciev3
=yes
30557 if test 0"$ld_date" -lt 20040513; then
30558 if test -n "$ld_date"; then
30559 # If there was date string, but was earlier than 2004-05-13, fail
30560 gcc_cv_ld_eh_frame_ciev3
=no
30561 elif test "$ld_vers_major" -lt 2; then
30562 gcc_cv_ld_eh_frame_ciev3
=no
30563 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30564 gcc_cv_ld_eh_frame_ciev3
=no
30570 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30571 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30572 gcc_cv_ld_eh_frame_ciev3
=yes
30579 cat >>confdefs.h
<<_ACEOF
30580 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30584 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30587 $as_echo_n "checking linker position independent executable support... " >&6; }
30589 if test $in_tree_ld = yes ; then
30591 # Full PIE support on Solaris was only introduced in gld 2.26.
30592 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30593 *) gcc_gld_pie_min_version
=15 ;;
30595 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 \
30596 && test $in_tree_ld_is_elf = yes; then
30599 elif test x
$gcc_cv_ld != x
; then
30600 # Check if linker supports -pie option
30601 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30605 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30606 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30613 *-*-solaris2.1
[1-9]*)
30614 # Solaris 11.3 added PIE support.
30615 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30622 if test x
"$gcc_cv_ld_pie" = xyes
; then
30624 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30628 $as_echo "$gcc_cv_ld_pie" >&6; }
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30631 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30632 gcc_cv_ld_pie_copyreloc
=no
30633 if test $gcc_cv_ld_pie = yes ; then
30634 if test $in_tree_ld = yes ; then
30635 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
30636 gcc_cv_ld_pie_copyreloc
=yes
30638 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30639 # Check if linker supports -pie option with copy reloc
30641 i?
86-*-linux* | x86_64-
*-linux*)
30642 cat > conftest1.s
<<EOF
30645 .type a_glob, @object
30650 cat > conftest2.s
<<EOF
30653 .type main, @function
30655 movl %eax, a_glob(%rip)
30658 .section .data.rel,"aw",@progbits
30663 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30664 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30665 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30666 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30667 gcc_cv_ld_pie_copyreloc
=yes
30669 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30675 cat >>confdefs.h
<<_ACEOF
30676 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30680 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30683 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30684 gcc_cv_ld_eh_gc_sections
=no
30685 if test $in_tree_ld = yes ; then
30686 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 \
30687 && test $in_tree_ld_is_elf = yes; then
30688 gcc_cv_ld_eh_gc_sections
=yes
30690 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30691 cat > conftest.s
<<EOF
30694 .type _start, @function
30697 .size _start, .-_start
30698 .section .text.foo,"ax",@progbits
30699 .type foo, @function
30703 .section .gcc_except_table.foo,"a",@progbits
30706 .section .eh_frame,"a",@progbits
30709 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30710 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30711 |
grep "gc-sections option ignored" > /dev
/null
; then
30712 gcc_cv_ld_eh_gc_sections
=no
30713 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30714 |
grep gcc_except_table
> /dev
/null
; then
30715 gcc_cv_ld_eh_gc_sections
=yes
30716 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30717 if test x
$gcc_cv_as_comdat_group != xyes
; then
30718 gcc_cv_ld_eh_gc_sections
=no
30719 cat > conftest.s
<<EOF
30722 .type _start, @function
30725 .size _start, .-_start
30726 .section .gnu.linkonce.t.foo,"ax",@progbits
30727 .type foo, @function
30731 .section .gcc_except_table.foo,"a",@progbits
30734 .section .eh_frame,"a",@progbits
30737 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30738 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30739 |
grep "gc-sections option ignored" > /dev
/null
; then
30740 gcc_cv_ld_eh_gc_sections
=no
30741 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30742 |
grep gcc_except_table
> /dev
/null
; then
30743 gcc_cv_ld_eh_gc_sections
=yes
30749 rm -f conftest.s conftest.o conftest
30753 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30754 gcc_cv_ld_eh_gc_sections
=no
30757 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30759 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30763 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30766 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30767 gcc_cv_ld_eh_gc_sections_bug
=no
30768 if test $in_tree_ld = yes ; then
30769 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 \
30770 && test $in_tree_ld_is_elf = yes; then
30771 gcc_cv_ld_eh_gc_sections_bug
=yes
30773 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
30774 gcc_cv_ld_eh_gc_sections_bug
=yes
30775 cat > conftest.s
<<EOF
30778 .type _start, @function
30781 .size _start, .-_start
30782 .section .text.startup.foo,"ax",@progbits
30783 .type foo, @function
30787 .section .gcc_except_table.foo,"a",@progbits
30790 .section .eh_frame,"a",@progbits
30793 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30794 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30795 |
grep "gc-sections option ignored" > /dev
/null
; then
30797 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30798 |
grep gcc_except_table
> /dev
/null
; then
30799 gcc_cv_ld_eh_gc_sections_bug
=no
30802 rm -f conftest.s conftest.o conftest
30804 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30806 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30810 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30813 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30814 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30815 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
30816 gcc_cv_ld_compress_debug
=1
30817 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30818 # Detect zstd debug section compression support
30819 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
30820 gcc_cv_ld_compress_debug
=2
30823 case "${target}" in
30825 # Introduced in Solaris 11.2.
30826 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30827 gcc_cv_ld_compress_debug
=1
30828 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30830 gcc_cv_ld_compress_debug
=0
30834 # Assume linkers other than GNU ld don't support compessed debug
30836 gcc_cv_ld_compress_debug
=0
30841 cat >>confdefs.h
<<_ACEOF
30842 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30846 cat >>confdefs.h
<<_ACEOF
30847 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30851 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30853 if test x
"$ld64_flag" = x
"yes"; then
30855 # Set defaults for possibly untestable items.
30856 gcc_cv_ld64_export_dynamic
=0
30857 gcc_cv_ld64_platform_version
=0
30858 gcc_cv_ld64_demangle
=0
30860 if test "$build" = "$host"; then
30866 # On Darwin, because of FAT library support, it is often possible to execute
30867 # exes from compatible archs even when the host differs from the build system.
30868 case "$build","$host" in
30869 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30870 darwin_try_test
=1;;
30874 # If the configurer specified a minimum ld64 version to be supported, then use
30875 # that to determine feature support.
30876 if test x
"${gcc_cv_ld64_version}" != x
; then
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30878 $as_echo_n "checking ld64 specified version... " >&6; }
30879 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30881 $as_echo "$gcc_cv_ld64_major" >&6; }
30882 if test "$gcc_cv_ld64_major" -ge 97; then
30883 gcc_cv_ld64_demangle
=1
30885 if test "$gcc_cv_ld64_major" -ge 236; then
30886 gcc_cv_ld64_export_dynamic
=1
30888 if test "$gcc_cv_ld64_major" -ge 512; then
30889 gcc_cv_ld64_platform_version
=1
30891 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30892 # If the version was not specified, try to find it.
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30894 $as_echo_n "checking linker version... " >&6; }
30895 if test x
"${gcc_cv_ld64_version}" = x
; then
30896 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
30897 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30900 $as_echo "$gcc_cv_ld64_version" >&6; }
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
30903 $as_echo_n "checking linker for -demangle support... " >&6; }
30904 gcc_cv_ld64_demangle
=1
30905 if $gcc_cv_ld -demangle < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30906 gcc_cv_ld64_demangle
=0
30908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
30909 $as_echo "$gcc_cv_ld64_demangle" >&6; }
30911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30912 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30913 gcc_cv_ld64_export_dynamic
=1
30914 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30915 gcc_cv_ld64_export_dynamic
=0
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30918 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30921 $as_echo_n "checking linker for -platform_version support... " >&6; }
30922 gcc_cv_ld64_platform_version
=1
30923 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30924 gcc_cv_ld64_platform_version
=0
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30927 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30930 if test x
"${gcc_cv_ld64_version}" != x
; then
30932 cat >>confdefs.h
<<_ACEOF
30933 #define LD64_VERSION "${gcc_cv_ld64_version}"
30939 cat >>confdefs.h
<<_ACEOF
30940 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
30945 cat >>confdefs.h
<<_ACEOF
30946 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30951 cat >>confdefs.h
<<_ACEOF
30952 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30957 if test x
"$dsymutil_flag" = x
"yes"; then
30959 # If the user specified a dsymutil path, then we will already have the
30960 # version string, otherwise, pick it up.
30961 if test x
"$gcc_cv_dsymutil" = x
; then
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30963 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30964 dsymutil_vers
="tool unspecified"
30965 elif test x
"$dsymutil_vers" = x
; then
30966 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30969 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30971 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30972 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30973 dsymutil_kind
=DWARFUTILS
30974 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30975 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30976 dsymutil_kind
=CLANG
30977 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30978 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30980 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30982 dsymutil_kind
=DET_UNKNOWN
30983 dsymutil_vers
="0.0"
30985 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30986 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30987 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30988 if test x
"${dsymutil_minor}" = x
; then
30991 if test x
"${dsymutil_tiny}" = x
; then
30995 cat >>confdefs.h
<<_ACEOF
30996 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
31000 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
31004 win32 | pe | cygwin* | mingw32*)
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
31006 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
31007 gcc_cv_ld_broken_pe_dwarf5=yes
31008 if test $in_tree_ld = yes ; then
31009 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
31010 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
31011 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
31012 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
31013 gcc_cv_ld_broken_pe_dwarf5=no
31016 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
31017 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
31018 gcc_cv_ld_broken_pe_dwarf5=no
31021 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
31023 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
31027 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
31029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
31030 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
31031 gcc_cv_ld_disable_dynamicbase
=no
31032 if test $in_tree_ld = yes; then
31033 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 \
31034 gcc_cv_ld_disable_dynamicbase
=yes
31037 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
31038 gcc_cv_ld_disable_dynamicbase
=yes
31041 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
31043 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
31047 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
31055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
31056 $as_echo_n "checking linker --as-needed support... " >&6; }
31057 if ${gcc_cv_ld_as_needed+:} false
; then :
31058 $as_echo_n "(cached) " >&6
31060 gcc_cv_ld_as_needed
=no
31061 gcc_cv_ld_as_needed_option
='--as-needed'
31062 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
31063 if test $in_tree_ld = yes ; then
31064 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 \
31065 && test $in_tree_ld_is_elf = yes; then
31066 gcc_cv_ld_as_needed
=yes
31067 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
31068 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
31069 gcc_cv_ld_no_as_needed_option
='--pop-state'
31072 elif test x
$gcc_cv_ld != x
; then
31073 # Check if linker supports --as-needed and --no-as-needed options
31074 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
31075 gcc_cv_ld_as_needed
=yes
31076 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
31077 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
31078 && echo "$ld_ver" |
grep GNU
> /dev
/null \
31079 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
31080 # Use these options only when both ld.bfd and ld.gold support
31081 # --push-state/--pop-state, which unfortunately wasn't added
31082 # at the same time.
31083 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
31084 gcc_cv_ld_no_as_needed_option
='--pop-state'
31087 case "$target:$gnu_ld" in
31089 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
31091 gcc_cv_ld_as_needed
=yes
31092 gcc_cv_ld_as_needed_option
="-z ignore"
31093 gcc_cv_ld_no_as_needed_option
="-z record"
31097 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
31098 # dl_iterate_phdr, i.e. since Solaris 11.
31100 *-*-solaris2.1
[1-9]*)
31102 i?
86-*-* | x86_64-
*-*)
31103 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
31104 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
31105 gcc_cv_ld_as_needed
=no
31111 gcc_cv_ld_as_needed
=no
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
31117 $as_echo "$gcc_cv_ld_as_needed" >&6; }
31118 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
31120 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
31123 cat >>confdefs.h
<<_ACEOF
31124 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
31128 cat >>confdefs.h
<<_ACEOF
31129 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
31135 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
31136 saved_LDFLAGS
="$LDFLAGS"
31137 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
31138 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
31139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31140 /* end confdefs.h. */
31141 int main(void) {return 0;}
31143 if ac_fn_cxx_try_link
"$LINENO"; then :
31144 gcc_cv_ld_clearcap
=yes; break
31146 gcc_cv_ld_clearcap
=no
31148 rm -f core conftest.err conftest.
$ac_objext \
31149 conftest
$ac_exeext conftest.
$ac_ext
31151 LDFLAGS
="$saved_LDFLAGS"
31152 if test "x$gcc_cv_ld_clearcap" = xyes
; then
31154 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
31156 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
31159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
31160 $as_echo "$gcc_cv_ld_clearcap" >&6; }
31166 emul_name
="-melf32lppc"
31169 emul_name
="-melf32ppc"
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
31173 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
31174 if ${gcc_cv_ld_ppc_attr+:} false
; then :
31175 $as_echo_n "(cached) " >&6
31177 gcc_cv_ld_ppc_attr
=no
31178 if test x
"$ld_is_gold" = xyes
; then
31179 gcc_cv_ld_ppc_attr
=yes
31180 elif test $in_tree_ld = yes ; then
31181 if test "$gcc_cv_gld_major_version" -eq 2 \
31182 -a "$gcc_cv_gld_minor_version" -ge 28 \
31183 -o "$gcc_cv_gld_major_version" -gt 2; then
31184 gcc_cv_ld_ppc_attr
=yes
31186 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31187 # check that merging the long double .gnu_attribute doesn't warn
31188 cat > conftest1.s
<<EOF
31191 cat > conftest2.s
<<EOF
31194 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
31195 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
31196 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
31197 && test ! -s conftest.err
; then
31198 gcc_cv_ld_ppc_attr
=yes
31200 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
31204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
31205 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
31206 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
31208 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
31214 case "$target:$tm_file" in
31215 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
31218 emul_name
="-melf64lppc"
31221 emul_name
="-melf64ppc"
31224 emul_name
="-melf64lppc_fbsd"
31227 emul_name
="-melf64ppc_fbsd"
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
31231 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
31232 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
31233 $as_echo_n "(cached) " >&6
31235 gcc_cv_ld_no_dot_syms
=no
31236 if test x
"$ld_is_gold" = xyes
; then
31237 gcc_cv_ld_no_dot_syms
=yes
31238 elif test $in_tree_ld = yes ; then
31239 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
31240 gcc_cv_ld_no_dot_syms
=yes
31242 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31243 cat > conftest1.s
<<EOF
31247 cat > conftest2.s
<<EOF
31248 .section ".opd","aw"
31251 .type foo,@function
31253 .quad .LEfoo,.TOC.@tocbase,0
31259 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
31260 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
31261 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
31262 gcc_cv_ld_no_dot_syms
=yes
31264 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
31268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
31269 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
31270 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
31272 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
31276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31277 $as_echo_n "checking linker large toc support... " >&6; }
31278 if ${gcc_cv_ld_large_toc+:} false
; then :
31279 $as_echo_n "(cached) " >&6
31281 gcc_cv_ld_large_toc
=no
31282 if test x
"$ld_is_gold" = xyes
; then
31283 gcc_cv_ld_large_toc
=yes
31284 elif test $in_tree_ld = yes ; then
31285 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
31286 gcc_cv_ld_large_toc
=yes
31288 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31289 cat > conftest.s
<<EOF
31290 .section ".tbss","awT",@nobits
31296 addis 9,13,ie0@got@tprel@ha
31297 ld 9,ie0@got@tprel@l(9)
31299 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
31300 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
31301 gcc_cv_ld_large_toc
=yes
31303 rm -f conftest conftest.o conftest.s
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31308 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31309 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31311 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
31316 $as_echo_n "checking linker toc pointer alignment... " >&6; }
31317 if ${gcc_cv_ld_toc_align+:} false
; then :
31318 $as_echo_n "(cached) " >&6
31320 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
31321 cat > conftest.s
<<EOF
31326 .section .data.rel.ro,"aw",@progbits
31331 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
31332 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
31333 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)) }'`
31335 rm -f conftest conftest.o conftest.s
31339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
31340 $as_echo "$gcc_cv_ld_toc_align" >&6; }
31341 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
31343 cat >>confdefs.h
<<_ACEOF
31344 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
31353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31354 $as_echo_n "checking linker large toc support... " >&6; }
31355 if ${gcc_cv_ld_large_toc+:} false
; then :
31356 $as_echo_n "(cached) " >&6
31358 gcc_cv_ld_large_toc
=no
31359 if test x
$gcc_cv_as != x
; then
31360 cat > conftest.s
<<EOF
31370 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
31371 gcc_cv_ld_large_toc
=yes
31373 rm -f conftest conftest.o conftest.s
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31378 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31379 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31381 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31388 $as_echo_n "checking linker --build-id support... " >&6; }
31389 if ${gcc_cv_ld_buildid+:} false
; then :
31390 $as_echo_n "(cached) " >&6
31392 gcc_cv_ld_buildid
=no
31393 if test $in_tree_ld = yes ; then
31394 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31395 "$gcc_cv_gld_minor_version" -ge 18 -o \
31396 "$gcc_cv_gld_major_version" -gt 2 \
31397 && test $in_tree_ld_is_elf = yes; then
31398 gcc_cv_ld_buildid
=yes
31400 elif test x
$gcc_cv_ld != x
; then
31401 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
31402 gcc_cv_ld_buildid
=yes
31406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31407 $as_echo "$gcc_cv_ld_buildid" >&6; }
31408 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31410 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31414 # Check whether --enable-linker-build-id was given.
31415 if test "${enable_linker_build_id+set}" = set; then :
31416 enableval
=$enable_linker_build_id;
31418 enable_linker_build_id
=no
31422 if test x
"$enable_linker_build_id" = xyes
; then
31423 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31425 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31429 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31433 # In binutils 2.21, GNU ld gained support for new emulations fully
31434 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31436 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31437 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
31438 $as_echo_n "(cached) " >&6
31440 gcc_cv_ld_sol2_emulation
=no
31441 if test $in_tree_ld = yes ; then
31442 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31443 "$gcc_cv_gld_minor_version" -ge 21 -o \
31444 "$gcc_cv_gld_major_version" -gt 2 \
31445 && test $in_tree_ld_is_elf = yes; then
31446 gcc_cv_ld_sol2_emulation
=yes
31448 elif test x
$gcc_cv_ld != x
; then
31449 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
31450 grep _sol2
> /dev
/null
; then
31451 gcc_cv_ld_sol2_emulation
=yes
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31456 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31457 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31459 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31464 $as_echo_n "checking linker --sysroot support... " >&6; }
31465 if ${gcc_cv_ld_sysroot+:} false
; then :
31466 $as_echo_n "(cached) " >&6
31468 gcc_cv_ld_sysroot
=no
31469 if test $in_tree_ld = yes ; then
31470 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
31471 gcc_cv_ld_sysroot
=yes
31473 elif test x
$gcc_cv_ld != x
; then
31474 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31475 gcc_cv_ld_sysroot
=yes
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31480 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31481 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31483 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31489 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31491 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31492 if ${gcc_cv_solaris_crts+:} false
; then :
31493 $as_echo_n "(cached) " >&6
31495 gcc_cv_solaris_crts
=no
31496 if test x
$host != x
$target; then
31497 if test "x$with_sysroot" = xyes
; then
31498 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31500 target_sysroot
="${with_sysroot}"
31503 target_libdir
="$target_sysroot/usr/lib"
31504 # At the time they were added, gcrt1.o became a symlink for backwards
31505 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31507 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31508 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31510 sparc
*-*-solaris2*)
31511 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31516 $as_echo "$gcc_cv_solaris_crts" >&6; }
31519 if test x
$gcc_cv_solaris_crts = xyes
; then
31521 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31525 # Check whether --enable-libssp was given.
31526 if test "${enable_libssp+set}" = set; then :
31527 enableval
=$enable_libssp; case "${enableval}" in
31531 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31537 # Test for stack protector support in target C library.
31538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31539 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31540 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31541 $as_echo_n "(cached) " >&6
31543 gcc_cv_libc_provides_ssp
=no
31544 if test "x$enable_libssp" = "xno"; then
31545 gcc_cv_libc_provides_ssp
=yes
31546 elif test "x$enable_libssp" = "xyes"; then
31547 gcc_cv_libc_provides_ssp
=no
31551 # All versions of musl provide stack protector
31552 gcc_cv_libc_provides_ssp
=yes;;
31553 *-*-linux* |
*-*-kfreebsd*-gnu)
31554 # glibc 2.4 and later provides __stack_chk_fail and
31555 # either __stack_chk_guard, or TLS access to stack guard canary.
31557 if test $glibc_version_major -gt 2 \
31558 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31559 gcc_cv_libc_provides_ssp
=yes
31562 if test -f $target_header_dir/features.h \
31563 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31564 $target_header_dir/features.h
> /dev
/null
; then
31565 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31566 $target_header_dir/features.h
> /dev
/null
&& \
31567 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31568 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31569 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31570 gcc_cv_libc_provides_ssp
=yes
31572 # all versions of Bionic support stack protector
31573 elif test -f $target_header_dir/sys
/cdefs.h \
31574 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31575 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31576 gcc_cv_libc_provides_ssp
=yes
31581 # Avoid complicated tests (see
31582 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31583 # simply assert that glibc does provide this, which is true for all
31584 # realistically usable GNU/Hurd configurations.
31585 # All supported versions of musl provide it as well
31586 gcc_cv_libc_provides_ssp
=yes;;
31587 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31588 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31589 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31590 gcc_cv_libc_provides_ssp
=yes
31592 echo "no __stack_chk_fail on this target"
31596 *) gcc_cv_libc_provides_ssp
=no
;;
31600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31601 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31603 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31605 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31609 # Check whether --enable-default-ssp was given.
31610 # Check whether --enable-default-ssp was given.
31611 if test "${enable_default_ssp+set}" = set; then :
31612 enableval
=$enable_default_ssp;
31613 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31615 ia64
*-*-*) enable_default_ssp
=no
;;
31616 *) enable_default_ssp
=$enableval ;;
31619 enable_default_ssp
=no
31622 enable_default_ssp
=no
31625 if test x
$enable_default_ssp = xyes
; then
31627 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31632 # Test for <sys/sdt.h> on the target.
31634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31635 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31636 if ${gcc_cv_sys_sdt_h+:} false
; then :
31637 $as_echo_n "(cached) " >&6
31640 gcc_cv_sys_sdt_h
=no
31641 if test -f $target_header_dir/sys
/sdt.h
; then
31642 gcc_cv_sys_sdt_h
=yes
31646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31647 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31648 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
31651 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31656 # Check if TFmode long double should be used by default or not.
31657 # Some glibc targets used DFmode long double, but with glibc 2.4
31658 # and later they can use TFmode.
31660 powerpc
*-*-linux* | \
31661 sparc
*-*-linux* | \
31665 # Check whether --with-long-double-128 was given.
31666 if test "${with_long_double_128+set}" = set; then :
31667 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31671 s390
*-*-linux-musl*)
31672 gcc_cv_target_ldbl128
=yes
31674 powerpc
*-*-linux-musl*)
31675 gcc_cv_target_ldbl128
=no
31679 if test $glibc_version_major -gt 2 \
31680 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31681 gcc_cv_target_ldbl128
=yes
31684 gcc_cv_target_ldbl128
=no
31685 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31686 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31687 && gcc_cv_target_ldbl128
=yes
31698 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31700 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31704 # Check if TFmode long double target should use the IBM extended double or IEEE
31705 # 128-bit floating point formats if long doubles are 128-bits long. The long
31706 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31707 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31710 # Check whether --with-long-double-format was given.
31711 if test "${with_long_double_format+set}" = set; then :
31712 withval
=$with_long_double_format;
31713 case "$target:$with_long_double_format" in
31714 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31717 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31718 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31719 case "$with_cpu" in
31720 power7 | power8 | power9 | power1
*)
31724 as_fn_error $?
"Configuration option --with-long-double-format is only \
31725 supported if the default cpu is power7 or newer" "$LINENO" 5
31726 with_long_double_format
=""
31730 powerpc64
*-*-linux*:*)
31731 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31732 with_long_double_format
=""
31735 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31736 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31737 with_long_double_format
=""
31743 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31744 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31745 gcc_cv_libc_provides_hwcap_in_tcb
=no
31749 if test $glibc_version_major -gt 2 \
31750 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31751 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31755 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31757 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31761 # Check if the target LIBC handles PT_GNU_STACK.
31762 gcc_cv_libc_gnustack
=unknown
31764 mips
*-*-linux-musl*)
31765 gcc_cv_libc_gnustack
=yes
31769 if test $glibc_version_major -gt 2 \
31770 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31771 gcc_cv_libc_gnustack
=yes
31775 if test x
$gcc_cv_libc_gnustack = xyes
; then
31777 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31782 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31783 gcc_cv_target_dl_iterate_phdr
=unknown
31786 # <link.h> needs both a dl_iterate_phdr declaration and support for
31787 # compilation with largefile support.
31788 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31789 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31790 gcc_cv_target_dl_iterate_phdr
=yes
31792 gcc_cv_target_dl_iterate_phdr
=no
31795 *-*-dragonfly* |
*-*-freebsd*)
31796 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31797 gcc_cv_target_dl_iterate_phdr
=yes
31799 gcc_cv_target_dl_iterate_phdr
=no
31803 gcc_cv_target_dl_iterate_phdr
=yes
31807 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31809 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31813 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31815 # We no longer support different GC mechanisms. Emit an error if
31816 # the user configures with --with-gc.
31818 # Check whether --with-gc was given.
31819 if test "${with_gc+set}" = set; then :
31820 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31824 # Libraries to use on the host. This will normally be set by the top
31825 # level Makefile. Here we simply capture the value for our Makefile.
31826 if test -z "${HOST_LIBS+set}"; then
31831 # Use the system's zlib library.
31833 # Use the system's zlib library.
31834 zlibdir
="-L\$(top_builddir)/../zlib"
31835 zlibinc
="-I\$(top_srcdir)/../zlib"
31837 # Check whether --with-system-zlib was given.
31838 if test "${with_system_zlib+set}" = set; then :
31839 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31852 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31853 # Check whether --enable-maintainer-mode was given.
31854 if test "${enable_maintainer_mode+set}" = set; then :
31855 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31862 $as_echo "$maintainer_mode" >&6; }
31864 if test "$maintainer_mode" = "yes"; then
31870 if test -z "$CTAGS"; then
31874 if test -z "$ETAGS"; then
31878 if test -z "$CSCOPE"; then
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31885 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31886 # Check whether --enable-link-mutex was given.
31887 if test "${enable_link_mutex+set}" = set; then :
31888 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31894 $as_echo "$do_link_mutex" >&6; }
31896 if test "$do_link_mutex" = "yes"; then
31898 { $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
31899 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31901 DO_LINK_MUTEX
=false
31906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31907 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31908 # Check whether --enable-link-serialization was given.
31909 if test "${enable_link_serialization+set}" = set; then :
31910 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31912 do_link_serialization
=no
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31916 $as_echo "$do_link_serialization" >&6; }
31918 case "$do_link_serialization" in
31920 DO_LINK_SERIALIZATION
=1;;
31921 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31922 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31924 DO_LINK_SERIALIZATION
=;;
31926 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31934 # Make empty files to contain the specs and options for each language.
31935 # Then add #include lines to for a compiler that has specs and/or options.
31941 # These (without "all_") are set in each config-lang.in.
31942 # `language' must be a single word so is spelled singularly.
31945 all_outputs
='Makefile'
31946 # List of language configure and makefile fragments.
31947 all_lang_configurefrags
=
31948 all_lang_makefrags
=
31949 # Additional files for gengtype
31950 all_gtfiles
="$target_gtfiles"
31952 # These are the languages that are set in --enable-languages,
31953 # and are available in the GCC tree.
31954 all_selected_languages
=
31956 # Add the language fragments.
31957 # Languages are added via two mechanisms. Some information must be
31958 # recorded in makefile variables, these are defined in config-lang.in.
31959 # We accumulate them and plug them into the main Makefile.
31960 # The other mechanism is a set of hooks for each of the main targets
31961 # like `clean', `install', etc.
31963 language_hooks
="Make-hooks"
31965 for lang
in ${srcdir}/*/config-lang.
in
31967 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31969 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31970 if test "x$lang_alias" = x
31972 echo "$lang doesn't set \$language." 1>&2
31975 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31976 subdirs
="$subdirs $subdir"
31978 # $gcc_subdir is where the gcc integration files are to be found
31979 # for a language, both for internal compiler purposes (compiler
31980 # sources implementing front-end to GCC tree converters), and for
31981 # build infrastructure purposes (Make-lang.in, etc.)
31983 # This will be <subdir> (relative to $srcdir) if a line like
31984 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31985 # is found in <langdir>/config-lang.in, and will remain <langdir>
31988 # Except for the language alias (fetched above), the regular
31989 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31990 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31991 # only this and the language alias.
31993 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31994 if [ "$gcc_subdir" = "" ]; then
31995 gcc_subdir
="$subdir"
31998 case ",$enable_languages," in
32000 all_selected_languages
="$all_selected_languages $lang_alias"
32001 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
32002 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
32013 .
${srcdir}/$gcc_subdir/config-lang.
in
32014 if test "x$language" = x
32016 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
32021 case ",$enable_languages," in
32022 *,$lang_alias,*) ;;
32024 for i
in $subdir_requires; do
32025 test -f "${srcdir}/$i/config-lang.in" && continue
32033 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
32034 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
32035 # Put c/Make-lang.in fragment first to match serialization languages order.
32036 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
32038 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
32040 if test -f $srcdir/$gcc_subdir/lang.opt
; then
32041 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
32042 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
32044 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
32045 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
32047 all_languages
="$all_languages $language"
32048 all_compilers
="$all_compilers $compilers"
32049 all_outputs
="$all_outputs $outputs"
32050 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
32051 case ",$enable_languages," in
32054 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
32064 for language
in $all_selected_languages
32066 check_languages
="$check_languages check-$language"
32069 selftest_languages
=
32070 for language
in $all_selected_languages
32072 selftest_languages
="$selftest_languages selftest-$language"
32075 # We link each language in with a set of hooks, reached indirectly via
32076 # lang.${target}. Only do so for selected languages.
32080 target_list
="all.cross start.encap rest.encap tags \
32081 install-common install-man install-info install-dvi install-pdf \
32082 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
32083 mostlyclean clean distclean maintainer-clean install-plugin"
32085 for t
in $target_list
32088 for lang
in $all_selected_languages
32092 echo "lang.$t: $x" >> Make-hooks
32095 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
32096 echo "SERIAL_LIST =" >> Make-hooks
32097 echo else >> Make-hooks
32101 serialization_languages
=c
32102 for lang
in $all_selected_languages
32104 test $lang = c
&& continue
32105 if test $lang = lto
; then
32106 serialization_languages
="$serialization_languages lto1 lto2"
32108 serialization_languages
="$serialization_languages $lang"
32111 for lang
in $serialization_languages
32113 test $lang = c
&& continue
32114 lang_cnt
=`expr $lang_cnt + 1`
32115 lang_list
=" $prev$lang_list"
32118 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
32119 echo endif
>> Make-hooks
32120 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
32121 echo "INDEX.c = 0" >> Make-hooks
32123 for lang
in $serialization_languages
32125 test $lang = c
&& continue
32126 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
32127 echo "INDEX.$lang = $lang_idx" >> Make-hooks
32128 lang_cnt
=`expr $lang_cnt - 1`
32129 lang_idx
=`expr $lang_idx + 1`
32133 # Option include files
32136 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
32137 option_includes
="option-includes.mk"
32146 echo "dir ." > .gdbinit
32147 echo "dir ${srcdir}" >> .gdbinit
32148 if test x
$gdb_needs_out_file_path = xyes
32150 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
32152 if test "x$subdirs" != x
; then
32155 echo "dir ${srcdir}/$s" >> .gdbinit
32158 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
32159 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
32161 # Put a breakpoint on __asan_report_error to help with debugging buffer
32164 *-fsanitize=address
*)
32165 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
32169 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
32173 # Find a directory in which to install a shared libgcc.
32175 # Check whether --enable-version-specific-runtime-libs was given.
32176 if test "${enable_version_specific_runtime_libs+set}" = set; then :
32177 enableval
=$enable_version_specific_runtime_libs;
32181 # Substitute configuration variables
32255 if test x
${build} = x
${host} ; then
32256 if test x
${host} = x
${target} ; then
32257 echo "Links are now set up to build a native compiler for ${target}." 1>&2
32259 echo "Links are now set up to build a cross-compiler" 1>&2
32260 echo " from ${host} to ${target}." 1>&2
32263 if test x
${host} = x
${target} ; then
32264 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
32265 echo " for ${target}." 1>&2
32267 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
32268 echo " from ${host} to ${target}." 1>&2
32277 if test "x${ISLLIBS}" != "x" ; then
32279 $as_echo "#define HAVE_isl 1" >>confdefs.h
32283 # Check for plugin support
32284 # Check whether --enable-plugin was given.
32285 if test "${enable_plugin+set}" = set; then :
32286 enableval
=$enable_plugin; enable_plugin
=$enableval
32288 enable_plugin
=yes; default_plugin
=yes
32297 # Since plugin support under MinGW is not as straightforward as on
32298 # other platforms (e.g., we have to link import library, etc), we
32299 # only enable it if explicitly requested.
32300 if test x
"$default_plugin" = x
"yes"; then
32302 elif test x
"$enable_plugin" = x
"yes"; then
32303 # Use make's target variable to derive import library name.
32304 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
32309 if test x
$build = x
$host; then
32310 export_sym_check
="nm${exeext} -g"
32311 elif test x
$host = x
$target; then
32312 export_sym_check
="$gcc_cv_nm -g"
32318 if test x
$build = x
$host; then
32319 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
32320 elif test x
$host = x
$target; then
32321 export_sym_check
="$gcc_cv_objdump -T"
32323 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
32328 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
32330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
32331 $as_echo_n "checking for exported symbols... " >&6; }
32332 if test "x$export_sym_check" != x
; then
32333 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
32334 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
32335 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
32336 : # No need to use a flag
32337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32338 $as_echo "yes" >&6; }
32340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32341 $as_echo "yes" >&6; }
32342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
32343 $as_echo_n "checking for -rdynamic... " >&6; }
32344 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
32345 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
32346 plugin_rdynamic
=yes
32347 pluginlibs
="-rdynamic"
32352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
32353 $as_echo "$plugin_rdynamic" >&6; }
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
32357 $as_echo "unable to check" >&6; }
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
32363 $as_echo_n "checking for library containing dlopen... " >&6; }
32364 if ${ac_cv_search_dlopen+:} false
; then :
32365 $as_echo_n "(cached) " >&6
32367 ac_func_search_save_LIBS
=$LIBS
32368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32369 /* end confdefs.h. */
32371 /* Override any GCC internal prototype to avoid an error.
32372 Use char because int might match the return type of a GCC
32373 builtin and then its argument prototype would still apply. */
32386 for ac_lib
in '' dl
; do
32387 if test -z "$ac_lib"; then
32388 ac_res
="none required"
32391 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
32393 if ac_fn_cxx_try_link
"$LINENO"; then :
32394 ac_cv_search_dlopen
=$ac_res
32396 rm -f core conftest.err conftest.
$ac_objext \
32398 if ${ac_cv_search_dlopen+:} false
; then :
32402 if ${ac_cv_search_dlopen+:} false
; then :
32405 ac_cv_search_dlopen
=no
32407 rm conftest.
$ac_ext
32408 LIBS
=$ac_func_search_save_LIBS
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32411 $as_echo "$ac_cv_search_dlopen" >&6; }
32412 ac_res
=$ac_cv_search_dlopen
32413 if test "$ac_res" != no
; then :
32414 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
32418 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
32419 pluginlibs
="$pluginlibs -ldl"
32423 # Check that we can build shared objects with -fPIC -shared
32424 saved_LDFLAGS
="$LDFLAGS"
32425 saved_CFLAGS
="$CFLAGS"
32426 saved_CXXFLAGS
="$CXXFLAGS"
32429 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32430 CFLAGS
="$CFLAGS -fPIC"
32431 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32432 CXXFLAGS
="$CXXFLAGS -fPIC"
32433 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
32436 CFLAGS
="$CFLAGS -fPIC"
32437 CXXFLAGS
="$CXXFLAGS -fPIC"
32438 LDFLAGS
="$LDFLAGS -fPIC -shared"
32441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32442 $as_echo_n "checking for -fPIC -shared... " >&6; }
32443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32444 /* end confdefs.h. */
32454 if ac_fn_cxx_try_link
"$LINENO"; then :
32455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32456 $as_echo "yes" >&6; }; have_pic_shared
=yes
32458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32459 $as_echo "no" >&6; }; have_pic_shared
=no
32461 rm -f core conftest.err conftest.
$ac_objext \
32462 conftest
$ac_exeext conftest.
$ac_ext
32463 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32467 LDFLAGS
="$saved_LDFLAGS"
32468 CFLAGS
="$saved_CFLAGS"
32469 CXXFLAGS
="$saved_CXXFLAGS"
32471 # If plugin support had been requested but not available, fail.
32472 if test x
"$enable_plugin" = x
"no" ; then
32473 if test x
"$default_plugin" != x
"yes"; then
32475 Building GCC with plugin support requires a host that supports
32476 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32483 if test x
"$enable_plugin" = x
"yes"; then
32485 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32490 # Enable --enable-host-shared
32491 # Check whether --enable-host-shared was given.
32492 if test "${enable_host_shared+set}" = set; then :
32493 enableval
=$enable_host_shared;
32498 # Enable --enable-host-pie
32499 # Check whether --enable-host-pie was given.
32500 if test "${enable_host_pie+set}" = set; then :
32501 enableval
=$enable_host_pie;
32506 # Enable --enable-host-bind-now
32507 # Check whether --enable-host-bind-now was given.
32508 if test "${enable_host_bind_now+set}" = set; then :
32509 enableval
=$enable_host_bind_now;
32514 # Check whether --enable-libquadmath-support was given.
32515 if test "${enable_libquadmath_support+set}" = set; then :
32516 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32518 ENABLE_LIBQUADMATH_SUPPORT
=yes
32521 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32523 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32528 # Specify what hash style to use by default.
32530 # Check whether --with-linker-hash-style was given.
32531 if test "${with_linker_hash_style+set}" = set; then :
32532 withval
=$with_linker_hash_style; case x
"$withval" in
32534 LINKER_HASH_STYLE
=sysv
32537 LINKER_HASH_STYLE
=gnu
32540 LINKER_HASH_STYLE
=both
32543 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32547 LINKER_HASH_STYLE
=''
32550 if test x
"${LINKER_HASH_STYLE}" != x
; then
32552 cat >>confdefs.h
<<_ACEOF
32553 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32558 # Specify what should be the default of -fdiagnostics-color option.
32560 # Check whether --with-diagnostics-color was given.
32561 if test "${with_diagnostics_color+set}" = set; then :
32562 withval
=$with_diagnostics_color; case x
"$withval" in
32564 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32567 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32570 DIAGNOSTICS_COLOR_DEFAULT
=-1
32573 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32576 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32580 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32584 cat >>confdefs.h
<<_ACEOF
32585 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32589 # Specify what should be the default of -fdiagnostics-urls option.
32591 # Check whether --with-diagnostics-urls was given.
32592 if test "${with_diagnostics_urls+set}" = set; then :
32593 withval
=$with_diagnostics_urls; case x
"$withval" in
32595 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32598 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32601 DIAGNOSTICS_URLS_DEFAULT
=-1
32604 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32607 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32611 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32615 cat >>confdefs.h
<<_ACEOF
32616 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32620 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32621 # of jit/jit-playback.cc.
32622 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32623 echo "gcc_driver_version: ${gcc_driver_version}"
32624 cat > gcc-driver-name.h
<<EOF
32625 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32628 # Check whether --enable-default-pie was given.
32629 # Check whether --enable-default-pie was given.
32630 if test "${enable_default_pie+set}" = set; then :
32631 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32633 enable_default_pie
=no
32636 if test x
$enable_default_pie = xyes
; then
32638 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32643 # Check if -fno-PIE works.
32644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32645 $as_echo_n "checking for -fno-PIE option... " >&6; }
32646 if ${gcc_cv_c_no_fpie+:} false
; then :
32647 $as_echo_n "(cached) " >&6
32649 saved_CXXFLAGS
="$CXXFLAGS"
32650 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32652 /* end confdefs.h. */
32653 int main(void) {return 0;}
32655 if ac_fn_cxx_try_compile
"$LINENO"; then :
32656 gcc_cv_c_no_fpie
=yes
32658 gcc_cv_c_no_fpie
=no
32660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32661 CXXFLAGS
="$saved_CXXFLAGS"
32663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32664 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32666 # Check if -no-pie works.
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32668 $as_echo_n "checking for -no-pie option... " >&6; }
32669 if ${gcc_cv_no_pie+:} false
; then :
32670 $as_echo_n "(cached) " >&6
32672 saved_LDFLAGS
="$LDFLAGS"
32673 LDFLAGS
="$LDFLAGS -no-pie"
32674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32675 /* end confdefs.h. */
32676 int main(void) {return 0;}
32678 if ac_fn_cxx_try_link
"$LINENO"; then :
32683 rm -f core conftest.err conftest.
$ac_objext \
32684 conftest
$ac_exeext conftest.
$ac_ext
32685 LDFLAGS
="$saved_LDFLAGS"
32687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32688 $as_echo "$gcc_cv_no_pie" >&6; }
32690 if test x
$enable_host_shared = xyes
; then
32692 elif test x
$enable_host_pie = xyes
; then
32694 elif test x
$gcc_cv_c_no_fpie = xyes
; then
32702 if test x
$enable_host_pie = xyes
; then
32704 elif test x
$gcc_cv_no_pie = xyes
; then
32710 if test x
$enable_host_bind_now = xyes
; then
32711 LD_PICFLAG
="$LD_PICFLAG -Wl,-z,now"
32716 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32717 # Check whether --enable-cet was given.
32718 if test "${enable_cet+set}" = set; then :
32719 enableval
=$enable_cet;
32720 case "$enableval" in
32722 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32731 $as_echo_n "checking for CET support... " >&6; }
32734 i
[34567]86-*-linux* | x86_64-
*-linux*)
32736 cet_save_CFLAGS
="$CFLAGS"
32737 CFLAGS
="$CFLAGS -fcf-protection"
32738 case "$enable_cet" in
32740 # Check if target supports multi-byte NOPs
32741 # and if compiler and assembler support CET.
32742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32743 /* end confdefs.h. */
32749 #if !defined(__SSE2__)
32750 #error target does not support multi-byte NOPs
32759 if ac_fn_cxx_try_compile
"$LINENO"; then :
32764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32767 # Check if compiler and assembler support CET.
32768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32769 /* end confdefs.h. */
32779 if ac_fn_cxx_try_compile
"$LINENO"; then :
32784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32785 if test $support_cet = "no"; then
32786 if test x
$enable_bootstrap != xno \
32787 && test -z "${with_build_subdir}" \
32788 && (test ! -f ..
/stage_current \
32789 ||
test `cat ../stage_current` != "stage1"); then
32790 # Require CET support only for the final GCC build.
32791 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32793 # Don't enable CET without CET support for non-bootstrap
32794 # build, in stage1 nor for build support.
32800 CFLAGS
="$cet_save_CFLAGS"
32808 cet_save_CFLAGS
="$CFLAGS"
32809 CFLAGS
="$CFLAGS -fcf-protection=none"
32810 cet_save_LDFLAGS
="$LDFLAGS"
32811 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32812 if test x
$may_have_cet = xyes
; then
32813 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32815 /* end confdefs.h. */
32825 if ac_fn_cxx_try_link
"$LINENO"; then :
32830 rm -f core conftest.err conftest.
$ac_objext \
32831 conftest
$ac_exeext conftest.
$ac_ext
32834 if test x
$may_have_cet = xyes
; then
32835 if test x
$cross_compiling = xno
; then
32836 if test "$cross_compiling" = yes; then :
32837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32839 as_fn_error $?
"cannot run test program while cross compiling
32840 See \`config.log' for more details" "$LINENO" 5; }
32842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32843 /* end confdefs.h. */
32853 if ac_fn_cxx_try_run
"$LINENO"; then :
32854 have_multi_byte_nop
=yes
32856 have_multi_byte_nop
=no
32858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32863 if test x
$have_multi_byte_nop = xyes
; then
32864 if test "$cross_compiling" = yes; then :
32865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32867 as_fn_error $?
"cannot run test program while cross compiling
32868 See \`config.log' for more details" "$LINENO" 5; }
32870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32871 /* end confdefs.h. */
32879 __attribute__ ((noinline, noclone))
32880 xxx (void (*f) (void))
32886 __attribute__ ((noinline, noclone))
32900 if ac_fn_cxx_try_run
"$LINENO"; then :
32905 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32906 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32910 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32911 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32915 # Enable CET in cross compiler if possible so that it will run on both
32916 # CET and non-CET hosts.
32919 if test x
$enable_cet = xyes
; then
32920 CET_HOST_FLAGS
="-fcf-protection"
32921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32922 $as_echo "yes" >&6; }
32924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32925 $as_echo "no" >&6; }
32927 CFLAGS
="$cet_save_CFLAGS"
32928 LDFLAGS
="$cet_save_LDFLAGS"
32930 case x
$enable_languages in
32939 # Check linker supports '-z bndplt'
32940 ld_bndplt_support
=no
32941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32942 $as_echo_n "checking linker -z bndplt option... " >&6; }
32943 if test x
"$ld_is_gold" = xno
; then
32944 if test $in_tree_ld = yes ; then
32945 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
32946 ld_bndplt_support
=yes
32948 elif test x
$gcc_cv_ld != x
; then
32949 # Check if linker supports -a bndplt option
32950 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32951 ld_bndplt_support
=yes
32955 if test x
"$ld_bndplt_support" = xyes
; then
32957 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32961 $as_echo "$ld_bndplt_support" >&6; }
32963 # Check linker supports '--push-state'/'--pop-state'
32964 ld_pushpopstate_support
=no
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32966 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32967 if test x
"$ld_is_gold" = xno
; then
32968 if test $in_tree_ld = yes ; then
32969 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
32970 ld_pushpopstate_support
=yes
32972 elif test x
$gcc_cv_ld != x
; then
32973 # Check if linker supports --push-state/--pop-state options
32974 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32975 ld_pushpopstate_support
=yes
32979 if test x
"$ld_pushpopstate_support" = xyes
; then
32981 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32985 $as_echo "$ld_pushpopstate_support" >&6; }
32987 # On s390, float_t has historically been statically defined as double for no
32988 # good reason. To comply with the C standard in the light of this definition,
32989 # gcc has evaluated float expressions in double precision when in
32990 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32991 # a smooth transition towards the new model used by most architectures, where
32992 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32993 # float_t from that, this behavior can be configured with
32994 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32995 # the old model. When omitted, native builds and cross compiles that have target
32996 # libc headers will detect whether libc clamps float_t to double and in that
32997 # case maintain the old model. Otherwise, they will default to the new model.
32998 # Check whether --enable-s390-excess-float-precision was given.
32999 if test "${enable_s390_excess_float_precision+set}" = set; then :
33000 enableval
=$enable_s390_excess_float_precision;
33002 enable_s390_excess_float_precision
=auto
33008 if test x
"$enable_s390_excess_float_precision" = xauto
; then
33009 # Can we autodetect the behavior of the target libc?
33010 if test "$target" = "$host" -a "$host" = "$build"; then
33011 enable_s390_excess_float_precision
=autodetect
33012 elif test "x$with_headers" != xno
; then
33013 # cross build. are target headers available?
33014 # carefully coerce the build-system compiler to use target headers
33015 saved_CXXFLAGS
="$CXXFLAGS"
33016 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
33017 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
33018 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
33019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33020 /* end confdefs.h. */
33025 if ac_fn_cxx_try_compile
"$LINENO"; then :
33026 enable_s390_excess_float_precision
=autodetect
33028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33029 CXXFLAGS
="$saved_CXXFLAGS"
33032 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
33033 saved_CXXFLAGS
="$CXXFLAGS"
33034 if ! test "$target" = "$host" -a "$host" = "$build"; then
33035 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
33036 unset CROSS_TEST_CXXFLAGS
33038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
33039 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
33040 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
33041 $as_echo_n "(cached) " >&6
33044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33045 /* end confdefs.h. */
33047 #define __FLT_EVAL_METHOD__ 0
33049 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
33052 if ac_fn_cxx_try_compile
"$LINENO"; then :
33053 gcc_cv_float_t_clamped_to_double
=yes
33055 gcc_cv_float_t_clamped_to_double
=no
33057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
33060 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
33061 CXXFLAGS
="$saved_CXXFLAGS"
33062 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
33064 # no way to detect behavior of target libc, default to new model
33065 enable_s390_excess_float_precision
=no
33070 if test x
"$enable_s390_excess_float_precision" = xyes
; then
33072 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
33078 # Configure the subdirectories
33079 # AC_CONFIG_SUBDIRS($subdirs)
33081 # Create the Makefile
33082 # and configure language subdirectories
33083 ac_config_files
="$ac_config_files $all_outputs"
33086 ac_config_commands
="$ac_config_commands default"
33088 cat >confcache
<<\_ACEOF
33089 # This file is a shell script that caches the results of configure
33090 # tests run on this system so they can be shared between configure
33091 # scripts and configure runs, see configure's option --config-cache.
33092 # It is not useful on other systems. If it contains results you don't
33093 # want to keep, you may remove or edit it.
33095 # config.status only pays attention to the cache file if you give it
33096 # the --recheck option to rerun configure.
33098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33100 # following values.
33104 # The following way of writing the cache mishandles newlines in values,
33105 # but we know of no workaround that is simple, portable, and efficient.
33106 # So, we kill variables containing newlines.
33107 # Ultrix sh set writes to stderr and can't be redirected directly,
33108 # and sets the high bit in the cache file unless we assign to the vars.
33110 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33111 eval ac_val
=\$
$ac_var
33115 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33119 _ | IFS | as_nl
) ;; #(
33120 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
33121 *) { eval $ac_var=; unset $ac_var;} ;;
33127 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33128 *${as_nl}ac_space
=\
*)
33129 # `set' does not quote correctly, so add quotes: double-quote
33130 # substitution turns \\\\ into \\, and sed turns \\ into \.
33133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33136 # `set' quotes correctly as required by POSIX, so do not add quotes.
33137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33148 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33150 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33151 if test -w "$cache_file"; then
33152 if test "x$cache_file" != "x/dev/null"; then
33153 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33154 $as_echo "$as_me: updating cache $cache_file" >&6;}
33155 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
33156 cat confcache
>"$cache_file"
33158 case $cache_file in #(
33160 mv -f confcache
"$cache_file"$$
&&
33161 mv -f "$cache_file"$$
"$cache_file" ;; #(
33163 mv -f confcache
"$cache_file" ;;
33168 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33169 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33174 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33175 # Let make expand exec_prefix.
33176 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33178 DEFS
=-DHAVE_CONFIG_H
33183 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33184 # 1. Remove the extension, and $U if already installed.
33185 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33186 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
33187 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33188 # will be set to the directory where LIBOBJS objects are built.
33189 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33190 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
33192 LIBOBJS
=$ac_libobjs
33194 LTLIBOBJS
=$ac_ltlibobjs
33198 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
33199 as_fn_error $?
"conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
33200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33203 : "${CONFIG_STATUS=./config.status}"
33205 ac_clean_files_save
=$ac_clean_files
33206 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33208 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33210 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33212 # Generated by $as_me.
33213 # Run this file to recreate the current configuration.
33214 # Compiler output produced by configure, useful for debugging
33215 # configure, is in config.log if it exists.
33218 ac_cs_recheck=false
33221 SHELL=\${CONFIG_SHELL-$SHELL}
33224 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
33225 ## -------------------- ##
33226 ## M4sh Initialization. ##
33227 ## -------------------- ##
33229 # Be more Bourne compatible
33230 DUALCASE
=1; export DUALCASE
# for MKS sh
33231 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
33234 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33235 # is contrary to our usage. Disable this feature.
33236 alias -g '${1+"$@"}'='"$@"'
33237 setopt NO_GLOB_SUBST
33239 case `(set -o) 2>/dev/null` in #(
33251 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33252 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33253 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33255 # Prefer a ksh shell builtin over an external printf program on Solaris,
33256 # but without wasting forks for bash or zsh.
33257 if test -z "$BASH_VERSION$ZSH_VERSION" \
33258 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33259 as_echo='print
-r --'
33260 as_echo_n='print
-rn --'
33261 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33262 as_echo='printf %s
\n'
33263 as_echo_n='printf %s
'
33265 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33266 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
33267 as_echo_n='/usr
/ucb
/echo -n'
33269 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33270 as_echo_n_body='eval
33274 expr "X$arg" : "X\\(.*\\)$as_nl";
33275 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33277 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
33279 export as_echo_n_body
33280 as_echo_n='sh
-c $as_echo_n_body as_echo
'
33282 export as_echo_body
33283 as_echo='sh
-c $as_echo_body as_echo
'
33286 # The user is always right.
33287 if test "${PATH_SEPARATOR+set}" != set; then
33289 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33290 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33297 # We need space, tab and new line, in precisely that order. Quoting is
33298 # there to prevent editors from complaining about space-tab.
33299 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33300 # splitting by setting IFS to empty value.)
33303 # Find who we are. Look in the path if we contain no directory separator.
33306 *[\\/]* ) as_myself=$0 ;;
33307 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33308 for as_dir in $PATH
33311 test -z "$as_dir" && as_dir=.
33312 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33318 # We did not find ourselves, most probably we were run as `sh COMMAND'
33319 # in which case we are not to be found in the path.
33320 if test "x$as_myself" = x
; then
33323 if test ! -f "$as_myself"; then
33324 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33328 # Unset variables that we do not need and which cause bugs (e.g. in
33329 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33330 # suppresses any "Segmentation fault" message there. '((' could
33331 # trigger a bug in pdksh 5.2.14.
33332 for as_var
in BASH_ENV ENV MAIL MAILPATH
33333 do eval test x\
${$as_var+set} = xset \
33334 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
33347 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
33350 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33351 # ----------------------------------------
33352 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33353 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33354 # script with STATUS, using 1 if that was 0.
33357 as_status
=$1; test $as_status -eq 0 && as_status
=1
33359 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
33360 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33362 $as_echo "$as_me: error: $2" >&2
33363 as_fn_exit
$as_status
33367 # as_fn_set_status STATUS
33368 # -----------------------
33369 # Set $? to STATUS, without forking.
33370 as_fn_set_status
()
33373 } # as_fn_set_status
33375 # as_fn_exit STATUS
33376 # -----------------
33377 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33381 as_fn_set_status
$1
33387 # Portably unset VAR.
33390 { eval $1=; unset $1;}
33392 as_unset
=as_fn_unset
33393 # as_fn_append VAR VALUE
33394 # ----------------------
33395 # Append the text in VALUE to the end of the definition contained in VAR. Take
33396 # advantage of any shell optimizations that allow amortized linear growth over
33397 # repeated appends, instead of the typical quadratic growth present in naive
33399 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
33400 eval 'as_fn_append ()
33411 # as_fn_arith ARG...
33412 # ------------------
33413 # Perform arithmetic evaluation on the ARGs, and store the result in the
33414 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33415 # must be portable across $(()) and expr.
33416 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
33417 eval 'as_fn_arith ()
33424 as_val
=`expr "$@" || test $? -eq 1`
33429 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33430 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33436 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33437 as_basename
=basename
33442 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33448 as_me
=`$as_basename -- "$0" ||
33449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33450 X"$0" : 'X\(//\)$' \| \
33451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33453 sed '/^.*\/\([^/][^/]*\)\/*$/{
33467 # Avoid depending upon Character Ranges.
33468 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33469 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33470 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33471 as_cr_digits
='0123456789'
33472 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33474 ECHO_C
= ECHO_N
= ECHO_T
=
33475 case `echo -n x` in #(((((
33477 case `echo 'xy\c'` in
33478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33480 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33487 rm -f conf$$ conf$$.exe conf$$.
file
33488 if test -d conf$$.dir
; then
33489 rm -f conf$$.dir
/conf$$.
file
33492 mkdir conf$$.dir
2>/dev
/null
33494 if (echo >conf$$.
file) 2>/dev
/null
; then
33495 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33497 # ... but there are two gotchas:
33498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33500 # In both cases, we have to default to `cp -pR'.
33501 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33503 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33512 rmdir conf$$.dir
2>/dev
/null
33517 # Create "$as_dir" as a directory, including parents if necessary.
33522 -*) as_dir
=.
/$as_dir;;
33524 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33528 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33529 *) as_qdir
=$as_dir;;
33531 as_dirs
="'$as_qdir' $as_dirs"
33532 as_dir
=`$as_dirname -- "$as_dir" ||
33533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33534 X"$as_dir" : 'X\(//\)[^/]' \| \
33535 X"$as_dir" : 'X\(//\)$' \| \
33536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33537 $as_echo X"$as_dir" |
33538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33542 /^X\(\/\/\)[^/].*/{
33555 test -d "$as_dir" && break
33557 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33558 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33562 if mkdir
-p .
2>/dev
/null
; then
33563 as_mkdir_p
='mkdir -p "$as_dir"'
33565 test -d .
/-p && rmdir .
/-p
33570 # as_fn_executable_p FILE
33571 # -----------------------
33572 # Test if FILE is an executable regular file.
33573 as_fn_executable_p
()
33575 test -f "$1" && test -x "$1"
33576 } # as_fn_executable_p
33577 as_test_x
='test -x'
33578 as_executable_p
=as_fn_executable_p
33580 # Sed expression to map a string onto a valid CPP name.
33581 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33583 # Sed expression to map a string onto a valid variable name.
33584 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33588 ## ----------------------------------- ##
33589 ## Main body of $CONFIG_STATUS script. ##
33590 ## ----------------------------------- ##
33592 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33595 # Save the log message, to keep $0 and so on meaningful, and to
33596 # report actual input values of CONFIG_FILES etc. instead of their
33597 # values after options handling.
33599 This file was extended by $as_me, which was
33600 generated by GNU Autoconf 2.69. Invocation command line was
33602 CONFIG_FILES = $CONFIG_FILES
33603 CONFIG_HEADERS = $CONFIG_HEADERS
33604 CONFIG_LINKS = $CONFIG_LINKS
33605 CONFIG_COMMANDS = $CONFIG_COMMANDS
33608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33613 case $ac_config_files in *"
33614 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33617 case $ac_config_headers in *"
33618 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33623 # Files that config.status was made for.
33624 config_files="$ac_config_files"
33625 config_headers="$ac_config_headers"
33626 config_links="$ac_config_links"
33627 config_commands="$ac_config_commands"
33631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33633 \`$as_me' instantiates files and other configuration actions
33634 from templates according to the current configuration. Unless the files
33635 and actions are specified as TAGs, all are instantiated by default.
33637 Usage: $0 [OPTION]... [TAG]...
33639 -h, --help print this help, then exit
33640 -V, --version print version number and configuration settings, then exit
33641 --config print configuration, then exit
33642 -q, --quiet, --silent
33643 do not print progress messages
33644 -d, --debug don't remove temporary files
33645 --recheck update $as_me by reconfiguring in the same conditions
33646 --file=FILE[:TEMPLATE]
33647 instantiate the configuration file FILE
33648 --header=FILE[:TEMPLATE]
33649 instantiate the configuration header FILE
33651 Configuration files:
33654 Configuration headers:
33657 Configuration links:
33660 Configuration commands:
33663 Report bugs to the package provider."
33666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33667 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33670 configured by $0, generated by GNU Autoconf 2.69,
33671 with options \\"\$ac_cs_config\\"
33673 Copyright (C) 2012 Free Software Foundation, Inc.
33674 This config.status script is free software; the Free Software Foundation
33675 gives unlimited permission to copy, distribute and modify it."
33680 test -n "\$AWK" || AWK=awk
33683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33684 # The default lists apply if the user does not specify any file.
33690 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33691 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33695 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33707 # Handling of the options.
33708 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33710 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33711 $as_echo "$ac_cs_version"; exit ;;
33712 --config |
--confi |
--conf |
--con |
--co |
--c )
33713 $as_echo "$ac_cs_config"; exit ;;
33714 --debug |
--debu |
--deb |
--de |
--d |
-d )
33716 --file |
--fil |
--fi |
--f )
33719 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33720 '') as_fn_error $?
"missing file argument" ;;
33722 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33723 ac_need_defaults
=false
;;
33724 --header |
--heade |
--head |
--hea )
33727 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33729 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33730 ac_need_defaults
=false
;;
33732 # Conflict between --help and --header
33733 as_fn_error $?
"ambiguous option: \`$1'
33734 Try \`$0 --help' for more information.";;
33735 --help |
--hel |
-h )
33736 $as_echo "$ac_cs_usage"; exit ;;
33737 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33738 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33741 # This is an error.
33742 -*) as_fn_error $?
"unrecognized option: \`$1'
33743 Try \`$0 --help' for more information." ;;
33745 *) as_fn_append ac_config_targets
" $1"
33746 ac_need_defaults
=false
;;
33752 ac_configure_extra_args
=
33754 if $ac_cs_silent; then
33756 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33761 if \$ac_cs_recheck; then
33762 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33764 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33765 CONFIG_SHELL='$SHELL'
33766 export CONFIG_SHELL
33771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33776 ## Running $as_me. ##
33782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33786 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33787 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33794 # Handling of arguments.
33795 for ac_config_target
in $ac_config_targets
33797 case $ac_config_target in
33798 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33799 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33800 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33801 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33802 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33803 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33804 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33805 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33806 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33807 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33809 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33814 # If the user did not use the arguments to specify the items to instantiate,
33815 # then the envvar interface is used. Set only those that are not.
33816 # We use the long form for the default assignment because of an extremely
33817 # bizarre bug on SunOS 4.1.3.
33818 if $ac_need_defaults; then
33819 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33820 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33821 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33822 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33825 # Have a temporary directory for convenience. Make it in the build tree
33826 # simply because there is no reason against having it here, and in addition,
33827 # creating and moving files from /tmp can sometimes cause problems.
33828 # Hook for its removal unless debugging.
33829 # Note that there is a small window in which the directory will not be cleaned:
33830 # after its creation but before its name has been assigned to `$tmp'.
33834 trap 'exit_status=$?
33835 : "${ac_tmp:=$tmp}"
33836 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33838 trap 'as_fn_exit 1' 1 2 13 15
33840 # Create a (secure) tmp directory for tmp files.
33843 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33847 tmp
=.
/conf$$
-$RANDOM
33848 (umask 077 && mkdir
"$tmp")
33849 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33852 # Set up the scripts for CONFIG_FILES section.
33853 # No need to generate them if there are no CONFIG_FILES.
33854 # This happens for instance with `./config.status config.h'.
33855 if test -n "$CONFIG_FILES"; then
33857 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33858 ac_cs_awk_getline
=:
33859 ac_cs_awk_pipe_init
=
33860 ac_cs_awk_read_file
='
33861 while ((getline aline < (F[key])) > 0)
33864 ac_cs_awk_pipe_fini
=
33866 ac_cs_awk_getline
=false
33867 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33868 ac_cs_awk_read_file
='
33870 print "cat " F[key] " &&"
33871 '$ac_cs_awk_pipe_init
33872 # The final `:' finishes the AND list.
33873 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33875 ac_cr
=`echo X | tr X '\015'`
33876 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33877 # But we know of no other shell where ac_cr would be empty at this
33878 # point, so we can use a bashism as a fallback.
33879 if test "x$ac_cr" = x
; then
33880 eval ac_cr
=\$
\'\\r
\'
33882 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33883 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33886 ac_cs_awk_cr
=$ac_cr
33889 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33892 # Create commands to substitute file output variables.
33894 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33895 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33896 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33899 } >conf$
$files.sh
&&
33900 . .
/conf$
$files.sh ||
33901 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33902 rm -f conf$
$files.sh
33905 echo "cat >conf$$subs.awk <<_ACEOF" &&
33906 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33908 } >conf$$subs.sh ||
33909 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33910 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33912 for ac_last_try in false false false false false :; do
33913 . ./conf$$subs.sh ||
33914 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33916 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33917 if test $ac_delim_n = $ac_delim_num; then
33919 elif $ac_last_try; then
33920 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33922 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33925 rm -f conf$$subs.sh
33927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33928 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33932 s/^/S["/; s
/!.
*/"]=/
33942 s/\(.\{148\}\)..*/\1/
33944 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33949 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33956 s/\(.\{148\}\)..*/\1/
33958 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33962 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33967 ' <conf$$subs.awk | sed '
33972 ' >>$CONFIG_STATUS || ac_write_fail=1
33973 rm -f conf$$subs.awk
33974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33976 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33977 for (key in S) S_is_set[key] = 1
33979 \$ac_cs_awk_pipe_init
33983 nfields = split(line, field, "@
")
33985 len = length(field[1])
33986 for (i = 2; i < nfields; i++) {
33988 keylen = length(key)
33989 if (S_is_set[key]) {
33991 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33992 len += length(value) + length(field[++i])
33997 if (nfields == 3 && !substed) {
33999 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
34000 \$ac_cs_awk_read_file
34006 \$ac_cs_awk_pipe_fini
34009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34010 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34011 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
34014 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
34015 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
34018 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34019 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
34020 # trailing colons and then remove the whole line if VPATH becomes empty
34021 # (actually we leave an empty line to preserve line numbers).
34022 if test "x
$srcdir" = x.; then
34023 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34042 fi # test -n "$CONFIG_FILES"
34044 # Set up the scripts for CONFIG_HEADERS section.
34045 # No need to generate them if there are no CONFIG_HEADERS.
34046 # This happens for instance with `./config.status Makefile'.
34047 if test -n "$CONFIG_HEADERS"; then
34048 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
34052 # Transform confdefs.h into an awk script `defines.awk', embedded as
34053 # here-document in config.status, that substitutes the proper values into
34054 # config.h.in to produce config.h.
34056 # Create a delimiter string that does not exist in confdefs.h, to ease
34057 # handling of long lines.
34059 for ac_last_try in false false :; do
34060 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
34061 if test -z "$ac_tt"; then
34063 elif $ac_last_try; then
34064 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
34066 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
34070 # For the awk script, D is an array of macro values keyed by name,
34071 # likewise P contains macro parameters if any. Preserve backslash
34072 # newline sequences.
34074 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34076 s/.\{148\}/&'"$ac_delim"'/g
34079 s/^[ ]*#[ ]*define[ ][ ]*/ /
34086 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
34088 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
34092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
34093 D["\
1"]=" \
3\\\\\\n
"\\/p
34095 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
34100 s/.\{148\}/&'"$ac_delim"'/g
34105 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
34108 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
34110 ' <confdefs.h | sed '
34111 s/'"$ac_delim"'/"\\\
34112 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34115 for (key in D) D_is_set[key] = 1
34118 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34120 split(line, arg, " ")
34121 if (arg[1] == "#") {
34125 defundef
= substr
(arg
[1], 2)
34128 split(mac1
, mac2
, "(") #)
34130 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
34131 if (D_is_set
[macro
]) {
34132 # Preserve the white space surrounding the "#".
34133 print prefix
"define", macro P
[macro
] D
[macro
]
34136 # Replace #undef with comments. This is necessary, for example,
34137 # in the case of _POSIX_SOURCE, which is predefined and required
34138 # on some systems where configure will not decide to define it.
34139 if (defundef
== "undef") {
34140 print
"/*", prefix defundef
, macro
, "*/"
34148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34149 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
34150 fi # test -n "$CONFIG_HEADERS"
34153 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
34158 :[FHLC
]) ac_mode
=$ac_tag; continue;;
34160 case $ac_mode$ac_tag in
34162 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
34163 :[FH
]-) ac_tag
=-:-;;
34164 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
34181 -) ac_f
="$ac_tmp/stdin";;
34182 *) # Look for the file first in the build tree, then in the source tree
34183 # (if the path is not absolute). The absolute path cannot be DOS-style,
34184 # because $ac_f cannot contain `:'.
34188 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
34190 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34192 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34193 as_fn_append ac_file_inputs
" '$ac_f'"
34196 # Let's still pretend it is `configure' which instantiates (i.e., don't
34197 # use $as_me), people would be surprised to read:
34198 # /* config.h. Generated by config.status. */
34199 configure_input
='Generated from '`
34200 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34202 if test x
"$ac_file" != x-
; then
34203 configure_input
="$ac_file. $configure_input"
34204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34205 $as_echo "$as_me: creating $ac_file" >&6;}
34207 # Neutralize special characters interpreted by sed in replacement strings.
34208 case $configure_input in #(
34209 *\
&* |
*\|
* |
*\\* )
34210 ac_sed_conf_input
=`$as_echo "$configure_input" |
34211 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34212 *) ac_sed_conf_input
=$configure_input;;
34216 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
34217 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
34222 ac_dir
=`$as_dirname -- "$ac_file" ||
34223 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34224 X"$ac_file" : 'X\(//\)[^/]' \| \
34225 X"$ac_file" : 'X\(//\)$' \| \
34226 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34227 $as_echo X"$ac_file" |
34228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34232 /^X\(\/\/\)[^/].*/{
34245 as_dir
="$ac_dir"; as_fn_mkdir_p
34249 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34251 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34252 # A ".." for each directory in $ac_dir_suffix.
34253 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34254 case $ac_top_builddir_sub in
34255 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34256 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34259 ac_abs_top_builddir
=$ac_pwd
34260 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34261 # for backward compatibility:
34262 ac_top_builddir
=$ac_top_build_prefix
34265 .
) # We are building in place.
34267 ac_top_srcdir
=$ac_top_builddir_sub
34268 ac_abs_top_srcdir
=$ac_pwd ;;
34269 [\\/]* | ?
:[\\/]* ) # Absolute name.
34270 ac_srcdir
=$srcdir$ac_dir_suffix;
34271 ac_top_srcdir
=$srcdir
34272 ac_abs_top_srcdir
=$srcdir ;;
34273 *) # Relative name.
34274 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34275 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34276 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34278 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34290 # If the template does not know about datarootdir, expand it.
34291 # FIXME: This hack should be removed a few years after 2.60.
34292 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34303 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34304 *datarootdir
*) ac_datarootdir_seen
=yes;;
34305 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34307 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34310 ac_datarootdir_hack='
34311 s&@datadir@&$datadir&g
34312 s&@docdir@&$docdir&g
34313 s&@infodir@&$infodir&g
34314 s&@localedir@&$localedir&g
34315 s&@mandir@&$mandir&g
34316 s&\\\${datarootdir}&$datarootdir&g' ;;
34320 # Neutralize VPATH when `$srcdir' = `.'.
34321 # Shell code in configure.ac might set extrasub.
34322 # FIXME: do we really want to maintain this feature?
34323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34324 ac_sed_extra="$ac_vpsub
34327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34329 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34330 s|@configure_input@|
$ac_sed_conf_input|
;t t
34331 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34332 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
34333 s
&@srcdir@
&$ac_srcdir&;t t
34334 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34335 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34336 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34337 s
&@builddir@
&$ac_builddir&;t t
34338 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34339 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34340 $ac_datarootdir_hack
34342 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
34343 if $ac_cs_awk_getline; then
34344 $AWK -f "$ac_tmp/subs.
awk"
34346 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
34348 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
34350 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34351 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
34352 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34353 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
34354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34355 which seems to be undefined. Please make sure it is defined" >&5
34356 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34357 which seems to be undefined. Please make sure it is defined" >&2;}
34359 rm -f "$ac_tmp/stdin"
34361 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34362 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34370 if test x"$ac_file" != x-; then
34372 $as_echo "/* $configure_input */" \
34373 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34374 } >"$ac_tmp/config.h" \
34375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34376 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34377 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34378 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34381 mv "$ac_tmp/config.h" "$ac_file" \
34382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34385 $as_echo "/* $configure_input */" \
34386 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34387 || as_fn_error $? "could not create -" "$LINENO" 5
34395 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
34398 # Prefer the file from the source tree if names are identical.
34399 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34400 ac_source=$srcdir/$ac_source
34403 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34404 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34406 if test ! -r "$ac_source"; then
34407 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34411 # Try a relative symlink, then a hard link, then a copy.
34413 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34414 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34416 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34417 ln "$ac_source" "$ac_file" 2>/dev/null ||
34418 cp -p "$ac_source" "$ac_file" ||
34419 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34422 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34423 $as_echo "$as_me: executing $ac_file commands" >&6;}
34428 case $ac_file$ac_mode in
34429 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34431 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34432 for lang in $subdirs c-family common analyzer text-art rtl-ssa
34434 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34436 "as":F) chmod +x as ;;
34437 "collect-ld":F) chmod +x collect-ld ;;
34438 "nm":F) chmod +x nm ;;
34439 "dsymutil":F) chmod +x dsymutil ;;
34441 case ${CONFIG_HEADERS} in
34442 *auto-host.h:config.in*)
34445 # Make sure all the subdirs exist.
34446 for d in $subdirs doc build common c-family
34448 test -d $d || mkdir $d
34458 ac_clean_files=$ac_clean_files_save
34460 test $ac_write_fail = 0 ||
34461 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34464 # configure is writing to config.log, and then calls config.status.
34465 # config.status does its own redirection, appending to config.log.
34466 # Unfortunately, on DOS this fails, as config.log is still kept open
34467 # by configure, so config.status won't be able to
write to it
; its
34468 # output is simply discarded. So we exec the FD to /dev/null,
34469 # effectively closing config.log, so it can be properly (re)opened and
34470 # appended to by config.status. When coming back to configure, we
34471 # need to make the FD available again.
34472 if test "$no_create" != yes; then
34474 ac_config_status_args
=
34475 test "$silent" = yes &&
34476 ac_config_status_args
="$ac_config_status_args --quiet"
34478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34481 # would make configure fail if this is the last instruction.
34482 $ac_cs_success || as_fn_exit
1
34484 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34486 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}