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
770 BUILD_SYSTEM_HEADER_DIR
790 NATIVE_SYSTEM_HEADER_DIR
817 MAKEINFO_TOC_INLINE_FLAG
831 omp_device_property_deps
832 omp_device_properties
834 real_target_noncanonical
835 enable_as_accelerator
845 DEFAULT_MATCHPD_PARTITIONS
852 valgrind_path_defines
884 CROSS_SYSTEM_HEADER_DIR
885 TARGET_SYSTEM_ROOT_DEFINE
887 SYSROOT_CFLAGS_FOR_TARGET
933 program_transform_name
944 ac_subst_files
='option_includes
947 enable_option_checking
950 with_native_system_header_dir
954 with_gxx_libcxx_include_dir
956 enable_generated_files_in_srcdir
964 enable_build_format_warnings
968 enable_gather_detailed_mem_stats
969 enable_valgrind_annotations
972 with_stack_clash_protection_guard_size
973 with_matchpd_partitions
988 with_documentation_root_url
989 with_changes_root_url
992 with_multilib_generator
999 enable_sjlj_exceptions
1000 with_gcc_major_version_only
1002 enable_mingw_wildcard
1003 enable_large_address_aware
1004 enable_leading_mingw64_underscores
1006 enable_frame_pointer
1007 enable_win32_registry
1015 enable_gnu_indirect_function
1016 enable_initfini_array
1018 enable_newlib_nano_formatted_io
1019 enable_standard_branch_protection
1020 enable_fix_cortex_a53_835769
1021 enable_fix_cortex_a53_843419
1023 enable_gnu_unique_object
1024 enable_linker_build_id
1027 with_long_double_128
1028 with_long_double_format
1031 enable_maintainer_mode
1033 enable_link_serialization
1034 enable_version_specific_runtime_libs
1038 enable_host_bind_now
1039 enable_libquadmath_support
1040 with_linker_hash_style
1041 with_diagnostics_color
1042 with_diagnostics_urls
1045 enable_s390_excess_float_precision
1047 ac_precious_vars
='build_alias
1066 # Initialize some variables set by options.
1068 ac_init_version
=false
1069 ac_unrecognized_opts
=
1070 ac_unrecognized_sep
=
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file
=/dev
/null
1080 program_transform_name
=s
,x
,x
,
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir
='${exec_prefix}/bin'
1095 sbindir
='${exec_prefix}/sbin'
1096 libexecdir
='${exec_prefix}/libexec'
1097 datarootdir
='${prefix}/share'
1098 datadir
='${datarootdir}'
1099 sysconfdir
='${prefix}/etc'
1100 sharedstatedir
='${prefix}/com'
1101 localstatedir
='${prefix}/var'
1102 includedir
='${prefix}/include'
1103 oldincludedir
='/usr/include'
1104 docdir
='${datarootdir}/doc/${PACKAGE}'
1105 infodir
='${datarootdir}/info'
1110 libdir
='${exec_prefix}/lib'
1111 localedir
='${datarootdir}/locale'
1112 mandir
='${datarootdir}/man'
1118 # If the previous option needs an argument, assign it.
1119 if test -n "$ac_prev"; then
1120 eval $ac_prev=\
$ac_option
1126 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131 # Accept the important Cygnus configure options, so we can diagnose typos.
1133 case $ac_dashdash$ac_option in
1137 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1139 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1140 bindir
=$ac_optarg ;;
1142 -build |
--build |
--buil |
--bui |
--bu)
1143 ac_prev
=build_alias
;;
1144 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1145 build_alias
=$ac_optarg ;;
1147 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1148 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1149 ac_prev
=cache_file
;;
1150 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1151 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1152 cache_file
=$ac_optarg ;;
1154 --config-cache |
-C)
1155 cache_file
=config.cache
;;
1157 -datadir |
--datadir |
--datadi |
--datad)
1159 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1160 datadir
=$ac_optarg ;;
1162 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1163 |
--dataroo |
--dataro |
--datar)
1164 ac_prev
=datarootdir
;;
1165 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1166 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1167 datarootdir
=$ac_optarg ;;
1169 -disable-* |
--disable-*)
1170 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1173 as_fn_error $?
"invalid feature name: $ac_useropt"
1174 ac_useropt_orig
=$ac_useropt
1175 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "enable_
$ac_useropt"
1180 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1181 ac_unrecognized_sep
=', ';;
1183 eval enable_
$ac_useropt=no
;;
1185 -docdir |
--docdir |
--docdi |
--doc |
--do)
1187 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1188 docdir
=$ac_optarg ;;
1190 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1192 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1193 dvidir
=$ac_optarg ;;
1195 -enable-* |
--enable-*)
1196 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1199 as_fn_error $?
"invalid feature name: $ac_useropt"
1200 ac_useropt_orig
=$ac_useropt
1201 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "enable_
$ac_useropt"
1206 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207 ac_unrecognized_sep
=', ';;
1209 eval enable_
$ac_useropt=\
$ac_optarg ;;
1211 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1212 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1213 |
--exec |
--exe |
--ex)
1214 ac_prev
=exec_prefix
;;
1215 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1216 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1217 |
--exec=* |
--exe=* |
--ex=*)
1218 exec_prefix
=$ac_optarg ;;
1220 -gas |
--gas |
--ga |
--g)
1221 # Obsolete; use --with-gas.
1224 -help |
--help |
--hel |
--he |
-h)
1225 ac_init_help
=long
;;
1226 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1227 ac_init_help
=recursive
;;
1228 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1229 ac_init_help
=short
;;
1231 -host |
--host |
--hos |
--ho)
1232 ac_prev
=host_alias
;;
1233 -host=* |
--host=* |
--hos=* |
--ho=*)
1234 host_alias
=$ac_optarg ;;
1236 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1238 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1240 htmldir
=$ac_optarg ;;
1242 -includedir |
--includedir |
--includedi |
--included |
--include \
1243 |
--includ |
--inclu |
--incl |
--inc)
1244 ac_prev
=includedir
;;
1245 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1246 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1247 includedir
=$ac_optarg ;;
1249 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1251 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1252 infodir
=$ac_optarg ;;
1254 -libdir |
--libdir |
--libdi |
--libd)
1256 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1257 libdir
=$ac_optarg ;;
1259 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1260 |
--libexe |
--libex |
--libe)
1261 ac_prev
=libexecdir
;;
1262 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1263 |
--libexe=* |
--libex=* |
--libe=*)
1264 libexecdir
=$ac_optarg ;;
1266 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1267 ac_prev
=localedir
;;
1268 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1269 localedir
=$ac_optarg ;;
1271 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1272 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1273 ac_prev
=localstatedir
;;
1274 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1275 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1276 localstatedir
=$ac_optarg ;;
1278 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1280 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1281 mandir
=$ac_optarg ;;
1283 -nfp |
--nfp |
--nf)
1284 # Obsolete; use --without-fp.
1287 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1288 |
--no-cr |
--no-c |
-n)
1291 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1292 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1295 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1296 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1297 |
--oldin |
--oldi |
--old |
--ol |
--o)
1298 ac_prev
=oldincludedir
;;
1299 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1300 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1301 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1302 oldincludedir
=$ac_optarg ;;
1304 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1306 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1307 prefix
=$ac_optarg ;;
1309 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1310 |
--program-pre |
--program-pr |
--program-p)
1311 ac_prev
=program_prefix
;;
1312 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1313 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1314 program_prefix
=$ac_optarg ;;
1316 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1317 |
--program-suf |
--program-su |
--program-s)
1318 ac_prev
=program_suffix
;;
1319 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1320 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1321 program_suffix
=$ac_optarg ;;
1323 -program-transform-name |
--program-transform-name \
1324 |
--program-transform-nam |
--program-transform-na \
1325 |
--program-transform-n |
--program-transform- \
1326 |
--program-transform |
--program-transfor \
1327 |
--program-transfo |
--program-transf \
1328 |
--program-trans |
--program-tran \
1329 |
--progr-tra |
--program-tr |
--program-t)
1330 ac_prev
=program_transform_name
;;
1331 -program-transform-name=* |
--program-transform-name=* \
1332 |
--program-transform-nam=* |
--program-transform-na=* \
1333 |
--program-transform-n=* |
--program-transform-=* \
1334 |
--program-transform=* |
--program-transfor=* \
1335 |
--program-transfo=* |
--program-transf=* \
1336 |
--program-trans=* |
--program-tran=* \
1337 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1338 program_transform_name
=$ac_optarg ;;
1340 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1342 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1343 pdfdir
=$ac_optarg ;;
1345 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1347 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1350 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1351 |
-silent |
--silent |
--silen |
--sile |
--sil)
1354 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1356 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1358 sbindir
=$ac_optarg ;;
1360 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1361 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1362 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1364 ac_prev
=sharedstatedir
;;
1365 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1366 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1367 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1369 sharedstatedir
=$ac_optarg ;;
1371 -site |
--site |
--sit)
1373 -site=* |
--site=* |
--sit=*)
1376 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1378 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1379 srcdir
=$ac_optarg ;;
1381 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1382 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1383 ac_prev
=sysconfdir
;;
1384 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1385 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1386 sysconfdir
=$ac_optarg ;;
1388 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1389 ac_prev
=target_alias
;;
1390 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1391 target_alias
=$ac_optarg ;;
1393 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1396 -version |
--version |
--versio |
--versi |
--vers |
-V)
1397 ac_init_version
=: ;;
1400 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1403 as_fn_error $?
"invalid package name: $ac_useropt"
1404 ac_useropt_orig
=$ac_useropt
1405 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406 case $ac_user_opts in
1410 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1411 ac_unrecognized_sep
=', ';;
1413 eval with_
$ac_useropt=\
$ac_optarg ;;
1415 -without-* |
--without-*)
1416 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1419 as_fn_error $?
"invalid package name: $ac_useropt"
1420 ac_useropt_orig
=$ac_useropt
1421 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1426 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1427 ac_unrecognized_sep
=', ';;
1429 eval with_
$ac_useropt=no
;;
1432 # Obsolete; use --with-x.
1435 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1436 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1437 ac_prev
=x_includes
;;
1438 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1439 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1440 x_includes
=$ac_optarg ;;
1442 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1443 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1444 ac_prev
=x_libraries
;;
1445 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1446 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1447 x_libraries
=$ac_optarg ;;
1449 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information"
1454 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1455 # Reject names that are not valid shell variable names.
1456 case $ac_envvar in #(
1457 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1458 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1460 eval $ac_envvar=\
$ac_optarg
1461 export $ac_envvar ;;
1464 # FIXME: should be removed in autoconf 3.0.
1465 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1467 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1474 if test -n "$ac_prev"; then
1475 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1476 as_fn_error $?
"missing argument to $ac_option"
1479 if test -n "$ac_unrecognized_opts"; then
1480 case $enable_option_checking in
1482 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1483 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1487 # Check all directory arguments for consistency.
1488 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1489 datadir sysconfdir sharedstatedir localstatedir includedir \
1490 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1491 libdir localedir mandir
1493 eval ac_val
=\$
$ac_var
1494 # Remove trailing slashes.
1497 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1498 eval $ac_var=\
$ac_val;;
1500 # Be sure to have absolute directory names.
1502 [\\/$
]* | ?
:[\\/]* ) continue;;
1503 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1505 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1513 target
=$target_alias
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x
; then
1517 if test "x$build_alias" = x
; then
1518 cross_compiling
=maybe
1519 elif test "x$build_alias" != "x$host_alias"; then
1525 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1527 test "$silent" = yes && exec 6>/dev
/null
1530 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1531 ac_ls_di
=`ls -di .` &&
1532 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1533 as_fn_error $?
"working directory cannot be determined"
1534 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1535 as_fn_error $?
"pwd does not report name of working directory"
1538 # Find the source files, if location was not specified.
1539 if test -z "$srcdir"; then
1540 ac_srcdir_defaulted
=yes
1541 # Try the directory containing this script, then the parent directory.
1542 ac_confdir
=`$as_dirname -- "$as_myself" ||
1543 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1544 X"$as_myself" : 'X\(//\)[^/]' \| \
1545 X"$as_myself" : 'X\(//\)$' \| \
1546 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1547 $as_echo X"$as_myself" |
1548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1566 if test ! -r "$srcdir/$ac_unique_file"; then
1570 ac_srcdir_defaulted
=no
1572 if test ! -r "$srcdir/$ac_unique_file"; then
1573 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1574 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1576 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1578 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1580 # When building in place, set srcdir=.
1581 if test "$ac_abs_confdir" = "$ac_pwd"; then
1584 # Remove unnecessary trailing slashes from srcdir.
1585 # Double slashes in file names in object file debugging info
1586 # mess up M-x gdb in Emacs.
1588 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1590 for ac_var
in $ac_precious_vars; do
1591 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1592 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1593 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1594 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1598 # Report the --help message.
1600 if test "$ac_init_help" = "long"; then
1601 # Omit some internal or obsolete options to make the list less imposing.
1602 # This message is too long to be a string in the A/UX 3.1 sh.
1604 \`configure' configures this package to adapt to many kinds of systems.
1606 Usage: $0 [OPTION]... [VAR=VALUE]...
1608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1609 VAR=VALUE. See below for descriptions of some of the useful variables.
1611 Defaults for the options are specified in brackets.
1614 -h, --help display this help and exit
1615 --help=short display options specific to this package
1616 --help=recursive display the short help of all the included packages
1617 -V, --version display version information and exit
1618 -q, --quiet, --silent do not print \`checking ...' messages
1619 --cache-file=FILE cache test results in FILE [disabled]
1620 -C, --config-cache alias for \`--cache-file=config.cache'
1621 -n, --no-create do not create output files
1622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1624 Installation directories:
1625 --prefix=PREFIX install architecture-independent files in PREFIX
1626 [$ac_default_prefix]
1627 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1630 By default, \`make install' will install all the files in
1631 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1632 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1633 for instance \`--prefix=\$HOME'.
1635 For better control, use the options below.
1637 Fine tuning of the installation directories:
1638 --bindir=DIR user executables [EPREFIX/bin]
1639 --sbindir=DIR system admin executables [EPREFIX/sbin]
1640 --libexecdir=DIR program executables [EPREFIX/libexec]
1641 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1642 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1643 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1644 --libdir=DIR object code libraries [EPREFIX/lib]
1645 --includedir=DIR C header files [PREFIX/include]
1646 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1647 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1648 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1649 --infodir=DIR info documentation [DATAROOTDIR/info]
1650 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1651 --mandir=DIR man documentation [DATAROOTDIR/man]
1652 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1653 --htmldir=DIR html documentation [DOCDIR]
1654 --dvidir=DIR dvi documentation [DOCDIR]
1655 --pdfdir=DIR pdf documentation [DOCDIR]
1656 --psdir=DIR ps documentation [DOCDIR]
1662 --program-prefix=PREFIX prepend PREFIX to installed program names
1663 --program-suffix=SUFFIX append SUFFIX to installed program names
1664 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1667 --build=BUILD configure
for building on BUILD
[guessed
]
1668 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1669 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1673 if test -n "$ac_init_help"; then
1678 --disable-option-checking ignore unrecognized
--enable/--with options
1679 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1680 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1681 --enable-generated-files-in-srcdir
1682 put copies of generated files
in source dir intended
1683 for creating
source tarballs
for users without
1684 texinfo bison or flex
1685 --disable-largefile omit support
for large files
1686 --disable-build-format-warnings
1687 don
't use -Wformat while building GCC
1688 --enable-werror-always enable -Werror despite compiler version
1689 --enable-checking[=LIST]
1690 enable expensive run-time checks. With LIST, enable
1691 only specific categories of checks. Categories are:
1692 yes,no,all,none,release. Flags are:
1693 assert,df,extra,fold,gc,gcac,gimple,misc,
1694 rtlflag,rtl,runtime,tree,valgrind,types
1695 --enable-coverage[=LEVEL]
1696 enable compiler's code coverage collection. Use to
1697 measure compiler performance and
locate unused parts
1698 of the compiler. With LEVEL
, specify optimization.
1699 Values are opt
, noopt
, default is noopt
1700 --enable-gather-detailed-mem-stats
1701 enable detailed memory allocation stats gathering
1702 --enable-valgrind-annotations
1703 enable valgrind runtime interaction
1704 --enable-multilib enable library support
for multiple ABIs
1705 --enable-multiarch enable support
for multiarch paths
1706 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1707 --enable-decimal-float={no
,yes,bid
,dpd
}
1708 enable decimal float extension to C. Selecting
'bid'
1709 or
'dpd' choses
which decimal floating point format
1711 --enable-fixed-point enable fixed-point arithmetic extension to C
1712 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1714 --enable-tls enable or disable generation of tls code overriding
1715 the assembler check
for tls support
1716 --enable-vtable-verify enable vtable verification feature
1717 --disable-analyzer disable
-fanalyzer static analyzer
1718 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1719 GNU Objective-C runtime
1720 --disable-shared don't provide a shared libgcc
1721 --disable-gcov don
't provide libgcov and related host tools
1722 --enable-languages=LIST specify which front-ends to build
1723 --disable-rpath do not hardcode runtime library paths
1724 --enable-sjlj-exceptions
1725 arrange to use setjmp/longjmp exception handling
1726 --enable-secureplt enable -msecure-plt by default for PowerPC
1727 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1728 Default to platform configuration
1729 --enable-large-address-aware
1730 Link mingw executables with --large-address-aware
1731 --enable-leading-mingw64-underscores
1732 enable leading underscores on 64 bit mingw targets
1733 --enable-cld enable -mcld by default for 32bit x86
1734 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1735 --disable-win32-registry
1736 disable lookup of installation paths in the Registry
1738 --enable-win32-registry enable registry lookup (default)
1739 --enable-win32-registry=KEY
1740 use KEY instead of GCC version as the last portion
1742 --enable-shared[=PKGS] build shared libraries [default=yes]
1743 --enable-static[=PKGS] build static libraries [default=yes]
1744 --enable-fast-install[=PKGS]
1745 optimize for fast installation [default=yes]
1746 --disable-libtool-lock avoid locking (might break parallel builds)
1747 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1748 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1749 --enable-gnu-indirect-function
1750 enable the use of the @gnu_indirect_function to
1752 --enable-initfini-array use .init_array/.fini_array sections
1753 --enable-comdat enable COMDAT group support
1754 --enable-newlib-nano-formatted-io
1755 Use nano version formatted IO
1757 --enable-standard-branch-protection
1758 enable Branch Target Identification Mechanism and
1759 Return Address Signing by default for AArch64
1760 --disable-standard-branch-protection
1761 disable Branch Target Identification Mechanism and
1762 Return Address Signing by default for AArch64
1765 --enable-fix-cortex-a53-835769
1766 enable workaround for AArch64 Cortex-A53 erratum
1768 --disable-fix-cortex-a53-835769
1769 disable workaround for AArch64 Cortex-A53 erratum
1773 --enable-fix-cortex-a53-843419
1774 enable workaround for AArch64 Cortex-A53 erratum
1776 --disable-fix-cortex-a53-843419
1777 disable workaround for AArch64 Cortex-A53 erratum
1780 --enable-gnu-unique-object
1781 enable the use of the @gnu_unique_object ELF
1782 extension on glibc systems
1783 --enable-linker-build-id
1784 compiler will always pass --build-id to linker
1785 --enable-libssp enable linking against libssp
1786 --enable-default-ssp enable Stack Smashing Protection as default
1787 --enable-maintainer-mode
1788 enable make rules and dependencies not useful (and
1789 sometimes confusing) to the casual installer
1790 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1791 thrashing on the build machine
1792 --enable-link-serialization
1793 avoid linking multiple GCC front-ends at once using
1794 make dependencies to avoid thrashing on the build
1796 --enable-version-specific-runtime-libs
1797 specify that runtime libraries should be installed
1798 in a compiler-specific directory
1799 --enable-plugin enable plugin support
1800 --enable-host-shared build host code as shared libraries
1801 --enable-host-pie build host code as PIE
1802 --enable-host-bind-now link host code as BIND_NOW
1803 --disable-libquadmath-support
1804 disable libquadmath support for Fortran
1805 --enable-default-pie enable Position Independent Executable as default
1806 --enable-cet enable Intel CET in host libraries [default=auto]
1807 --enable-s390-excess-float-precision
1808 on s390 targets, evaluate float with double
1809 precision when in standards-conforming mode
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --with-build-libsubdir=DIR Directory where to find libraries for build system
1815 --with-local-prefix=DIR specifies directory to put local include
1816 --with-native-system-header-dir=dir
1817 use dir as the directory to look for standard
1818 system header files in. Defaults to /usr/include.
1819 --with-build-sysroot=sysroot
1820 use sysroot as the system root during the build
1821 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1822 --with-gxx-include-dir=DIR
1823 specifies directory to put g++ header files
1824 --with-gxx-libcxx-include-dir=DIR
1825 specifies directory to find libc++ header files
1826 --with-cpp-install-dir=DIR
1827 install the user visible C preprocessor in DIR
1828 (relative to PREFIX) as well as PREFIX/bin
1829 --with-gnu-ld arrange to work with GNU ld
1830 --with-ld arrange to use the specified ld (full pathname)
1831 --with-demangler-in-ld try to use demangler in GNU ld
1832 --with-dsymutil arrange to use the specified dsymutil (full
1834 --with-gnu-as arrange to work with GNU as
1835 --with-as arrange to use the specified as (full pathname)
1836 --with-stack-clash-protection-guard-size=size
1837 Set the default stack clash protection guard size
1838 for specific targets as a power of two in bytes.
1839 --with-matchpd-partitions=num
1840 Set the number of partitions to make for gimple and
1841 generic when splitting match.pd. [default=10]
1842 --with-dwarf2 force the default debug format to be DWARF 2 (or
1844 --with-specs=SPECS add SPECS to driver command-line processing
1845 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1846 --with-bugurl=URL Direct users to URL to report a bug
1847 --with-documentation-root-url=URL
1848 Root for documentation URLs
1849 --with-changes-root-url=URL
1850 Root for GCC changes URLs
1851 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1853 --with-multilib-generator
1854 Multi-libs configuration string (RISC-V only)
1855 --with-zstd=PATH specify prefix directory for installed zstd library.
1856 Equivalent to --with-zstd-include=PATH/include plus
1857 --with-zstd-lib=PATH/lib
1858 --with-zstd-include=PATH
1859 specify directory for installed zstd include files
1860 --with-zstd-lib=PATH specify directory for the installed zstd library
1861 --with-gnu-ld assume the C compiler uses GNU ld default=no
1862 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1863 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1864 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1865 --with-gcc-major-version-only
1866 use only GCC major number
in filesystem paths
1867 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1869 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1870 --with-plugin-ld=[ARG
] specify the plugin linker
1871 --with-glibc-version=M.N
1872 assume GCC used with glibc version M.N or later
1873 --with-long-double-128 use
128-bit long double by default
1874 --with-long-double-format={ieee
,ibm
}
1875 Specify whether PowerPC long double uses IEEE or IBM format
1877 --with-gc={page
,zone
} this option is not supported anymore. It used to
1878 choose the garbage collection mechanism to use with
1880 --with-system-zlib use installed libz
1881 --with-linker-hash-style={sysv
,gnu
,both
}
1882 specify the linker
hash style
1883 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1884 specify the default of
-fdiagnostics-color option
1885 auto-if-env stands
for -fdiagnostics-color=auto
if
1886 GCC_COLOR environment variable is present and
1887 -fdiagnostics-color=never otherwise
1888 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1889 specify the default of
-fdiagnostics-urls option
1890 auto-if-env stands
for -fdiagnostics-urls=auto
if
1891 GCC_URLS or TERM_URLS environment variable is
1892 present and
-fdiagnostics-urls=never otherwise
1894 Some influential environment variables
:
1895 CC C compiler
command
1896 CFLAGS C compiler flags
1897 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1898 nonstandard directory
<lib dir
>
1899 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1900 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1901 you have headers
in a nonstandard directory
<include dir
>
1902 CXX C
++ compiler
command
1903 CXXFLAGS C
++ compiler flags
1904 CXXCPP C
++ preprocessor
1906 GMPLIBS How to link GMP
1907 GMPINC How to
find GMP include files
1908 ISLLIBS How to link isl
1909 ISLINC How to
find isl include files
1911 Use these variables to override the choices made by
`configure' or to help
1912 it to find libraries and programs with nonstandard names/locations.
1914 Report bugs to the package provider.
1919 if test "$ac_init_help" = "recursive"; then
1920 # If there are subdirs, report their specific --help.
1921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1922 test -d "$ac_dir" ||
1923 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1928 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1930 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1931 # A ".." for each directory in $ac_dir_suffix.
1932 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1933 case $ac_top_builddir_sub in
1934 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1935 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1938 ac_abs_top_builddir=$ac_pwd
1939 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1940 # for backward compatibility:
1941 ac_top_builddir=$ac_top_build_prefix
1944 .) # We are building in place.
1946 ac_top_srcdir=$ac_top_builddir_sub
1947 ac_abs_top_srcdir=$ac_pwd ;;
1948 [\\/]* | ?:[\\/]* ) # Absolute name.
1949 ac_srcdir=$srcdir$ac_dir_suffix;
1950 ac_top_srcdir=$srcdir
1951 ac_abs_top_srcdir=$srcdir ;;
1953 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1954 ac_top_srcdir=$ac_top_build_prefix$srcdir
1955 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1957 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1959 cd "$ac_dir" || { ac_status=$?; continue; }
1960 # Check for guested configure.
1961 if test -f "$ac_srcdir/configure.gnu"; then
1963 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1964 elif test -f "$ac_srcdir/configure"; then
1966 $SHELL "$ac_srcdir/configure" --help=recursive
1968 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1970 cd "$ac_pwd" || { ac_status=$?; break; }
1974 test -n "$ac_init_help" && exit $ac_status
1975 if $ac_init_version; then
1978 generated by GNU Autoconf 2.69
1980 Copyright (C) 2012 Free Software Foundation, Inc.
1981 This configure script is free software; the Free Software Foundation
1982 gives unlimited permission to copy, distribute and modify it.
1987 ## ------------------------ ##
1988 ## Autoconf initialization. ##
1989 ## ------------------------ ##
1991 # ac_fn_c_try_compile LINENO
1992 # --------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_c_try_compile ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext
1998 if { { ac_try="$ac_compile"
2000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2001 *) ac_try_echo
=$ac_try;;
2003 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_compile") 2>conftest.err
2007 if test -s conftest.err
; then
2008 grep -v '^ *+' conftest.err
>conftest.er1
2009 cat conftest.er1
>&5
2010 mv -f conftest.er1 conftest.err
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_c_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest.
$ac_objext; then :
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.
$ac_ext >&5
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 as_fn_set_status
$ac_retval
2027 } # ac_fn_c_try_compile
2029 # ac_fn_cxx_try_compile LINENO
2030 # ----------------------------
2031 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_cxx_try_compile
()
2034 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2035 rm -f conftest.
$ac_objext
2036 if { { ac_try
="$ac_compile"
2038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_compile") 2>conftest.err
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && {
2052 test -z "$ac_cxx_werror_flag" ||
2053 test ! -s conftest.err
2054 } && test -s conftest.$ac_objext; then :
2057 $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 as_fn_set_status $ac_retval
2065 } # ac_fn_cxx_try_compile
2067 # ac_fn_cxx_try_cpp LINENO
2068 # ------------------------
2069 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2070 ac_fn_cxx_try_cpp ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 if { { ac_try="$ac_cpp conftest.$ac_ext"
2075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2076 *) ac_try_echo
=$ac_try;;
2078 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2082 if test -s conftest.err
; then
2083 grep -v '^ *+' conftest.err
>conftest.er1
2084 cat conftest.er1
>&5
2085 mv -f conftest.er1 conftest.err
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } > conftest.i
&& {
2089 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2090 test ! -s conftest.err
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.
$ac_ext >&5
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status
$ac_retval
2102 } # ac_fn_cxx_try_cpp
2104 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2105 # ---------------------------------------------------------
2106 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2107 # the include files in INCLUDES and setting the cache variable VAR
2109 ac_fn_cxx_check_header_mongrel
()
2111 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2112 if eval \
${$3+:} false
; then :
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval \
${$3+:} false
; then :
2116 $as_echo_n "(cached) " >&6
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2122 # Is the header compilable?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2124 $as_echo_n "checking $2 usability... " >&6; }
2125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2130 if ac_fn_cxx_try_compile
"$LINENO"; then :
2131 ac_header_compiler
=yes
2133 ac_header_compiler
=no
2135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2137 $as_echo "$ac_header_compiler" >&6; }
2139 # Is the header present?
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2141 $as_echo_n "checking $2 presence... " >&6; }
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2146 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2147 ac_header_preproc
=yes
2149 ac_header_preproc
=no
2151 rm -f conftest.err conftest.i conftest.
$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2153 $as_echo "$ac_header_preproc" >&6; }
2155 # So? What about this header?
2156 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2159 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2165 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2167 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2169 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2171 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2173 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if eval \
${$3+:} false
; then :
2179 $as_echo_n "(cached) " >&6
2181 eval "$3=\$ac_header_compiler"
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } # ac_fn_cxx_check_header_mongrel
2191 # ac_fn_cxx_try_run LINENO
2192 # ------------------------
2193 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2194 # that executables *can* be run.
2195 ac_fn_cxx_try_run
()
2197 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2198 if { { ac_try
="$ac_link"
2200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2204 $as_echo "$ac_try_echo"; } >&5
2205 (eval "$ac_link") 2>&5
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2209 { { case "(($ac_try" in
2210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2211 *) ac_try_echo
=$ac_try;;
2213 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215 (eval "$ac_try") 2>&5
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; }; }; then :
2221 $as_echo "$as_me: program exited with status $ac_status" >&5
2222 $as_echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.
$ac_ext >&5
2225 ac_retval
=$ac_status
2227 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status
$ac_retval
2231 } # ac_fn_cxx_try_run
2233 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2234 # ---------------------------------------------------------
2235 # Tests whether HEADER exists and can be compiled using the include files in
2236 # INCLUDES, setting the cache variable VAR accordingly.
2237 ac_fn_cxx_check_header_compile
()
2239 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \
${$3+:} false
; then :
2243 $as_echo_n "(cached) " >&6
2245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2250 if ac_fn_cxx_try_compile
"$LINENO"; then :
2255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 } # ac_fn_cxx_check_header_compile
2264 # ac_fn_c_try_cpp LINENO
2265 # ----------------------
2266 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2269 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2270 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } > conftest.i && {
2286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2287 test ! -s conftest.err
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 as_fn_set_status $ac_retval
2301 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2302 # ----------------------------------------------
2303 # Tries to find the compile-time value of EXPR in a program that includes
2304 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2306 ac_fn_cxx_compute_int ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 if test "$cross_compiling" = yes; then
2310 # Depending upon the size, compute the lo and hi bounds.
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 static int test_array [1 - 2 * !(($2) >= 0)];
2319 return test_array [0];
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2334 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2336 return test_array [0];
2342 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 ac_hi=$ac_mid; break
2345 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2346 if test $ac_lo -le $ac_mid; then
2350 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) < 0)];
2363 return test_array [0];
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2378 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2380 return test_array [0];
2386 if ac_fn_cxx_try_compile "$LINENO"; then :
2387 ac_lo=$ac_mid; break
2389 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2390 if test $ac_mid -le $ac_hi; then
2394 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 # Binary search between lo and hi bounds.
2405 while test "x$ac_lo" != "x$ac_hi"; do
2406 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2413 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2415 return test_array [0];
2421 if ac_fn_cxx_try_compile "$LINENO"; then :
2424 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2436 static long int longval () { return $2; }
2437 static unsigned long int ulongval () { return $2; }
2444 FILE *f = fopen ("conftest.val", "w");
2449 long int i = longval ();
2452 fprintf (f, "%ld", i);
2456 unsigned long int i = ulongval ();
2459 fprintf (f, "%lu", i);
2461 /* Do not output a trailing newline, as this causes \r\n confusion
2462 on some platforms. */
2463 return ferror (f) || fclose (f) != 0;
2469 if ac_fn_cxx_try_run "$LINENO"; then :
2470 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2475 conftest.$ac_objext conftest.beam conftest.$ac_ext
2479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480 as_fn_set_status $ac_retval
2482 } # ac_fn_cxx_compute_int
2484 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2485 # ---------------------------------------------
2486 # Tests whether TYPE exists after having included INCLUDES, setting cache
2487 # variable VAR accordingly.
2488 ac_fn_cxx_check_type ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if eval \${$3+:} false; then :
2494 $as_echo_n "(cached) " >&6
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2509 if ac_fn_cxx_try_compile "$LINENO"; then :
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2522 if ac_fn_cxx_try_compile "$LINENO"; then :
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533 $as_echo "$ac_res" >&6; }
2534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2536 } # ac_fn_cxx_check_type
2538 # ac_fn_c_find_intX_t LINENO BITS VAR
2539 # -----------------------------------
2540 # Finds a signed integer type with width BITS, setting cache variable VAR
2542 ac_fn_c_find_intX_t ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2546 $as_echo_n "checking for int$2_t... " >&6; }
2547 if eval \${$3+:} false; then :
2548 $as_echo_n "(cached) " >&6
2551 # Order is important - never check a type that is potentially smaller
2552 # than half of the expected target width.
2553 for ac_type in int$2_t 'int' 'long int' \
2554 'long long int' 'short int' 'signed char'; do
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 $ac_includes_default
2558 enum { N = $2 / 2 - 1 };
2562 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2564 return test_array [0];
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2573 $ac_includes_default
2574 enum { N = $2 / 2 - 1 };
2578 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2579 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2581 return test_array [0];
2587 if ac_fn_cxx_try_compile "$LINENO"; then :
2594 eval "$3=\$ac_type" ;;
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 if eval test \"x\$"$3"\" = x"no"; then :
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2612 } # ac_fn_c_find_intX_t
2614 # ac_fn_cxx_try_link LINENO
2615 # -------------------------
2616 # Try to link conftest.$ac_ext, and return whether this succeeded.
2617 ac_fn_cxx_try_link ()
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 rm -f conftest.$ac_objext conftest$ac_exeext
2621 if { { ac_try="$ac_link"
2623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2624 *) ac_try_echo
=$ac_try;;
2626 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link") 2>conftest.err
2630 if test -s conftest.err
; then
2631 grep -v '^ *+' conftest.err
>conftest.er1
2632 cat conftest.er1
>&5
2633 mv -f conftest.er1 conftest.err
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; } && {
2637 test -z "$ac_cxx_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest
$ac_exeext && {
2640 test "$cross_compiling" = yes ||
2641 test -x conftest
$ac_exeext
2645 $as_echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.
$ac_ext >&5
2650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2652 # interfere with the next link command; also delete a directory that is
2653 # left behind by Apple's compiler. We do this before executing the actions.
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656 as_fn_set_status
$ac_retval
2658 } # ac_fn_cxx_try_link
2660 # ac_fn_c_find_uintX_t LINENO BITS VAR
2661 # ------------------------------------
2662 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2664 ac_fn_c_find_uintX_t
()
2666 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2668 $as_echo_n "checking for uint$2_t... " >&6; }
2669 if eval \
${$3+:} false
; then :
2670 $as_echo_n "(cached) " >&6
2673 # Order is important - never check a type that is potentially smaller
2674 # than half of the expected target width.
2675 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2676 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2679 $ac_includes_default
2683 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2685 return test_array [0];
2691 if ac_fn_cxx_try_compile
"$LINENO"; then :
2696 eval "$3=\$ac_type" ;;
2699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2700 if eval test \"x\$
"$3"\" = x
"no"; then :
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2709 $as_echo "$ac_res" >&6; }
2710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712 } # ac_fn_c_find_uintX_t
2714 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2715 # ------------------------------------------------
2716 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2717 ac_fn_cxx_check_header_preproc
()
2719 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2721 $as_echo_n "checking for $2... " >&6; }
2722 if eval \
${$3+:} false
; then :
2723 $as_echo_n "(cached) " >&6
2725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2729 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2734 rm -f conftest.err conftest.i conftest.
$ac_ext
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2738 $as_echo "$ac_res" >&6; }
2739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2741 } # ac_fn_cxx_check_header_preproc
2743 # ac_fn_cxx_check_func LINENO FUNC VAR
2744 # ------------------------------------
2745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2746 ac_fn_cxx_check_func
()
2748 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2750 $as_echo_n "checking for $2... " >&6; }
2751 if eval \
${$3+:} false
; then :
2752 $as_echo_n "(cached) " >&6
2754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2758 #define $2 innocuous_$2
2760 /* System header to define __stub macros and hopefully few prototypes,
2761 which can conflict with char $2 (); below.
2762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2763 <limits.h> exists even on freestanding compilers. */
2766 # include <limits.h>
2768 # include <assert.h>
2773 /* Override any GCC internal prototype to avoid an error.
2774 Use char because int might match the return type of a GCC
2775 builtin and then its argument prototype would still apply. */
2780 /* The GNU C library defines this for functions which it implements
2781 to always fail with ENOSYS. Some functions are actually named
2782 something starting with __ and the normal name is an alias. */
2783 #if defined __stub_$2 || defined __stub___$2
2795 if ac_fn_cxx_try_link
"$LINENO"; then :
2800 rm -f core conftest.err conftest.
$ac_objext \
2801 conftest
$ac_exeext conftest.
$ac_ext
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805 $as_echo "$ac_res" >&6; }
2806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2808 } # ac_fn_cxx_check_func
2810 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2811 # -----------------------------------------------
2812 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2814 ac_fn_cxx_check_decl
()
2816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2817 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2818 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2820 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2821 if eval \
${$3+:} false
; then :
2822 $as_echo_n "(cached) " >&6
2824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2830 #ifndef $as_decl_name
2832 (void) $as_decl_use;
2834 (void) $as_decl_name;
2842 if ac_fn_cxx_try_compile
"$LINENO"; then :
2847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2851 $as_echo "$ac_res" >&6; }
2852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2854 } # ac_fn_cxx_check_decl
2856 # ac_fn_c_try_link LINENO
2857 # -----------------------
2858 # Try to link conftest.$ac_ext, and return whether this succeeded.
2861 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2862 rm -f conftest.
$ac_objext conftest
$ac_exeext
2863 if { { ac_try
="$ac_link"
2865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869 $as_echo "$ac_try_echo"; } >&5
2870 (eval "$ac_link") 2>conftest.err
2872 if test -s conftest.err; then
2873 grep -v '^ *+' conftest.err >conftest.er1
2874 cat conftest.er1 >&5
2875 mv -f conftest.er1 conftest.err
2877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878 test $ac_status = 0; } && {
2879 test -z "$ac_c_werror_flag" ||
2880 test ! -s conftest.err
2881 } && test -s conftest$ac_exeext && {
2882 test "$cross_compiling" = yes ||
2883 test -x conftest$ac_exeext
2887 $as_echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2892 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2893 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2894 # interfere with the next link command; also delete a directory that is
2895 # left behind by Apple's compiler. We do this before executing the actions.
2896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2898 as_fn_set_status $ac_retval
2900 } # ac_fn_c_try_link
2902 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2903 # ----------------------------------------------
2904 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2905 ac_fn_c_check_header_preproc ()
2907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2909 $as_echo_n "checking for $2... " >&6; }
2910 if eval \${$3+:} false; then :
2911 $as_echo_n "(cached) " >&6
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2917 if ac_fn_c_try_cpp "$LINENO"; then :
2922 rm -f conftest.err conftest.i conftest.$ac_ext
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2926 $as_echo "$ac_res" >&6; }
2927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2929 } # ac_fn_c_check_header_preproc
2931 # ac_fn_c_check_func LINENO FUNC VAR
2932 # ----------------------------------
2933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2934 ac_fn_c_check_func ()
2936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2938 $as_echo_n "checking for $2... " >&6; }
2939 if eval \${$3+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2946 #define $2 innocuous_$2
2948 /* System header to define __stub macros and hopefully few prototypes,
2949 which can conflict with char $2 (); below.
2950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2951 <limits.h> exists even on freestanding compilers. */
2954 # include <limits.h>
2956 # include <assert.h>
2961 /* Override any GCC internal prototype to avoid an error.
2962 Use char because int might match the return type of a GCC
2963 builtin and then its argument prototype would still apply. */
2968 /* The GNU C library defines this for functions which it implements
2969 to always fail with ENOSYS. Some functions are actually named
2970 something starting with __ and the normal name is an alias. */
2971 #if defined __stub_$2 || defined __stub___$2
2983 if ac_fn_c_try_link "$LINENO"; then :
2988 rm -f core conftest.err conftest.$ac_objext \
2989 conftest$ac_exeext conftest.$ac_ext
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2993 $as_echo "$ac_res" >&6; }
2994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2996 } # ac_fn_c_check_func
2997 cat >config.log <<_ACEOF
2998 This file contains any messages produced by compilers while
2999 running configure, to aid debugging if configure makes a mistake.
3001 It was created by $as_me, which was
3002 generated by GNU Autoconf 2.69. Invocation command line was
3014 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3015 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3016 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3017 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3018 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3020 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3021 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3023 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3024 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3025 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3026 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3027 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3028 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3029 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 $as_echo "PATH: $as_dir"
3054 # Keep a trace of the command line.
3055 # Strip out --no-create and --no-recursion so they do not pile up.
3056 # Strip out --silent because we don't want to record it for future runs.
3057 # Also quote any args containing shell meta-characters.
3058 # Make two passes to allow for proper duplicate-argument suppression.
3062 ac_must_keep_next=false
3068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3070 | -silent | --silent | --silen | --sile | --sil)
3073 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3078 as_fn_append ac_configure_args1 " '$ac_arg'"
3079 if test $ac_must_keep_next = true; then
3080 ac_must_keep_next=false # Got value, back to normal.
3083 *=* | --config-cache | -C | -disable-* | --disable-* \
3084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3086 | -with-* | --with-* | -without-* | --without-* | --x)
3087 case "$ac_configure_args0 " in
3088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3091 -* ) ac_must_keep_next=true ;;
3094 as_fn_append ac_configure_args " '$ac_arg'"
3099 { ac_configure_args0=; unset ac_configure_args0;}
3100 { ac_configure_args1=; unset ac_configure_args1;}
3102 # When interrupted or exit'd, cleanup temporary files, and complete
3103 # config.log. We remove comments because anyway the quotes in there
3104 # would cause problems or look ugly.
3105 # WARNING: Use '\'' to represent an apostrophe within the trap.
3106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3107 trap 'exit_status=$?
3108 # Save into config.log some information that might help in debugging.
3112 $as_echo "## ---------------- ##
3113 ## Cache variables. ##
3114 ## ---------------- ##"
3116 # The following way of writing the cache mishandles newlines in values,
3118 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3119 eval ac_val=\$$ac_var
3123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3127 _ | IFS | as_nl) ;; #(
3128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3129 *) { eval $ac_var=; unset $ac_var;} ;;
3134 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3135 *${as_nl}ac_space=\ *)
3137 "s/'\''/'\''\\\\'\'''\''/g;
3138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3148 $as_echo "## ----------------- ##
3149 ## Output variables. ##
3150 ## ----------------- ##"
3152 for ac_var in $ac_subst_vars
3154 eval ac_val=\$$ac_var
3156 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3158 $as_echo "$ac_var='\''$ac_val'\''"
3162 if test -n "$ac_subst_files"; then
3163 $as_echo "## ------------------- ##
3164 ## File substitutions. ##
3165 ## ------------------- ##"
3167 for ac_var in $ac_subst_files
3169 eval ac_val=\$$ac_var
3171 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3173 $as_echo "$ac_var='\''$ac_val'\''"
3178 if test -s confdefs.h; then
3179 $as_echo "## ----------- ##
3186 test "$ac_signal" != 0 &&
3187 $as_echo "$as_me: caught signal $ac_signal"
3188 $as_echo "$as_me: exit $exit_status"
3190 rm -f core *.core core.conftest.* &&
3191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3194 for ac_signal in 1 2 13 15; do
3195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3200 rm -f -r conftest* confdefs.h
3202 $as_echo "/* confdefs.h */" > confdefs.h
3204 # Predefined preprocessor variables.
3206 cat >>confdefs.h <<_ACEOF
3207 #define PACKAGE_NAME "$PACKAGE_NAME"
3210 cat >>confdefs.h <<_ACEOF
3211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3214 cat >>confdefs.h <<_ACEOF
3215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3218 cat >>confdefs.h <<_ACEOF
3219 #define PACKAGE_STRING "$PACKAGE_STRING"
3222 cat >>confdefs.h <<_ACEOF
3223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3226 cat >>confdefs.h <<_ACEOF
3227 #define PACKAGE_URL "$PACKAGE_URL"
3231 # Let the site file select an alternate cache file if it wants to.
3232 # Prefer an explicitly selected file to automatically selected ones.
3235 if test -n "$CONFIG_SITE"; then
3236 # We do not want a PATH search for config.site.
3237 case $CONFIG_SITE in #((
3238 -*) ac_site_file1=./$CONFIG_SITE;;
3239 */*) ac_site_file1=$CONFIG_SITE;;
3240 *) ac_site_file1=./$CONFIG_SITE;;
3242 elif test "x$prefix" != xNONE; then
3243 ac_site_file1=$prefix/share/config.site
3244 ac_site_file2=$prefix/etc/config.site
3246 ac_site_file1=$ac_default_prefix/share/config.site
3247 ac_site_file2=$ac_default_prefix/etc/config.site
3249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3251 test "x$ac_site_file" = xNONE && continue
3252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3255 sed 's/^/| /' "$ac_site_file" >&5
3257 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error $? "failed to load site
script $ac_site_file
3260 See \
`config.log' for more details" "$LINENO" 5; }
3264 if test -r "$cache_file"; then
3265 # Some versions of bash will fail to source /dev/null (special files
3266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3269 $as_echo "$as_me: loading cache $cache_file" >&6;}
3271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3272 *) . "./$cache_file";;
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3277 $as_echo "$as_me: creating cache $cache_file" >&6;}
3281 # Check that the precious variables saved in the cache have kept the same
3283 ac_cache_corrupted=false
3284 for ac_var in $ac_precious_vars; do
3285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3286 eval ac_new_set=\$ac_env_${ac_var}_set
3287 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3288 eval ac_new_val=\$ac_env_${ac_var}_value
3289 case $ac_old_set,$ac_new_set in
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3292 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3293 ac_cache_corrupted=: ;;
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3296 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3297 ac_cache_corrupted=: ;;
3300 if test "x$ac_old_val" != "x$ac_new_val"; then
3301 # differences in whitespace do not lead to failure.
3302 ac_old_val_w=`echo x
$ac_old_val`
3303 ac_new_val_w=`echo x
$ac_new_val`
3304 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3307 ac_cache_corrupted=:
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3311 eval $ac_var=\$ac_old_val
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3314 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3316 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3319 # Pass precious variables to config.status.
3320 if test "$ac_new_set" = set; then
3322 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3323 *) ac_arg=$ac_var=$ac_new_val ;;
3325 case " $ac_configure_args " in
3326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3327 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3331 if $ac_cache_corrupted; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3336 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3338 ## -------------------- ##
3339 ## Main body of script. ##
3340 ## -------------------- ##
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3357 gcc_version=`cat $srcdir/BASE-VER
`
3359 # Determine the host, build, and target systems
3361 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3362 if test -f "$ac_dir/install-sh"; then
3364 ac_install_sh="$ac_aux_dir/install-sh -c"
3366 elif test -f "$ac_dir/install.sh"; then
3368 ac_install_sh="$ac_aux_dir/install.sh -c"
3370 elif test -f "$ac_dir/shtool"; then
3372 ac_install_sh="$ac_aux_dir/shtool install -c"
3376 if test -z "$ac_aux_dir"; then
3377 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3380 # These three variables are undocumented and unsupported,
3381 # and are intended to be withdrawn in a future Autoconf release.
3382 # They can cause serious problems if a builder's source tree is in a directory
3383 # whose full name contains unusual characters.
3384 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3385 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3386 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3389 # Make sure we can run config.sub.
3390 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3391 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3394 $as_echo_n "checking build system type... " >&6; }
3395 if ${ac_cv_build+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 ac_build_alias=$build_alias
3399 test "x$ac_build_alias" = x &&
3400 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3401 test "x$ac_build_alias" = x &&
3402 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3403 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3408 $as_echo "$ac_cv_build" >&6; }
3409 case $ac_cv_build in
3411 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3414 ac_save_IFS=$IFS; IFS='-'
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3424 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3428 $as_echo_n "checking host system type... " >&6; }
3429 if ${ac_cv_host+:} false; then :
3430 $as_echo_n "(cached) " >&6
3432 if test "x$host_alias" = x; then
3433 ac_cv_host=$ac_cv_build
3435 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3436 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3441 $as_echo "$ac_cv_host" >&6; }
3444 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3447 ac_save_IFS=$IFS; IFS='-'
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3457 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3461 $as_echo_n "checking target system type... " >&6; }
3462 if ${ac_cv_target+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test "x$target_alias" = x; then
3466 ac_cv_target=$ac_cv_host
3468 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3474 $as_echo "$ac_cv_target" >&6; }
3475 case $ac_cv_target in
3477 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3479 target=$ac_cv_target
3480 ac_save_IFS=$IFS; IFS='-'
3486 # Remember, the first character of IFS is used to create $*,
3487 # except with old shells:
3490 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3493 # The aliases save the names the user supplied, while $host etc.
3494 # will get canonicalized.
3495 test -n "$target_alias" &&
3496 test "$program_prefix$program_suffix$program_transform_name" = \
3498 program_prefix=${target_alias}-
3500 # Determine the noncanonical host name, for Ada.
3501 case ${build_alias} in
3502 "") build_noncanonical=${build} ;;
3503 *) build_noncanonical=${build_alias} ;;
3506 case ${host_alias} in
3507 "") host_noncanonical=${build_noncanonical} ;;
3508 *) host_noncanonical=${host_alias} ;;
3514 # Determine the noncanonical target name, for directory use.
3515 case ${target_alias} in
3516 "") target_noncanonical=${host_noncanonical} ;;
3517 *) target_noncanonical=${target_alias} ;;
3523 # Used for constructing correct paths for offload compilers.
3524 real_target_noncanonical=${target_noncanonical}
3527 # Determine the target- and build-specific subdirectories
3529 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3530 # have matching libraries, they should use host libraries: Makefile.tpl
3531 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3532 # However, they still use the build modules, because the corresponding
3533 # host modules (e.g. bison) are only built for the host when bootstrap
3535 # - build_subdir is where we find build modules, and never changes.
3536 # - build_libsubdir is where we find build libraries, and can be overridden.
3538 # Prefix 'build-' so this never conflicts with target_subdir.
3539 build_subdir="build-${build_noncanonical}"
3541 # Check whether --with-build-libsubdir was given.
3542 if test "${with_build_libsubdir+set}" = set; then :
3543 withval=$with_build_libsubdir; build_libsubdir="$withval"
3545 build_libsubdir="$build_subdir"
3548 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3549 if ( test $srcdir = . && test -d gcc ) \
3550 || test -d $srcdir/../host-${host_noncanonical}; then
3551 host_subdir="host-${host_noncanonical}"
3556 target_subdir=${target_noncanonical}
3559 # Set program_transform_name
3560 test "$program_prefix" != NONE &&
3561 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3562 # Use a double $ so make ignores it.
3563 test "$program_suffix" != NONE &&
3564 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3565 # Double any \ or $.
3566 # By default was `s
,x
,x
', remove it if useless.
3567 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3568 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3571 # Check for bogus environment variables.
3572 # Test if LIBRARY_PATH contains the notation for the current directory
3573 # since this would lead to problems installing/building glibc.
3574 # LIBRARY_PATH contains the current directory if one of the following
3576 # - one of the terminals (":" and ";") is the first or last sign
3577 # - two terminals occur directly after each other
3578 # - the path contains an element with a dot in it
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3580 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3581 case ${LIBRARY_PATH} in
3582 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3583 library_path_setting="contains current directory"
3586 library_path_setting="ok"
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3590 $as_echo "$library_path_setting" >&6; }
3591 if test "$library_path_setting" != "ok"; then
3593 *** LIBRARY_PATH shouldn't contain the current directory when
3594 *** building gcc. Please change the environment variable
3595 *** and run configure again.
" "$LINENO" 5
3598 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3599 # since this would lead to problems installing/building glibc.
3600 # GCC_EXEC_PREFIX contains the current directory if one of the following
3602 # - one of the terminals (":" and ";") is the first or last sign
3603 # - two terminals occur directly after each other
3604 # - the path contains an element with a dot in it
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3606 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3607 case ${GCC_EXEC_PREFIX} in
3608 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3609 gcc_exec_prefix_setting="contains current directory
"
3612 gcc_exec_prefix_setting="ok
"
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3616 $as_echo "$gcc_exec_prefix_setting" >&6; }
3617 if test "$gcc_exec_prefix_setting" != "ok
"; then
3619 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3620 *** building gcc. Please change the environment variable
3621 *** and run configure again." "$LINENO" 5
3628 # Specify the local prefix
3631 # Check whether --with-local-prefix was given.
3632 if test "${with_local_prefix+set}" = set; then :
3633 withval=$with_local_prefix; case "${withval}" in
3634 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3636 *) local_prefix=$with_local_prefix ;;
3641 # Default local prefix if it is empty
3642 if test x$local_prefix = x; then
3643 local_prefix=/usr/local
3647 # Check whether --with-native-system-header-dir was given.
3648 if test "${with_native_system_header_dir+set}" = set; then :
3649 withval=$with_native_system_header_dir;
3650 case ${with_native_system_header_dir} in
3651 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3652 /* | [A-Za-z]:[\\/]*) ;;
3653 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3655 configured_native_system_header_dir="${withval}"
3658 configured_native_system_header_dir=
3663 # Check whether --with-build-sysroot was given.
3664 if test "${with_build_sysroot+set}" = set; then :
3665 withval=$with_build_sysroot; if test x"$withval" != x ; then
3666 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3669 SYSROOT_CFLAGS_FOR_TARGET=
3674 if test "x$prefix" = xNONE; then
3675 test_prefix=/usr/local
3679 if test "x$exec_prefix" = xNONE; then
3680 test_exec_prefix=$test_prefix
3682 test_exec_prefix=$exec_prefix
3686 # Check whether --with-sysroot was given.
3687 if test "${with_sysroot+set}" = set; then :
3688 withval=$with_sysroot;
3689 case ${with_sysroot} in
3691 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3693 case ${with_sysroot} in
3694 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3695 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3698 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3699 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3701 case ${TARGET_SYSTEM_ROOT} in
3702 "${test_prefix}"|"${test_prefix}/"*|\
3703 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3704 '${prefix}'|'${prefix}/'*|\
3705 '${exec_prefix}'|'${exec_prefix}/'*)
3706 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3707 TARGET_SYSTEM_ROOT_DEFINE="$t"
3714 TARGET_SYSTEM_ROOT_DEFINE=
3715 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3723 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3724 # passed in by the toplevel make and thus we'd get different behavior
3725 # depending on where we built the sources.
3726 gcc_gxx_include_dir
=
3727 # Specify the g++ header file directory
3729 # Check whether --with-gxx-include-dir was given.
3730 if test "${with_gxx_include_dir+set}" = set; then :
3731 withval
=$with_gxx_include_dir; case "${withval}" in
3732 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3734 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3739 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3740 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3741 # relative to the sysroot.
3742 gcc_gxx_include_dir_add_sysroot
=0
3744 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3745 if test x
${gcc_gxx_include_dir} = x
; then
3746 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3747 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3749 libstdcxx_incdir
='include/c++/$(version)'
3750 if test x
$host != x
$target; then
3751 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3753 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3755 elif test "${with_sysroot+set}" = set; then
3756 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3757 if test "${gcc_gxx_without_sysroot}"; then
3758 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3759 gcc_gxx_include_dir_add_sysroot
=1
3763 # Configuration for an alternate set of C++ headers.
3764 gcc_gxx_libcxx_include_dir
=
3765 # Specify the alternate g++ header file directory
3767 # Check whether --with-gxx-libcxx-include-dir was given.
3768 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3769 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3770 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3771 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3776 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3777 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3778 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3779 #Â based on the platform (to be available on platform versions where it is the
3780 # default for the system tools). We also use a default path within the compiler
3782 #Â Otherwise, we use the path provided and enable the stdlib option.
3783 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3784 # check to see if the latter starts with the former and, upon success, compute
3785 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3786 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3787 gcc_enable_stdlib_opt
=0
3788 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3789 if test x
${gcc_gxx_libcxx_include_dir} = xno
; then
3790 #Â set defaults for the dir, but the option is disabled anyway.
3791 gcc_gxx_libcxx_include_dir
=
3793 gcc_enable_stdlib_opt
=1
3797 *-darwin1[1-9]* |
*-darwin2*)
3798 #Â Default this on for Darwin versions which default to libcxx,
3799 #Â and embed the path in the compiler install so that we get a
3800 # self-contained toolchain.
3801 gcc_enable_stdlib_opt
=1
3807 cat >>confdefs.h
<<_ACEOF
3808 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3812 # Sysroot behaviour as for gxx-include-dir
3813 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3814 # default path,embedded in the compiler tree.
3815 libcxx_incdir
='include/c++/v1'
3816 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3817 gcc_gxx_libcxx_include_dir
='${libsubdir}/$libcxx_incdir'
3819 if test x
$host != x
$target; then
3820 libcxx_incdir
="$target_alias/$libcxx_incdir"
3822 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3824 elif test "${with_sysroot+set}" = set; then
3825 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3826 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3827 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3828 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3833 # Check whether --with-cpp_install_dir was given.
3834 if test "${with_cpp_install_dir+set}" = set; then :
3835 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3836 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3837 elif test x
$withval != xno
; then
3838 cpp_install_dir
=$withval
3843 # We would like to our source tree to be readonly. However when releases or
3844 # pre-releases are generated, the flex/bison generated files as well as the
3845 # various formats of manuals need to be included along with the rest of the
3846 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3850 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3851 # Check whether --enable-generated-files-in-srcdir was given.
3852 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3853 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3855 generated_files_in_srcdir
=no
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3860 $as_echo "$generated_files_in_srcdir" >&6; }
3862 if test "$generated_files_in_srcdir" = "yes"; then
3869 # -------------------
3870 # Find default linker
3871 # -------------------
3875 # Check whether --with-gnu-ld was given.
3876 if test "${with_gnu_ld+set}" = set; then :
3877 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3885 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3886 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3894 # With pre-defined ld
3896 # Check whether --with-ld was given.
3897 if test "${with_ld+set}" = set; then :
3898 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3901 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3902 if test ! -x "$DEFAULT_LINKER"; then
3903 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3904 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3906 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3910 cat >>confdefs.h
<<_ACEOF
3911 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3917 $as_echo_n "checking whether a default linker was specified... " >&6; }
3918 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3919 if test x
"$gnu_ld_flag" = x
"no"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3921 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3924 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3931 # With demangler in GNU ld
3933 # Check whether --with-demangler-in-ld was given.
3934 if test "${with_demangler_in_ld+set}" = set; then :
3935 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3941 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3943 # Check whether --with-dsymutil was given.
3944 if test "${with_dsymutil+set}" = set; then :
3945 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3950 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3951 if test ! -x "$DEFAULT_DSYMUTIL"; then
3952 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3954 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3959 cat >>confdefs.h
<<_ACEOF
3960 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3966 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3967 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3969 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3975 # ----------------------
3976 # Find default assembler
3977 # ----------------------
3981 # Check whether --with-gnu-as was given.
3982 if test "${with_gnu_as+set}" = set; then :
3983 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3990 # Check whether --with-as was given.
3991 if test "${with_as+set}" = set; then :
3992 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3995 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3996 if test ! -x "$DEFAULT_ASSEMBLER"; then
3997 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3998 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
4002 cat >>confdefs.h
<<_ACEOF
4003 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4009 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4010 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4011 if test x
"$gas_flag" = x
"no"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4013 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4016 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4027 # If a non-executable a.out is present (e.g. created by GNU as above even if
4028 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4029 # file, even when creating an executable, so an execution test fails.
4030 # Remove possible default executable files to avoid this.
4032 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4033 # Autoconf includes it.
4034 rm -f a.out a.exe b.out
4036 # Find the native compiler
4038 ac_cpp
='$CPP $CPPFLAGS'
4039 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4042 if test -n "$ac_tool_prefix"; then
4043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4044 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_prog_CC+:} false
; then :
4048 $as_echo_n "(cached) " >&6
4050 if test -n "$CC"; then
4051 ac_cv_prog_CC
="$CC" # Let the user override the test.
4053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir
=.
4058 for ac_exec_ext
in '' $ac_executable_extensions; do
4059 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 if test -n "$CC"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4073 $as_echo "$CC" >&6; }
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4081 if test -z "$ac_cv_prog_CC"; then
4083 # Extract the first word of "gcc", so it can be a program name with args.
4084 set dummy gcc
; ac_word
=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4088 $as_echo_n "(cached) " >&6
4090 if test -n "$ac_ct_CC"; then
4091 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir
=.
4098 for ac_exec_ext
in '' $ac_executable_extensions; do
4099 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_ac_ct_CC
="gcc"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4111 if test -n "$ac_ct_CC"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4113 $as_echo "$ac_ct_CC" >&6; }
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4119 if test "x$ac_ct_CC" = x
; then
4122 case $cross_compiling:$ac_tool_warned in
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126 ac_tool_warned
=yes ;;
4134 if test -z "$CC"; then
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4137 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_CC+:} false
; then :
4141 $as_echo_n "(cached) " >&6
4143 if test -n "$CC"; then
4144 ac_cv_prog_CC
="$CC" # Let the user override the test.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 if test -n "$CC"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4166 $as_echo "$CC" >&6; }
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4175 if test -z "$CC"; then
4176 # Extract the first word of "cc", so it can be a program name with args.
4177 set dummy cc
; ac_word
=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if ${ac_cv_prog_CC+:} false
; then :
4181 $as_echo_n "(cached) " >&6
4183 if test -n "$CC"; then
4184 ac_cv_prog_CC
="$CC" # Let the user override the test.
4187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir
=.
4192 for ac_exec_ext
in '' $ac_executable_extensions; do
4193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4194 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4195 ac_prog_rejected
=yes
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 if test $ac_prog_rejected = yes; then
4207 # We found a bogon in the path, so make sure we never use it.
4208 set dummy
$ac_cv_prog_CC
4210 if test $# != 0; then
4211 # We chose a different compiler from the bogus one.
4212 # However, it has the same basename, so the bogon will be chosen
4213 # first if we set CC to just the basename; use the full file name.
4215 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4221 if test -n "$CC"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4223 $as_echo "$CC" >&6; }
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4231 if test -z "$CC"; then
4232 if test -n "$ac_tool_prefix"; then
4233 for ac_prog
in cl.exe
4235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4236 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_prog_CC+:} false
; then :
4240 $as_echo_n "(cached) " >&6
4242 if test -n "$CC"; then
4243 ac_cv_prog_CC
="$CC" # Let the user override the test.
4245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir
=.
4250 for ac_exec_ext
in '' $ac_executable_extensions; do
4251 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 if test -n "$CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4265 $as_echo "$CC" >&6; }
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4272 test -n "$CC" && break
4275 if test -z "$CC"; then
4277 for ac_prog
in cl.exe
4279 # Extract the first word of "$ac_prog", so it can be a program name with args.
4280 set dummy
$ac_prog; ac_word
=$2
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282 $as_echo_n "checking for $ac_word... " >&6; }
4283 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4284 $as_echo_n "(cached) " >&6
4286 if test -n "$ac_ct_CC"; then
4287 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4293 test -z "$as_dir" && as_dir
=.
4294 for ac_exec_ext
in '' $ac_executable_extensions; do
4295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4296 ac_cv_prog_ac_ct_CC
="$ac_prog"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4307 if test -n "$ac_ct_CC"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4309 $as_echo "$ac_ct_CC" >&6; }
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4316 test -n "$ac_ct_CC" && break
4319 if test "x$ac_ct_CC" = x
; then
4322 case $cross_compiling:$ac_tool_warned in
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4326 ac_tool_warned
=yes ;;
4335 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error $?
"no acceptable C compiler found in \$PATH
4338 See \`config.log' for more details" "$LINENO" 5; }
4340 # Provide some information about the compiler.
4341 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4344 for ac_option
in --version -v -V -qversion; do
4345 { { ac_try
="$ac_compiler $ac_option >&5"
4347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4354 if test -s conftest.err; then
4356 ... rest of stderr output deleted ...
4357 10q' conftest.err >conftest.er1
4358 cat conftest.er1 >&5
4360 rm -f conftest.er1 conftest.err
4361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4362 test $ac_status = 0; }
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4376 ac_clean_files_save=$ac_clean_files
4377 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4378 # Try to create an executable without -o first, disregard a.out.
4379 # It will help us diagnose broken compilers, and finding out an intuition
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4382 $as_echo_n "checking whether the C compiler works... " >&6; }
4383 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4385 # The possible output files:
4386 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4389 for ac_file in $ac_files
4392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4393 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4398 if { { ac_try="$ac_link_default"
4400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4401 *) ac_try_echo
=$ac_try;;
4403 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405 (eval "$ac_link_default") 2>&5
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }; then :
4409 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4410 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4411 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4412 # so that the user can short-circuit this test for compilers unknown to
4414 for ac_file
in $ac_files ''
4416 test -f "$ac_file" ||
continue
4418 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4421 # We found the default executable, but exeext='' is most
4425 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4427 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4429 # We set ac_cv_exeext here because the later test for it is not
4430 # safe: cross compilers may not add the suffix if given an `-o'
4431 # argument, so we may need to know it at that point already.
4432 # Even if this section looks crufty: it has the advantage of
4439 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4444 if test -z "$ac_file"; then :
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 $as_echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.
$ac_ext >&5
4450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4452 as_fn_error
77 "C compiler cannot create executables
4453 See \`config.log' for more details" "$LINENO" 5; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4456 $as_echo "yes" >&6; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4459 $as_echo_n "checking for C compiler default output file name... " >&6; }
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4461 $as_echo "$ac_file" >&6; }
4462 ac_exeext
=$ac_cv_exeext
4464 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4465 ac_clean_files
=$ac_clean_files_save
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4467 $as_echo_n "checking for suffix of executables... " >&6; }
4468 if { { ac_try
="$ac_link"
4470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474 $as_echo "$ac_try_echo"; } >&5
4475 (eval "$ac_link") 2>&5
4477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }; then :
4479 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4480 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4481 # work properly (i.e., refer to `conftest.exe'), while it won't with
4483 for ac_file
in conftest.exe conftest conftest.
*; do
4484 test -f "$ac_file" ||
continue
4486 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4487 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4496 See \`config.log' for more details" "$LINENO" 5; }
4498 rm -f conftest conftest
$ac_cv_exeext
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4500 $as_echo "$ac_cv_exeext" >&6; }
4502 rm -f conftest.
$ac_ext
4503 EXEEXT
=$ac_cv_exeext
4505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4511 FILE *f = fopen ("conftest.out", "w");
4512 return ferror (f) || fclose (f) != 0;
4518 ac_clean_files
="$ac_clean_files conftest.out"
4519 # Check that the compiler produces executables we can run. If not, either
4520 # the compiler is broken, or we cross compile.
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4522 $as_echo_n "checking whether we are cross compiling... " >&6; }
4523 if test "$cross_compiling" != yes; then
4524 { { ac_try
="$ac_link"
4526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_link") 2>&5
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }
4535 if { ac_try='./conftest$ac_cv_exeext'
4536 { { case "(($ac_try" in
4537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4538 *) ac_try_echo
=$ac_try;;
4540 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541 $as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_try") 2>&5
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; }; then
4548 if test "$cross_compiling" = maybe
; then
4551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error $?
"cannot run C compiled programs.
4554 If you meant to cross compile, use \`--host'.
4555 See \`config.log' for more details" "$LINENO" 5; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4560 $as_echo "$cross_compiling" >&6; }
4562 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4563 ac_clean_files
=$ac_clean_files_save
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4565 $as_echo_n "checking for suffix of object files... " >&6; }
4566 if ${ac_cv_objext+:} false
; then :
4567 $as_echo_n "(cached) " >&6
4569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4580 rm -f conftest.o conftest.obj
4581 if { { ac_try
="$ac_compile"
4583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4587 $as_echo "$ac_try_echo"; } >&5
4588 (eval "$ac_compile") 2>&5
4590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4591 test $ac_status = 0; }; then :
4592 for ac_file in conftest.o conftest.obj conftest.*; do
4593 test -f "$ac_file" || continue;
4595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4601 $as_echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4606 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4607 See \
`config.log' for more details" "$LINENO" 5; }
4609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4612 $as_echo "$ac_cv_objext" >&6; }
4613 OBJEXT=$ac_cv_objext
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4616 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4617 if ${ac_cv_c_compiler_gnu+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4634 if ac_fn_c_try_compile "$LINENO"; then :
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4644 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4645 if test $ac_compiler_gnu = yes; then
4650 ac_test_CFLAGS=${CFLAGS+set}
4651 ac_save_CFLAGS=$CFLAGS
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4653 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4654 if ${ac_cv_prog_cc_g+:} false; then :
4655 $as_echo_n "(cached) " >&6
4657 ac_save_c_werror_flag=$ac_c_werror_flag
4658 ac_c_werror_flag=yes
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4672 if ac_fn_c_try_compile "$LINENO"; then :
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4687 if ac_fn_c_try_compile "$LINENO"; then :
4690 ac_c_werror_flag=$ac_save_c_werror_flag
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4703 if ac_fn_c_try_compile "$LINENO"; then :
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 ac_c_werror_flag=$ac_save_c_werror_flag
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4714 $as_echo "$ac_cv_prog_cc_g" >&6; }
4715 if test "$ac_test_CFLAGS" = set; then
4716 CFLAGS=$ac_save_CFLAGS
4717 elif test $ac_cv_prog_cc_g = yes; then
4718 if test "$GCC" = yes; then
4724 if test "$GCC" = yes; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4731 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4732 if ${ac_cv_prog_cc_c89+:} false; then :
4733 $as_echo_n "(cached) " >&6
4735 ac_cv_prog_cc_c89=no
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4743 struct buf { int x; };
4744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4745 static char *e (p, i)
4751 static char *f (char * (*g) (char **, int), char **p, ...)
4756 s = g (p, va_arg (v,int));
4761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4762 function prototypes and stuff, but not '\xHH' hex character constants.
4763 These don't provoke an error unfortunately, instead are silently treated
4764 as 'x'. The following induces an error, until -std is added to get
4765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4766 array size at least. It's necessary to write '\x00'==0 to get something
4767 that's true only with -std. */
4768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4771 inside strings and character constants. */
4773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4775 int test (int i, double x);
4776 struct s1 {int (*f) (int a);};
4777 struct s2 {int (*f) (double a);};
4778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4792 CC="$ac_save_CC $ac_arg"
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794 ac_cv_prog_cc_c89=$ac_arg
4796 rm -f core conftest.err conftest.$ac_objext
4797 test "x$ac_cv_prog_cc_c89" != "xno" && break
4799 rm -f conftest.$ac_ext
4804 case "x$ac_cv_prog_cc_c89" in
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4807 $as_echo "none needed" >&6; } ;;
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4810 $as_echo "unsupported" >&6; } ;;
4812 CC="$CC $ac_cv_prog_cc_c89"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4814 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4816 if test "x$ac_cv_prog_cc_c89" != xno; then :
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827 ac_cpp='$CXXCPP $CPPFLAGS'
4828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4831 if test -z "$CXX"; then
4832 if test -n "$CCC"; then
4835 if test -n "$ac_tool_prefix"; then
4836 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_prog_CXX+:} false; then :
4843 $as_echo_n "(cached) " >&6
4845 if test -n "$CXX"; then
4846 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 if test -n "$CXX"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4868 $as_echo "$CXX" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4875 test -n "$CXX" && break
4878 if test -z "$CXX"; then
4880 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4887 $as_echo_n "(cached) " >&6
4889 if test -n "$ac_ct_CXX"; then
4890 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_ac_ct_CXX="$ac_prog"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4910 if test -n "$ac_ct_CXX"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4912 $as_echo "$ac_ct_CXX" >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 test -n "$ac_ct_CXX" && break
4922 if test "x$ac_ct_CXX" = x; then
4925 case $cross_compiling:$ac_tool_warned in
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929 ac_tool_warned=yes ;;
4937 # Provide some information about the compiler.
4938 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4941 for ac_option in --version -v -V -qversion; do
4942 { { ac_try="$ac_compiler $ac_option >&5"
4944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4945 *) ac_try_echo
=$ac_try;;
4947 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4948 $as_echo "$ac_try_echo"; } >&5
4949 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4951 if test -s conftest.err
; then
4953 ... rest of stderr output deleted ...
4954 10q' conftest.err
>conftest.er1
4955 cat conftest.er1
>&5
4957 rm -f conftest.er1 conftest.err
4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959 test $ac_status = 0; }
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4963 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4964 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4965 $as_echo_n "(cached) " >&6
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4981 if ac_fn_cxx_try_compile
"$LINENO"; then :
4986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4987 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4991 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4992 if test $ac_compiler_gnu = yes; then
4997 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4998 ac_save_CXXFLAGS
=$CXXFLAGS
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5000 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5001 if ${ac_cv_prog_cxx_g+:} false
; then :
5002 $as_echo_n "(cached) " >&6
5004 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5005 ac_cxx_werror_flag
=yes
5008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5019 if ac_fn_cxx_try_compile
"$LINENO"; then :
5020 ac_cv_prog_cxx_g
=yes
5023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5034 if ac_fn_cxx_try_compile
"$LINENO"; then :
5037 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5050 if ac_fn_cxx_try_compile
"$LINENO"; then :
5051 ac_cv_prog_cxx_g
=yes
5053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5058 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5061 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5062 if test "$ac_test_CXXFLAGS" = set; then
5063 CXXFLAGS
=$ac_save_CXXFLAGS
5064 elif test $ac_cv_prog_cxx_g = yes; then
5065 if test "$GXX" = yes; then
5071 if test "$GXX" = yes; then
5078 ac_cpp
='$CPP $CPPFLAGS'
5079 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5086 if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5088 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_GNATBIND+:} false
; then :
5092 $as_echo_n "(cached) " >&6
5094 if test -n "$GNATBIND"; then
5095 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir
=.
5102 for ac_exec_ext
in '' $ac_executable_extensions; do
5103 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 GNATBIND
=$ac_cv_prog_GNATBIND
5115 if test -n "$GNATBIND"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5117 $as_echo "$GNATBIND" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5125 if test -z "$ac_cv_prog_GNATBIND"; then
5126 ac_ct_GNATBIND
=$GNATBIND
5127 # Extract the first word of "gnatbind", so it can be a program name with args.
5128 set dummy gnatbind
; ac_word
=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$ac_ct_GNATBIND"; then
5135 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir
=.
5142 for ac_exec_ext
in '' $ac_executable_extensions; do
5143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5155 if test -n "$ac_ct_GNATBIND"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5157 $as_echo "$ac_ct_GNATBIND" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5163 if test "x$ac_ct_GNATBIND" = x
; then
5166 case $cross_compiling:$ac_tool_warned in
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170 ac_tool_warned
=yes ;;
5172 GNATBIND
=$ac_ct_GNATBIND
5175 GNATBIND
="$ac_cv_prog_GNATBIND"
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5180 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5184 $as_echo_n "(cached) " >&6
5186 if test -n "$GNATMAKE"; then
5187 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir
=.
5194 for ac_exec_ext
in '' $ac_executable_extensions; do
5195 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 GNATMAKE
=$ac_cv_prog_GNATMAKE
5207 if test -n "$GNATMAKE"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5209 $as_echo "$GNATMAKE" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5217 if test -z "$ac_cv_prog_GNATMAKE"; then
5218 ac_ct_GNATMAKE
=$GNATMAKE
5219 # Extract the first word of "gnatmake", so it can be a program name with args.
5220 set dummy gnatmake
; ac_word
=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5224 $as_echo_n "(cached) " >&6
5226 if test -n "$ac_ct_GNATMAKE"; then
5227 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5233 test -z "$as_dir" && as_dir
=.
5234 for ac_exec_ext
in '' $ac_executable_extensions; do
5235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5247 if test -n "$ac_ct_GNATMAKE"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5249 $as_echo "$ac_ct_GNATMAKE" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5255 if test "x$ac_ct_GNATMAKE" = x
; then
5258 case $cross_compiling:$ac_tool_warned in
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned
=yes ;;
5264 GNATMAKE
=$ac_ct_GNATMAKE
5267 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5271 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5272 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5273 $as_echo_n "(cached) " >&6
5275 cat >conftest.adb
<<EOF
5276 pragma Warnings (Off);
5278 pragma Warnings (On);
5279 use type System.CRTL.int64;
5280 procedure conftest is begin null; end conftest;
5282 acx_cv_cc_gcc_supports_ada
=no
5283 # There is a bug in old released versions of GCC which causes the
5284 # driver to exit successfully when the appropriate language module
5285 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5286 # Therefore we must check for the error message as well as an
5287 # unsuccessful exit.
5288 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5289 # given a .adb file, but produce no object file. So we must check
5290 # if an object file was really produced to guard against this.
5291 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5292 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5293 acx_cv_cc_gcc_supports_ada
=yes
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5298 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5300 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5308 if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5310 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_prog_GDC+:} false
; then :
5314 $as_echo_n "(cached) " >&6
5316 if test -n "$GDC"; then
5317 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir
=.
5324 for ac_exec_ext
in '' $ac_executable_extensions; do
5325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 if test -n "$GDC"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5339 $as_echo "$GDC" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5347 if test -z "$ac_cv_prog_GDC"; then
5349 # Extract the first word of "gdc", so it can be a program name with args.
5350 set dummy gdc
; ac_word
=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5354 $as_echo_n "(cached) " >&6
5356 if test -n "$ac_ct_GDC"; then
5357 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir
=.
5364 for ac_exec_ext
in '' $ac_executable_extensions; do
5365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_ac_ct_GDC
="gdc"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5377 if test -n "$ac_ct_GDC"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5379 $as_echo "$ac_ct_GDC" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5385 if test "x$ac_ct_GDC" = x
; then
5388 case $cross_compiling:$ac_tool_warned in
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392 ac_tool_warned
=yes ;;
5397 GDC
="$ac_cv_prog_GDC"
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5401 $as_echo_n "checking whether the D compiler works... " >&6; }
5402 if ${acx_cv_d_compiler_works+:} false
; then :
5403 $as_echo_n "(cached) " >&6
5405 cat >conftest.d
<<EOF
5406 module conftest; int main() { return 0; }
5408 acx_cv_d_compiler_works
=no
5409 if test "x$GDC" != xno
; then
5410 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5411 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5412 acx_cv_d_compiler_works
=yes
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5418 $as_echo "$acx_cv_d_compiler_works" >&6; }
5419 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5426 # Do configure tests with the C++ compiler, since that's what we build with.
5428 ac_cpp
='$CXXCPP $CPPFLAGS'
5429 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5434 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5435 # optimizations to be activated explicitly by the toplevel.
5437 */prev-gcc
/xgcc
*) ;;
5438 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5439 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5445 # Determine PICFLAG for target gnatlib.
5451 # PIC is the default on some targets or must not be used.
5453 # For darwin, common symbols are not allowed in MH_DYLIB files
5455 # If we are using a compiler supporting mdynamic-no-pic
5456 # and the option has been tested as safe to add, then cancel
5457 # it here, since the code generated is incompatible with shared
5459 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5460 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5464 # PIC is the default.
5467 # PIC is the default for 64-bit PA HP-UX.
5469 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5471 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5473 i
[34567]86-*-interix[3-9]*)
5474 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5475 # Instead, we relocate shared libraries at runtime.
5477 i
[34567]86-*-nto-qnx*)
5478 # QNX uses GNU C++, but need to define -shared option too, otherwise
5480 PICFLAG_FOR_TARGET
='-fPIC -shared'
5482 i
[34567]86-pc-msdosdjgpp*)
5483 # DJGPP does not support shared libraries at all.
5486 # On IA64 HP-UX, PIC is the default but the pic flag
5487 # sets the default TLS model and affects inlining.
5488 PICFLAG_FOR_TARGET
=-fPIC
5491 PICFLAG_FOR_TARGET
=-fpic
5494 # PIC is the default.
5496 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5497 # All AIX code is PIC.
5500 # Some targets support both -fPIC and -fpic, but prefer the latter.
5502 i
[34567]86-*-* | x86_64-
*-*)
5503 PICFLAG_FOR_TARGET
=-fpic
5505 # FIXME: Override -fPIC default in libgcc only?
5506 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5507 PICFLAG_FOR_TARGET
=-fpic
5510 PICFLAG_FOR_TARGET
=-fpic
5512 # Default to -fPIC unless specified otherwise.
5514 PICFLAG_FOR_TARGET
=-fPIC
5518 # If the user explicitly uses -fpic/-fPIC, keep that.
5519 case "${CFLAGS_FOR_TARGET}" in
5521 PICFLAG_FOR_TARGET
=-fpic
5524 PICFLAG_FOR_TARGET
=-fPIC
5530 # -------------------------
5531 # Check C compiler features
5532 # -------------------------
5536 ac_cpp
='$CXXCPP $CPPFLAGS'
5537 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5541 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5542 if test -z "$CXXCPP"; then
5543 if ${ac_cv_prog_CXXCPP+:} false
; then :
5544 $as_echo_n "(cached) " >&6
5546 # Double quotes because CXXCPP needs to be expanded
5547 for CXXCPP
in "$CXX -E" "/lib/cpp"
5550 for ac_cxx_preproc_warn_flag
in '' yes
5552 # Use a header file that comes with gcc, so configuring glibc
5553 # with a fresh cross-compiler works.
5554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555 # <limits.h> exists even on freestanding compilers.
5556 # On the NeXT, cc -E runs the code through the compiler's parser,
5557 # not just through cpp. "Syntax error" is here to catch this case.
5558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5561 # include <limits.h>
5563 # include <assert.h>
5567 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5570 # Broken: fails on valid input.
5573 rm -f conftest.err conftest.i conftest.
$ac_ext
5575 # OK, works on sane cases. Now check whether nonexistent headers
5576 # can be detected and how.
5577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5581 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5582 # Broken: success on invalid input.
5585 # Passes both tests.
5589 rm -f conftest.err conftest.i conftest.
$ac_ext
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.i conftest.err conftest.
$ac_ext
5594 if $ac_preproc_ok; then :
5599 ac_cv_prog_CXXCPP
=$CXXCPP
5602 CXXCPP
=$ac_cv_prog_CXXCPP
5604 ac_cv_prog_CXXCPP
=$CXXCPP
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5607 $as_echo "$CXXCPP" >&6; }
5609 for ac_cxx_preproc_warn_flag
in '' yes
5611 # Use a header file that comes with gcc, so configuring glibc
5612 # with a fresh cross-compiler works.
5613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614 # <limits.h> exists even on freestanding compilers.
5615 # On the NeXT, cc -E runs the code through the compiler's parser,
5616 # not just through cpp. "Syntax error" is here to catch this case.
5617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5620 # include <limits.h>
5622 # include <assert.h>
5626 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5629 # Broken: fails on valid input.
5632 rm -f conftest.err conftest.i conftest.
$ac_ext
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <ac_nonexistent.h>
5640 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5641 # Broken: success on invalid input.
5644 # Passes both tests.
5648 rm -f conftest.err conftest.i conftest.
$ac_ext
5651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652 rm -f conftest.i conftest.err conftest.
$ac_ext
5653 if $ac_preproc_ok; then :
5656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5659 See \`config.log' for more details" "$LINENO" 5; }
5663 ac_cpp
='$CXXCPP $CPPFLAGS'
5664 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5670 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5671 if ${ac_cv_path_GREP+:} false
; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -z "$GREP"; then
5675 ac_path_GREP_found
=false
5676 # Loop through the user's path and test for each of PROGNAME-LIST
5677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5678 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5681 test -z "$as_dir" && as_dir
=.
5682 for ac_prog
in grep ggrep
; do
5683 for ac_exec_ext
in '' $ac_executable_extensions; do
5684 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5685 as_fn_executable_p
"$ac_path_GREP" ||
continue
5686 # Check for GNU ac_path_GREP and select it if it is found.
5687 # Check for GNU $ac_path_GREP
5688 case `"$ac_path_GREP" --version 2>&1` in
5690 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5693 $as_echo_n 0123456789 >"conftest.in"
5696 cat "conftest.in" "conftest.in" >"conftest.tmp"
5697 mv "conftest.tmp" "conftest.in"
5698 cp "conftest.in" "conftest.nl"
5699 $as_echo 'GREP' >> "conftest.nl"
5700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5701 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5702 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5703 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5704 # Best one so far, save it but keep looking for a better one
5705 ac_cv_path_GREP
="$ac_path_GREP"
5706 ac_path_GREP_max
=$ac_count
5708 # 10*(2^10) chars as input seems more than enough
5709 test $ac_count -gt 10 && break
5711 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5714 $ac_path_GREP_found && break 3
5719 if test -z "$ac_cv_path_GREP"; then
5720 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5723 ac_cv_path_GREP
=$GREP
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5728 $as_echo "$ac_cv_path_GREP" >&6; }
5729 GREP
="$ac_cv_path_GREP"
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5733 $as_echo_n "checking for egrep... " >&6; }
5734 if ${ac_cv_path_EGREP+:} false
; then :
5735 $as_echo_n "(cached) " >&6
5737 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5738 then ac_cv_path_EGREP
="$GREP -E"
5740 if test -z "$EGREP"; then
5741 ac_path_EGREP_found
=false
5742 # Loop through the user's path and test for each of PROGNAME-LIST
5743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5744 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5747 test -z "$as_dir" && as_dir
=.
5748 for ac_prog
in egrep; do
5749 for ac_exec_ext
in '' $ac_executable_extensions; do
5750 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5751 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5752 # Check for GNU ac_path_EGREP and select it if it is found.
5753 # Check for GNU $ac_path_EGREP
5754 case `"$ac_path_EGREP" --version 2>&1` in
5756 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5759 $as_echo_n 0123456789 >"conftest.in"
5762 cat "conftest.in" "conftest.in" >"conftest.tmp"
5763 mv "conftest.tmp" "conftest.in"
5764 cp "conftest.in" "conftest.nl"
5765 $as_echo 'EGREP' >> "conftest.nl"
5766 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5767 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5768 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5769 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5770 # Best one so far, save it but keep looking for a better one
5771 ac_cv_path_EGREP
="$ac_path_EGREP"
5772 ac_path_EGREP_max
=$ac_count
5774 # 10*(2^10) chars as input seems more than enough
5775 test $ac_count -gt 10 && break
5777 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5780 $ac_path_EGREP_found && break 3
5785 if test -z "$ac_cv_path_EGREP"; then
5786 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5789 ac_cv_path_EGREP
=$EGREP
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5795 $as_echo "$ac_cv_path_EGREP" >&6; }
5796 EGREP
="$ac_cv_path_EGREP"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5800 $as_echo_n "checking for ANSI C header files... " >&6; }
5801 if ${ac_cv_header_stdc+:} false
; then :
5802 $as_echo_n "(cached) " >&6
5804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5819 if ac_fn_cxx_try_compile
"$LINENO"; then :
5820 ac_cv_header_stdc
=yes
5822 ac_cv_header_stdc
=no
5824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5826 if test $ac_cv_header_stdc = yes; then
5827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5834 $EGREP "memchr" >/dev
/null
2>&1; then :
5837 ac_cv_header_stdc
=no
5843 if test $ac_cv_header_stdc = yes; then
5844 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851 $EGREP "free" >/dev
/null
2>&1; then :
5854 ac_cv_header_stdc
=no
5860 if test $ac_cv_header_stdc = yes; then
5861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5862 if test "$cross_compiling" = yes; then :
5865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5869 #if ((' ' & 0x0FF) == 0x020)
5870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5873 # define ISLOWER(c) \
5874 (('a' <= (c) && (c) <= 'i') \
5875 || ('j' <= (c) && (c) <= 'r') \
5876 || ('s' <= (c) && (c) <= 'z'))
5877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5885 for (i = 0; i < 256; i++)
5886 if (XOR (islower (i), ISLOWER (i))
5887 || toupper (i) != TOUPPER (i))
5892 if ac_fn_cxx_try_run
"$LINENO"; then :
5895 ac_cv_header_stdc
=no
5897 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5898 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5904 $as_echo "$ac_cv_header_stdc" >&6; }
5905 if test $ac_cv_header_stdc = yes; then
5907 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5911 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5912 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5913 inttypes.h stdint.h unistd.h
5915 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5918 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5919 cat >>confdefs.h
<<_ACEOF
5920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5929 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5930 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5937 if test "$MINIX" = yes; then
5939 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5942 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5945 $as_echo "#define _MINIX 1" >>confdefs.h
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5951 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5952 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5953 $as_echo_n "(cached) " >&6
5955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5958 # define __EXTENSIONS__ 1
5959 $ac_includes_default
5968 if ac_fn_cxx_try_compile
"$LINENO"; then :
5969 ac_cv_safe_to_define___extensions__
=yes
5971 ac_cv_safe_to_define___extensions__
=no
5973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5976 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5977 test $ac_cv_safe_to_define___extensions__ = yes &&
5978 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5980 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5982 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5984 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5986 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5991 ac_cpp
='$CPP $CPPFLAGS'
5992 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5996 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5997 # On Suns, sometimes $CPP names a directory.
5998 if test -n "$CPP" && test -d "$CPP"; then
6001 if test -z "$CPP"; then
6002 if ${ac_cv_prog_CPP+:} false
; then :
6003 $as_echo_n "(cached) " >&6
6005 # Double quotes because CPP needs to be expanded
6006 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6009 for ac_c_preproc_warn_flag
in '' yes
6011 # Use a header file that comes with gcc, so configuring glibc
6012 # with a fresh cross-compiler works.
6013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6014 # <limits.h> exists even on freestanding compilers.
6015 # On the NeXT, cc -E runs the code through the compiler's parser,
6016 # not just through cpp. "Syntax error" is here to catch this case.
6017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6020 # include <limits.h>
6022 # include <assert.h>
6026 if ac_fn_c_try_cpp
"$LINENO"; then :
6029 # Broken: fails on valid input.
6032 rm -f conftest.err conftest.i conftest.
$ac_ext
6034 # OK, works on sane cases. Now check whether nonexistent headers
6035 # can be detected and how.
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <ac_nonexistent.h>
6040 if ac_fn_c_try_cpp
"$LINENO"; then :
6041 # Broken: success on invalid input.
6044 # Passes both tests.
6048 rm -f conftest.err conftest.i conftest.
$ac_ext
6051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6052 rm -f conftest.i conftest.err conftest.
$ac_ext
6053 if $ac_preproc_ok; then :
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6066 $as_echo "$CPP" >&6; }
6068 for ac_c_preproc_warn_flag
in '' yes
6070 # Use a header file that comes with gcc, so configuring glibc
6071 # with a fresh cross-compiler works.
6072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6073 # <limits.h> exists even on freestanding compilers.
6074 # On the NeXT, cc -E runs the code through the compiler's parser,
6075 # not just through cpp. "Syntax error" is here to catch this case.
6076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6079 # include <limits.h>
6081 # include <assert.h>
6085 if ac_fn_c_try_cpp
"$LINENO"; then :
6088 # Broken: fails on valid input.
6091 rm -f conftest.err conftest.i conftest.
$ac_ext
6093 # OK, works on sane cases. Now check whether nonexistent headers
6094 # can be detected and how.
6095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 #include <ac_nonexistent.h>
6099 if ac_fn_c_try_cpp
"$LINENO"; then :
6100 # Broken: success on invalid input.
6103 # Passes both tests.
6107 rm -f conftest.err conftest.i conftest.
$ac_ext
6110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6111 rm -f conftest.i conftest.err conftest.
$ac_ext
6112 if $ac_preproc_ok; then :
6115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6117 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6118 See \`config.log' for more details" "$LINENO" 5; }
6122 ac_cpp
='$CXXCPP $CPPFLAGS'
6123 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6128 $as_echo_n "checking for inline... " >&6; }
6129 if ${ac_cv_c_inline+:} false
; then :
6130 $as_echo_n "(cached) " >&6
6133 for ac_kw
in inline __inline__ __inline
; do
6134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6138 static $ac_kw foo_t static_foo () {return 0; }
6139 $ac_kw foo_t foo () {return 0; }
6143 if ac_fn_cxx_try_compile
"$LINENO"; then :
6144 ac_cv_c_inline
=$ac_kw
6146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6147 test "$ac_cv_c_inline" != no
&& break
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6152 $as_echo "$ac_cv_c_inline" >&6; }
6154 case $ac_cv_c_inline in
6157 case $ac_cv_c_inline in
6159 *) ac_val
=$ac_cv_c_inline;;
6161 cat >>confdefs.h
<<_ACEOF
6163 #define inline $ac_val
6170 # Check whether --enable-largefile was given.
6171 if test "${enable_largefile+set}" = set; then :
6172 enableval
=$enable_largefile;
6175 if test "$enable_largefile" != no
; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6178 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6179 if ${ac_cv_sys_largefile_CC+:} false
; then :
6180 $as_echo_n "(cached) " >&6
6182 ac_cv_sys_largefile_CC
=no
6183 if test "$GCC" != yes; then
6186 # IRIX 6.2 and later do not support large files by default,
6187 # so use the C compiler's -n32 option if that helps.
6188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 #include <sys/types.h>
6191 /* Check that off_t can represent 2**63 - 1 correctly.
6192 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6193 since some C++ compilers masquerading as C compilers
6194 incorrectly reject 9223372036854775807. */
6195 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6196 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6197 && LARGE_OFF_T % 2147483647 == 1)
6207 if ac_fn_cxx_try_compile
"$LINENO"; then :
6210 rm -f core conftest.err conftest.
$ac_objext
6212 if ac_fn_cxx_try_compile
"$LINENO"; then :
6213 ac_cv_sys_largefile_CC
=' -n32'; break
6215 rm -f core conftest.err conftest.
$ac_objext
6219 rm -f conftest.
$ac_ext
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6223 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6224 if test "$ac_cv_sys_largefile_CC" != no
; then
6225 CC
=$CC$ac_cv_sys_largefile_CC
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6229 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6230 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6231 $as_echo_n "(cached) " >&6
6234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #include <sys/types.h>
6237 /* Check that off_t can represent 2**63 - 1 correctly.
6238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6239 since some C++ compilers masquerading as C compilers
6240 incorrectly reject 9223372036854775807. */
6241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6243 && LARGE_OFF_T % 2147483647 == 1)
6253 if ac_fn_cxx_try_compile
"$LINENO"; then :
6254 ac_cv_sys_file_offset_bits
=no
; break
6256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 #define _FILE_OFFSET_BITS 64
6260 #include <sys/types.h>
6261 /* Check that off_t can represent 2**63 - 1 correctly.
6262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6263 since some C++ compilers masquerading as C compilers
6264 incorrectly reject 9223372036854775807. */
6265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6267 && LARGE_OFF_T % 2147483647 == 1)
6277 if ac_fn_cxx_try_compile
"$LINENO"; then :
6278 ac_cv_sys_file_offset_bits
=64; break
6280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6281 ac_cv_sys_file_offset_bits
=unknown
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6286 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6287 case $ac_cv_sys_file_offset_bits in #(
6290 cat >>confdefs.h
<<_ACEOF
6291 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6296 if test $ac_cv_sys_file_offset_bits = unknown
; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6298 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6299 if ${ac_cv_sys_large_files+:} false
; then :
6300 $as_echo_n "(cached) " >&6
6303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 #include <sys/types.h>
6306 /* Check that off_t can represent 2**63 - 1 correctly.
6307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6308 since some C++ compilers masquerading as C compilers
6309 incorrectly reject 9223372036854775807. */
6310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6312 && LARGE_OFF_T % 2147483647 == 1)
6322 if ac_fn_cxx_try_compile
"$LINENO"; then :
6323 ac_cv_sys_large_files
=no
; break
6325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 #define _LARGE_FILES 1
6329 #include <sys/types.h>
6330 /* Check that off_t can represent 2**63 - 1 correctly.
6331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6332 since some C++ compilers masquerading as C compilers
6333 incorrectly reject 9223372036854775807. */
6334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6336 && LARGE_OFF_T % 2147483647 == 1)
6346 if ac_fn_cxx_try_compile
"$LINENO"; then :
6347 ac_cv_sys_large_files
=1; break
6349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6350 ac_cv_sys_large_files
=unknown
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6355 $as_echo "$ac_cv_sys_large_files" >&6; }
6356 case $ac_cv_sys_large_files in #(
6359 cat >>confdefs.h
<<_ACEOF
6360 #define _LARGE_FILES $ac_cv_sys_large_files
6370 # The cast to long int works around a bug in the HP C Compiler
6371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6373 # This bug is HP SR number 8606223364.
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6375 $as_echo_n "checking size of ino_t... " >&6; }
6376 if ${ac_cv_sizeof_ino_t+:} false
; then :
6377 $as_echo_n "(cached) " >&6
6379 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6382 if test "$ac_cv_type_ino_t" = yes; then
6383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6385 as_fn_error
77 "cannot compute sizeof (ino_t)
6386 See \`config.log' for more details" "$LINENO" 5; }
6388 ac_cv_sizeof_ino_t
=0
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6394 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6398 cat >>confdefs.h
<<_ACEOF
6399 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6403 # The cast to long int works around a bug in the HP C Compiler
6404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6406 # This bug is HP SR number 8606223364.
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6408 $as_echo_n "checking size of dev_t... " >&6; }
6409 if ${ac_cv_sizeof_dev_t+:} false
; then :
6410 $as_echo_n "(cached) " >&6
6412 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6415 if test "$ac_cv_type_dev_t" = yes; then
6416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6418 as_fn_error
77 "cannot compute sizeof (dev_t)
6419 See \`config.log' for more details" "$LINENO" 5; }
6421 ac_cv_sizeof_dev_t
=0
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6427 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6431 cat >>confdefs.h
<<_ACEOF
6432 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6437 # Select the right stat being able to handle 64bit inodes, if needed.
6438 if test "$enable_largefile" != no
; then
6439 case "$host, $build" in
6440 *-*-aix*,*|
*,*-*-aix*)
6441 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6443 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6450 # sizeof(char) is 1 by definition.
6451 # The cast to long int works around a bug in the HP C Compiler
6452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6454 # This bug is HP SR number 8606223364.
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6456 $as_echo_n "checking size of void *... " >&6; }
6457 if ${ac_cv_sizeof_void_p+:} false
; then :
6458 $as_echo_n "(cached) " >&6
6460 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6463 if test "$ac_cv_type_void_p" = yes; then
6464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6466 as_fn_error
77 "cannot compute sizeof (void *)
6467 See \`config.log' for more details" "$LINENO" 5; }
6469 ac_cv_sizeof_void_p
=0
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6475 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6479 cat >>confdefs.h
<<_ACEOF
6480 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6484 # The cast to long int works around a bug in the HP C Compiler
6485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6487 # This bug is HP SR number 8606223364.
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6489 $as_echo_n "checking size of short... " >&6; }
6490 if ${ac_cv_sizeof_short+:} false
; then :
6491 $as_echo_n "(cached) " >&6
6493 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6496 if test "$ac_cv_type_short" = yes; then
6497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6499 as_fn_error
77 "cannot compute sizeof (short)
6500 See \`config.log' for more details" "$LINENO" 5; }
6502 ac_cv_sizeof_short
=0
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6508 $as_echo "$ac_cv_sizeof_short" >&6; }
6512 cat >>confdefs.h
<<_ACEOF
6513 #define SIZEOF_SHORT $ac_cv_sizeof_short
6517 # The cast to long int works around a bug in the HP C Compiler
6518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6520 # This bug is HP SR number 8606223364.
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6522 $as_echo_n "checking size of int... " >&6; }
6523 if ${ac_cv_sizeof_int+:} false
; then :
6524 $as_echo_n "(cached) " >&6
6526 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6529 if test "$ac_cv_type_int" = yes; then
6530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6532 as_fn_error
77 "cannot compute sizeof (int)
6533 See \`config.log' for more details" "$LINENO" 5; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6541 $as_echo "$ac_cv_sizeof_int" >&6; }
6545 cat >>confdefs.h
<<_ACEOF
6546 #define SIZEOF_INT $ac_cv_sizeof_int
6550 # The cast to long int works around a bug in the HP C Compiler
6551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6553 # This bug is HP SR number 8606223364.
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6555 $as_echo_n "checking size of long... " >&6; }
6556 if ${ac_cv_sizeof_long+:} false
; then :
6557 $as_echo_n "(cached) " >&6
6559 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6562 if test "$ac_cv_type_long" = yes; then
6563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6565 as_fn_error
77 "cannot compute sizeof (long)
6566 See \`config.log' for more details" "$LINENO" 5; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6574 $as_echo "$ac_cv_sizeof_long" >&6; }
6578 cat >>confdefs.h
<<_ACEOF
6579 #define SIZEOF_LONG $ac_cv_sizeof_long
6583 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6584 if test "x$ac_cv_type_long_long" = xyes
; then :
6586 cat >>confdefs.h
<<_ACEOF
6587 #define HAVE_LONG_LONG 1
6590 # The cast to long int works around a bug in the HP C Compiler
6591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6593 # This bug is HP SR number 8606223364.
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6595 $as_echo_n "checking size of long long... " >&6; }
6596 if ${ac_cv_sizeof_long_long+:} false
; then :
6597 $as_echo_n "(cached) " >&6
6599 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6602 if test "$ac_cv_type_long_long" = yes; then
6603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6605 as_fn_error
77 "cannot compute sizeof (long long)
6606 See \`config.log' for more details" "$LINENO" 5; }
6608 ac_cv_sizeof_long_long
=0
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6614 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6618 cat >>confdefs.h
<<_ACEOF
6619 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6625 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6626 case $ac_cv_c_int8_t in #(
6630 cat >>confdefs.h
<<_ACEOF
6631 #define int8_t $ac_cv_c_int8_t
6636 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6637 case $ac_cv_c_int16_t in #(
6641 cat >>confdefs.h
<<_ACEOF
6642 #define int16_t $ac_cv_c_int16_t
6647 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6648 case $ac_cv_c_int32_t in #(
6652 cat >>confdefs.h
<<_ACEOF
6653 #define int32_t $ac_cv_c_int32_t
6658 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6659 case $ac_cv_c_int64_t in #(
6663 cat >>confdefs.h
<<_ACEOF
6664 #define int64_t $ac_cv_c_int64_t
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6671 $as_echo_n "checking for unsigned long long int... " >&6; }
6672 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6673 $as_echo_n "(cached) " >&6
6675 ac_cv_type_unsigned_long_long_int
=yes
6676 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6680 /* For now, do not test the preprocessor; as of 2007 there are too many
6681 implementations with broken preprocessors. Perhaps this can
6682 be revisited in 2012. In the meantime, code should not expect
6683 #if to work with literals wider than 32 bits. */
6684 /* Test literals. */
6685 long long int ll = 9223372036854775807ll;
6686 long long int nll = -9223372036854775807LL;
6687 unsigned long long int ull = 18446744073709551615ULL;
6688 /* Test constant expressions. */
6689 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6691 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6697 /* Test availability of runtime routines for shift and division. */
6698 long long int llmax = 9223372036854775807ll;
6699 unsigned long long int ullmax = 18446744073709551615ull;
6700 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6701 | (llmax / ll) | (llmax % ll)
6702 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6703 | (ullmax / ull) | (ullmax % ull));
6709 if ac_fn_cxx_try_link
"$LINENO"; then :
6712 ac_cv_type_unsigned_long_long_int
=no
6714 rm -f core conftest.err conftest.
$ac_objext \
6715 conftest
$ac_exeext conftest.
$ac_ext
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6719 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6720 if test $ac_cv_type_unsigned_long_long_int = yes; then
6722 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6729 $as_echo_n "checking for long long int... " >&6; }
6730 if ${ac_cv_type_long_long_int+:} false
; then :
6731 $as_echo_n "(cached) " >&6
6733 ac_cv_type_long_long_int
=yes
6734 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6735 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6736 if test $ac_cv_type_long_long_int = yes; then
6737 if test "$cross_compiling" = yes; then :
6740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6745 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6746 # define LLONG_MAX (HALF - 1 + HALF)
6751 long long int n = 1;
6755 long long int m = n << i;
6758 if (LLONG_MAX / 2 < m)
6766 if ac_fn_cxx_try_run
"$LINENO"; then :
6769 ac_cv_type_long_long_int
=no
6771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6779 $as_echo "$ac_cv_type_long_long_int" >&6; }
6780 if test $ac_cv_type_long_long_int = yes; then
6782 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6788 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6789 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6791 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6794 test $ac_cv_type_long_long_int = yes \
6795 && ac_type
='long long int' \
6796 || ac_type
='long int'
6798 cat >>confdefs.h
<<_ACEOF
6799 #define intmax_t $ac_type
6806 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6807 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6809 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6812 for ac_type
in 'int' 'long int' 'long long int'; do
6813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 $ac_includes_default
6819 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6821 return test_array [0];
6827 if ac_fn_cxx_try_compile
"$LINENO"; then :
6829 cat >>confdefs.h
<<_ACEOF
6830 #define intptr_t $ac_type
6835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6836 test -z "$ac_type" && break
6841 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6842 case $ac_cv_c_uint8_t in #(
6846 $as_echo "#define _UINT8_T 1" >>confdefs.h
6849 cat >>confdefs.h
<<_ACEOF
6850 #define uint8_t $ac_cv_c_uint8_t
6855 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6856 case $ac_cv_c_uint16_t in #(
6861 cat >>confdefs.h
<<_ACEOF
6862 #define uint16_t $ac_cv_c_uint16_t
6867 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6868 case $ac_cv_c_uint32_t in #(
6872 $as_echo "#define _UINT32_T 1" >>confdefs.h
6875 cat >>confdefs.h
<<_ACEOF
6876 #define uint32_t $ac_cv_c_uint32_t
6881 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6882 case $ac_cv_c_uint64_t in #(
6886 $as_echo "#define _UINT64_T 1" >>confdefs.h
6889 cat >>confdefs.h
<<_ACEOF
6890 #define uint64_t $ac_cv_c_uint64_t
6897 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6898 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6900 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6903 test $ac_cv_type_unsigned_long_long_int = yes \
6904 && ac_type
='unsigned long long int' \
6905 || ac_type
='unsigned long int'
6907 cat >>confdefs.h
<<_ACEOF
6908 #define uintmax_t $ac_type
6915 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6916 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6918 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6921 for ac_type
in 'unsigned int' 'unsigned long int' \
6922 'unsigned long long int'; do
6923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925 $ac_includes_default
6929 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6931 return test_array [0];
6937 if ac_fn_cxx_try_compile
"$LINENO"; then :
6939 cat >>confdefs.h
<<_ACEOF
6940 #define uintptr_t $ac_type
6945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6946 test -z "$ac_type" && break
6963 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6964 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6967 # check what underlying integer type int64_t uses
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6969 $as_echo_n "checking for int64_t underlying type... " >&6; }
6970 if ${ac_cv_int64_t_type+:} false
; then :
6971 $as_echo_n "(cached) " >&6
6974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6977 #ifdef HAVE_STDINT_H
6980 template <typename T> struct X { };
6982 struct X<long> { typedef long t; };
6992 if ac_fn_cxx_try_compile
"$LINENO"; then :
6993 ac_cv_int64_t_type
=long
6995 ac_cv_int64_t_type
="long long"
6997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7000 $as_echo "$ac_cv_int64_t_type" >&6; }
7001 if test "$ac_cv_int64_t_type" = "long"; then
7003 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7009 #ifdef HAVE_STDINT_H
7012 template <typename T> struct X { };
7014 struct X<long long> { typedef long long t; };
7024 if ac_fn_cxx_try_compile
"$LINENO"; then :
7027 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
7029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7033 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7034 if ${ac_cv_std_swap_in_utility+:} false
; then :
7035 $as_echo_n "(cached) " >&6
7038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7046 int a, b; std::swap(a,b);
7051 if ac_fn_cxx_try_compile
"$LINENO"; then :
7052 ac_cv_std_swap_in_utility
=yes
7054 ac_cv_std_swap_in_utility
=no
7056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7059 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7060 if test $ac_cv_std_swap_in_utility = yes; then
7062 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7066 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7067 # If the host compiler is affected by the bug, and we build with optimization
7068 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7069 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7070 # Since there is no reliable feature check for the presence of this bug,
7071 # we simply use a GCC version number check. (This should never trigger for
7072 # stages 2 or 3 of a native bootstrap.)
7074 if test "$GCC" = yes; then
7075 saved_CXXFLAGS
="$CXXFLAGS"
7077 # The following test compilation will succeed if and only if $CXX accepts
7078 # -fno-strict-aliasing *and* is older than GCC 4.3.
7079 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7081 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7085 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7086 #error compiler not affected by placement new aliasing bug
7090 if ac_fn_cxx_try_compile
"$LINENO"; then :
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7092 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7099 CXXFLAGS
="$saved_CXXFLAGS"
7105 # ---------------------
7106 # Warnings and checking
7107 # ---------------------
7109 # Check $CC warning features (if it's GCC).
7110 # We want to use -pedantic, but we don't want warnings about
7113 # * overlong strings
7114 # * C++11 narrowing conversions in { }
7115 # So, we only use -pedantic if we can disable those warnings.
7117 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7118 # Check whether --enable-build-format-warnings was given.
7119 if test "${enable_build_format_warnings+set}" = set; then :
7120 enableval
=$enable_build_format_warnings;
7122 enable_build_format_warnings
=yes
7125 if test $enable_build_format_warnings = no
; then :
7131 ac_cpp
='$CXXCPP $CPPFLAGS'
7132 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7133 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7134 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7137 save_CXXFLAGS
="$CXXFLAGS"
7138 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7139 # Do the check with the no- prefix removed since gcc silently
7140 # accepts any -Wno-* option on purpose
7141 case $real_option in
7142 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7143 *) option
=$real_option ;;
7145 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7148 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7149 if eval \
${$as_acx_Woption+:} false
; then :
7150 $as_echo_n "(cached) " >&6
7153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7164 if ac_fn_cxx_try_compile
"$LINENO"; then :
7165 eval "$as_acx_Woption=yes"
7167 eval "$as_acx_Woption=no"
7169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 eval ac_res
=\$
$as_acx_Woption
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7174 $as_echo "$ac_res" >&6; }
7175 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7176 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7179 CXXFLAGS
="$save_CXXFLAGS"
7181 ac_cpp
='$CXXCPP $CPPFLAGS'
7182 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7189 ac_cpp
='$CPP $CPPFLAGS'
7190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7195 save_CFLAGS
="$CFLAGS"
7196 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7197 # Do the check with the no- prefix removed since gcc silently
7198 # accepts any -Wno-* option on purpose
7199 case $real_option in
7200 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7201 *) option
=$real_option ;;
7203 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7206 $as_echo_n "checking whether $CC supports $option... " >&6; }
7207 if eval \
${$as_acx_Woption+:} false
; then :
7208 $as_echo_n "(cached) " >&6
7211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7222 if ac_fn_c_try_compile
"$LINENO"; then :
7223 eval "$as_acx_Woption=yes"
7225 eval "$as_acx_Woption=no"
7227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7230 eval ac_res
=\$
$as_acx_Woption
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7232 $as_echo "$ac_res" >&6; }
7233 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7234 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7237 CFLAGS
="$save_CFLAGS"
7239 ac_cpp
='$CXXCPP $CPPFLAGS'
7240 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7246 ac_cpp
='$CXXCPP $CPPFLAGS'
7247 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7252 save_CXXFLAGS
="$CXXFLAGS"
7253 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7254 # Do the check with the no- prefix removed since gcc silently
7255 # accepts any -Wno-* option on purpose
7256 case $real_option in
7257 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7258 *) option
=$real_option ;;
7260 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7263 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7264 if eval \
${$as_acx_Woption+:} false
; then :
7265 $as_echo_n "(cached) " >&6
7268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7279 if ac_fn_cxx_try_compile
"$LINENO"; then :
7280 eval "$as_acx_Woption=yes"
7282 eval "$as_acx_Woption=no"
7284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7287 eval ac_res
=\$
$as_acx_Woption
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7289 $as_echo "$ac_res" >&6; }
7290 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7291 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7294 CXXFLAGS
="$save_CXXFLAGS"
7296 ac_cpp
='$CXXCPP $CPPFLAGS'
7297 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7303 ac_cpp
='$CPP $CPPFLAGS'
7304 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7309 save_CFLAGS
="$CFLAGS"
7310 for real_option
in -Wold-style-definition -Wc++-compat; do
7311 # Do the check with the no- prefix removed since gcc silently
7312 # accepts any -Wno-* option on purpose
7313 case $real_option in
7314 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7315 *) option
=$real_option ;;
7317 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7320 $as_echo_n "checking whether $CC supports $option... " >&6; }
7321 if eval \
${$as_acx_Woption+:} false
; then :
7322 $as_echo_n "(cached) " >&6
7325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7336 if ac_fn_c_try_compile
"$LINENO"; then :
7337 eval "$as_acx_Woption=yes"
7339 eval "$as_acx_Woption=no"
7341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7344 eval ac_res
=\$
$as_acx_Woption
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7346 $as_echo "$ac_res" >&6; }
7347 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7348 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7351 CFLAGS
="$save_CFLAGS"
7353 ac_cpp
='$CXXCPP $CPPFLAGS'
7354 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7360 ac_cpp
='$CXXCPP $CPPFLAGS'
7361 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7365 # Do the check with the no- prefix removed from the warning options
7366 # since gcc silently accepts any -Wno-* option on purpose
7367 if test "$GXX" = yes; then :
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7369 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7370 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7371 $as_echo_n "(cached) " >&6
7373 save_CXXFLAGS
="$CXXFLAGS"
7374 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7386 if ac_fn_cxx_try_compile
"$LINENO"; then :
7387 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7389 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7392 CXXFLAGS
="$save_CXXFLAGS"
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7395 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7396 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7397 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7402 ac_cpp
='$CXXCPP $CPPFLAGS'
7403 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7409 ac_cpp
='$CXXCPP $CPPFLAGS'
7410 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7414 # Check whether --enable-werror-always was given.
7415 if test "${enable_werror_always+set}" = set; then :
7416 enableval
=$enable_werror_always;
7418 enable_werror_always
=no
7421 if test $enable_werror_always = yes; then :
7422 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7426 ac_cpp
='$CXXCPP $CPPFLAGS'
7427 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7433 # The above macros do nothing if the compiler is not GCC. However, the
7434 # Makefile has more goo to add other flags, so these variables are used
7435 # to enable warnings only for GCC.
7438 if test "x$GCC" = "xyes"; then
7439 warn_cflags
='$(GCC_WARN_CFLAGS)'
7440 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7445 # Disable exceptions and RTTI if building with g++
7447 ac_cpp
='$CPP $CPPFLAGS'
7448 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7453 save_CFLAGS
="$CFLAGS"
7454 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7455 # Do the check with the no- prefix removed since gcc silently
7456 # accepts any -Wno-* option on purpose
7457 case $real_option in
7458 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7459 *) option
=$real_option ;;
7461 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7464 $as_echo_n "checking whether $CC supports $option... " >&6; }
7465 if eval \
${$as_acx_Woption+:} false
; then :
7466 $as_echo_n "(cached) " >&6
7469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7480 if ac_fn_c_try_compile
"$LINENO"; then :
7481 eval "$as_acx_Woption=yes"
7483 eval "$as_acx_Woption=no"
7485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7488 eval ac_res
=\$
$as_acx_Woption
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7490 $as_echo "$ac_res" >&6; }
7491 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7492 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7495 CFLAGS
="$save_CFLAGS"
7497 ac_cpp
='$CXXCPP $CPPFLAGS'
7498 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7504 # Enable expensive internal checks
7506 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7510 # Check whether --enable-checking was given.
7511 if test "${enable_checking+set}" = set; then :
7512 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7515 # Determine the default checks.
7516 if test x
$is_release = x
; then
7517 ac_checking_flags
=yes,extra
7519 ac_checking_flags
=release
7523 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7524 for check
in release
$ac_checking_flags
7527 # these set all the flags to specific states
7528 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7529 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7530 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7531 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7532 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7533 ac_types_checking
=1 ;;
7534 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7535 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7536 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7537 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7538 ac_tree_checking
= ; ac_valgrind_checking
= ;
7539 ac_types_checking
= ;;
7540 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7541 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7542 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7543 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7544 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7545 ac_types_checking
=1 ;;
7546 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7547 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7548 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7549 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7550 ac_tree_checking
= ; ac_valgrind_checking
= ;
7551 ac_types_checking
= ;;
7552 # these enable particular checks
7553 assert
) ac_assert_checking
=1 ;;
7554 df
) ac_df_checking
=1 ;;
7555 extra
) ac_extra_checking
=1 ;;
7556 fold) ac_fold_checking
=1 ;;
7557 gc
) ac_gc_checking
=1 ;;
7558 gcac
) ac_gc_always_collect
=1 ;;
7559 gimple
) ac_gimple_checking
=1 ;;
7560 misc
) ac_checking
=1 ;;
7561 rtl
) ac_rtl_checking
=1 ;;
7562 rtlflag
) ac_rtlflag_checking
=1 ;;
7563 runtime
) ac_runtime_checking
=1 ;;
7564 tree
) ac_tree_checking
=1 ;;
7565 types
) ac_types_checking
=1 ;;
7566 valgrind
) ac_valgrind_checking
=1 ;;
7567 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7573 if test x
$ac_checking != x
; then
7575 $as_echo "#define CHECKING_P 1" >>confdefs.h
7577 nocommon_flag
=-fno-common
7579 $as_echo "#define CHECKING_P 0" >>confdefs.h
7583 if test x
$ac_extra_checking != x
; then
7585 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7588 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7591 if test x
$ac_df_checking != x
; then
7593 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7596 if test x
$ac_assert_checking != x
; then
7598 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7601 if test x
$ac_gimple_checking != x
; then
7603 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7607 if test x
$ac_runtime_checking != x
; then
7609 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7612 if test x
$ac_tree_checking != x
; then
7614 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7618 if test x
$ac_types_checking != x
; then
7620 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7624 if test x
$ac_rtl_checking != x
; then
7626 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7629 if test x
$ac_rtlflag_checking != x
; then
7631 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7634 if test x
$ac_gc_checking != x
; then
7636 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7639 if test x
$ac_gc_always_collect != x
; then
7641 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7644 if test x
$ac_fold_checking != x
; then
7646 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7649 valgrind_path_defines
=
7652 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7653 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7661 # It is certainly possible that there's valgrind but no valgrind.h.
7662 # GCC relies on making annotations so we must have both.
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7664 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 #include <valgrind/memcheck.h>
7668 #ifndef VALGRIND_DISCARD
7669 #error VALGRIND_DISCARD not defined
7672 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7673 gcc_cv_header_valgrind_memcheck_h
=yes
7675 gcc_cv_header_valgrind_memcheck_h
=no
7677 rm -f conftest.err conftest.i conftest.
$ac_ext
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7679 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7681 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684 #include <memcheck.h>
7685 #ifndef VALGRIND_DISCARD
7686 #error VALGRIND_DISCARD not defined
7689 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7690 gcc_cv_header_memcheck_h
=yes
7692 gcc_cv_header_memcheck_h
=no
7694 rm -f conftest.err conftest.i conftest.
$ac_ext
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7696 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7697 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7699 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7702 if test $gcc_cv_header_memcheck_h = yes; then
7704 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7708 if test x
$ac_valgrind_checking != x
; then
7710 # Prepare PATH_SEPARATOR.
7711 # The user is always right.
7712 if test "${PATH_SEPARATOR+set}" != set; then
7713 echo "#! /bin/sh" >conf$$.sh
7714 echo "exit 0" >>conf$$.sh
7716 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7724 # Find out how to test for executable files. Don't use a zero-byte file,
7725 # as systems may use methods other than mode bits to determine executability.
7726 cat >conf$$.
file <<_ASEOF
7730 chmod +x conf$$.
file
7731 if test -x conf$$.
file >/dev
/null
2>&1; then
7732 ac_executable_p
="test -x"
7734 ac_executable_p
="test -f"
7738 # Extract the first word of "valgrind", so it can be a program name with args.
7739 set dummy valgrind
; ac_word
=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_path_valgrind_path+:} false
; then :
7743 $as_echo_n "(cached) " >&6
7745 case "$valgrind_path" in
7747 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7750 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7751 for ac_dir
in $PATH; do
7753 test -z "$ac_dir" && ac_dir
=.
7754 for ac_exec_ext
in '' $ac_executable_extensions; do
7755 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7756 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7757 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7767 valgrind_path
="$ac_cv_path_valgrind_path"
7768 if test -n "$valgrind_path"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7770 $as_echo "$valgrind_path" >&6; }
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7776 if test "x$valgrind_path" = "x" \
7777 ||
(test $have_valgrind_h = no \
7778 && test $gcc_cv_header_memcheck_h = no \
7779 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7780 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7782 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7783 valgrind_command
="$valgrind_path -q"
7785 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7791 # Enable code coverage collection
7792 # Check whether --enable-coverage was given.
7793 if test "${enable_coverage+set}" = set; then :
7794 enableval
=$enable_coverage; case "${enableval}" in
7796 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7799 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7802 # a.k.a. --disable-coverage
7806 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7815 # Check whether --enable-gather-detailed-mem-stats was given.
7816 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7817 enableval
=$enable_gather_detailed_mem_stats;
7819 enable_gather_detailed_mem_stats
=no
7822 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7824 cat >>confdefs.h
<<_ACEOF
7825 #define GATHER_STATISTICS $gather_stats
7829 # Check whether --enable-valgrind-annotations was given.
7830 if test "${enable_valgrind_annotations+set}" = set; then :
7831 enableval
=$enable_valgrind_annotations;
7833 enable_valgrind_annotations
=no
7836 if test x
$enable_valgrind_annotations != xno \
7837 ||
test x
$ac_valgrind_checking != x
; then
7838 if (test $have_valgrind_h = no \
7839 && test $gcc_cv_header_memcheck_h = no \
7840 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7841 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7844 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7848 # -------------------------------
7849 # Miscenalleous configure options
7850 # -------------------------------
7852 # Determine whether or not multilibs are enabled.
7853 # Check whether --enable-multilib was given.
7854 if test "${enable_multilib+set}" = set; then :
7855 enableval
=$enable_multilib;
7862 # Determine whether or not multiarch is enabled.
7863 # Check whether --enable-multiarch was given.
7864 if test "${enable_multiarch+set}" = set; then :
7865 enableval
=$enable_multiarch; case "${enableval}" in
7866 yes|no|auto
) enable_multiarch
=$enableval;;
7867 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7870 enable_multiarch
=auto
7873 if test x
${enable_multiarch} = xauto
; then
7874 if test x
${with_native_system_header_dir} != x
; then
7875 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7878 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7879 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7883 if test x
${enable_multiarch} = xyes
; then
7885 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7889 $as_echo_n "checking for multiarch configuration... " >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7892 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7894 # needed for setting the multiarch name for soft-float/hard-float ABIs
7898 # default stack clash protection guard size as power of twos in bytes.
7899 # Please keep these in sync with params.def.
7903 # Keep the default value when the option is not used to 0, this allows us to
7904 # distinguish between the cases where the user specifially set a value via
7905 # configure and when the normal default value is used.
7907 # Check whether --with-stack-clash-protection-guard-size was given.
7908 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7909 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7911 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7914 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7915 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7916 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7917 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
7921 cat >>confdefs.h
<<_ACEOF
7922 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7926 # Specify the number of splits of match.pd to generate.
7928 # Check whether --with-matchpd-partitions was given.
7929 if test "${with_matchpd_partitions+set}" = set; then :
7930 withval
=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS
="$with_matchpd_partitions"
7932 DEFAULT_MATCHPD_PARTITIONS
=10
7935 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7936 as_fn_error $?
"Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7941 # Enable __cxa_atexit for C++.
7942 # Check whether --enable-__cxa_atexit was given.
7943 if test "${enable___cxa_atexit+set}" = set; then :
7944 enableval
=$enable___cxa_atexit;
7948 # Enable C extension for decimal float if target supports it.
7950 # Check whether --enable-decimal-float was given.
7951 if test "${enable_decimal_float+set}" = set; then :
7952 enableval
=$enable_decimal_float;
7953 case $enable_decimal_float in
7954 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7955 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7956 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7963 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7964 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7965 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7966 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7967 enable_decimal_float
=yes
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7971 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7972 enable_decimal_float
=no
7979 # x86's use BID format instead of DPD
7980 case x
$enable_decimal_float in
7983 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7984 enable_decimal_float
=bid
7987 enable_decimal_float
=dpd
7990 default_decimal_float
=$enable_decimal_float
7993 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7994 # dependency on libdecnumber.
7995 default_decimal_float
=dpd
8002 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8004 cat >>confdefs.h
<<_ACEOF
8005 #define ENABLE_DECIMAL_FLOAT $dfp
8009 # Use default_decimal_float for dependency.
8010 enable_decimal_float
=$default_decimal_float
8012 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8014 cat >>confdefs.h
<<_ACEOF
8015 #define ENABLE_DECIMAL_BID_FORMAT $bid
8019 # Enable C extension for fixed-point arithmetic.
8020 # Check whether --enable-fixed-point was given.
8021 if test "${enable_fixed_point+set}" = set; then :
8022 enableval
=$enable_fixed_point;
8027 enable_fixed_point
=yes
8031 enable_fixed_point
=yes
8034 enable_fixed_point
=yes
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8038 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8039 enable_fixed_point
=no
8047 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8049 cat >>confdefs.h
<<_ACEOF
8050 #define ENABLE_FIXED_POINT $fixedpoint
8055 # Pass with no value to take the default
8056 # Pass with a value to specify a thread package
8057 # Check whether --enable-threads was given.
8058 if test "${enable_threads+set}" = set; then :
8059 enableval
=$enable_threads;
8065 # Check whether --enable-tls was given.
8066 if test "${enable_tls+set}" = set; then :
8067 enableval
=$enable_tls;
8070 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8071 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8079 # Check whether --enable-vtable-verify was given.
8080 if test "${enable_vtable_verify+set}" = set; then :
8081 enableval
=$enable_vtable_verify;
8083 enable_vtable_verify
=no
8086 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8088 cat >>confdefs.h
<<_ACEOF
8089 #define ENABLE_VTABLE_VERIFY $vtable_verify
8093 # Check whether --enable-analyzer was given.
8094 if test "${enable_analyzer+set}" = set; then :
8095 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8105 cat >>confdefs.h
<<_ACEOF
8106 #define ENABLE_ANALYZER $analyzer
8110 # Check whether --enable-objc-gc was given.
8111 if test "${enable_objc_gc+set}" = set; then :
8112 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8123 # Check whether --with-dwarf2 was given.
8124 if test "${with_dwarf2+set}" = set; then :
8125 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8131 # Check whether --enable-shared was given.
8132 if test "${enable_shared+set}" = set; then :
8133 enableval
=$enable_shared;
8134 case $enable_shared in
8138 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8139 for pkg
in $enableval; do
8140 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8154 # Check whether --enable-gcov was given.
8155 if test "${enable_gcov+set}" = set; then :
8156 enableval
=$enable_gcov;
8172 # Check whether --with-specs was given.
8173 if test "${with_specs+set}" = set; then :
8174 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8184 # Check whether --with-pkgversion was given.
8185 if test "${with_pkgversion+set}" = set; then :
8186 withval
=$with_pkgversion; case "$withval" in
8187 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8189 *) PKGVERSION
="($withval) " ;;
8200 # Check whether --with-bugurl was given.
8201 if test "${with_bugurl+set}" = set; then :
8202 withval
=$with_bugurl; case "$withval" in
8203 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8206 *) BUGURL
="$withval"
8210 BUGURL
="https://gcc.gnu.org/bugs/"
8220 REPORT_BUGS_TO
="<$BUGURL>"
8221 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8228 # Allow overriding the default URL for documentation
8230 # Check whether --with-documentation-root-url was given.
8231 if test "${with_documentation_root_url+set}" = set; then :
8232 withval
=$with_documentation_root_url; case "$withval" in
8233 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8234 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8235 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8236 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8239 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8244 cat >>confdefs.h
<<_ACEOF
8245 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8249 # Allow overriding the default URL for GCC changes
8251 # Check whether --with-changes-root-url was given.
8252 if test "${with_changes_root_url+set}" = set; then :
8253 withval
=$with_changes_root_url; case "$withval" in
8254 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8255 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8256 */) CHANGES_ROOT_URL
="$withval" ;;
8257 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8260 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8265 cat >>confdefs.h
<<_ACEOF
8266 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8270 # Sanity check enable_languages in case someone does not run the toplevel
8271 # configure # script.
8272 # Check whether --enable-languages was given.
8273 if test "${enable_languages+set}" = set; then :
8274 enableval
=$enable_languages; case ,${enable_languages}, in
8276 # go safe -- we cannot be much sure without the toplevel
8278 # analysis of which target libs are present and usable
8282 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8287 enable_languages
=c
,${enable_languages}
8295 # If top-level libada has been disabled, then wire in install-gnatlib
8296 # invocation with `make install', so that one can build and install
8297 # the library manually with `make -C gcc all gnatlib gnattools install'.
8298 if test x
"$enable_libada" = xno
; then
8299 gnat_install_lib
=gnat-install-lib
8305 if test x
"$enable_as_accelerator_for" != x
; then
8307 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8309 enable_as_accelerator
=yes
8310 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8311 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8312 accel_dir_suffix
=/accel
/${target_noncanonical}
8313 real_target_noncanonical
=${enable_as_accelerator_for}
8319 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8320 tgt
=`echo $tgt | sed 's/=.*//'`
8325 omp_device_property
=omp-device-properties-gcn
8326 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8329 omp_device_property
=omp-device-properties-nvptx
8330 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8333 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8336 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8337 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8339 if test x
"$offload_targets" = x
; then
8340 offload_targets
=$tgt
8342 offload_targets
="$offload_targets,$tgt"
8349 cat >>confdefs.h
<<_ACEOF
8350 #define OFFLOAD_TARGETS "$offload_targets"
8353 if test x
"$enable_offloading" != x
; then
8355 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8359 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8363 if test "x$enable_offload_defaulted" = xyes
; then
8365 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8370 # Check whether --with-multilib-list was given.
8371 if test "${with_multilib_list+set}" = set; then :
8372 withval
=$with_multilib_list; :
8374 with_multilib_list
=default
8379 # Check whether --with-multilib-generator was given.
8380 if test "${with_multilib_generator+set}" = set; then :
8381 withval
=$with_multilib_generator; :
8383 with_multilib_generator
=default
8387 # -------------------------
8388 # Checks for other programs
8389 # -------------------------
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8392 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8394 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8395 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8396 $as_echo_n "(cached) " >&6
8398 cat >conftest.
make <<\_ACEOF
8401 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8403 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8404 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8406 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8408 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8412 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8414 $as_echo "yes" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 SET_MAKE
="MAKE=${MAKE-make}"
8423 # Find some useful tools
8424 for ac_prog
in gawk mawk nawk
awk
8426 # Extract the first word of "$ac_prog", so it can be a program name with args.
8427 set dummy
$ac_prog; ac_word
=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_prog_AWK+:} false
; then :
8431 $as_echo_n "(cached) " >&6
8433 if test -n "$AWK"; then
8434 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8440 test -z "$as_dir" && as_dir
=.
8441 for ac_exec_ext
in '' $ac_executable_extensions; do
8442 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8443 ac_cv_prog_AWK
="$ac_prog"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 if test -n "$AWK"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8456 $as_echo "$AWK" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8463 test -n "$AWK" && break
8466 # We need awk to create options.cc and options.h.
8467 # Bail out if it's missing.
8469 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8473 $as_echo_n "checking whether ln -s works... " >&6; }
8474 if ${gcc_cv_prog_LN_S+:} false
; then :
8475 $as_echo_n "(cached) " >&6
8477 rm -f conftestdata_t
8478 echo >conftestdata_f
8479 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8481 gcc_cv_prog_LN_S
="ln -s"
8483 if ln conftestdata_f conftestdata_t
2>/dev
/null
8487 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8489 gcc_cv_prog_LN_S
="cp -p"
8495 rm -f conftestdata_f conftestdata_t
8498 LN_S
="$gcc_cv_prog_LN_S"
8499 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8501 $as_echo "yes" >&6; }
8503 if test "$gcc_cv_prog_LN_S" = "ln"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8505 $as_echo "no, using ln" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8508 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8513 $as_echo_n "checking whether ln works... " >&6; }
8514 if ${acx_cv_prog_LN+:} false
; then :
8515 $as_echo_n "(cached) " >&6
8517 rm -f conftestdata_t
8518 echo >conftestdata_f
8519 if ln conftestdata_f conftestdata_t
2>/dev
/null
8525 rm -f conftestdata_f conftestdata_t
8528 if test $acx_cv_prog_LN = no
; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8531 $as_echo "no, using $LN" >&6; }
8533 LN
="$acx_cv_prog_LN"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8535 $as_echo "yes" >&6; }
8538 if test -n "$ac_tool_prefix"; then
8539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8540 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if ${ac_cv_prog_RANLIB+:} false
; then :
8544 $as_echo_n "(cached) " >&6
8546 if test -n "$RANLIB"; then
8547 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir
=.
8554 for ac_exec_ext
in '' $ac_executable_extensions; do
8555 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8556 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 RANLIB
=$ac_cv_prog_RANLIB
8567 if test -n "$RANLIB"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8569 $as_echo "$RANLIB" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8577 if test -z "$ac_cv_prog_RANLIB"; then
8578 ac_ct_RANLIB
=$RANLIB
8579 # Extract the first word of "ranlib", so it can be a program name with args.
8580 set dummy ranlib
; ac_word
=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8584 $as_echo_n "(cached) " >&6
8586 if test -n "$ac_ct_RANLIB"; then
8587 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8593 test -z "$as_dir" && as_dir
=.
8594 for ac_exec_ext
in '' $ac_executable_extensions; do
8595 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8596 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8607 if test -n "$ac_ct_RANLIB"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8609 $as_echo "$ac_ct_RANLIB" >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8615 if test "x$ac_ct_RANLIB" = x
; then
8618 case $cross_compiling:$ac_tool_warned in
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8622 ac_tool_warned
=yes ;;
8624 RANLIB
=$ac_ct_RANLIB
8627 RANLIB
="$ac_cv_prog_RANLIB"
8633 # Find a good install program. We prefer a C program (faster),
8634 # so one script is as good as another. But avoid the broken or
8635 # incompatible versions:
8636 # SysV /etc/install, /usr/sbin/install
8637 # SunOS /usr/etc/install
8638 # IRIX /sbin/install
8640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8642 # ./install, which can be erroneously created by make from ./install.sh.
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8644 $as_echo_n "checking for a BSD compatible install... " >&6; }
8645 if test -z "$INSTALL"; then
8646 if ${ac_cv_path_install+:} false
; then :
8647 $as_echo_n "(cached) " >&6
8649 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8650 for ac_dir
in $PATH; do
8651 # Account for people who put trailing slashes in PATH elements.
8653 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8655 # OSF1 and SCO ODT 3.0 have their own names for install.
8656 for ac_prog
in ginstall scoinst
install; do
8657 if test -f $ac_dir/$ac_prog; then
8658 if test $ac_prog = install &&
8659 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8660 # AIX install. It has an incompatible calling convention.
8661 # OSF/1 installbsd also uses dspmsg, but is usable.
8664 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8675 if test "${ac_cv_path_install+set}" = set; then
8676 INSTALL
="$ac_cv_path_install"
8678 # As a last resort, use the slow shell script. We don't cache a
8679 # path for INSTALL within a source directory, because that will
8680 # break other packages using the cache if that directory is
8681 # removed, or if the path is relative.
8682 INSTALL
="$ac_install_sh"
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8686 $as_echo "$INSTALL" >&6; }
8688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8689 # It thinks the first close brace ends the variable substitution.
8690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8692 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8695 # See if cmp has --ignore-initial.
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8697 $as_echo_n "checking for cmp's capabilities... " >&6; }
8698 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8699 $as_echo_n "(cached) " >&6
8703 gcc_cv_prog_cmp_skip
=slowcompare
8704 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8705 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8708 gcc_cv_prog_cmp_skip
=gnucompare
8711 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8712 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8713 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8716 gcc_cv_prog_cmp_skip
=fastcompare
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8724 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8725 make_compare_target
=$gcc_cv_prog_cmp_skip
8729 # See if we have the mktemp command.
8730 # Extract the first word of "mktemp", so it can be a program name with args.
8731 set dummy mktemp
; ac_word
=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8735 $as_echo_n "(cached) " >&6
8737 if test -n "$have_mktemp_command"; then
8738 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8744 test -z "$as_dir" && as_dir
=.
8745 for ac_exec_ext
in '' $ac_executable_extensions; do
8746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8747 ac_cv_prog_have_mktemp_command
="yes"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8758 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8759 if test -n "$have_mktemp_command"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8761 $as_echo "$have_mktemp_command" >&6; }
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8769 # See if makeinfo has been installed and is modern enough
8770 # that we can use it.
8772 # Extract the first word of "makeinfo", so it can be a program name with args.
8773 set dummy makeinfo
; ac_word
=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8777 $as_echo_n "(cached) " >&6
8779 if test -n "$MAKEINFO"; then
8780 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8786 test -z "$as_dir" && as_dir
=.
8787 for ac_exec_ext
in '' $ac_executable_extensions; do
8788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8789 ac_cv_prog_MAKEINFO
="makeinfo"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 MAKEINFO
=$ac_cv_prog_MAKEINFO
8800 if test -n "$MAKEINFO"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8802 $as_echo "$MAKEINFO" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8809 if test -n "$MAKEINFO"; then
8810 # Found it, now check the version.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8812 $as_echo_n "checking for modern makeinfo... " >&6; }
8813 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8814 $as_echo_n "(cached) " >&6
8816 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8817 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8819 case $ac_prog_version in
8820 '') gcc_cv_prog_makeinfo_modern
=no
;;
8821 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8822 *) gcc_cv_prog_makeinfo_modern
=no
;;
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8827 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8829 gcc_cv_prog_makeinfo_modern
=no
8831 if test $gcc_cv_prog_makeinfo_modern = no
; then
8832 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8835 if test $gcc_cv_prog_makeinfo_modern = no
; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8837 *** Makeinfo is missing or too old.
8838 *** Info documentation will not be built." >&5
8839 $as_echo "$as_me: WARNING:
8840 *** Makeinfo is missing or too old.
8841 *** Info documentation will not be built." >&2;}
8848 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8849 # If it does, we want to pass it to makeinfo in order to restore the old
8850 # behavior of @{summary,}contents placement.
8851 MAKEINFO_TOC_INLINE_FLAG
=
8852 if test x
"$MAKEINFO" != x
; then :
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8855 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8856 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8857 $as_echo_n "(cached) " >&6
8860 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8861 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8862 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8863 gcc_cv_texi_add_toc_inline_flags
=no
8865 gcc_cv_texi_add_toc_inline_flags
=yes
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8870 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8871 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8872 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8878 # Is pod2man recent enough to regenerate manpages?
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8880 $as_echo_n "checking for recent Pod::Man... " >&6; }
8881 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8883 $as_echo "yes" >&6; }
8884 GENERATED_MANPAGES
=generated-manpages
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8892 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8897 # Extract the first word of "$ac_prog", so it can be a program name with args.
8898 set dummy
$ac_prog; ac_word
=$2
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8900 $as_echo_n "checking for $ac_word... " >&6; }
8901 if ${ac_cv_prog_FLEX+:} false
; then :
8902 $as_echo_n "(cached) " >&6
8904 if test -n "$FLEX"; then
8905 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8911 test -z "$as_dir" && as_dir
=.
8912 for ac_exec_ext
in '' $ac_executable_extensions; do
8913 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_FLEX
="$ac_prog"
8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 FLEX
=$ac_cv_prog_FLEX
8925 if test -n "$FLEX"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8927 $as_echo "$FLEX" >&6; }
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8934 test -n "$FLEX" && break
8936 test -n "$FLEX" || FLEX
="$MISSING flex"
8940 for ac_prog
in bison
8942 # Extract the first word of "$ac_prog", so it can be a program name with args.
8943 set dummy
$ac_prog; ac_word
=$2
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945 $as_echo_n "checking for $ac_word... " >&6; }
8946 if ${ac_cv_prog_BISON+:} false
; then :
8947 $as_echo_n "(cached) " >&6
8949 if test -n "$BISON"; then
8950 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8956 test -z "$as_dir" && as_dir
=.
8957 for ac_exec_ext
in '' $ac_executable_extensions; do
8958 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8959 ac_cv_prog_BISON
="$ac_prog"
8960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8969 BISON
=$ac_cv_prog_BISON
8970 if test -n "$BISON"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8972 $as_echo "$BISON" >&6; }
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8979 test -n "$BISON" && break
8981 test -n "$BISON" || BISON
="$MISSING bison"
8986 # Extract the first word of "python3", so it can be a program name with args.
8987 set dummy python3
; ac_word
=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if ${ac_cv_prog_PYTHON+:} false
; then :
8991 $as_echo_n "(cached) " >&6
8993 if test -n "$PYTHON"; then
8994 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
8996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9000 test -z "$as_dir" && as_dir
=.
9001 for ac_exec_ext
in '' $ac_executable_extensions; do
9002 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_PYTHON
="python3"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 PYTHON
=$ac_cv_prog_PYTHON
9014 if test -n "$PYTHON"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9016 $as_echo "$PYTHON" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9023 if test -n "$PYTHON"; then
9024 # Found it, now check the version.
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9026 $as_echo_n "checking for modern python3... " >&6; }
9027 if ${gcc_cv_prog_python3_modern+:} false
; then :
9028 $as_echo_n "(cached) " >&6
9030 ac_prog_version
=`eval $PYTHON --version 2>&1 |
9031 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9033 case $ac_prog_version in
9034 '') gcc_cv_prog_python3_modern
=no
;;
9035 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
9036 *) gcc_cv_prog_python3_modern
=no
;;
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9041 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9043 gcc_cv_prog_python3_modern
=no
9045 if test $gcc_cv_prog_python3_modern = no
; then
9046 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9049 if test $gcc_cv_prog_python3_modern = no
; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9051 *** Python3 is missing.
9052 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9053 $as_echo "$as_me: WARNING:
9054 *** Python3 is missing.
9055 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9062 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9063 # check for build == host before using them.
9066 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9067 && test -d ..
/binutils
; then
9068 NM
='${objdir}/../binutils/nm-new'
9070 # Extract the first word of "nm", so it can be a program name with args.
9071 set dummy nm
; ac_word
=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if ${ac_cv_prog_NM+:} false
; then :
9075 $as_echo_n "(cached) " >&6
9077 if test -n "$NM"; then
9078 ac_cv_prog_NM
="$NM" # Let the user override the test.
9080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9084 test -z "$as_dir" && as_dir
=.
9085 for ac_exec_ext
in '' $ac_executable_extensions; do
9086 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9099 if test -n "$NM"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9101 $as_echo "$NM" >&6; }
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9111 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9112 && test -d ..
/binutils
; then
9113 AR
='${objdir}/../binutils/ar'
9115 # Extract the first word of "ar", so it can be a program name with args.
9116 set dummy
ar; ac_word
=$2
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118 $as_echo_n "checking for $ac_word... " >&6; }
9119 if ${ac_cv_prog_AR+:} false
; then :
9120 $as_echo_n "(cached) " >&6
9122 if test -n "$AR"; then
9123 ac_cv_prog_AR
="$AR" # Let the user override the test.
9125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9129 test -z "$as_dir" && as_dir
=.
9130 for ac_exec_ext
in '' $ac_executable_extensions; do
9131 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9144 if test -n "$AR"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9146 $as_echo "$AR" >&6; }
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9155 # The jit documentation looks better if built with sphinx, but can be
9156 # built with texinfo if sphinx is not available.
9157 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9158 # Extract the first word of "sphinx-build", so it can be a program name with args.
9159 set dummy sphinx-build
; ac_word
=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9163 $as_echo_n "(cached) " >&6
9165 if test -n "$doc_build_sys"; then
9166 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9172 test -z "$as_dir" && as_dir
=.
9173 for ac_exec_ext
in '' $ac_executable_extensions; do
9174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9175 ac_cv_prog_doc_build_sys
="sphinx"
9176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9186 doc_build_sys
=$ac_cv_prog_doc_build_sys
9187 if test -n "$doc_build_sys"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9189 $as_echo "$doc_build_sys" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9197 # --------------------
9198 # Checks for C headers
9199 # --------------------
9201 # Need to reject headers which give warnings, so that the -Werror bootstrap
9202 # works later. *sigh* This needs to come before all header checks.
9204 ac_c_preproc_warn_flag
=yes
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9207 $as_echo_n "checking for ANSI C header files... " >&6; }
9208 if ${ac_cv_header_stdc+:} false
; then :
9209 $as_echo_n "(cached) " >&6
9211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9226 if ac_fn_cxx_try_compile
"$LINENO"; then :
9227 ac_cv_header_stdc
=yes
9229 ac_cv_header_stdc
=no
9231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9233 if test $ac_cv_header_stdc = yes; then
9234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9241 $EGREP "memchr" >/dev
/null
2>&1; then :
9244 ac_cv_header_stdc
=no
9250 if test $ac_cv_header_stdc = yes; then
9251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9258 $EGREP "free" >/dev
/null
2>&1; then :
9261 ac_cv_header_stdc
=no
9267 if test $ac_cv_header_stdc = yes; then
9268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9269 if test "$cross_compiling" = yes; then :
9272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9276 #if ((' ' & 0x0FF) == 0x020)
9277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9280 # define ISLOWER(c) \
9281 (('a' <= (c) && (c) <= 'i') \
9282 || ('j' <= (c) && (c) <= 'r') \
9283 || ('s' <= (c) && (c) <= 'z'))
9284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9292 for (i = 0; i < 256; i++)
9293 if (XOR (islower (i), ISLOWER (i))
9294 || toupper (i) != TOUPPER (i))
9299 if ac_fn_cxx_try_run
"$LINENO"; then :
9302 ac_cv_header_stdc
=no
9304 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9305 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9311 $as_echo "$ac_cv_header_stdc" >&6; }
9312 if test $ac_cv_header_stdc = yes; then
9314 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9319 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9320 if ${ac_cv_header_time+:} false
; then :
9321 $as_echo_n "(cached) " >&6
9323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 #include <sys/types.h>
9326 #include <sys/time.h>
9332 if ((struct tm *) 0)
9338 if ac_fn_cxx_try_compile
"$LINENO"; then :
9339 ac_cv_header_time
=yes
9341 ac_cv_header_time
=no
9343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9346 $as_echo "$ac_cv_header_time" >&6; }
9347 if test $ac_cv_header_time = yes; then
9349 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9354 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9355 if ${gcc_cv_header_string+:} false
; then :
9356 $as_echo_n "(cached) " >&6
9358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9361 #include <strings.h>
9370 if ac_fn_cxx_try_compile
"$LINENO"; then :
9371 gcc_cv_header_string
=yes
9373 gcc_cv_header_string
=no
9375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9378 $as_echo "$gcc_cv_header_string" >&6; }
9379 if test $gcc_cv_header_string = yes; then
9381 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9386 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9387 if ${ac_cv_header_sys_wait_h+:} false
; then :
9388 $as_echo_n "(cached) " >&6
9390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392 #include <sys/types.h>
9393 #include <sys/wait.h>
9395 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9398 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9406 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9411 if ac_fn_cxx_try_compile
"$LINENO"; then :
9412 ac_cv_header_sys_wait_h
=yes
9414 ac_cv_header_sys_wait_h
=no
9416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9419 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9420 if test $ac_cv_header_sys_wait_h = yes; then
9422 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9427 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9428 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9429 $as_echo_n "(cached) " >&6
9431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 #include <sys/types.h>
9434 #include <termios.h>
9440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9441 $EGREP "yes" >/dev
/null
2>&1; then :
9442 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9444 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9450 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9452 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9454 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9455 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9456 $as_echo_n "(cached) " >&6
9458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 #include <sys/types.h>
9461 #include <sys/ioctl.h>
9467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9468 $EGREP "yes" >/dev
/null
2>&1; then :
9469 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9471 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9477 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9479 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9481 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9486 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9487 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9488 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9489 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9491 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9492 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9493 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9494 cat >>confdefs.h
<<_ACEOF
9495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9502 # Check for thread headers.
9503 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9504 if test "x$ac_cv_header_thread_h" = xyes
; then :
9510 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9511 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9518 # These tests can't be done till we know if we have limits.h.
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9520 $as_echo_n "checking for CHAR_BIT... " >&6; }
9521 if ${gcc_cv_decl_char_bit+:} false
; then :
9522 $as_echo_n "(cached) " >&6
9524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526 #ifdef HAVE_LIMITS_H
9533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9534 $EGREP "found" >/dev
/null
2>&1; then :
9535 gcc_cv_decl_char_bit
=yes
9537 gcc_cv_decl_char_bit
=no
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9544 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9545 if test $gcc_cv_decl_char_bit = no
; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9547 $as_echo_n "checking number of bits in a byte... " >&6; }
9548 if ${gcc_cv_c_nbby+:} false
; then :
9549 $as_echo_n "(cached) " >&6
9553 while test $i -lt 65; do
9554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9561 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9562 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9568 if ac_fn_cxx_try_compile
"$LINENO"; then :
9569 gcc_cv_c_nbby
=$i; break
9571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9574 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9578 $as_echo "$gcc_cv_c_nbby" >&6; }
9579 if test $gcc_cv_c_nbby = failed
; then
9580 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9583 cat >>confdefs.h
<<_ACEOF
9584 #define CHAR_BIT $gcc_cv_c_nbby
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9590 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9591 if ${ac_cv_c_bigendian+:} false
; then :
9592 $as_echo_n "(cached) " >&6
9594 ac_cv_c_bigendian
=unknown
9595 # See if we're dealing with a universal compiler.
9596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 #ifndef __APPLE_CC__
9599 not a universal capable compiler
9604 if ac_fn_cxx_try_compile
"$LINENO"; then :
9606 # Check for potential -arch flags. It is not universal unless
9607 # there are at least two -arch flags with different values.
9610 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9611 if test -n "$ac_prev"; then
9613 i?
86 | x86_64 | ppc | ppc64
)
9614 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9617 ac_cv_c_bigendian
=universal
9623 elif test "x$ac_word" = "x-arch"; then
9628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9629 if test $ac_cv_c_bigendian = unknown
; then
9630 # See if sys/param.h defines the BYTE_ORDER macro.
9631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 #include <sys/types.h>
9634 #include <sys/param.h>
9639 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9640 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9649 if ac_fn_cxx_try_compile
"$LINENO"; then :
9650 # It does; now see whether it defined to BIG_ENDIAN or not.
9651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #include <sys/types.h>
9654 #include <sys/param.h>
9659 #if BYTE_ORDER != BIG_ENDIAN
9667 if ac_fn_cxx_try_compile
"$LINENO"; then :
9668 ac_cv_c_bigendian
=yes
9670 ac_cv_c_bigendian
=no
9672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9676 if test $ac_cv_c_bigendian = unknown
; then
9677 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9685 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9693 if ac_fn_cxx_try_compile
"$LINENO"; then :
9694 # It does; now see whether it defined to _BIG_ENDIAN or not.
9695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9710 if ac_fn_cxx_try_compile
"$LINENO"; then :
9711 ac_cv_c_bigendian
=yes
9713 ac_cv_c_bigendian
=no
9715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9719 if test $ac_cv_c_bigendian = unknown
; then
9720 # Compile a test program.
9721 if test "$cross_compiling" = yes; then :
9722 # Try to guess by grepping values from an object file.
9723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725 short int ascii_mm[] =
9726 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9727 short int ascii_ii[] =
9728 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9729 int use_ascii (int i) {
9730 return ascii_mm[i] + ascii_ii[i];
9732 short int ebcdic_ii[] =
9733 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9734 short int ebcdic_mm[] =
9735 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9736 int use_ebcdic (int i) {
9737 return ebcdic_mm[i] + ebcdic_ii[i];
9744 return use_ascii (foo) == use_ebcdic (foo);
9749 if ac_fn_cxx_try_compile
"$LINENO"; then :
9750 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9751 ac_cv_c_bigendian
=yes
9753 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9754 if test "$ac_cv_c_bigendian" = unknown
; then
9755 ac_cv_c_bigendian
=no
9757 # finding both strings is unlikely to happen, but who knows?
9758 ac_cv_c_bigendian
=unknown
9762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 $ac_includes_default
9771 /* Are we little or big endian? From Harbison&Steele. */
9775 char c[sizeof (long int)];
9778 return u.c[sizeof (long int) - 1] == 1;
9784 if ac_fn_cxx_try_run
"$LINENO"; then :
9785 ac_cv_c_bigendian
=no
9787 ac_cv_c_bigendian
=yes
9789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9790 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9796 $as_echo "$ac_cv_c_bigendian" >&6; }
9797 case $ac_cv_c_bigendian in #(
9799 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9805 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9809 as_fn_error $?
"unknown endianness
9810 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9814 # ----------------------
9815 # Checks for C++ headers
9816 # ----------------------
9819 ac_cpp
='$CXXCPP $CPPFLAGS'
9820 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9821 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9822 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9824 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9825 if test -z "$CXXCPP"; then
9826 if ${ac_cv_prog_CXXCPP+:} false
; then :
9827 $as_echo_n "(cached) " >&6
9829 # Double quotes because CXXCPP needs to be expanded
9830 for CXXCPP
in "$CXX -E" "/lib/cpp"
9833 for ac_cxx_preproc_warn_flag
in '' yes
9835 # Use a header file that comes with gcc, so configuring glibc
9836 # with a fresh cross-compiler works.
9837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 # <limits.h> exists even on freestanding compilers.
9839 # On the NeXT, cc -E runs the code through the compiler's parser,
9840 # not just through cpp. "Syntax error" is here to catch this case.
9841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9844 # include <limits.h>
9846 # include <assert.h>
9850 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9853 # Broken: fails on valid input.
9856 rm -f conftest.err conftest.i conftest.
$ac_ext
9858 # OK, works on sane cases. Now check whether nonexistent headers
9859 # can be detected and how.
9860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 #include <ac_nonexistent.h>
9864 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9865 # Broken: success on invalid input.
9868 # Passes both tests.
9872 rm -f conftest.err conftest.i conftest.
$ac_ext
9875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9876 rm -f conftest.i conftest.err conftest.
$ac_ext
9877 if $ac_preproc_ok; then :
9882 ac_cv_prog_CXXCPP
=$CXXCPP
9885 CXXCPP
=$ac_cv_prog_CXXCPP
9887 ac_cv_prog_CXXCPP
=$CXXCPP
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9890 $as_echo "$CXXCPP" >&6; }
9892 for ac_cxx_preproc_warn_flag
in '' yes
9894 # Use a header file that comes with gcc, so configuring glibc
9895 # with a fresh cross-compiler works.
9896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897 # <limits.h> exists even on freestanding compilers.
9898 # On the NeXT, cc -E runs the code through the compiler's parser,
9899 # not just through cpp. "Syntax error" is here to catch this case.
9900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9903 # include <limits.h>
9905 # include <assert.h>
9909 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9912 # Broken: fails on valid input.
9915 rm -f conftest.err conftest.i conftest.
$ac_ext
9917 # OK, works on sane cases. Now check whether nonexistent headers
9918 # can be detected and how.
9919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9921 #include <ac_nonexistent.h>
9923 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9924 # Broken: success on invalid input.
9927 # Passes both tests.
9931 rm -f conftest.err conftest.i conftest.
$ac_ext
9934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9935 rm -f conftest.i conftest.err conftest.
$ac_ext
9936 if $ac_preproc_ok; then :
9939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9942 See \`config.log' for more details" >&5
9943 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9944 See \`config.log' for more details" >&2;}; }
9948 ac_cpp
='$CXXCPP $CPPFLAGS'
9949 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9950 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9951 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9954 for ac_header
in unordered_map
9956 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9957 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9958 cat >>confdefs.h
<<_ACEOF
9959 #define HAVE_UNORDERED_MAP 1
9965 for ac_header
in tr1/unordered_map
9967 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9968 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9969 cat >>confdefs.h
<<_ACEOF
9970 #define HAVE_TR1_UNORDERED_MAP 1
9976 for ac_header
in ext
/hash_map
9978 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9979 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9980 cat >>confdefs.h
<<_ACEOF
9981 #define HAVE_EXT_HASH_MAP 1
9989 # Dependency checking.
9992 rm -rf .tst
2>/dev
/null
9993 mkdir .tst
2>/dev
/null
9994 if test -d .tst
; then
9999 rmdir .tst
2>/dev
/null
10001 DEPDIR
="${am__leading_dot}deps"
10003 ac_config_commands
="$ac_config_commands depdir"
10006 ac_config_commands
="$ac_config_commands gccdepdir"
10009 depcc
="$CXX" am_compiler_list
=
10011 am_depcomp
=$ac_aux_dir/depcomp
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10013 $as_echo_n "checking dependency style of $depcc... " >&6; }
10014 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
10015 $as_echo_n "(cached) " >&6
10017 if test -f "$am_depcomp"; then
10018 # We make a subdir and do the tests there. Otherwise we can end up
10019 # making bogus files that we don't know about and never remove. For
10020 # instance it was reported that on HP-UX the gcc test will end up
10021 # making a dummy file named `D' -- because `-MD' means `put the output
10024 # Copy depcomp to subdir because otherwise we won't find it if we're
10025 # using a relative directory.
10026 cp "$am_depcomp" conftest.dir
10028 # We will build objects and dependencies in a subdirectory because
10029 # it helps to detect inapplicable dependency modes. For instance
10030 # both Tru64's cc and ICC support -MD to output dependencies as a
10031 # side effect of compilation, but ICC will put the dependencies in
10032 # the current directory while Tru64 will put them in the object
10036 am_cv_CXX_dependencies_compiler_type
=none
10037 if test "$am_compiler_list" = ""; then
10038 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10040 for depmode
in $am_compiler_list; do
10041 if test $depmode = none
; then break; fi
10043 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10044 # Setup a source with many dependencies, because some compilers
10045 # like to wrap large dependency lists on column 80 (with \), and
10046 # we should not choose a depcomp mode which is confused by this.
10048 # We need to recreate these files for each test, as the compiler may
10049 # overwrite some of them when testing with obscure command lines.
10050 # This happens at least with the AIX C compiler.
10052 for i
in 1 2 3 4 5 6; do
10053 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10054 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10055 # Solaris 8's {/usr,}/bin/sh.
10056 touch sub
/conftst
$i.h
10058 echo "include sub/conftest.Po" > confmf
10060 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10061 # mode. It turns out that the SunPro C++ compiler does not properly
10062 # handle `-M -o', and we need to detect this.
10063 depcmd
="depmode=$depmode \
10064 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10065 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10066 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10067 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10068 if env
$depcmd > conftest.err
2>&1 &&
10069 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10070 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10071 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10072 # icc doesn't choke on unknown options, it will just issue warnings
10073 # or remarks (even with -Werror). So we grep stderr for any message
10074 # that says an option was ignored or not supported.
10075 # When given -MP, icc 7.0 and 7.1 complain thusly:
10076 # icc: Command line warning: ignoring option '-M'; no argument required
10077 # The diagnosis changed in icc 8.0:
10078 # icc: Command line remark: option '-MP' not supported
10079 if (grep 'ignoring option' conftest.err ||
10080 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10081 am_cv_CXX_dependencies_compiler_type
=$depmode
10082 $as_echo "$as_me:$LINENO: success" >&5
10086 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10087 sed -e 's/^/| /' < conftest.err
>&5
10091 rm -rf conftest.dir
10093 am_cv_CXX_dependencies_compiler_type
=none
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10098 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10099 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10100 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10101 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10111 # These libraries may be used by collect2.
10112 # We may need a special search path to get them linked.
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10114 $as_echo_n "checking for collect2 libraries... " >&6; }
10115 if ${gcc_cv_collect2_libs+:} false
; then :
10116 $as_echo_n "(cached) " >&6
10119 for libs
in '' -lld -lmld \
10120 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10121 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10127 /* Override any GCC internal prototype to avoid an error.
10128 Use char because int might match the return type of a GCC
10129 builtin and then its argument prototype would still apply. */
10142 if ac_fn_cxx_try_link
"$LINENO"; then :
10143 gcc_cv_collect2_libs
="$libs"; break
10145 rm -f core conftest.err conftest.
$ac_objext \
10146 conftest
$ac_exeext conftest.
$ac_ext
10149 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10152 $as_echo "$gcc_cv_collect2_libs" >&6; }
10153 case $gcc_cv_collect2_libs in
10154 "none required") ;;
10155 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10159 # When building Ada code on Alpha, we need exc_resume which is usually in
10160 # -lexc. So test for it.
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10164 $as_echo_n "checking for library containing exc_resume... " >&6; }
10165 if ${ac_cv_search_exc_resume+:} false
; then :
10166 $as_echo_n "(cached) " >&6
10168 ac_func_search_save_LIBS
=$LIBS
10169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10172 /* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
10178 char exc_resume ();
10182 return exc_resume ();
10187 for ac_lib
in '' exc
; do
10188 if test -z "$ac_lib"; then
10189 ac_res
="none required"
10192 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10194 if ac_fn_cxx_try_link
"$LINENO"; then :
10195 ac_cv_search_exc_resume
=$ac_res
10197 rm -f core conftest.err conftest.
$ac_objext \
10199 if ${ac_cv_search_exc_resume+:} false
; then :
10203 if ${ac_cv_search_exc_resume+:} false
; then :
10206 ac_cv_search_exc_resume
=no
10208 rm conftest.
$ac_ext
10209 LIBS
=$ac_func_search_save_LIBS
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10212 $as_echo "$ac_cv_search_exc_resume" >&6; }
10213 ac_res
=$ac_cv_search_exc_resume
10214 if test "$ac_res" != no
; then :
10215 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10219 GNAT_LIBEXC
="$LIBS"
10223 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10227 $as_echo_n "checking for library containing kstat_open... " >&6; }
10228 if ${ac_cv_search_kstat_open+:} false
; then :
10229 $as_echo_n "(cached) " >&6
10231 ac_func_search_save_LIBS
=$LIBS
10232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10235 /* Override any GCC internal prototype to avoid an error.
10236 Use char because int might match the return type of a GCC
10237 builtin and then its argument prototype would still apply. */
10241 char kstat_open ();
10245 return kstat_open ();
10250 for ac_lib
in '' kstat
; do
10251 if test -z "$ac_lib"; then
10252 ac_res
="none required"
10255 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10257 if ac_fn_cxx_try_link
"$LINENO"; then :
10258 ac_cv_search_kstat_open
=$ac_res
10260 rm -f core conftest.err conftest.
$ac_objext \
10262 if ${ac_cv_search_kstat_open+:} false
; then :
10266 if ${ac_cv_search_kstat_open+:} false
; then :
10269 ac_cv_search_kstat_open
=no
10271 rm conftest.
$ac_ext
10272 LIBS
=$ac_func_search_save_LIBS
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10275 $as_echo "$ac_cv_search_kstat_open" >&6; }
10276 ac_res
=$ac_cv_search_kstat_open
10277 if test "$ac_res" != no
; then :
10278 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10282 EXTRA_GCC_LIBS
="$LIBS"
10286 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10287 # C++ needs those for libcody.
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10292 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10293 if ${ac_cv_search_gethostbyname+:} false
; then :
10294 $as_echo_n "(cached) " >&6
10296 ac_func_search_save_LIBS
=$LIBS
10297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10306 char gethostbyname ();
10310 return gethostbyname ();
10315 for ac_lib
in '' nsl
; do
10316 if test -z "$ac_lib"; then
10317 ac_res
="none required"
10320 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10322 if ac_fn_cxx_try_link
"$LINENO"; then :
10323 ac_cv_search_gethostbyname
=$ac_res
10325 rm -f core conftest.err conftest.
$ac_objext \
10327 if ${ac_cv_search_gethostbyname+:} false
; then :
10331 if ${ac_cv_search_gethostbyname+:} false
; then :
10334 ac_cv_search_gethostbyname
=no
10336 rm conftest.
$ac_ext
10337 LIBS
=$ac_func_search_save_LIBS
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10340 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10341 ac_res
=$ac_cv_search_gethostbyname
10342 if test "$ac_res" != no
; then :
10343 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10348 $as_echo_n "checking for library containing socket... " >&6; }
10349 if ${ac_cv_search_socket+:} false
; then :
10350 $as_echo_n "(cached) " >&6
10352 ac_func_search_save_LIBS
=$LIBS
10353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10356 /* Override any GCC internal prototype to avoid an error.
10357 Use char because int might match the return type of a GCC
10358 builtin and then its argument prototype would still apply. */
10371 for ac_lib
in '' socket
; do
10372 if test -z "$ac_lib"; then
10373 ac_res
="none required"
10376 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10378 if ac_fn_cxx_try_link
"$LINENO"; then :
10379 ac_cv_search_socket
=$ac_res
10381 rm -f core conftest.err conftest.
$ac_objext \
10383 if ${ac_cv_search_socket+:} false
; then :
10387 if ${ac_cv_search_socket+:} false
; then :
10390 ac_cv_search_socket
=no
10392 rm conftest.
$ac_ext
10393 LIBS
=$ac_func_search_save_LIBS
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10396 $as_echo "$ac_cv_search_socket" >&6; }
10397 ac_res
=$ac_cv_search_socket
10398 if test "$ac_res" != no
; then :
10399 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10404 $as_echo_n "checking for socket in -lsocket... " >&6; }
10405 if ${ac_cv_lib_socket_socket+:} false
; then :
10406 $as_echo_n "(cached) " >&6
10408 ac_check_lib_save_LIBS
=$LIBS
10409 LIBS
="-lsocket -lnsl $LIBS"
10410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10428 if ac_fn_cxx_try_link
"$LINENO"; then :
10429 ac_cv_lib_socket_socket
=yes
10431 ac_cv_lib_socket_socket
=no
10433 rm -f core conftest.err conftest.
$ac_objext \
10434 conftest
$ac_exeext conftest.
$ac_ext
10435 LIBS
=$ac_check_lib_save_LIBS
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10438 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10439 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10440 LIBS
="-lsocket -lnsl $LIBS"
10450 # Some systems put ldexp and frexp in libm instead of libc; assume
10451 # they're both in the same place. jcf-dump needs them.
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10455 $as_echo_n "checking for library containing ldexp... " >&6; }
10456 if ${ac_cv_search_ldexp+:} false
; then :
10457 $as_echo_n "(cached) " >&6
10459 ac_func_search_save_LIBS
=$LIBS
10460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10463 /* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
10478 for ac_lib
in '' m
; do
10479 if test -z "$ac_lib"; then
10480 ac_res
="none required"
10483 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10485 if ac_fn_cxx_try_link
"$LINENO"; then :
10486 ac_cv_search_ldexp
=$ac_res
10488 rm -f core conftest.err conftest.
$ac_objext \
10490 if ${ac_cv_search_ldexp+:} false
; then :
10494 if ${ac_cv_search_ldexp+:} false
; then :
10497 ac_cv_search_ldexp
=no
10499 rm conftest.
$ac_ext
10500 LIBS
=$ac_func_search_save_LIBS
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10503 $as_echo "$ac_cv_search_ldexp" >&6; }
10504 ac_res
=$ac_cv_search_ldexp
10505 if test "$ac_res" != no
; then :
10506 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10514 # Some systems need dlopen
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10518 $as_echo_n "checking for library containing dlopen... " >&6; }
10519 if ${ac_cv_search_dlopen+:} false
; then :
10520 $as_echo_n "(cached) " >&6
10522 ac_func_search_save_LIBS
=$LIBS
10523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10526 /* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
10541 for ac_lib
in '' dl
; do
10542 if test -z "$ac_lib"; then
10543 ac_res
="none required"
10546 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10548 if ac_fn_cxx_try_link
"$LINENO"; then :
10549 ac_cv_search_dlopen
=$ac_res
10551 rm -f core conftest.err conftest.
$ac_objext \
10553 if ${ac_cv_search_dlopen+:} false
; then :
10557 if ${ac_cv_search_dlopen+:} false
; then :
10560 ac_cv_search_dlopen
=no
10562 rm conftest.
$ac_ext
10563 LIBS
=$ac_func_search_save_LIBS
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10566 $as_echo "$ac_cv_search_dlopen" >&6; }
10567 ac_res
=$ac_cv_search_dlopen
10568 if test "$ac_res" != no
; then :
10569 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10577 # Use <inttypes.h> only if it exists,
10578 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10581 $as_echo_n "checking for inttypes.h... " >&6; }
10582 if ${gcc_cv_header_inttypes_h+:} false
; then :
10583 $as_echo_n "(cached) " >&6
10585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10587 #define __STDC_FORMAT_MACROS
10588 #include <sys/types.h>
10589 #include <inttypes.h>
10601 if ac_fn_cxx_try_compile
"$LINENO"; then :
10602 gcc_cv_header_inttypes_h
=yes
10604 gcc_cv_header_inttypes_h
=no
10606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10610 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10611 if test $gcc_cv_header_inttypes_h = yes; then
10613 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10617 # Look for the ZSTD package.
10627 # Check whether --with-zstd was given.
10628 if test "${with_zstd+set}" = set; then :
10629 withval
=$with_zstd;
10633 # Check whether --with-zstd-include was given.
10634 if test "${with_zstd_include+set}" = set; then :
10635 withval
=$with_zstd_include;
10639 # Check whether --with-zstd-lib was given.
10640 if test "${with_zstd_lib+set}" = set; then :
10641 withval
=$with_zstd_lib;
10644 case "x$with_zstd" in
10650 *) ZSTD_INCLUDE
=$with_zstd/include
10651 ZSTD_LIB
=$with_zstd/lib
10655 if test "x$with_zstd" != xno
; then
10656 if test "x$with_zstd_include" != x
; then
10657 ZSTD_INCLUDE
=$with_zstd_include
10659 if test "x$with_zstd_lib" != x
; then
10660 ZSTD_LIB
=$with_zstd_lib
10662 if test "x$ZSTD_INCLUDE" != x \
10663 && test "x$ZSTD_INCLUDE" != xno
; then
10664 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10666 if test "x$ZSTD_LIB" != x \
10667 && test "x$ZSTD_LIB" != xno
; then
10668 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10671 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10672 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10674 # LTO can use zstd compression algorithm
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10678 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10679 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10680 $as_echo_n "(cached) " >&6
10682 ac_func_search_save_LIBS
=$LIBS
10683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10692 char ZSTD_compress ();
10696 return ZSTD_compress ();
10701 for ac_lib
in '' zstd
; do
10702 if test -z "$ac_lib"; then
10703 ac_res
="none required"
10706 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10708 if ac_fn_cxx_try_link
"$LINENO"; then :
10709 ac_cv_search_ZSTD_compress
=$ac_res
10711 rm -f core conftest.err conftest.
$ac_objext \
10713 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10717 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10720 ac_cv_search_ZSTD_compress
=no
10722 rm conftest.
$ac_ext
10723 LIBS
=$ac_func_search_save_LIBS
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10726 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10727 ac_res
=$ac_cv_search_ZSTD_compress
10728 if test "$ac_res" != no
; then :
10729 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10732 gcc_cv_header_zstd_h
=no
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10740 $as_echo_n "checking for zstd.h... " >&6; }
10741 if ${gcc_cv_header_zstd_h+:} false
; then :
10742 $as_echo_n "(cached) " >&6
10744 # We require version 1.3.0 or later. This is the first version that has
10745 # ZSTD_getFrameContentSize.
10746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10749 #if ZSTD_VERSION_NUMBER < 10300
10750 #error "need zstd 1.3.0 or better"
10760 if ac_fn_cxx_try_compile
"$LINENO"; then :
10761 gcc_cv_header_zstd_h
=yes
10763 gcc_cv_header_zstd_h
=no
10765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10769 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10770 if test $gcc_cv_header_zstd_h = yes; then
10772 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10774 elif test "x$with_zstd" != x
; then
10775 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10781 for ac_func
in times clock kill getrlimit setrlimit atoq \
10782 popen sysconf strsignal getrusage nl_langinfo \
10783 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10784 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
10786 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10788 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10789 cat >>confdefs.h
<<_ACEOF
10790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10797 if test x
$ac_cv_func_mbstowcs = xyes
; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10799 $as_echo_n "checking whether mbstowcs works... " >&6; }
10800 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10801 $as_echo_n "(cached) " >&6
10803 if test "$cross_compiling" = yes; then :
10804 gcc_cv_func_mbstowcs_works
=yes
10806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10808 #include <stdlib.h>
10811 mbstowcs(0, "", 0);
10815 if ac_fn_cxx_try_run
"$LINENO"; then :
10816 gcc_cv_func_mbstowcs_works
=yes
10818 gcc_cv_func_mbstowcs_works
=no
10820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10826 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10827 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10829 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10834 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10835 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10839 cat >>confdefs.h
<<_ACEOF
10840 #define ssize_t int
10845 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10846 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10850 cat >>confdefs.h
<<_ACEOF
10851 #define caddr_t char *
10856 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10858 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10860 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10866 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10867 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10868 gcc_header_sys_mman_h
=yes
10870 gcc_header_sys_mman_h
=no
10873 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10874 if test "x$ac_cv_func_mmap" = xyes
; then :
10880 if test "$gcc_header_sys_mman_h" != yes \
10881 ||
test "$gcc_func_mmap" != yes; then
10882 gcc_cv_func_mmap_file
=no
10883 gcc_cv_func_mmap_dev_zero
=no
10884 gcc_cv_func_mmap_anon
=no
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10887 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10888 if ${gcc_cv_func_mmap_file+:} false
; then :
10889 $as_echo_n "(cached) " >&6
10891 # Add a system to this blacklist if
10892 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10893 # memory area containing the same data that you'd get if you applied
10894 # read() to the same fd. The only system known to have a problem here
10895 # is VMS, where text files have record structure.
10898 gcc_cv_func_mmap_file
=no
;;
10900 gcc_cv_func_mmap_file
=yes;;
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10904 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10906 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10907 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10908 $as_echo_n "(cached) " >&6
10910 # Add a system to this blacklist if it has mmap() but /dev/zero
10911 # does not exist, or if mmapping /dev/zero does not give anonymous
10912 # zeroed pages with both the following properties:
10913 # 1. If you map N consecutive pages in with one call, and then
10914 # unmap any subset of those pages, the pages that were not
10915 # explicitly unmapped remain accessible.
10916 # 2. If you map two adjacent blocks of memory and then unmap them
10917 # both at once, they must both go away.
10918 # Systems known to be in this category are Windows (all variants),
10921 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10922 gcc_cv_func_mmap_dev_zero
=no
;;
10924 gcc_cv_func_mmap_dev_zero
=yes;;
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10928 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10930 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10932 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10933 if ${gcc_cv_decl_map_anon+:} false
; then :
10934 $as_echo_n "(cached) " >&6
10936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938 #include <sys/types.h>
10939 #include <sys/mman.h>
10940 #include <unistd.h>
10942 #ifndef MAP_ANONYMOUS
10943 #define MAP_ANONYMOUS MAP_ANON
10949 int n = MAP_ANONYMOUS;
10954 if ac_fn_cxx_try_compile
"$LINENO"; then :
10955 gcc_cv_decl_map_anon
=yes
10957 gcc_cv_decl_map_anon
=no
10959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10962 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10964 if test $gcc_cv_decl_map_anon = no
; then
10965 gcc_cv_func_mmap_anon
=no
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10968 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10969 if ${gcc_cv_func_mmap_anon+:} false
; then :
10970 $as_echo_n "(cached) " >&6
10972 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10973 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10974 # doesn't give anonymous zeroed pages with the same properties listed
10975 # above for use of /dev/zero.
10976 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10978 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10979 gcc_cv_func_mmap_anon
=no
;;
10981 gcc_cv_func_mmap_anon
=yes;;
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10985 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10989 if test $gcc_cv_func_mmap_file = yes; then
10991 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10994 if test $gcc_cv_func_mmap_dev_zero = yes; then
10996 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10999 if test $gcc_cv_func_mmap_anon = yes; then
11001 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11008 # Under VMS, vfork works very differently than on Unix. The standard test
11009 # won't work, and it isn't easily adaptable. It makes more sense to
11011 ac_cv_func_vfork_works
=yes
11014 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11015 if test "x$ac_cv_type_pid_t" = xyes
; then :
11019 cat >>confdefs.h
<<_ACEOF
11025 for ac_header
in vfork.h
11027 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11028 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11029 cat >>confdefs.h
<<_ACEOF
11030 #define HAVE_VFORK_H 1
11036 for ac_func
in fork vfork
11038 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11039 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11040 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11041 cat >>confdefs.h
<<_ACEOF
11042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11048 if test "x$ac_cv_func_fork" = xyes
; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11050 $as_echo_n "checking for working fork... " >&6; }
11051 if ${ac_cv_func_fork_works+:} false
; then :
11052 $as_echo_n "(cached) " >&6
11054 if test "$cross_compiling" = yes; then :
11055 ac_cv_func_fork_works
=cross
11057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11059 $ac_includes_default
11064 /* By Ruediger Kuhlmann. */
11065 return fork () < 0;
11071 if ac_fn_cxx_try_run
"$LINENO"; then :
11072 ac_cv_func_fork_works
=yes
11074 ac_cv_func_fork_works
=no
11076 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11077 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11082 $as_echo "$ac_cv_func_fork_works" >&6; }
11085 ac_cv_func_fork_works
=$ac_cv_func_fork
11087 if test "x$ac_cv_func_fork_works" = xcross
; then
11089 *-*-amigaos* |
*-*-msdosdjgpp*)
11090 # Override, as these systems have only a dummy fork() stub
11091 ac_cv_func_fork_works
=no
11094 ac_cv_func_fork_works
=yes
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11098 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11100 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11101 if test "x$ac_cv_func_vfork" = xyes
; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11103 $as_echo_n "checking for working vfork... " >&6; }
11104 if ${ac_cv_func_vfork_works+:} false
; then :
11105 $as_echo_n "(cached) " >&6
11107 if test "$cross_compiling" = yes; then :
11108 ac_cv_func_vfork_works
=cross
11110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112 /* Thanks to Paul Eggert for this test. */
11113 $ac_includes_default
11114 #include <sys/wait.h>
11115 #ifdef HAVE_VFORK_H
11116 # include <vfork.h>
11118 /* On some sparc systems, changes by the child to local and incoming
11119 argument registers are propagated back to the parent. The compiler
11120 is told about this with #include <vfork.h>, but some compilers
11121 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11122 static variable whose address is put into a register that is
11123 clobbered by the vfork. */
11126 sparc_address_test (int arg)
11128 sparc_address_test (arg) int arg;
11131 static pid_t child;
11149 pid_t parent = getpid ();
11152 sparc_address_test (0);
11157 /* Here is another test for sparc vfork register problems. This
11158 test uses lots of local variables, at least as many local
11159 variables as main has allocated so far including compiler
11160 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11161 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11162 reuse the register of parent for one of the local variables,
11163 since it will think that parent can't possibly be used any more
11164 in this routine. Assigning to the local variable will thus
11165 munge parent in the parent process. */
11167 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11168 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11169 /* Convince the compiler that p..p7 are live; otherwise, it might
11170 use the same hardware register for all 8 local variables. */
11171 if (p != p1 || p != p2 || p != p3 || p != p4
11172 || p != p5 || p != p6 || p != p7)
11175 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11176 from child file descriptors. If the child closes a descriptor
11177 before it execs or exits, this munges the parent's descriptor
11178 as well. Test for this by closing stdout in the child. */
11179 _exit(close(fileno(stdout)) != 0);
11184 while (wait(&status) != child)
11187 /* Was there some problem with vforking? */
11190 /* Did the child fail? (This shouldn't happen.) */
11193 /* Did the vfork/compiler bug occur? */
11194 || parent != getpid()
11196 /* Did the file descriptor bug occur? */
11197 || fstat(fileno(stdout), &st) != 0
11202 if ac_fn_cxx_try_run
"$LINENO"; then :
11203 ac_cv_func_vfork_works
=yes
11205 ac_cv_func_vfork_works
=no
11207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11213 $as_echo "$ac_cv_func_vfork_works" >&6; }
11216 if test "x$ac_cv_func_fork_works" = xcross
; then
11217 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11219 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11222 if test "x$ac_cv_func_vfork_works" = xyes
; then
11224 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11228 $as_echo "#define vfork fork" >>confdefs.h
11231 if test "x$ac_cv_func_fork_works" = xyes
; then
11233 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11239 if test "X$prefix" = "XNONE"; then
11240 acl_final_prefix
="$ac_default_prefix"
11242 acl_final_prefix
="$prefix"
11244 if test "X$exec_prefix" = "XNONE"; then
11245 acl_final_exec_prefix
='${prefix}'
11247 acl_final_exec_prefix
="$exec_prefix"
11249 acl_save_prefix
="$prefix"
11250 prefix
="$acl_final_prefix"
11251 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11252 prefix
="$acl_save_prefix"
11255 # Check whether --with-gnu-ld was given.
11256 if test "${with_gnu_ld+set}" = set; then :
11257 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11262 # Prepare PATH_SEPARATOR.
11263 # The user is always right.
11264 if test "${PATH_SEPARATOR+set}" != set; then
11265 echo "#! /bin/sh" >conf$$.sh
11266 echo "exit 0" >>conf$$.sh
11268 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11276 if test "$GCC" = yes; then
11277 # Check if gcc -print-prog-name=ld gives a path.
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11279 $as_echo_n "checking for ld used by GCC... " >&6; }
11282 # gcc leaves a trailing carriage return which upsets mingw
11283 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11285 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11288 # Accept absolute paths.
11289 [\\/]* |
[A-Za-z
]:[\\/]*)
11290 re_direlt
='/[^/][^/]*/\.\./'
11291 # Canonicalize the path of ld
11292 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11293 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11294 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11296 test -z "$LD" && LD
="$ac_prog"
11299 # If it fails, then pretend we aren't using GCC.
11303 # If it is relative, then search for the first ld in PATH.
11304 with_gnu_ld
=unknown
11307 elif test "$with_gnu_ld" = yes; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11309 $as_echo_n "checking for GNU ld... " >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11312 $as_echo_n "checking for non-GNU ld... " >&6; }
11314 if ${acl_cv_path_LD+:} false
; then :
11315 $as_echo_n "(cached) " >&6
11317 if test -z "$LD"; then
11318 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11319 for ac_dir
in $PATH; do
11320 test -z "$ac_dir" && ac_dir
=.
11321 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11322 acl_cv_path_LD
="$ac_dir/$ac_prog"
11323 # Check to see if the program is GNU ld. I'd rather use --version,
11324 # but apparently some GNU ld's only accept -v.
11325 # Break only if it was the GNU/non-GNU ld that we prefer.
11326 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
11327 test "$with_gnu_ld" != no
&& break
11329 test "$with_gnu_ld" != yes && break
11335 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11339 LD
="$acl_cv_path_LD"
11340 if test -n "$LD"; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11342 $as_echo "$LD" >&6; }
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11347 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11350 if ${acl_cv_prog_gnu_ld+:} false
; then :
11351 $as_echo_n "(cached) " >&6
11353 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11354 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
11355 acl_cv_prog_gnu_ld
=yes
11357 acl_cv_prog_gnu_ld
=no
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11361 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11362 with_gnu_ld
=$acl_cv_prog_gnu_ld
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11367 $as_echo_n "checking for shared library run path origin... " >&6; }
11368 if ${acl_cv_rpath+:} false
; then :
11369 $as_echo_n "(cached) " >&6
11372 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11373 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11375 rm -f .
/conftest.sh
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11380 $as_echo "$acl_cv_rpath" >&6; }
11382 libext
="$acl_cv_libext"
11383 shlibext
="$acl_cv_shlibext"
11384 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11385 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11386 hardcode_direct
="$acl_cv_hardcode_direct"
11387 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11388 # Check whether --enable-rpath was given.
11389 if test "${enable_rpath+set}" = set; then :
11390 enableval
=$enable_rpath; :
11404 acl_save_prefix
="$prefix"
11405 prefix
="$acl_final_prefix"
11406 acl_save_exec_prefix
="$exec_prefix"
11407 exec_prefix
="$acl_final_exec_prefix"
11409 eval additional_includedir
=\"$includedir\"
11410 eval additional_libdir
=\"$libdir\"
11412 exec_prefix
="$acl_save_exec_prefix"
11413 prefix
="$acl_save_prefix"
11416 # Check whether --with-libiconv-prefix was given.
11417 if test "${with_libiconv_prefix+set}" = set; then :
11418 withval
=$with_libiconv_prefix;
11419 if test "X$withval" = "Xno"; then
11422 if test "X$withval" = "X"; then
11424 acl_save_prefix
="$prefix"
11425 prefix
="$acl_final_prefix"
11426 acl_save_exec_prefix
="$exec_prefix"
11427 exec_prefix
="$acl_final_exec_prefix"
11429 eval additional_includedir
=\"$includedir\"
11430 eval additional_libdir
=\"$libdir\"
11432 exec_prefix
="$acl_save_exec_prefix"
11433 prefix
="$acl_save_prefix"
11436 additional_includedir
="$withval/include"
11437 additional_libdir
="$withval/lib"
11444 # Check whether --with-libiconv-type was given.
11445 if test "${with_libiconv_type+set}" = set; then :
11446 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11448 with_libiconv_type
=auto
11451 lib_type
=`eval echo \$with_libiconv_type`
11458 names_already_handled
=
11459 names_next_round
='iconv '
11460 while test -n "$names_next_round"; do
11461 names_this_round
="$names_next_round"
11463 for name
in $names_this_round; do
11465 for n
in $names_already_handled; do
11466 if test "$n" = "$name"; then
11467 already_handled
=yes
11471 if test -z "$already_handled"; then
11472 names_already_handled
="$names_already_handled $name"
11473 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11474 eval value
=\"\
$HAVE_LIB$uppername\"
11475 if test -n "$value"; then
11476 if test "$value" = yes; then
11477 eval value
=\"\
$LIB$uppername\"
11478 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11479 eval value
=\"\
$LTLIB$uppername\"
11480 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11489 if test $use_additional = yes; then
11490 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11491 found_dir
="$additional_libdir"
11492 found_so
="$additional_libdir/lib$name.$shlibext"
11493 if test -f "$additional_libdir/lib$name.la"; then
11494 found_la
="$additional_libdir/lib$name.la"
11496 elif test x
$lib_type != xshared
; then
11497 if test -f "$additional_libdir/lib$name.$libext"; then
11498 found_dir
="$additional_libdir"
11499 found_a
="$additional_libdir/lib$name.$libext"
11500 if test -f "$additional_libdir/lib$name.la"; then
11501 found_la
="$additional_libdir/lib$name.la"
11506 if test "X$found_dir" = "X"; then
11507 for x
in $LDFLAGS $LTLIBICONV; do
11509 acl_save_prefix
="$prefix"
11510 prefix
="$acl_final_prefix"
11511 acl_save_exec_prefix
="$exec_prefix"
11512 exec_prefix
="$acl_final_exec_prefix"
11514 exec_prefix
="$acl_save_exec_prefix"
11515 prefix
="$acl_save_prefix"
11519 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11520 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11522 found_so
="$dir/lib$name.$shlibext"
11523 if test -f "$dir/lib$name.la"; then
11524 found_la
="$dir/lib$name.la"
11526 elif test x
$lib_type != xshared
; then
11527 if test -f "$dir/lib$name.$libext"; then
11529 found_a
="$dir/lib$name.$libext"
11530 if test -f "$dir/lib$name.la"; then
11531 found_la
="$dir/lib$name.la"
11537 if test "X$found_dir" != "X"; then
11542 if test "X$found_dir" != "X"; then
11543 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11544 if test "X$found_so" != "X"; then
11545 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11546 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11549 for x
in $ltrpathdirs; do
11550 if test "X$x" = "X$found_dir"; then
11555 if test -z "$haveit"; then
11556 ltrpathdirs
="$ltrpathdirs $found_dir"
11558 if test "$hardcode_direct" = yes; then
11559 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11561 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11562 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11564 for x
in $rpathdirs; do
11565 if test "X$x" = "X$found_dir"; then
11570 if test -z "$haveit"; then
11571 rpathdirs
="$rpathdirs $found_dir"
11575 for x
in $LDFLAGS $LIBICONV; do
11577 acl_save_prefix
="$prefix"
11578 prefix
="$acl_final_prefix"
11579 acl_save_exec_prefix
="$exec_prefix"
11580 exec_prefix
="$acl_final_exec_prefix"
11582 exec_prefix
="$acl_save_exec_prefix"
11583 prefix
="$acl_save_prefix"
11585 if test "X$x" = "X-L$found_dir"; then
11590 if test -z "$haveit"; then
11591 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11593 if test "$hardcode_minus_L" != no
; then
11594 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11596 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11602 if test "X$found_a" != "X"; then
11603 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11605 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11608 additional_includedir
=
11609 case "$found_dir" in
11611 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11612 additional_includedir
="$basedir/include"
11615 if test "X$additional_includedir" != "X"; then
11616 if test "X$additional_includedir" != "X/usr/include"; then
11618 if test "X$additional_includedir" = "X/usr/local/include"; then
11619 if test -n "$GCC"; then
11621 linux
*) haveit
=yes;;
11625 if test -z "$haveit"; then
11626 for x
in $CPPFLAGS $INCICONV; do
11628 acl_save_prefix
="$prefix"
11629 prefix
="$acl_final_prefix"
11630 acl_save_exec_prefix
="$exec_prefix"
11631 exec_prefix
="$acl_final_exec_prefix"
11633 exec_prefix
="$acl_save_exec_prefix"
11634 prefix
="$acl_save_prefix"
11636 if test "X$x" = "X-I$additional_includedir"; then
11641 if test -z "$haveit"; then
11642 if test -d "$additional_includedir"; then
11643 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11649 if test -n "$found_la"; then
11650 save_libdir
="$libdir"
11651 case "$found_la" in
11652 */* |
*\\*) .
"$found_la" ;;
11653 *) .
"./$found_la" ;;
11655 libdir
="$save_libdir"
11656 for dep
in $dependency_libs; do
11659 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11660 if test "X$additional_libdir" != "X/usr/lib"; then
11662 if test "X$additional_libdir" = "X/usr/local/lib"; then
11663 if test -n "$GCC"; then
11665 linux
*) haveit
=yes;;
11669 if test -z "$haveit"; then
11671 for x
in $LDFLAGS $LIBICONV; do
11673 acl_save_prefix
="$prefix"
11674 prefix
="$acl_final_prefix"
11675 acl_save_exec_prefix
="$exec_prefix"
11676 exec_prefix
="$acl_final_exec_prefix"
11678 exec_prefix
="$acl_save_exec_prefix"
11679 prefix
="$acl_save_prefix"
11681 if test "X$x" = "X-L$additional_libdir"; then
11686 if test -z "$haveit"; then
11687 if test -d "$additional_libdir"; then
11688 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11692 for x
in $LDFLAGS $LTLIBICONV; do
11694 acl_save_prefix
="$prefix"
11695 prefix
="$acl_final_prefix"
11696 acl_save_exec_prefix
="$exec_prefix"
11697 exec_prefix
="$acl_final_exec_prefix"
11699 exec_prefix
="$acl_save_exec_prefix"
11700 prefix
="$acl_save_prefix"
11702 if test "X$x" = "X-L$additional_libdir"; then
11707 if test -z "$haveit"; then
11708 if test -d "$additional_libdir"; then
11709 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11716 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11717 if test "$enable_rpath" != no
; then
11719 for x
in $rpathdirs; do
11720 if test "X$x" = "X$dir"; then
11725 if test -z "$haveit"; then
11726 rpathdirs
="$rpathdirs $dir"
11729 for x
in $ltrpathdirs; do
11730 if test "X$x" = "X$dir"; then
11735 if test -z "$haveit"; then
11736 ltrpathdirs
="$ltrpathdirs $dir"
11741 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11744 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11747 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11748 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11754 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11755 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11756 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11758 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11759 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11766 if test "X$rpathdirs" != "X"; then
11767 if test -n "$hardcode_libdir_separator"; then
11769 for found_dir
in $rpathdirs; do
11770 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11772 acl_save_libdir
="$libdir"
11774 eval flag
=\"$hardcode_libdir_flag_spec\"
11775 libdir
="$acl_save_libdir"
11776 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11778 for found_dir
in $rpathdirs; do
11779 acl_save_libdir
="$libdir"
11780 libdir
="$found_dir"
11781 eval flag
=\"$hardcode_libdir_flag_spec\"
11782 libdir
="$acl_save_libdir"
11783 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11787 if test "X$ltrpathdirs" != "X"; then
11788 for found_dir
in $ltrpathdirs; do
11789 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11800 $as_echo_n "checking for iconv... " >&6; }
11801 if ${am_cv_func_iconv+:} false
; then :
11802 $as_echo_n "(cached) " >&6
11805 am_cv_func_iconv
="no, consider installing GNU libiconv"
11807 am_save_CPPFLAGS
="$CPPFLAGS"
11808 CPPFLAGS
="$CPPFLAGS $INCICONV"
11809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #include <stdlib.h>
11816 iconv_t cd = iconv_open("","");
11817 iconv(cd,NULL,NULL,NULL,NULL);
11823 if ac_fn_cxx_try_link
"$LINENO"; then :
11824 am_cv_func_iconv
=yes
11826 rm -f core conftest.err conftest.
$ac_objext \
11827 conftest
$ac_exeext conftest.
$ac_ext
11828 CPPFLAGS
="$am_save_CPPFLAGS"
11830 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11831 for _libs
in .libs _libs
; do
11832 am_save_CPPFLAGS
="$CPPFLAGS"
11833 am_save_LIBS
="$LIBS"
11834 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11835 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11838 #include <stdlib.h>
11843 iconv_t cd = iconv_open("","");
11844 iconv(cd,NULL,NULL,NULL,NULL);
11850 if ac_fn_cxx_try_link
"$LINENO"; then :
11851 INCICONV
="-I../libiconv/include"
11852 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11853 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11854 am_cv_lib_iconv
=yes
11855 am_cv_func_iconv
=yes
11857 rm -f core conftest.err conftest.
$ac_objext \
11858 conftest
$ac_exeext conftest.
$ac_ext
11859 CPPFLAGS
="$am_save_CPPFLAGS"
11860 LIBS
="$am_save_LIBS"
11861 if test "$am_cv_func_iconv" = "yes"; then
11867 if test "$am_cv_func_iconv" != yes; then
11868 am_save_CPPFLAGS
="$CPPFLAGS"
11869 am_save_LIBS
="$LIBS"
11870 CPPFLAGS
="$CPPFLAGS $INCICONV"
11871 LIBS
="$LIBS $LIBICONV"
11872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874 #include <stdlib.h>
11879 iconv_t cd = iconv_open("","");
11880 iconv(cd,NULL,NULL,NULL,NULL);
11886 if ac_fn_cxx_try_link
"$LINENO"; then :
11887 am_cv_lib_iconv
=yes
11888 am_cv_func_iconv
=yes
11890 rm -f core conftest.err conftest.
$ac_objext \
11891 conftest
$ac_exeext conftest.
$ac_ext
11892 CPPFLAGS
="$am_save_CPPFLAGS"
11893 LIBS
="$am_save_LIBS"
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11898 $as_echo "$am_cv_func_iconv" >&6; }
11899 if test "$am_cv_func_iconv" = yes; then
11901 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11904 if test "$am_cv_lib_iconv" = yes; then
11906 for element
in $INCICONV; do
11908 for x
in $CPPFLAGS; do
11910 acl_save_prefix
="$prefix"
11911 prefix
="$acl_final_prefix"
11912 acl_save_exec_prefix
="$exec_prefix"
11913 exec_prefix
="$acl_final_exec_prefix"
11915 exec_prefix
="$acl_save_exec_prefix"
11916 prefix
="$acl_save_prefix"
11918 if test "X$x" = "X$element"; then
11923 if test -z "$haveit"; then
11924 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11929 $as_echo_n "checking how to link with libiconv... " >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11931 $as_echo "$LIBICONV" >&6; }
11939 if test "$am_cv_func_iconv" = yes; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11941 $as_echo_n "checking for iconv declaration... " >&6; }
11942 if ${am_cv_proto_iconv+:} false
; then :
11943 $as_echo_n "(cached) " >&6
11946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11949 #include <stdlib.h>
11955 #if defined(__STDC__) || defined(__cplusplus)
11956 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11969 if ac_fn_cxx_try_compile
"$LINENO"; then :
11970 am_cv_proto_iconv_arg1
=""
11972 am_cv_proto_iconv_arg1
="const"
11974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11975 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);"
11978 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11980 }$am_cv_proto_iconv" >&5
11982 }$am_cv_proto_iconv" >&6; }
11984 cat >>confdefs.h
<<_ACEOF
11985 #define ICONV_CONST $am_cv_proto_iconv_arg1
11991 # Until we have in-tree GNU iconv:
11993 if test -f "$LTLIBICONV"; then
11994 LIBICONV_DEP
=$LTLIBICONV
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12000 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12001 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12002 $as_echo_n "(cached) " >&6
12004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12006 #include <locale.h>
12015 if ac_fn_cxx_try_link
"$LINENO"; then :
12016 am_cv_val_LC_MESSAGES
=yes
12018 am_cv_val_LC_MESSAGES
=no
12020 rm -f core conftest.err conftest.
$ac_objext \
12021 conftest
$ac_exeext conftest.
$ac_ext
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12024 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12025 if test $am_cv_val_LC_MESSAGES = yes; then
12027 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12034 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12035 if ${am_cv_langinfo_codeset+:} false
; then :
12036 $as_echo_n "(cached) " >&6
12038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040 #include <langinfo.h>
12044 char* cs = nl_langinfo(CODESET);
12049 if ac_fn_cxx_try_link
"$LINENO"; then :
12050 am_cv_langinfo_codeset
=yes
12052 am_cv_langinfo_codeset
=no
12054 rm -f core conftest.err conftest.
$ac_objext \
12055 conftest
$ac_exeext conftest.
$ac_ext
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12059 $as_echo "$am_cv_langinfo_codeset" >&6; }
12060 if test $am_cv_langinfo_codeset = yes; then
12062 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12067 # We will need to find libiberty.h and ansidecl.h
12068 saved_CFLAGS
="$CFLAGS"
12069 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12070 saved_CXXFLAGS
="$CXXFLAGS"
12071 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12073 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12074 # normal autoconf function for these. But force definition of
12075 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12076 # basename handling in libiberty.h.
12077 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12078 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12079 #undef HAVE_DECL_BASENAME
12080 #define HAVE_DECL_BASENAME 1
12081 #include \"ansidecl.h\"
12082 #include \"system.h\"
12084 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12090 cat >>confdefs.h
<<_ACEOF
12091 #define HAVE_DECL_BASENAME $ac_have_decl
12093 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12094 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12095 #undef HAVE_DECL_BASENAME
12096 #define HAVE_DECL_BASENAME 1
12097 #include \"ansidecl.h\"
12098 #include \"system.h\"
12100 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12106 cat >>confdefs.h
<<_ACEOF
12107 #define HAVE_DECL_STRSTR $ac_have_decl
12111 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12112 madvise stpcpy strnlen strsignal strverscmp \
12113 strtol strtoul strtoll strtoull setenv unsetenv \
12114 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12115 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
12117 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12119 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12120 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12121 $as_echo_n "(cached) " >&6
12123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12126 #define $ac_tr_decl 1
12128 #include "ansidecl.h"
12129 #include "system.h"
12135 char *(*pfn) = (char *(*)) $ac_func ;
12141 if ac_fn_cxx_try_compile
"$LINENO"; then :
12142 eval "gcc_cv_have_decl_$ac_func=yes"
12144 eval "gcc_cv_have_decl_$ac_func=no"
12146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12149 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12151 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12152 #define $ac_tr_decl 1
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12158 #define $ac_tr_decl 0
12166 for ac_func
in getrlimit setrlimit getrusage
12168 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12170 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12171 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12172 $as_echo_n "(cached) " >&6
12174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 #define $ac_tr_decl 1
12179 #include "ansidecl.h"
12180 #include "system.h"
12181 #ifdef HAVE_SYS_RESOURCE_H
12182 #include <sys/resource.h>
12190 char *(*pfn) = (char *(*)) $ac_func ;
12196 if ac_fn_cxx_try_compile
"$LINENO"; then :
12197 eval "gcc_cv_have_decl_$ac_func=yes"
12199 eval "gcc_cv_have_decl_$ac_func=no"
12201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12204 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12207 #define $ac_tr_decl 1
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12213 #define $ac_tr_decl 0
12221 for ac_func
in mallinfo mallinfo2
12223 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12225 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12226 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12227 $as_echo_n "(cached) " >&6
12229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12232 #define $ac_tr_decl 1
12234 #include "ansidecl.h"
12235 #include "system.h"
12236 #ifdef HAVE_MALLOC_H
12237 #include <malloc.h>
12245 char *(*pfn) = (char *(*)) $ac_func ;
12251 if ac_fn_cxx_try_compile
"$LINENO"; then :
12252 eval "gcc_cv_have_decl_$ac_func=yes"
12254 eval "gcc_cv_have_decl_$ac_func=no"
12256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12259 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12261 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12262 #define $ac_tr_decl 1
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12268 #define $ac_tr_decl 0
12276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 #include "ansidecl.h"
12280 #include "system.h"
12281 #ifdef HAVE_SYS_RESOURCE_H
12282 #include <sys/resource.h>
12293 if ac_fn_cxx_try_compile
"$LINENO"; then :
12297 $as_echo "#define rlim_t long" >>confdefs.h
12300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12302 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12303 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12304 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12305 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12306 for ac_func
in ldgetname
12308 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12310 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12311 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12312 $as_echo_n "(cached) " >&6
12314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12317 #define $ac_tr_decl 1
12319 #include "ansidecl.h"
12320 #include "system.h"
12321 #ifdef HAVE_LDFCN_H
12332 char *(*pfn) = (char *(*)) $ac_func ;
12338 if ac_fn_cxx_try_compile
"$LINENO"; then :
12339 eval "gcc_cv_have_decl_$ac_func=yes"
12341 eval "gcc_cv_have_decl_$ac_func=no"
12343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12346 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12349 #define $ac_tr_decl 1
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12355 #define $ac_tr_decl 0
12363 for ac_func
in times
12365 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12367 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12368 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12369 $as_echo_n "(cached) " >&6
12371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 #define $ac_tr_decl 1
12376 #include "ansidecl.h"
12377 #include "system.h"
12378 #ifdef HAVE_SYS_TIMES_H
12379 #include <sys/times.h>
12387 char *(*pfn) = (char *(*)) $ac_func ;
12393 if ac_fn_cxx_try_compile
"$LINENO"; then :
12394 eval "gcc_cv_have_decl_$ac_func=yes"
12396 eval "gcc_cv_have_decl_$ac_func=no"
12398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12401 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12404 #define $ac_tr_decl 1
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12410 #define $ac_tr_decl 0
12418 for ac_func
in sigaltstack
12420 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12422 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12423 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12424 $as_echo_n "(cached) " >&6
12426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12429 #define $ac_tr_decl 1
12431 #include "ansidecl.h"
12432 #include "system.h"
12433 #include <signal.h>
12440 char *(*pfn) = (char *(*)) $ac_func ;
12446 if ac_fn_cxx_try_compile
"$LINENO"; then :
12447 eval "gcc_cv_have_decl_$ac_func=yes"
12449 eval "gcc_cv_have_decl_$ac_func=no"
12451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12454 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12457 #define $ac_tr_decl 1
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12463 #define $ac_tr_decl 0
12471 # More time-related stuff.
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12473 $as_echo_n "checking for struct tms... " >&6; }
12474 if ${ac_cv_struct_tms+:} false
; then :
12475 $as_echo_n "(cached) " >&6
12478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12481 #include "ansidecl.h"
12482 #include "system.h"
12483 #ifdef HAVE_SYS_TIMES_H
12484 #include <sys/times.h>
12495 if ac_fn_cxx_try_compile
"$LINENO"; then :
12496 ac_cv_struct_tms
=yes
12498 ac_cv_struct_tms
=no
12500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12503 $as_echo "$ac_cv_struct_tms" >&6; }
12504 if test $ac_cv_struct_tms = yes; then
12506 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12510 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12511 # revisit after autoconf 2.50.
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12513 $as_echo_n "checking for clock_t... " >&6; }
12514 if ${gcc_cv_type_clock_t+:} false
; then :
12515 $as_echo_n "(cached) " >&6
12518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12521 #include "ansidecl.h"
12522 #include "system.h"
12532 if ac_fn_cxx_try_compile
"$LINENO"; then :
12533 gcc_cv_type_clock_t
=yes
12535 gcc_cv_type_clock_t
=no
12537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12540 $as_echo "$gcc_cv_type_clock_t" >&6; }
12541 if test $gcc_cv_type_clock_t = yes; then
12543 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12547 # Check if F_SETLKW is supported by fcntl.
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12549 $as_echo_n "checking for F_SETLKW... " >&6; }
12550 if ${ac_cv_f_setlkw+:} false
; then :
12551 $as_echo_n "(cached) " >&6
12554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12567 return fcntl (1, F_SETLKW, &fl);
12572 if ac_fn_cxx_try_compile
"$LINENO"; then :
12577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12580 $as_echo "$ac_cv_f_setlkw" >&6; }
12581 if test $ac_cv_f_setlkw = yes; then
12583 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12587 # Check if O_CLOEXEC is defined by fcntl
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12589 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12590 if ${ac_cv_o_cloexec+:} false
; then :
12591 $as_echo_n "(cached) " >&6
12594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12602 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12607 if ac_fn_cxx_try_compile
"$LINENO"; then :
12608 ac_cv_o_cloexec
=yes
12612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12615 $as_echo "$ac_cv_o_cloexec" >&6; }
12616 if test $ac_cv_o_cloexec = yes; then
12618 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12622 # Check if O_NONBLOCK is defined by fcntl
12623 for ac_header
in fcntl.h
12625 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12626 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12627 cat >>confdefs.h
<<_ACEOF
12628 #define HAVE_FCNTL_H 1
12634 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12636 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12640 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12642 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12647 # C++ Modules would like some networking features to provide the mapping
12648 # server. You can still use modules without them though.
12649 # The following network-related checks could probably do with some
12650 # Windows and other non-linux defenses and checking.
12652 # Local socket connectivity wants AF_UNIX networking
12653 # Check for AF_UNIX networking
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12655 $as_echo_n "checking for AF_UNIX... " >&6; }
12656 if ${ac_cv_af_unix+:} false
; then :
12657 $as_echo_n "(cached) " >&6
12660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12663 #include <sys/types.h>
12664 #include <sys/socket.h>
12665 #include <sys/un.h>
12666 #include <netinet/in.h>
12672 un.sun_family = AF_UNSPEC;
12673 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12674 connect (fd, (sockaddr *)&un, sizeof (un));
12679 if ac_fn_cxx_try_compile
"$LINENO"; then :
12684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12687 $as_echo "$ac_cv_af_unix" >&6; }
12688 if test $ac_cv_af_unix = yes; then
12690 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12694 # Remote socket connectivity wants AF_INET6 networking
12695 # Check for AF_INET6 networking
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12697 $as_echo_n "checking for AF_INET6... " >&6; }
12698 if ${ac_cv_af_inet6+:} false
; then :
12699 $as_echo_n "(cached) " >&6
12702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12705 #include <sys/types.h>
12706 #include <sys/socket.h>
12707 #include <netinet/in.h>
12714 in6.sin6_family = AF_UNSPEC;
12715 struct addrinfo *addrs = 0;
12716 struct addrinfo hints;
12717 hints.ai_flags = 0;
12718 hints.ai_family = AF_INET6;
12719 hints.ai_socktype = SOCK_STREAM;
12720 hints.ai_protocol = 0;
12721 hints.ai_canonname = 0;
12724 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12725 const char *str = gai_strerror (e);
12726 freeaddrinfo (addrs);
12727 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12728 connect (fd, (sockaddr *)&in6, sizeof (in6));
12733 if ac_fn_cxx_try_compile
"$LINENO"; then :
12738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12741 $as_echo "$ac_cv_af_inet6" >&6; }
12742 if test $ac_cv_af_inet6 = yes; then
12744 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12748 # Check if _LK_LOCK is supported by _locking
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12750 $as_echo_n "checking for _LK_LOCK... " >&6; }
12751 if ${ac_cv_lk_lock+:} false
; then :
12752 $as_echo_n "(cached) " >&6
12755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12759 #include <sys/locking.h>
12765 return _locking (fd, _LK_LOCK, 0);
12770 if ac_fn_cxx_try_compile
"$LINENO"; then :
12775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12778 $as_echo "$ac_cv_lk_lock" >&6; }
12779 if test $ac_cv_lk_lock = yes; then
12781 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12785 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12786 CFLAGS
="$saved_CFLAGS"
12787 CXXFLAGS
="$saved_CXXFLAGS"
12789 # mkdir takes a single argument on some systems.
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12791 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12792 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12793 $as_echo_n "(cached) " >&6
12795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12798 #include <sys/types.h>
12799 #ifdef HAVE_SYS_STAT_H
12800 # include <sys/stat.h>
12802 #ifdef HAVE_UNISTD_H
12803 # include <unistd.h>
12805 #ifdef HAVE_DIRECT_H
12806 # include <direct.h>
12816 if ac_fn_cxx_try_compile
"$LINENO"; then :
12817 gcc_cv_mkdir_takes_one_arg
=no
12819 gcc_cv_mkdir_takes_one_arg
=yes
12821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12824 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12825 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12827 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12838 # With Setjmp/Longjmp based exception handling.
12839 # Check whether --enable-sjlj-exceptions was given.
12840 if test "${enable_sjlj_exceptions+set}" = set; then :
12841 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12845 force_sjlj_exceptions
=yes
12849 force_sjlj_exceptions
=no
12854 if test $force_sjlj_exceptions = yes; then
12855 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12857 cat >>confdefs.h
<<_ACEOF
12858 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12863 # --------------------------------------------------------
12864 # Build, host, and target specific configuration fragments
12865 # --------------------------------------------------------
12867 # Collect build-machine-specific information.
12868 .
${srcdir}/config.build ||
exit 1
12870 # Collect host-machine-specific information.
12871 .
${srcdir}/config.
host ||
exit 1
12875 # Collect target-machine-specific information.
12876 .
${srcdir}/config.gcc ||
exit 1
12878 extra_objs
="${host_extra_objs} ${extra_objs}"
12879 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12881 # Default the target-machine variables that were not explicitly set.
12882 if test x
"$tm_file" = x
12883 then tm_file
=$cpu_type/$cpu_type.h
; fi
12885 if test x
"$extra_headers" = x
12886 then extra_headers
=; fi
12888 if test x
$md_file = x
12889 then md_file
=$cpu_type/$cpu_type.md
; fi
12891 if test x
$out_file = x
12892 then out_file
=$cpu_type/$cpu_type.cc
; fi
12894 if test x
"$tmake_file" = x
12895 then tmake_file
=$cpu_type/t-
$cpu_type
12898 # Support --enable-initfini-array.
12899 if test x
$enable_initfini_array != xno
; then
12900 tm_file
="${tm_file} initfini-array.h"
12903 if test x
"$dwarf2" = xyes
12904 then tm_file
="$tm_file tm-dwarf2.h"
12907 # Say what files are being used for the output code and MD file.
12908 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12909 echo "Using \`$srcdir/config/$md_file' as machine description file."
12911 # If any of the xm_file variables contain nonexistent files, warn
12912 # about them and drop them.
12915 for x
in $build_xm_file; do
12916 if test -f $srcdir/config
/$x
12918 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12919 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12922 build_xm_file
="$bx"
12925 for x
in $host_xm_file; do
12926 if test -f $srcdir/config
/$x
12928 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12929 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12935 for x
in $xm_file; do
12936 if test -f $srcdir/config
/$x
12938 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12939 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12945 for f
in $tm_file; do
12948 if test $count = ax
; then
12949 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12951 echo "Using the following target machine macro files:"
12952 for f
in $tm_file; do
12953 echo " $srcdir/config/$f"
12957 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12959 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12963 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12965 cat >>confdefs.h
<<_ACEOF
12966 #define HAVE_GNU_LD $gnu_ld_bool
12970 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12972 cat >>confdefs.h
<<_ACEOF
12973 #define HAVE_GNU_AS $gnu_as_bool
12978 for f
in $host_xm_file; do
12981 if test $count = a
; then
12983 elif test $count = ax
; then
12984 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12986 echo "Using the following host machine macro files:"
12987 for f
in $host_xm_file; do
12988 echo " $srcdir/config/$f"
12991 echo "Using ${out_host_hook_obj} for host machine hooks."
12993 if test "$host_xm_file" != "$build_xm_file"; then
12995 for f
in $build_xm_file; do
12998 if test $count = a
; then
13000 elif test $count = ax
; then
13001 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13003 echo "Using the following build machine macro files:"
13004 for f
in $build_xm_file; do
13005 echo " $srcdir/config/$f"
13010 if test -n "$configured_native_system_header_dir"; then
13011 native_system_header_dir
=$configured_native_system_header_dir
13013 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
13017 powerpc
*-*-darwin*)
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13019 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13020 if ${gcc_cv_mcontext_underscores+:} false
; then :
13021 $as_echo_n "(cached) " >&6
13023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13026 #include <sys/cdefs.h>
13027 #include <sys/signal.h>
13028 #include <ucontext.h>
13029 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13032 if ac_fn_cxx_try_compile
"$LINENO"; then :
13033 gcc_cv_mcontext_underscores
=no
13035 gcc_cv_mcontext_underscores
=yes
13037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13040 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13041 if test $gcc_cv_mcontext_underscores = yes; then
13043 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13053 # Check if a valid thread package
13054 case ${enable_threads} in
13057 target_thread_file
='single'
13061 target_thread_file
='single'
13063 aix | dce | lynx | mipssde | posix | rtems | \
13064 single | tpf | vxworks | win32 | mcf
)
13065 target_thread_file
=${enable_threads}
13068 echo "${enable_threads} is an unknown thread package" 1>&2
13073 if test x
${thread_file} = x
; then
13074 # No thread file set by target-specific clauses in config.gcc,
13075 # so use file chosen by default logic above
13076 thread_file
=${target_thread_file}
13084 if test x
$enable___cxa_atexit = xyes || \
13085 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13086 if test x
$host = x
$target; then
13088 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13089 # keyed to flag_use_cxa_atexit
13097 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13098 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13101 echo "__cxa_atexit can't be enabled on this target"
13107 # We can't check for __cxa_atexit when building a cross, so assume
13111 if test x
$use_cxa_atexit = xyes
; then
13113 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13118 # Look for a file containing extra machine modes.
13119 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13120 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13123 cat >>confdefs.h
<<_ACEOF
13124 #define EXTRA_MODES_FILE "config/$extra_modes"
13129 # Convert extra_options into a form suitable for Makefile use.
13132 for f
in $extra_options; do
13133 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13134 all_opt_files
="$all_opt_files $srcdir/config/$f"
13138 # auto-host.h is the file containing items generated by autoconf and is
13139 # the first file included by config.h.
13140 # If host=build, it is correct to have bconfig include auto-host.h
13141 # as well. If host!=build, we are in error and need to do more
13142 # work to find out the build config parameters.
13143 if test x
$host = x
$build
13145 build_auto
=auto-host.h
13146 HAVE_AUTO_BUILD
='# '
13148 # We create a subdir, then run autoconf in the subdir.
13149 # To prevent recursion we set host and build for the new
13150 # invocation of configure to the build for this invocation
13157 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13158 *) realsrcdir
=..
/${srcdir};;
13160 # Clearing GMPINC is necessary to prevent host headers being
13161 # used by the build compiler. Defining GENERATOR_FILE stops
13162 # system.h from including gmp.h.
13163 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13164 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13165 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13166 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13167 ${realsrcdir}/configure \
13168 --enable-languages=${enable_languages-all} \
13169 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13170 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13171 --target=$target_alias --host=$build_alias \
13172 --build=$build_alias ||
exit # retaining $tempdir
13174 # We just finished tests for the build machine, so rename
13175 # the file auto-build.h in the gcc directory.
13176 mv auto-host.h ..
/auto-build.h
13179 build_auto
=auto-build.h
13185 tm_file
="${tm_file} defaults.h"
13186 tm_p_file
="${tm_p_file} tm-preds.h"
13187 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13188 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13189 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13190 # put this back in temporarily.
13191 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13197 # Compile in configure arguments.
13198 if test -f configargs.h
; then
13199 # Being re-configured.
13200 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13201 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13202 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13203 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13206 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13209 # Double all backslashes and backslash all quotes to turn
13210 # gcc_config_arguments into a C string.
13211 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13212 $gcc_config_arguments
13214 gcc_config_arguments_str
=`cat conftest.out`
13217 cat > configargs.h
<<EOF
13218 /* Generated automatically. */
13219 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13220 static const char thread_model[] = "$thread_file";
13222 static const struct {
13223 const char *name, *value;
13224 } configure_default_options[] = $configure_default_options;
13227 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13228 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13229 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13230 if test -f $srcdir/REVISION
; then
13231 gcc_REVISION
=`cat $srcdir/REVISION`
13235 cat > plugin-version.h
<<EOF
13236 #include "configargs.h"
13238 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13239 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13240 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13241 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13243 static char basever[] = "$gcc_BASEVER";
13244 static char datestamp[] = "$gcc_DATESTAMP";
13245 static char devphase[] = "$gcc_DEVPHASE";
13246 static char revision[] = "$gcc_REVISION";
13248 /* FIXME plugins: We should make the version information more precise.
13249 One way to do is to add a checksum. */
13251 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13252 devphase, revision,
13253 configuration_arguments};
13256 # Determine what GCC version number to use in filesystem paths.
13258 get_gcc_base_ver
="cat"
13260 # Check whether --with-gcc-major-version-only was given.
13261 if test "${with_gcc_major_version_only+set}" = set; then :
13262 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13263 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13271 # Internationalization
13272 # If we haven't got the data from the intl directory,
13273 # assume NLS is disabled.
13282 if test -f ..
/intl
/config.intl
; then
13283 . ..
/intl
/config.intl
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13286 $as_echo_n "checking whether NLS is requested... " >&6; }
13287 if test x
"$USE_NLS" != xyes
; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13294 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13298 $as_echo_n "checking for catalogs to be installed... " >&6; }
13299 # Look for .po and .gmo files in the source directory.
13302 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13303 # If there aren't any .gmo files the shell will give us the
13304 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13306 case "$cat" in *\
**)
13309 # The quadruple backslash is collapsed to a double backslash
13310 # by the backticks, then collapsed again by the double quotes,
13311 # leaving us with one backslash in the sed expression (right
13312 # before the dot that mustn't act as a wildcard).
13313 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13314 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13315 # The user is allowed to set LINGUAS to a list of languages to
13316 # install catalogs for. If it's empty that means "all of them."
13317 if test "x$LINGUAS" = x
; then
13318 CATALOGS
="$CATALOGS $cat"
13319 XLINGUAS
="$XLINGUAS $lang"
13321 case "$LINGUAS" in *$lang*)
13322 CATALOGS
="$CATALOGS $cat"
13323 XLINGUAS
="$XLINGUAS $lang"
13328 LINGUAS
="$XLINGUAS"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13330 $as_echo "$LINGUAS" >&6; }
13343 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13344 # -liconv on the link line twice.
13345 case "$LIBINTL" in *$LIBICONV*)
13349 # Check whether --enable-secureplt was given.
13350 if test "${enable_secureplt+set}" = set; then :
13351 enableval
=$enable_secureplt;
13355 # Check whether --enable-mingw-wildcard was given.
13356 if test "${enable_mingw_wildcard+set}" = set; then :
13357 enableval
=$enable_mingw_wildcard;
13359 enable_mingw_wildcard
=platform
13362 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13364 cat >>confdefs.h
<<_ACEOF
13365 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13370 # Check whether --enable-large-address-aware was given.
13371 if test "${enable_large_address_aware+set}" = set; then :
13372 enableval
=$enable_large_address_aware;
13375 if test x
"$enable_large_address_aware" = xyes
; then :
13377 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13381 # Check whether --enable-leading-mingw64-underscores was given.
13382 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13383 enableval
=$enable_leading_mingw64_underscores;
13386 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13388 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13392 # Check whether --enable-cld was given.
13393 if test "${enable_cld+set}" = set; then :
13394 enableval
=$enable_cld;
13400 # Check whether --enable-frame-pointer was given.
13401 if test "${enable_frame_pointer+set}" = set; then :
13402 enableval
=$enable_frame_pointer;
13406 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13407 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13408 enable_frame_pointer
=no
13411 enable_frame_pointer
=yes
13419 i
[34567]86-*-* | x86_64-
*-*)
13420 if test "x$enable_cld" = xyes
; then
13421 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13423 if test "x$enable_frame_pointer" = xyes
; then
13424 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13429 # Windows32 Registry support for specifying GCC installation paths.
13430 # Check whether --enable-win32-registry was given.
13431 if test "${enable_win32_registry+set}" = set; then :
13432 enableval
=$enable_win32_registry;
13437 win32 | pe | cygwin
* | mingw32
*)
13438 if test "x$enable_win32_registry" != xno
; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13440 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13441 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13442 $as_echo_n "(cached) " >&6
13444 ac_func_search_save_LIBS
=$LIBS
13445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13448 /* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13454 char RegOpenKeyExA ();
13458 return RegOpenKeyExA ();
13463 for ac_lib
in '' advapi32
; do
13464 if test -z "$ac_lib"; then
13465 ac_res
="none required"
13468 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13470 if ac_fn_cxx_try_link
"$LINENO"; then :
13471 ac_cv_search_RegOpenKeyExA
=$ac_res
13473 rm -f core conftest.err conftest.
$ac_objext \
13475 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13479 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13482 ac_cv_search_RegOpenKeyExA
=no
13484 rm conftest.
$ac_ext
13485 LIBS
=$ac_func_search_save_LIBS
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13488 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13489 ac_res
=$ac_cv_search_RegOpenKeyExA
13490 if test "$ac_res" != no
; then :
13491 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13494 enable_win32_registry
=no
13499 if test "x$enable_win32_registry" != xno
; then
13501 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13504 if test "x$enable_win32_registry" != xyes \
13505 && test "x$enable_win32_registry" != x
; then
13507 cat >>confdefs.h
<<_ACEOF
13508 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13516 # Get an absolute path to the GCC top-level source directory
13517 holddir
=`${PWDCMD-pwd}`
13519 topdir
=`${PWDCMD-pwd}`
13522 # Conditionalize the makefile for this host machine.
13524 for f
in ${host_xmake_file}
13526 if test -f ${srcdir}/config
/$f
13528 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13532 # Conditionalize the makefile for this target machine.
13534 for f
in ${tmake_file}
13536 if test -f ${srcdir}/config
/$f
13538 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13541 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13543 out_object_file
=`basename $out_file .cc`.o
13544 common_out_object_file
=`basename $common_out_file .cc`.o
13546 tm_file_list
="options.h"
13547 tm_include_list
="options.h insn-constants.h"
13548 for f
in $tm_file; do
13551 f
=`echo $f | sed 's/^..//'`
13552 tm_file_list
="${tm_file_list} $f"
13553 tm_include_list
="${tm_include_list} $f"
13556 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13557 tm_include_list
="${tm_include_list} $f"
13560 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13561 tm_include_list
="${tm_include_list} config/$f"
13568 for f
in $tm_p_file; do
13571 tm_p_file_list
="${tm_p_file_list} $f"
13572 tm_p_include_list
="${tm_p_include_list} $f"
13575 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13576 tm_p_include_list
="${tm_p_include_list} config/$f"
13582 for f
in $tm_d_file; do
13585 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13586 tm_d_include_list
="${tm_d_include_list} config/$f"
13592 tm_rust_include_list
=
13593 for f
in $tm_rust_file; do
13596 tm_rust_file_list
="${tm_rust_file_list} \$(srcdir)/config/$f"
13597 tm_rust_include_list
="${tm_rust_include_list} config/$f"
13604 for f
in $xm_file; do
13607 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13608 xm_include_list
="${xm_include_list} $f"
13611 xm_file_list
="${xm_file_list} $f"
13612 xm_include_list
="${xm_include_list} $f"
13615 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13616 xm_include_list
="${xm_include_list} config/$f"
13622 host_xm_include_list
=
13623 for f
in $host_xm_file; do
13626 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13627 host_xm_include_list
="${host_xm_include_list} $f"
13630 host_xm_file_list
="${host_xm_file_list} $f"
13631 host_xm_include_list
="${host_xm_include_list} $f"
13634 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13635 host_xm_include_list
="${host_xm_include_list} config/$f"
13640 build_xm_file_list
=
13641 for f
in $build_xm_file; do
13644 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13645 build_xm_include_list
="${build_xm_include_list} $f"
13647 auto-build.h | auto-host.h
)
13648 build_xm_file_list
="${build_xm_file_list} $f"
13649 build_xm_include_list
="${build_xm_include_list} $f"
13652 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13653 build_xm_include_list
="${build_xm_include_list} config/$f"
13658 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13659 # cross-compiler which does not use the native headers and libraries.
13660 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13663 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13664 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13666 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13667 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13668 if test "x$with_build_sysroot" != x
; then
13669 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13671 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13674 if test x
$host != x
$target
13676 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13678 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13679 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13680 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13683 if test "x$with_build_sysroot" != "x"; then
13684 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13685 elif test "x$with_sysroot" = x
; then
13686 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13687 elif test "x$with_sysroot" = xyes
; then
13688 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13690 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13693 target_header_dir
=${native_system_header_dir}
13696 # If this is a cross-compiler that does not
13697 # have its own set of headers then define
13700 # If this is using newlib, without having the headers available now,
13701 # then define inhibit_libc in LIBGCC2_CFLAGS.
13702 # This prevents libgcc2 from containing any code which requires libc
13704 : ${inhibit_libc=false}
13705 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13706 test x
$with_newlib = xyes
; } &&
13707 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13712 # When building gcc with a cross-compiler, we need to adjust things so
13713 # that the generator programs are still built with the native compiler.
13714 # Also, we cannot run fixincludes.
13716 # These are the normal (build=host) settings:
13717 CC_FOR_BUILD
='$(CC)'
13718 CXX_FOR_BUILD
='$(CXX)'
13719 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13720 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13721 BUILD_LDFLAGS
='$(LDFLAGS)'
13722 STMP_FIXINC
=stmp-fixinc
13724 # And these apply if build != host, or we are generating coverage data
13725 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13727 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13728 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13729 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13733 if test x
$enable_fixincludes = xno
;
13738 # Expand extra_headers to include complete path.
13739 # This substitutes for lots of t-* files.
13740 extra_headers_list
=
13741 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13742 for file in ${extra_headers} ; do
13743 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13746 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13747 if test x
"$use_gcc_tgmath" = xyes
13748 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13751 # Define collect2 in Makefile.
13752 case $host_can_use_collect2 in
13754 *) collect2
='collect2$(exeext)' ;;
13758 # Add a definition of USE_COLLECT2 if system wants one.
13759 case $use_collect2 in
13760 no
) use_collect2
= ;;
13763 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13764 xm_defines
="${xm_defines} USE_COLLECT2"
13765 case $host_can_use_collect2 in
13767 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13774 cat >>confdefs.h
<<_ACEOF
13775 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13779 # ---------------------------
13780 # Assembler & linker features
13781 # ---------------------------
13783 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13784 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13785 # However when ld-new is first executed from the build tree, libtool will
13786 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13787 # to the build tree. While doing this we need to use the previous-stage
13788 # linker, or we have an infinite loop. The presence of a shell script as
13789 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13790 # the gcc/collect-ld script. So we need to know how libtool works, or
13791 # exec-tool will fail.
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13797 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13802 macro_version
='2.2.7a'
13803 macro_revision
='1.3134'
13817 ltmain
="$ac_aux_dir/ltmain.sh"
13819 # Backslashify metacharacters that are still active within
13820 # double-quoted strings.
13821 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13823 # Same as above, but do not quote variable references.
13824 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13826 # Sed substitution to delay expansion of an escaped shell variable in a
13827 # double_quote_subst'ed string.
13828 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13830 # Sed substitution to delay expansion of an escaped single quote.
13831 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13833 # Sed substitution to avoid accidental globbing in evaled expressions
13834 no_glob_subst
='s/\*/\\\*/g'
13836 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13838 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13841 $as_echo_n "checking how to print strings... " >&6; }
13842 # Test print first, because it will be a builtin if present.
13843 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13844 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13846 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13849 # Use this function as a fallback that always works.
13850 func_fallback_echo ()
13852 eval 'cat <<_LTECHO_EOF
13856 ECHO='func_fallback_echo
'
13859 # func_echo_all arg...
13860 # Invoke $ECHO with all args, space-separated.
13867 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13868 $as_echo "printf" >&6; } ;;
13869 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13870 $as_echo "print -r" >&6; } ;;
13871 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13872 $as_echo "cat" >&6; } ;;
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13889 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13890 if ${ac_cv_path_SED+:} false; then :
13891 $as_echo_n "(cached) " >&6
13893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13894 for ac_i in 1 2 3 4 5 6 7; do
13895 ac_script="$ac_script$as_nl$ac_script"
13897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13898 { ac_script=; unset ac_script;}
13899 if test -z "$SED"; then
13900 ac_path_SED_found=false
13901 # Loop through the user's path and
test for each of PROGNAME-LIST
13902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13903 for as_dir
in $PATH
13906 test -z "$as_dir" && as_dir
=.
13907 for ac_prog
in sed gsed
; do
13908 for ac_exec_ext
in '' $ac_executable_extensions; do
13909 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13910 as_fn_executable_p
"$ac_path_SED" ||
continue
13911 # Check for GNU ac_path_SED and select it if it is found.
13912 # Check for GNU $ac_path_SED
13913 case `"$ac_path_SED" --version 2>&1` in
13915 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13918 $as_echo_n 0123456789 >"conftest.in"
13921 cat "conftest.in" "conftest.in" >"conftest.tmp"
13922 mv "conftest.tmp" "conftest.in"
13923 cp "conftest.in" "conftest.nl"
13924 $as_echo '' >> "conftest.nl"
13925 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13926 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13927 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13928 if test $ac_count -gt ${ac_path_SED_max-0}; then
13929 # Best one so far, save it but keep looking for a better one
13930 ac_cv_path_SED
="$ac_path_SED"
13931 ac_path_SED_max
=$ac_count
13933 # 10*(2^10) chars as input seems more than enough
13934 test $ac_count -gt 10 && break
13936 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13939 $ac_path_SED_found && break 3
13944 if test -z "$ac_cv_path_SED"; then
13945 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13948 ac_cv_path_SED
=$SED
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13953 $as_echo "$ac_cv_path_SED" >&6; }
13954 SED
="$ac_cv_path_SED"
13957 test -z "$SED" && SED
=sed
13958 Xsed
="$SED -e 1s/^X//"
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13971 $as_echo_n "checking for fgrep... " >&6; }
13972 if ${ac_cv_path_FGREP+:} false
; then :
13973 $as_echo_n "(cached) " >&6
13975 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13976 then ac_cv_path_FGREP
="$GREP -F"
13978 if test -z "$FGREP"; then
13979 ac_path_FGREP_found
=false
13980 # Loop through the user's path and test for each of PROGNAME-LIST
13981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13982 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13985 test -z "$as_dir" && as_dir
=.
13986 for ac_prog
in fgrep
; do
13987 for ac_exec_ext
in '' $ac_executable_extensions; do
13988 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13989 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13990 # Check for GNU ac_path_FGREP and select it if it is found.
13991 # Check for GNU $ac_path_FGREP
13992 case `"$ac_path_FGREP" --version 2>&1` in
13994 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13997 $as_echo_n 0123456789 >"conftest.in"
14000 cat "conftest.in" "conftest.in" >"conftest.tmp"
14001 mv "conftest.tmp" "conftest.in"
14002 cp "conftest.in" "conftest.nl"
14003 $as_echo 'FGREP' >> "conftest.nl"
14004 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
14005 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
14006 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
14007 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14008 # Best one so far, save it but keep looking for a better one
14009 ac_cv_path_FGREP
="$ac_path_FGREP"
14010 ac_path_FGREP_max
=$ac_count
14012 # 10*(2^10) chars as input seems more than enough
14013 test $ac_count -gt 10 && break
14015 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
14018 $ac_path_FGREP_found && break 3
14023 if test -z "$ac_cv_path_FGREP"; then
14024 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14027 ac_cv_path_FGREP
=$FGREP
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14033 $as_echo "$ac_cv_path_FGREP" >&6; }
14034 FGREP
="$ac_cv_path_FGREP"
14037 test -z "$GREP" && GREP
=grep
14057 # Check whether --with-gnu-ld was given.
14058 if test "${with_gnu_ld+set}" = set; then :
14059 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14065 if test "$GCC" = yes; then
14066 # Check if gcc -print-prog-name=ld gives a path.
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14068 $as_echo_n "checking for ld used by $CC... " >&6; }
14071 # gcc leaves a trailing carriage return which upsets mingw
14072 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14074 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14077 # Accept absolute paths.
14079 re_direlt
='/[^/][^/]*/\.\./'
14080 # Canonicalize the pathname of ld
14081 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14082 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14083 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14085 test -z "$LD" && LD
="$ac_prog"
14088 # If it fails, then pretend we aren't using GCC.
14092 # If it is relative, then search for the first ld in PATH.
14093 with_gnu_ld
=unknown
14096 elif test "$with_gnu_ld" = yes; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14098 $as_echo_n "checking for GNU ld... " >&6; }
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14101 $as_echo_n "checking for non-GNU ld... " >&6; }
14103 if ${lt_cv_path_LD+:} false
; then :
14104 $as_echo_n "(cached) " >&6
14106 if test -z "$LD"; then
14107 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14108 for ac_dir
in $PATH; do
14110 test -z "$ac_dir" && ac_dir
=.
14111 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14112 lt_cv_path_LD
="$ac_dir/$ac_prog"
14113 # Check to see if the program is GNU ld. I'd rather use --version,
14114 # but apparently some variants of GNU ld only accept -v.
14115 # Break only if it was the GNU/non-GNU ld that we prefer.
14116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14117 *GNU
* |
*'with BFD'*)
14118 test "$with_gnu_ld" != no
&& break
14121 test "$with_gnu_ld" != yes && break
14128 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14132 LD
="$lt_cv_path_LD"
14133 if test -n "$LD"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14135 $as_echo "$LD" >&6; }
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14140 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14143 if ${lt_cv_prog_gnu_ld+:} false
; then :
14144 $as_echo_n "(cached) " >&6
14146 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14147 case `$LD -v 2>&1 </dev/null` in
14148 *GNU
* |
*'with BFD'*)
14149 lt_cv_prog_gnu_ld
=yes
14152 lt_cv_prog_gnu_ld
=no
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14157 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14158 with_gnu_ld
=$lt_cv_prog_gnu_ld
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14169 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14170 if ${lt_cv_path_NM+:} false
; then :
14171 $as_echo_n "(cached) " >&6
14173 if test -n "$NM"; then
14174 # Let the user override the nm to test.
14175 lt_nm_to_check
="$NM"
14177 lt_nm_to_check
="${ac_tool_prefix}nm"
14178 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14179 lt_nm_to_check
="$lt_nm_to_check nm"
14182 for lt_tmp_nm
in "$lt_nm_to_check"; do
14183 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14184 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14186 test -z "$ac_dir" && ac_dir
=.
14187 # Strip out any user-provided options from the nm to test twice,
14188 # the first time to test to see if nm (rather than its options) has
14189 # an explicit path, the second time to yield a file which can be
14191 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
14192 case "$tmp_nm_path" in
14193 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
14194 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
14196 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
14197 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
14198 # Check to see if the nm accepts a BSD-compat flag.
14199 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14200 # nm: unknown option "B" ignored
14201 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14202 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
14206 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14208 lt_cv_path_NM
="$tmp_nm -p"
14212 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14213 continue # so that we can try to find one that supports BSD flags
14222 : ${lt_cv_path_NM=no}
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14225 $as_echo "$lt_cv_path_NM" >&6; }
14226 if test "$lt_cv_path_NM" != "no"; then
14227 NM
="$lt_cv_path_NM"
14229 # Didn't find any BSD compatible name lister, look for dumpbin.
14230 if test -n "$DUMPBIN"; then :
14231 # Let the user override the test.
14233 if test -n "$ac_tool_prefix"; then
14234 for ac_prog
in dumpbin
"link -dump"
14236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14237 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14239 $as_echo_n "checking for $ac_word... " >&6; }
14240 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14241 $as_echo_n "(cached) " >&6
14243 if test -n "$DUMPBIN"; then
14244 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14247 for as_dir
in $PATH
14250 test -z "$as_dir" && as_dir
=.
14251 for ac_exec_ext
in '' $ac_executable_extensions; do
14252 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14253 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14263 DUMPBIN
=$ac_cv_prog_DUMPBIN
14264 if test -n "$DUMPBIN"; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14266 $as_echo "$DUMPBIN" >&6; }
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14269 $as_echo "no" >&6; }
14273 test -n "$DUMPBIN" && break
14276 if test -z "$DUMPBIN"; then
14277 ac_ct_DUMPBIN
=$DUMPBIN
14278 for ac_prog
in dumpbin
"link -dump"
14280 # Extract the first word of "$ac_prog", so it can be a program name with args.
14281 set dummy
$ac_prog; ac_word
=$2
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 $as_echo_n "checking for $ac_word... " >&6; }
14284 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14285 $as_echo_n "(cached) " >&6
14287 if test -n "$ac_ct_DUMPBIN"; then
14288 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14291 for as_dir
in $PATH
14294 test -z "$as_dir" && as_dir
=.
14295 for ac_exec_ext
in '' $ac_executable_extensions; do
14296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14297 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14307 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14308 if test -n "$ac_ct_DUMPBIN"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14310 $as_echo "$ac_ct_DUMPBIN" >&6; }
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14317 test -n "$ac_ct_DUMPBIN" && break
14320 if test "x$ac_ct_DUMPBIN" = x
; then
14323 case $cross_compiling:$ac_tool_warned in
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14327 ac_tool_warned
=yes ;;
14329 DUMPBIN
=$ac_ct_DUMPBIN
14333 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14335 DUMPBIN
="$DUMPBIN -symbols"
14343 if test "$DUMPBIN" != ":"; then
14347 test -z "$NM" && NM
=nm
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14355 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14356 if ${lt_cv_nm_interface+:} false
; then :
14357 $as_echo_n "(cached) " >&6
14359 lt_cv_nm_interface
="BSD nm"
14360 echo "int some_variable = 0;" > conftest.
$ac_ext
14361 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14362 (eval "$ac_compile" 2>conftest.err
)
14363 cat conftest.err
>&5
14364 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14365 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14366 cat conftest.err
>&5
14367 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14368 cat conftest.out
>&5
14369 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14370 lt_cv_nm_interface
="MS dumpbin"
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14375 $as_echo "$lt_cv_nm_interface" >&6; }
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14378 $as_echo_n "checking whether ln -s works... " >&6; }
14380 if test "$LN_S" = "ln -s"; then
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14382 $as_echo "yes" >&6; }
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14385 $as_echo "no, using $LN_S" >&6; }
14388 # find the maximum length of command line arguments
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14390 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14391 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14392 $as_echo_n "(cached) " >&6
14399 # On DJGPP, this test can blow up pretty badly due to problems in libc
14400 # (any single argument exceeding 2000 bytes causes a buffer overrun
14401 # during glob expansion). Even if it were fixed, the result of this
14402 # check would be larger than it should be.
14403 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14407 # Under GNU Hurd, this test is not required because there is
14408 # no limit to the length of command line arguments.
14409 # Libtool will interpret -1 as no limit whatsoever
14410 lt_cv_sys_max_cmd_len
=-1;
14413 cygwin
* | mingw
* | cegcc
*)
14414 # On Win9x/ME, this test blows up -- it succeeds, but takes
14415 # about 5 minutes as the teststring grows exponentially.
14416 # Worse, since 9x/ME are not pre-emptively multitasking,
14417 # you end up with a "frozen" computer, even though with patience
14418 # the test eventually succeeds (with a max line length of 256k).
14419 # Instead, let's just punt: use the minimum linelength reported by
14420 # all of the supported platforms: 8192 (on NT/2K/XP).
14421 lt_cv_sys_max_cmd_len
=8192;
14425 # On MiNT this can take a long time and run out of memory.
14426 lt_cv_sys_max_cmd_len
=8192;
14430 # On AmigaOS with pdksh, this test takes hours, literally.
14431 # So we just punt and use a minimum line length of 8192.
14432 lt_cv_sys_max_cmd_len
=8192;
14435 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14436 # This has been around since 386BSD, at least. Likely further.
14437 if test -x /sbin
/sysctl
; then
14438 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14439 elif test -x /usr
/sbin
/sysctl
; then
14440 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14442 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14444 # And add a safety zone
14445 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14446 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14450 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14451 lt_cv_sys_max_cmd_len
=196608
14455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14457 # nice to cause kernel panics so lets avoid the loop below.
14458 # First set a reasonable default.
14459 lt_cv_sys_max_cmd_len
=16384
14461 if test -x /sbin
/sysconfig
; then
14462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14463 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14468 lt_cv_sys_max_cmd_len
=102400
14470 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14471 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14472 if test -n "$kargmax"; then
14473 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14475 lt_cv_sys_max_cmd_len
=32768
14479 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14480 if test -n "$lt_cv_sys_max_cmd_len"; then
14481 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14482 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14484 # Make teststring a little bigger before we do anything with it.
14485 # a 1K string should be a reasonable start.
14486 for i
in 1 2 3 4 5 6 7 8 ; do
14487 teststring
=$teststring$teststring
14489 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14490 # If test is not a shell built-in, we'll probably end up computing a
14491 # maximum length that is only half of the actual maximum length, but
14493 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14494 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14495 test $i != 17 # 1/2 MB should be enough
14498 teststring
=$teststring$teststring
14500 # Only check the string length outside the loop.
14501 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14503 # Add a significant safety factor because C++ compilers can tack on
14504 # massive amounts of additional arguments before passing them to the
14505 # linker. It appears as though 1/2 is a usable value.
14506 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14513 if test -n $lt_cv_sys_max_cmd_len ; then
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14515 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14518 $as_echo "none" >&6; }
14520 max_cmd_len
=$lt_cv_sys_max_cmd_len
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14532 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14533 # Try some XSI features
14535 ( _lt_dummy
="a/b/c"
14536 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14538 && eval 'test $(( 1 + 1 )) -eq 2 \
14539 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14542 $as_echo "$xsi_shell" >&6; }
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14546 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14548 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14550 && lt_shell_append=yes
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14552 $as_echo "$lt_shell_append" >&6; }
14555 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14565 # test EBCDIC or ASCII
14566 case `echo X|tr X '\101'` in
14567 A) # ASCII based system
14568 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14569 lt_SP2NL='tr \040 \012'
14570 lt_NL2SP='tr \015\012 \040\040'
14572 *) # EBCDIC based system
14573 lt_SP2NL='tr \100 \n'
14574 lt_NL2SP='tr \r\n \100\100'
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14587 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14588 if ${lt_cv_ld_reload_flag+:} false; then :
14589 $as_echo_n "(cached
) " >&6
14591 lt_cv_ld_reload_flag='-r'
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14594 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14595 reload_flag=$lt_cv_ld_reload_flag
14596 case $reload_flag in
14598 *) reload_flag=" $reload_flag" ;;
14600 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14603 if test "$GCC" = yes; then
14604 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14606 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14619 if test -n "$ac_tool_prefix"; then
14620 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14621 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14623 $as_echo_n "checking
for $ac_word...
" >&6; }
14624 if ${ac_cv_prog_OBJDUMP+:} false; then :
14625 $as_echo_n "(cached
) " >&6
14627 if test -n "$OBJDUMP"; then
14628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14637 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14647 OBJDUMP=$ac_cv_prog_OBJDUMP
14648 if test -n "$OBJDUMP"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14650 $as_echo "$OBJDUMP" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14653 $as_echo "no
" >&6; }
14658 if test -z "$ac_cv_prog_OBJDUMP"; then
14659 ac_ct_OBJDUMP=$OBJDUMP
14660 # Extract the first word of "objdump
", so it can be a program name with args.
14661 set dummy objdump; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14663 $as_echo_n "checking
for $ac_word...
" >&6; }
14664 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14665 $as_echo_n "(cached
) " >&6
14667 if test -n "$ac_ct_OBJDUMP"; then
14668 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14677 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14678 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14687 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14688 if test -n "$ac_ct_OBJDUMP"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14690 $as_echo "$ac_ct_OBJDUMP" >&6; }
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14693 $as_echo "no
" >&6; }
14696 if test "x
$ac_ct_OBJDUMP" = x; then
14699 case $cross_compiling:$ac_tool_warned in
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14702 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14703 ac_tool_warned=yes ;;
14705 OBJDUMP=$ac_ct_OBJDUMP
14708 OBJDUMP="$ac_cv_prog_OBJDUMP"
14711 test -z "$OBJDUMP" && OBJDUMP=objdump
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14722 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14723 if ${lt_cv_deplibs_check_method+:} false; then :
14724 $as_echo_n "(cached
) " >&6
14726 lt_cv_file_magic_cmd='$MAGIC_CMD'
14727 lt_cv_file_magic_test_file=
14728 lt_cv_deplibs_check_method='unknown'
14729 # Need to set the preceding variable on all platforms that support
14730 # interlibrary dependencies.
14731 # 'none' -- dependencies not supported.
14732 # `unknown' -- same as none, but documents that we really don't know.
14733 # 'pass_all' -- all dependencies passed with no checks.
14734 # 'test_compile' -- check by making test program.
14735 # 'file_magic [[regex]]' -- check by looking for files in library path
14736 # which responds to the $file_magic_cmd with a given extended regex.
14737 # If you have `file' or equivalent on your system and you're not sure
14738 # whether `pass_all' will *always* work, you probably want this one.
14742 lt_cv_deplibs_check_method=pass_all
14746 lt_cv_deplibs_check_method=pass_all
14750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14751 lt_cv_file_magic_cmd='/usr/bin/file -L'
14752 lt_cv_file_magic_test_file=/shlib/libc.so
14756 # func_win32_libid is a shell function defined in ltmain.sh
14757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14758 lt_cv_file_magic_cmd='func_win32_libid'
14762 # Base MSYS/MinGW do not provide the 'file' command needed by
14763 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14764 # unless we find 'file', for example because we are cross-compiling.
14765 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14766 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14768 lt_cv_file_magic_cmd='func_win32_libid'
14770 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14771 lt_cv_file_magic_cmd='$OBJDUMP -f'
14776 # use the weaker test based on 'objdump'. See mingw*.
14777 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14778 lt_cv_file_magic_cmd='$OBJDUMP -f'
14781 darwin* | rhapsody*)
14782 lt_cv_deplibs_check_method=pass_all
14785 freebsd* | dragonfly*)
14786 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14789 # Not sure whether the presence of OpenBSD here was a mistake.
14790 # Let's accept both of them until this is cleared up.
14791 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14792 lt_cv_file_magic_cmd=/usr/bin/file
14793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14797 lt_cv_deplibs_check_method=pass_all
14802 lt_cv_deplibs_check_method=pass_all
14806 lt_cv_deplibs_check_method=pass_all
14809 hpux10.20* | hpux11*)
14810 lt_cv_file_magic_cmd=/usr/bin/file
14813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14814 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14817 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]'
14818 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14821 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14822 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14828 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14832 irix5* | irix6* | nonstopux*)
14834 *-32|*"-32 ") libmagic=32-bit;;
14835 *-n32|*"-n32 ") libmagic=N32;;
14836 *-64|*"-64 ") libmagic=64-bit;;
14837 *) libmagic=never-match;;
14839 lt_cv_deplibs_check_method=pass_all
14842 # This must be Linux ELF.
14843 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14844 lt_cv_deplibs_check_method=pass_all
14848 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14857 lt_cv_file_magic_cmd=/usr/bin/file
14858 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14862 lt_cv_deplibs_check_method=pass_all
14866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14873 osf3* | osf4* | osf5*)
14874 lt_cv_deplibs_check_method=pass_all
14878 lt_cv_deplibs_check_method=pass_all
14882 lt_cv_deplibs_check_method=pass_all
14885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14886 lt_cv_deplibs_check_method=pass_all
14890 case $host_vendor in
14892 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]'
14893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14896 lt_cv_deplibs_check_method=pass_all
14899 lt_cv_file_magic_cmd='/bin/file'
14900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14903 lt_cv_file_magic_cmd='/bin/file'
14904 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14905 lt_cv_file_magic_test_file=/lib/libc.so
14908 lt_cv_deplibs_check_method=pass_all
14911 lt_cv_deplibs_check_method=pass_all
14917 lt_cv_deplibs_check_method=pass_all
14920 # Assume VxWorks cross toolchains are built on Linux, possibly
14921 # as canadian for Windows hosts.
14922 lt_cv_deplibs_check_method=pass_all
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14928 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14929 file_magic_cmd=$lt_cv_file_magic_cmd
14930 deplibs_check_method=$lt_cv_deplibs_check_method
14931 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14945 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
14946 for plugin in $plugin_names; do
14947 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14948 if test x$plugin_so = x$plugin; then
14949 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14951 if test x$plugin_so != x$plugin; then
14952 plugin_option="--plugin $plugin_so"
14957 if test -n "$ac_tool_prefix"; then
14958 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14959 set dummy ${ac_tool_prefix}ar; ac_word=$2
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14961 $as_echo_n "checking
for $ac_word...
" >&6; }
14962 if ${ac_cv_prog_AR+:} false; then :
14963 $as_echo_n "(cached
) " >&6
14965 if test -n "$AR"; then
14966 ac_cv_prog_AR="$AR" # Let the user override the test.
14968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14969 for as_dir in $PATH
14972 test -z "$as_dir" && as_dir=.
14973 for ac_exec_ext in '' $ac_executable_extensions; do
14974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14975 ac_cv_prog_AR="${ac_tool_prefix}ar"
14976 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14986 if test -n "$AR"; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14988 $as_echo "$AR" >&6; }
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14991 $as_echo "no
" >&6; }
14996 if test -z "$ac_cv_prog_AR"; then
14998 # Extract the first word of "ar", so it can be a program name with args.
14999 set dummy ar; ac_word=$2
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15001 $as_echo_n "checking
for $ac_word...
" >&6; }
15002 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15003 $as_echo_n "(cached
) " >&6
15005 if test -n "$ac_ct_AR"; then
15006 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15009 for as_dir in $PATH
15012 test -z "$as_dir" && as_dir=.
15013 for ac_exec_ext in '' $ac_executable_extensions; do
15014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15015 ac_cv_prog_ac_ct_AR="ar"
15016 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15025 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15026 if test -n "$ac_ct_AR"; then
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
15028 $as_echo "$ac_ct_AR" >&6; }
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15031 $as_echo "no
" >&6; }
15034 if test "x
$ac_ct_AR" = x; then
15037 case $cross_compiling:$ac_tool_warned in
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15040 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15041 ac_tool_warned=yes ;;
15046 AR="$ac_cv_prog_AR"
15049 test -z "$AR" && AR=ar
15050 if test -n "$plugin_option"; then
15051 if $AR --help 2>&1 | grep -q "\
--plugin"; then
15053 $AR $plugin_option rc conftest.a conftest.c
15054 if test "$?
" != 0; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
15056 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
15058 AR="$AR $plugin_option"
15063 test -z "$AR_FLAGS" && AR_FLAGS=cru
15075 if test -n "$ac_tool_prefix"; then
15076 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15077 set dummy ${ac_tool_prefix}strip; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15079 $as_echo_n "checking
for $ac_word...
" >&6; }
15080 if ${ac_cv_prog_STRIP+:} false; then :
15081 $as_echo_n "(cached
) " >&6
15083 if test -n "$STRIP"; then
15084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15103 STRIP=$ac_cv_prog_STRIP
15104 if test -n "$STRIP"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
15106 $as_echo "$STRIP" >&6; }
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15109 $as_echo "no
" >&6; }
15114 if test -z "$ac_cv_prog_STRIP"; then
15116 # Extract the first word of "strip
", so it can be a program name with args.
15117 set dummy strip; ac_word=$2
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15119 $as_echo_n "checking
for $ac_word...
" >&6; }
15120 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15121 $as_echo_n "(cached
) " >&6
15123 if test -n "$ac_ct_STRIP"; then
15124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127 for as_dir in $PATH
15130 test -z "$as_dir" && as_dir=.
15131 for ac_exec_ext in '' $ac_executable_extensions; do
15132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15133 ac_cv_prog_ac_ct_STRIP="strip
"
15134 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15144 if test -n "$ac_ct_STRIP"; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
15146 $as_echo "$ac_ct_STRIP" >&6; }
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15149 $as_echo "no
" >&6; }
15152 if test "x
$ac_ct_STRIP" = x; then
15155 case $cross_compiling:$ac_tool_warned in
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15158 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15159 ac_tool_warned=yes ;;
15164 STRIP="$ac_cv_prog_STRIP"
15167 test -z "$STRIP" && STRIP=:
15174 if test -n "$ac_tool_prefix"; then
15175 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15178 $as_echo_n "checking
for $ac_word...
" >&6; }
15179 if ${ac_cv_prog_RANLIB+:} false; then :
15180 $as_echo_n "(cached
) " >&6
15182 if test -n "$RANLIB"; then
15183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $PATH
15189 test -z "$as_dir" && as_dir=.
15190 for ac_exec_ext in '' $ac_executable_extensions; do
15191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15193 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15202 RANLIB=$ac_cv_prog_RANLIB
15203 if test -n "$RANLIB"; then
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
15205 $as_echo "$RANLIB" >&6; }
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15208 $as_echo "no
" >&6; }
15213 if test -z "$ac_cv_prog_RANLIB"; then
15214 ac_ct_RANLIB=$RANLIB
15215 # Extract the first word of "ranlib
", so it can be a program name with args.
15216 set dummy ranlib; ac_word=$2
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15218 $as_echo_n "checking
for $ac_word...
" >&6; }
15219 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15220 $as_echo_n "(cached
) " >&6
15222 if test -n "$ac_ct_RANLIB"; then
15223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15226 for as_dir in $PATH
15229 test -z "$as_dir" && as_dir=.
15230 for ac_exec_ext in '' $ac_executable_extensions; do
15231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15232 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15233 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15242 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15243 if test -n "$ac_ct_RANLIB"; then
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15245 $as_echo "$ac_ct_RANLIB" >&6; }
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15248 $as_echo "no
" >&6; }
15251 if test "x
$ac_ct_RANLIB" = x; then
15254 case $cross_compiling:$ac_tool_warned in
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15257 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15258 ac_tool_warned=yes ;;
15260 RANLIB=$ac_ct_RANLIB
15263 RANLIB="$ac_cv_prog_RANLIB"
15266 test -z "$RANLIB" && RANLIB=:
15267 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
15268 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
15269 RANLIB="$RANLIB $plugin_option"
15278 # Determine commands to create old-style static archives.
15279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15280 old_postinstall_cmds='chmod 644 $oldlib'
15281 old_postuninstall_cmds=
15283 if test -n "$RANLIB"; then
15286 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15289 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15292 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15297 lock_old_archive_extraction=yes ;;
15299 lock_old_archive_extraction=no ;;
15340 # If no C compiler was specified, use CC.
15343 # If no C compiler flags were specified, use CFLAGS.
15344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15346 # Allow CC to be a program name with arguments.
15350 # Check for command to grab the raw symbol name followed by C symbol from nm.
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15352 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15353 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15354 $as_echo_n "(cached
) " >&6
15357 # These are sane defaults that work on at least a few old systems.
15358 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15360 # Character class describing NM global symbol codes.
15361 symcode='[BCDEGRST]'
15363 # Regexp to match symbols that can be accessed directly from C.
15364 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15366 # Define system-specific variables.
15371 cygwin* | mingw* | pw32* | cegcc*)
15372 symcode='[ABCDGISTW]'
15375 if test "$host_cpu" = ia64; then
15376 symcode='[ABCDEGRST]'
15379 irix* | nonstopux*)
15380 symcode='[BCDEGRST]'
15383 symcode='[BCDEGQRST]'
15394 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15402 # If we're using GNU nm, then use its standard symbol codes.
15403 case `$NM -V 2>&1` in
15404 *GNU* | *'with BFD'*)
15405 symcode='[ABCDGIRSTW]' ;;
15408 # Transform an extracted symbol line into a proper C declaration.
15409 # Some systems (esp. on ia64) link data and code symbols differently,
15410 # so use this general approach.
15411 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15413 # Transform an extracted symbol line into symbol name and symbol address
15414 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15415 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'"
15417 # Handle CRLF in mingw tool chain
15421 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15425 # Try without a prefix underscore, then with it.
15426 for ac_symprfx in "" "_
"; do
15428 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15429 symxfrm="\\1 $ac_symprfx\\2 \\2"
15431 # Write the raw and C identifiers.
15432 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15433 # Fake it for dumpbin and say T for any non-static function
15434 # and D for any global variable.
15435 # Also find C++ and __fastcall symbols from MSVC++,
15436 # which start with @ or ?.
15437 lt_cv_sys_global_symbol_pipe="$AWK '"\
15438 " {last_section=section; section=\$ 3};"\
15439 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15440 " \$ 0!~/External *\|/{next};"\
15441 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15442 " {if(hide[section]) next};"\
15443 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15444 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15445 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15446 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15447 " ' prfx
=^
$ac_symprfx"
15449 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15452 # Check to see that the pipe works correctly.
15456 cat > conftest.$ac_ext <<_LT_EOF
15461 void nm_test_func(void);
15462 void nm_test_func(void){}
15466 int main(){nm_test_var='a';nm_test_func();return(0);}
15469 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15470 (eval $ac_compile) 2>&5
15472 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15473 test $ac_status = 0; }; then
15474 # Now try to grab the symbols.
15476 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15477 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15479 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15480 test $ac_status = 0; } && test -s "$nlist"; then
15481 # Try sorting and uniquifying the output.
15482 if sort "$nlist" | uniq > "$nlist"T; then
15483 mv -f "$nlist"T "$nlist"
15488 # Make sure that we snagged all the symbols we need.
15489 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15490 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15491 cat <<_LT_EOF > conftest.$ac_ext
15497 # Now generate the symbol file.
15498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15500 cat <<_LT_EOF >> conftest.$ac_ext
15502 /* The mapping between symbol names and symbols. */
15507 lt__PROGRAM__LTX_preloaded_symbols[] =
15509 { "@PROGRAM@
", (void *) 0 },
15511 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15512 cat <<\_LT_EOF >> conftest.$ac_ext
15516 /* This works around a problem in FreeBSD linker */
15517 #ifdef FREEBSD_WORKAROUND
15518 static const void *lt_preloaded_setup() {
15519 return lt__PROGRAM__LTX_preloaded_symbols;
15527 # Now try linking the two files.
15528 mv conftest.$ac_objext conftstm.$ac_objext
15529 lt_save_LIBS="$LIBS"
15530 lt_save_CFLAGS="$CFLAGS"
15531 LIBS="conftstm.
$ac_objext"
15532 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15533 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15534 (eval $ac_link) 2>&5
15536 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15537 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15540 LIBS="$lt_save_LIBS"
15541 CFLAGS="$lt_save_CFLAGS"
15543 echo "cannot
find nm_test_func
in $nlist" >&5
15546 echo "cannot
find nm_test_var
in $nlist" >&5
15549 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15552 echo "$progname: failed program was
:" >&5
15553 cat conftest.$ac_ext >&5
15555 rm -rf conftest* conftst*
15557 # Do not use the global_symbol_pipe unless it works.
15558 if test "$pipe_works" = yes; then
15561 lt_cv_sys_global_symbol_pipe=
15567 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15568 lt_cv_sys_global_symbol_to_cdecl=
15570 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15572 $as_echo "failed
" >&6; }
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15575 $as_echo "ok
" >&6; }
15599 # Check whether --enable-libtool-lock was given.
15600 if test "${enable_libtool_lock+set}" = set; then :
15601 enableval=$enable_libtool_lock;
15604 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15606 # Some flags need to be propagated to the compiler or linker for good
15610 # Find out which ABI we are using.
15611 echo 'int i;' > conftest.$ac_ext
15612 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15613 (eval $ac_compile) 2>&5
15615 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15616 test $ac_status = 0; }; then
15617 case `/usr/bin/file conftest.$ac_objext` in
15619 HPUX_IA64_MODE="32"
15622 HPUX_IA64_MODE="64"
15629 # Find out which ABI we are using.
15630 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15631 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15632 (eval $ac_compile) 2>&5
15634 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15635 test $ac_status = 0; }; then
15636 if test "$lt_cv_prog_gnu_ld" = yes; then
15637 case `/usr/bin/file conftest.$ac_objext` in
15639 LD="${LD-ld} -melf32bsmip"
15642 LD="${LD-ld} -melf32bmipn32"
15645 LD="${LD-ld} -melf64bmip"
15649 case `/usr/bin/file conftest.$ac_objext` in
15665 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15666 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15667 # Find out which ABI we are using.
15668 echo 'int i;' > conftest.$ac_ext
15669 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15670 (eval $ac_compile) 2>&5
15672 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15673 test $ac_status = 0; }; then
15674 case `/usr/bin/file conftest.o` in
15677 x86_64-*kfreebsd*-gnu)
15678 LD="${LD-ld} -m elf_i386_fbsd
"
15681 case `/usr/bin/file conftest.o` in
15683 LD="${LD-ld} -m elf32_x86_64
"
15686 LD="${LD-ld} -m elf_i386
"
15690 powerpc64le-*linux*)
15691 LD="${LD-ld} -m elf32lppclinux
"
15694 LD="${LD-ld} -m elf32ppclinux
"
15697 LD="${LD-ld} -m elf_s390
"
15700 LD="${LD-ld} -m elf32_sparc
"
15706 x86_64-*kfreebsd*-gnu)
15707 LD="${LD-ld} -m elf_x86_64_fbsd
"
15710 LD="${LD-ld} -m elf_x86_64
"
15713 LD="${LD-ld} -m elf64lppc
"
15716 LD="${LD-ld} -m elf64ppc
"
15718 s390*-*linux*|s390*-*tpf*)
15719 LD="${LD-ld} -m elf64_s390
"
15722 LD="${LD-ld} -m elf64_sparc
"
15732 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15733 SAVE_CFLAGS="$CFLAGS"
15734 CFLAGS="$CFLAGS -belf"
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15736 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15737 if ${lt_cv_cc_needs_belf+:} false; then :
15738 $as_echo_n "(cached
) " >&6
15741 ac_cpp='$CPP $CPPFLAGS'
15742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747 /* end confdefs.h. */
15757 if ac_fn_c_try_link "$LINENO"; then :
15758 lt_cv_cc_needs_belf=yes
15760 lt_cv_cc_needs_belf=no
15762 rm -f core conftest.err conftest.$ac_objext \
15763 conftest$ac_exeext conftest.$ac_ext
15765 ac_cpp='$CPP $CPPFLAGS'
15766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15772 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15773 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15774 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15775 CFLAGS="$SAVE_CFLAGS"
15779 # Find out which ABI we are using.
15780 echo 'int i;' > conftest.$ac_ext
15781 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15782 (eval $ac_compile) 2>&5
15784 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15785 test $ac_status = 0; }; then
15786 case `/usr/bin/file conftest.o` in
15788 case $lt_cv_prog_gnu_ld in
15789 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15791 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15803 need_locks="$enable_libtool_lock"
15807 rhapsody* | darwin*)
15808 if test -n "$ac_tool_prefix"; then
15809 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15810 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15812 $as_echo_n "checking
for $ac_word...
" >&6; }
15813 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15814 $as_echo_n "(cached
) " >&6
15816 if test -n "$DSYMUTIL"; then
15817 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15820 for as_dir in $PATH
15823 test -z "$as_dir" && as_dir=.
15824 for ac_exec_ext in '' $ac_executable_extensions; do
15825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15826 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15836 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15837 if test -n "$DSYMUTIL"; then
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15839 $as_echo "$DSYMUTIL" >&6; }
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15842 $as_echo "no
" >&6; }
15847 if test -z "$ac_cv_prog_DSYMUTIL"; then
15848 ac_ct_DSYMUTIL=$DSYMUTIL
15849 # Extract the first word of "dsymutil
", so it can be a program name with args.
15850 set dummy dsymutil; ac_word=$2
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15852 $as_echo_n "checking
for $ac_word...
" >&6; }
15853 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15854 $as_echo_n "(cached
) " >&6
15856 if test -n "$ac_ct_DSYMUTIL"; then
15857 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860 for as_dir in $PATH
15863 test -z "$as_dir" && as_dir=.
15864 for ac_exec_ext in '' $ac_executable_extensions; do
15865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15866 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15867 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15876 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15877 if test -n "$ac_ct_DSYMUTIL"; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15879 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15882 $as_echo "no
" >&6; }
15885 if test "x
$ac_ct_DSYMUTIL" = x; then
15888 case $cross_compiling:$ac_tool_warned in
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15891 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15892 ac_tool_warned=yes ;;
15894 DSYMUTIL=$ac_ct_DSYMUTIL
15897 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15900 if test -n "$ac_tool_prefix"; then
15901 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15902 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15904 $as_echo_n "checking
for $ac_word...
" >&6; }
15905 if ${ac_cv_prog_NMEDIT+:} false; then :
15906 $as_echo_n "(cached
) " >&6
15908 if test -n "$NMEDIT"; then
15909 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912 for as_dir in $PATH
15915 test -z "$as_dir" && as_dir=.
15916 for ac_exec_ext in '' $ac_executable_extensions; do
15917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15918 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15928 NMEDIT=$ac_cv_prog_NMEDIT
15929 if test -n "$NMEDIT"; then
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15931 $as_echo "$NMEDIT" >&6; }
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15934 $as_echo "no
" >&6; }
15939 if test -z "$ac_cv_prog_NMEDIT"; then
15940 ac_ct_NMEDIT=$NMEDIT
15941 # Extract the first word of "nmedit
", so it can be a program name with args.
15942 set dummy nmedit; ac_word=$2
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15944 $as_echo_n "checking
for $ac_word...
" >&6; }
15945 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15946 $as_echo_n "(cached
) " >&6
15948 if test -n "$ac_ct_NMEDIT"; then
15949 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15968 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15969 if test -n "$ac_ct_NMEDIT"; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15971 $as_echo "$ac_ct_NMEDIT" >&6; }
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15974 $as_echo "no
" >&6; }
15977 if test "x
$ac_ct_NMEDIT" = x; then
15980 case $cross_compiling:$ac_tool_warned in
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15983 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15984 ac_tool_warned=yes ;;
15986 NMEDIT=$ac_ct_NMEDIT
15989 NMEDIT="$ac_cv_prog_NMEDIT"
15992 if test -n "$ac_tool_prefix"; then
15993 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15994 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15996 $as_echo_n "checking
for $ac_word...
" >&6; }
15997 if ${ac_cv_prog_LIPO+:} false; then :
15998 $as_echo_n "(cached
) " >&6
16000 if test -n "$LIPO"; then
16001 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16004 for as_dir in $PATH
16007 test -z "$as_dir" && as_dir=.
16008 for ac_exec_ext in '' $ac_executable_extensions; do
16009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16010 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
16011 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16020 LIPO=$ac_cv_prog_LIPO
16021 if test -n "$LIPO"; then
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
16023 $as_echo "$LIPO" >&6; }
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16026 $as_echo "no
" >&6; }
16031 if test -z "$ac_cv_prog_LIPO"; then
16033 # Extract the first word of "lipo
", so it can be a program name with args.
16034 set dummy lipo; ac_word=$2
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16036 $as_echo_n "checking
for $ac_word...
" >&6; }
16037 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16038 $as_echo_n "(cached
) " >&6
16040 if test -n "$ac_ct_LIPO"; then
16041 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16044 for as_dir in $PATH
16047 test -z "$as_dir" && as_dir=.
16048 for ac_exec_ext in '' $ac_executable_extensions; do
16049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16050 ac_cv_prog_ac_ct_LIPO="lipo
"
16051 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16060 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16061 if test -n "$ac_ct_LIPO"; then
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
16063 $as_echo "$ac_ct_LIPO" >&6; }
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16066 $as_echo "no
" >&6; }
16069 if test "x
$ac_ct_LIPO" = x; then
16072 case $cross_compiling:$ac_tool_warned in
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16075 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16076 ac_tool_warned=yes ;;
16081 LIPO="$ac_cv_prog_LIPO"
16084 if test -n "$ac_tool_prefix"; then
16085 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
16086 set dummy ${ac_tool_prefix}otool; ac_word=$2
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16088 $as_echo_n "checking
for $ac_word...
" >&6; }
16089 if ${ac_cv_prog_OTOOL+:} false; then :
16090 $as_echo_n "(cached
) " >&6
16092 if test -n "$OTOOL"; then
16093 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16096 for as_dir in $PATH
16099 test -z "$as_dir" && as_dir=.
16100 for ac_exec_ext in '' $ac_executable_extensions; do
16101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16102 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16103 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16112 OTOOL=$ac_cv_prog_OTOOL
16113 if test -n "$OTOOL"; then
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
16115 $as_echo "$OTOOL" >&6; }
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16118 $as_echo "no
" >&6; }
16123 if test -z "$ac_cv_prog_OTOOL"; then
16125 # Extract the first word of "otool
", so it can be a program name with args.
16126 set dummy otool; ac_word=$2
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16128 $as_echo_n "checking
for $ac_word...
" >&6; }
16129 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16130 $as_echo_n "(cached
) " >&6
16132 if test -n "$ac_ct_OTOOL"; then
16133 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16136 for as_dir in $PATH
16139 test -z "$as_dir" && as_dir=.
16140 for ac_exec_ext in '' $ac_executable_extensions; do
16141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16142 ac_cv_prog_ac_ct_OTOOL="otool
"
16143 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16152 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16153 if test -n "$ac_ct_OTOOL"; then
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
16155 $as_echo "$ac_ct_OTOOL" >&6; }
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16158 $as_echo "no
" >&6; }
16161 if test "x
$ac_ct_OTOOL" = x; then
16164 case $cross_compiling:$ac_tool_warned in
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16167 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16168 ac_tool_warned=yes ;;
16173 OTOOL="$ac_cv_prog_OTOOL"
16176 if test -n "$ac_tool_prefix"; then
16177 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16178 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16180 $as_echo_n "checking
for $ac_word...
" >&6; }
16181 if ${ac_cv_prog_OTOOL64+:} false; then :
16182 $as_echo_n "(cached
) " >&6
16184 if test -n "$OTOOL64"; then
16185 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188 for as_dir in $PATH
16191 test -z "$as_dir" && as_dir=.
16192 for ac_exec_ext in '' $ac_executable_extensions; do
16193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16194 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16195 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16204 OTOOL64=$ac_cv_prog_OTOOL64
16205 if test -n "$OTOOL64"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
16207 $as_echo "$OTOOL64" >&6; }
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16210 $as_echo "no
" >&6; }
16215 if test -z "$ac_cv_prog_OTOOL64"; then
16216 ac_ct_OTOOL64=$OTOOL64
16217 # Extract the first word of "otool64
", so it can be a program name with args.
16218 set dummy otool64; ac_word=$2
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16220 $as_echo_n "checking
for $ac_word...
" >&6; }
16221 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16222 $as_echo_n "(cached
) " >&6
16224 if test -n "$ac_ct_OTOOL64"; then
16225 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16228 for as_dir in $PATH
16231 test -z "$as_dir" && as_dir=.
16232 for ac_exec_ext in '' $ac_executable_extensions; do
16233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16234 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16244 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16245 if test -n "$ac_ct_OTOOL64"; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16247 $as_echo "$ac_ct_OTOOL64" >&6; }
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16250 $as_echo "no
" >&6; }
16253 if test "x
$ac_ct_OTOOL64" = x; then
16256 case $cross_compiling:$ac_tool_warned in
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16259 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16260 ac_tool_warned=yes ;;
16262 OTOOL64=$ac_ct_OTOOL64
16265 OTOOL64="$ac_cv_prog_OTOOL64"
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16295 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16296 if ${lt_cv_apple_cc_single_mod+:} false; then :
16297 $as_echo_n "(cached
) " >&6
16299 lt_cv_apple_cc_single_mod=no
16300 if test -z "${LT_MULTI_MODULE}"; then
16301 # By default we will add the -single_module flag. You can override
16302 # by either setting the environment variable LT_MULTI_MODULE
16303 # non-empty at configure time, or by adding -multi_module to the
16305 rm -rf libconftest.dylib*
16306 echo "int foo
(void
){return 1;}" > conftest.c
16307 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16308 -dynamiclib -Wl,-single_module conftest.c
" >&5
16309 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16310 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16312 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16313 lt_cv_apple_cc_single_mod=yes
16315 cat conftest.err >&5
16317 rm -rf libconftest.dylib*
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16322 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16324 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16325 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16326 $as_echo_n "(cached
) " >&6
16328 lt_cv_ld_exported_symbols_list=no
16329 save_LDFLAGS=$LDFLAGS
16330 echo "_main
" > conftest.sym
16331 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16343 if ac_fn_c_try_link "$LINENO"; then :
16344 lt_cv_ld_exported_symbols_list=yes
16346 lt_cv_ld_exported_symbols_list=no
16348 rm -f core conftest.err conftest.$ac_objext \
16349 conftest$ac_exeext conftest.$ac_ext
16350 LDFLAGS="$save_LDFLAGS"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16354 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16356 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16357 if ${lt_cv_ld_force_load+:} false; then :
16358 $as_echo_n "(cached
) " >&6
16360 lt_cv_ld_force_load=no
16361 cat > conftest.c << _LT_EOF
16362 int forced_loaded() { return 2;}
16364 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16365 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16366 echo "$AR cru libconftest.a conftest.o
" >&5
16367 $AR cru libconftest.a conftest.o 2>&5
16368 cat > conftest.c << _LT_EOF
16369 int main() { return 0;}
16371 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16372 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16374 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16375 lt_cv_ld_force_load=yes
16377 cat conftest.err >&5
16379 rm -f conftest.err libconftest.a conftest conftest.c
16380 rm -rf conftest.dSYM
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16384 $as_echo "$lt_cv_ld_force_load" >&6; }
16385 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16386 # build without first building modern cctools / linker.
16387 case $host_cpu-$host_os in
16388 *-rhapsody* | *-darwin1.[012])
16389 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16393 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16394 # deployment target is forced to an earlier version.
16395 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16396 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16406 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16407 _lt_dar_single_mod='$single_module'
16409 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16410 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16412 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16414 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16415 _lt_dsymutil='~$DSYMUTIL $lib || :'
16423 for ac_header in dlfcn.h
16425 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16426 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16427 cat >>confdefs.h <<_ACEOF
16428 #define HAVE_DLFCN_H 1
16445 enable_win32_dll=no
16448 # Check whether --enable-shared was given.
16449 if test "${enable_shared+set}" = set; then :
16450 enableval=$enable_shared; p=${PACKAGE-default}
16452 yes) enable_shared=yes ;;
16453 no) enable_shared=no ;;
16456 # Look at the argument we got. We use all the common list separators.
16457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16458 for pkg in $enableval; do
16460 if test "X
$pkg" = "X
$p"; then
16479 # Check whether --enable-static was given.
16480 if test "${enable_static+set}" = set; then :
16481 enableval=$enable_static; p=${PACKAGE-default}
16483 yes) enable_static=yes ;;
16484 no) enable_static=no ;;
16487 # Look at the argument we got. We use all the common list separators.
16488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16489 for pkg in $enableval; do
16491 if test "X
$pkg" = "X
$p"; then
16511 # Check whether --with-pic was given.
16512 if test "${with_pic+set}" = set; then :
16513 withval=$with_pic; pic_mode="$withval"
16519 test -z "$pic_mode" && pic_mode=default
16527 # Check whether --enable-fast-install was given.
16528 if test "${enable_fast_install+set}" = set; then :
16529 enableval=$enable_fast_install; p=${PACKAGE-default}
16531 yes) enable_fast_install=yes ;;
16532 no) enable_fast_install=no ;;
16534 enable_fast_install=no
16535 # Look at the argument we got. We use all the common list separators.
16536 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16537 for pkg in $enableval; do
16539 if test "X
$pkg" = "X
$p"; then
16540 enable_fast_install=yes
16547 enable_fast_install=yes
16560 # This can be used to rebuild libtool when needed
16561 LIBTOOL_DEPS="$ltmain"
16563 # Always use our own libtool.
16564 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16591 test -z "$LN_S" && LN_S="ln -s"
16606 if test -n "${ZSH_VERSION+set}" ; then
16607 setopt NO_GLOB_SUBST
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16611 $as_echo_n "checking
for objdir...
" >&6; }
16612 if ${lt_cv_objdir+:} false; then :
16613 $as_echo_n "(cached
) " >&6
16615 rm -f .libs 2>/dev/null
16616 mkdir .libs 2>/dev/null
16617 if test -d .libs; then
16620 # MS-DOS does not allow filenames that begin with a dot.
16623 rmdir .libs 2>/dev/null
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16626 $as_echo "$lt_cv_objdir" >&6; }
16627 objdir=$lt_cv_objdir
16633 cat >>confdefs.h <<_ACEOF
16634 #define LT_OBJDIR "$lt_cv_objdir/"
16642 # AIX sometimes has problems with the GCC collect2 program. For some
16643 # reason, if we set the COLLECT_NAMES environment variable, the problems
16644 # vanish in a puff of smoke.
16645 if test "X
${COLLECT_NAMES+set}" != Xset; then
16647 export COLLECT_NAMES
16652 # Global variables:
16654 can_build_shared=yes
16656 # All known linkers require a `.a' archive for static linking (except MSVC,
16657 # which needs '.lib').
16660 with_gnu_ld="$lt_cv_prog_gnu_ld"
16663 old_CFLAGS="$CFLAGS"
16665 # Set sane defaults for various variables
16666 test -z "$CC" && CC=cc
16667 test -z "$LTCC" && LTCC=$CC
16668 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16669 test -z "$LD" && LD=ld
16670 test -z "$ac_objext" && ac_objext=o
16672 for cc_temp in $compiler""; do
16674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16680 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16683 # Only perform the check for file, if the check method requires it
16684 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16685 case $deplibs_check_method in
16687 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16689 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16690 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16691 $as_echo_n "(cached
) " >&6
16695 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16698 lt_save_MAGIC_CMD="$MAGIC_CMD"
16699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16700 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16701 for ac_dir in $ac_dummy; do
16703 test -z "$ac_dir" && ac_dir=.
16704 if test -f $ac_dir/${ac_tool_prefix}file; then
16705 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16706 if test -n "$file_magic_test_file"; then
16707 case $deplibs_check_method in
16709 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16711 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16712 $EGREP "$file_magic_regex" > /dev/null; then
16717 *** Warning: the command libtool uses to detect shared libraries,
16718 *** $file_magic_cmd, produces output that libtool cannot recognize.
16719 *** The result is that libtool may fail to recognize shared libraries
16720 *** as such. This will affect the creation of libtool libraries that
16721 *** depend on shared libraries, but programs linked with such libtool
16722 *** libraries will work regardless of this problem. Nevertheless, you
16723 *** may want to report the problem to your system manager and/or to
16724 *** bug-libtool@gnu.org
16734 MAGIC_CMD="$lt_save_MAGIC_CMD"
16739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16740 if test -n "$MAGIC_CMD"; then
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16742 $as_echo "$MAGIC_CMD" >&6; }
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16745 $as_echo "no
" >&6; }
16752 if test -z "$lt_cv_path_MAGIC_CMD"; then
16753 if test -n "$ac_tool_prefix"; then
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16755 $as_echo_n "checking
for file...
" >&6; }
16756 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16757 $as_echo_n "(cached
) " >&6
16761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16764 lt_save_MAGIC_CMD="$MAGIC_CMD"
16765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16766 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16767 for ac_dir in $ac_dummy; do
16769 test -z "$ac_dir" && ac_dir=.
16770 if test -f $ac_dir/file; then
16771 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16772 if test -n "$file_magic_test_file"; then
16773 case $deplibs_check_method in
16775 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16778 $EGREP "$file_magic_regex" > /dev/null; then
16783 *** Warning: the command libtool uses to detect shared libraries,
16784 *** $file_magic_cmd, produces output that libtool cannot recognize.
16785 *** The result is that libtool may fail to recognize shared libraries
16786 *** as such. This will affect the creation of libtool libraries that
16787 *** depend on shared libraries, but programs linked with such libtool
16788 *** libraries will work regardless of this problem. Nevertheless, you
16789 *** may want to report the problem to your system manager and/or to
16790 *** bug-libtool@gnu.org
16800 MAGIC_CMD="$lt_save_MAGIC_CMD"
16805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16806 if test -n "$MAGIC_CMD"; then
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16808 $as_echo "$MAGIC_CMD" >&6; }
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16811 $as_echo "no
" >&6; }
16824 # Use C for the default configuration in the libtool script
16828 ac_cpp='$CPP $CPPFLAGS'
16829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16834 # Source file extension for C test sources.
16837 # Object file extension for compiled C test sources.
16841 # Code to be used in simple compile tests
16842 lt_simple_compile_test_code="int some_variable
= 0;"
16844 # Code to be used in simple link tests
16845 lt_simple_link_test_code='int main(){return(0);}'
16853 # If no C compiler was specified, use CC.
16856 # If no C compiler flags were specified, use CFLAGS.
16857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16859 # Allow CC to be a program name with arguments.
16862 # Save the default compiler, since it gets overwritten when the other
16863 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16864 compiler_DEFAULT=$CC
16866 # save warnings/boilerplate of simple test code
16867 ac_outfile=conftest.$ac_objext
16868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16870 _lt_compiler_boilerplate=`cat conftest.err`
16873 ac_outfile=conftest.$ac_objext
16874 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16876 _lt_linker_boilerplate=`cat conftest.err`
16881 ## There is no encapsulation within the following macros, do not change
16882 ## the running order or otherwise move them around unless you know exactly
16883 ## what you are doing...
16884 if test -n "$compiler"; then
16886 lt_prog_compiler_no_builtin_flag=
16888 if test "$GCC" = yes; then
16889 case $cc_basename in
16891 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16893 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16897 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16898 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16899 $as_echo_n "(cached
) " >&6
16901 lt_cv_prog_compiler_rtti_exceptions=no
16902 ac_outfile=conftest.$ac_objext
16903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16904 lt_compiler_flag="-fno-rtti -fno-exceptions"
16905 # Insert the option either (1) after the last *FLAGS variable, or
16906 # (2) before a word containing "conftest.
", or (3) at the end.
16907 # Note that $ac_compile itself does not contain backslashes and begins
16908 # with a dollar sign (not a hyphen), so the echo should work correctly.
16909 # The option is referenced via a variable to avoid confusing sed.
16910 lt_compile=`echo "$ac_compile" | $SED \
16911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16913 -e 's:$: $lt_compiler_flag:'`
16914 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16915 (eval "$lt_compile" 2>conftest.err)
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16919 if (exit $ac_status) && test -s "$ac_outfile"; then
16920 # The compiler can only warn and ignore the option if not recognized
16921 # So say no if there are warnings other than the usual output.
16922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16925 lt_cv_prog_compiler_rtti_exceptions=yes
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16932 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16934 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16935 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16947 lt_prog_compiler_wl=
16948 lt_prog_compiler_pic=
16949 lt_prog_compiler_static=
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16952 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16954 if test "$GCC" = yes; then
16955 lt_prog_compiler_wl='-Wl,'
16956 lt_prog_compiler_static='-static'
16960 # All AIX code is PIC.
16961 if test "$host_cpu" = ia64; then
16962 # AIX 5 now supports IA64 processor
16963 lt_prog_compiler_static='-Bstatic'
16965 lt_prog_compiler_pic='-fPIC'
16971 # see comment about AmigaOS4 .so support
16972 lt_prog_compiler_pic='-fPIC'
16975 # FIXME: we need at least 68020 code to build shared libraries, but
16976 # adding the `-m68020' flag to GCC prevents building anything better,
16978 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16983 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16984 # PIC is the default for these OSes.
16987 mingw* | cygwin* | pw32* | os2* | cegcc*)
16988 # This hack is so that the source file can tell whether it is being
16989 # built for inclusion in a dll (and should export symbols for example).
16990 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16991 # (--disable-auto-import) libraries
16992 lt_prog_compiler_pic='-DDLL_EXPORT'
16995 darwin* | rhapsody*)
16996 # PIC is the default on this platform
16997 # Common symbols not allowed in MH_DYLIB files
16998 lt_prog_compiler_pic='-fno-common'
17002 # PIC is the default for Haiku.
17003 # The "-static" flag exists, but is broken.
17004 lt_prog_compiler_static=
17008 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17009 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17010 # sets the default TLS model and affects inlining.
17016 lt_prog_compiler_pic='-fPIC'
17022 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17023 # Instead, we relocate shared libraries at runtime.
17027 # Just because we use GCC doesn't mean we suddenly get shared libraries
17028 # on systems that don't support them.
17029 lt_prog_compiler_can_build_shared=no
17034 # QNX uses GNU C++, but need to define -shared option too, otherwise
17035 # it will coredump.
17036 lt_prog_compiler_pic='-fPIC -shared'
17040 if test -d /usr/nec; then
17041 lt_prog_compiler_pic=-Kconform_pic
17046 lt_prog_compiler_pic='-fPIC'
17050 case $cc_basename in
17051 nvcc*) # Cuda Compiler Driver 2.2
17052 lt_prog_compiler_wl='-Xlinker '
17053 lt_prog_compiler_pic='-Xcompiler -fPIC'
17057 # PORTME Check for flag to pass linker flags through the system compiler.
17060 lt_prog_compiler_wl='-Wl,'
17061 if test "$host_cpu" = ia64; then
17062 # AIX 5 now supports IA64 processor
17063 lt_prog_compiler_static='-Bstatic'
17065 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17069 mingw* | cygwin* | pw32* | os2* | cegcc*)
17070 # This hack is so that the source file can tell whether it is being
17071 # built for inclusion in a dll (and should export symbols for example).
17072 lt_prog_compiler_pic='-DDLL_EXPORT'
17075 hpux9* | hpux10* | hpux11*)
17076 lt_prog_compiler_wl='-Wl,'
17077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17078 # not for PA HP-UX.
17084 lt_prog_compiler_pic='+Z'
17087 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17088 lt_prog_compiler_static='${wl}-a ${wl}archive'
17091 irix5* | irix6* | nonstopux*)
17092 lt_prog_compiler_wl='-Wl,'
17093 # PIC (with -KPIC) is the default.
17094 lt_prog_compiler_static='-non_shared'
17097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17098 case $cc_basename in
17099 # old Intel for x86_64 which still supported -KPIC.
17101 lt_prog_compiler_wl='-Wl,'
17102 lt_prog_compiler_pic='-KPIC'
17103 lt_prog_compiler_static='-static'
17105 # icc used to be incompatible with GCC.
17106 # ICC 10 doesn't accept -KPIC any more.
17108 lt_prog_compiler_wl='-Wl,'
17109 lt_prog_compiler_pic='-fPIC'
17110 lt_prog_compiler_static='-static'
17112 # Lahey Fortran 8.1.
17114 lt_prog_compiler_wl='-Wl,'
17115 lt_prog_compiler_pic='--shared'
17116 lt_prog_compiler_static='--static'
17118 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17119 # Portland Group compilers (*not* the Pentium gcc compiler,
17120 # which looks to be a dead project)
17121 lt_prog_compiler_wl='-Wl,'
17122 lt_prog_compiler_pic='-fpic'
17123 lt_prog_compiler_static='-Bstatic'
17126 lt_prog_compiler_wl='-Wl,'
17127 # All Alpha code is PIC.
17128 lt_prog_compiler_static='-non_shared'
17130 xl* | bgxl* | bgf* | mpixl*)
17131 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17132 lt_prog_compiler_wl='-Wl,'
17133 lt_prog_compiler_pic='-qpic'
17134 lt_prog_compiler_static='-qstaticlink'
17137 case `$CC -V 2>&1 | sed 5q` in
17138 *Sun\ F* | *Sun*Fortran*)
17139 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17140 lt_prog_compiler_pic='-KPIC'
17141 lt_prog_compiler_static='-Bstatic'
17142 lt_prog_compiler_wl=''
17146 lt_prog_compiler_pic='-KPIC'
17147 lt_prog_compiler_static='-Bstatic'
17148 lt_prog_compiler_wl='-Wl,'
17156 lt_prog_compiler_pic='-KPIC'
17157 lt_prog_compiler_static='-Bstatic'
17161 # QNX uses GNU C++, but need to define -shared option too, otherwise
17162 # it will coredump.
17163 lt_prog_compiler_pic='-fPIC -shared'
17166 osf3* | osf4* | osf5*)
17167 lt_prog_compiler_wl='-Wl,'
17168 # All OSF/1 code is PIC.
17169 lt_prog_compiler_static='-non_shared'
17173 lt_prog_compiler_static='-non_shared'
17177 lt_prog_compiler_pic='-KPIC'
17178 lt_prog_compiler_static='-Bstatic'
17179 case $cc_basename in
17180 f77* | f90* | f95*)
17181 lt_prog_compiler_wl='-Qoption ld ';;
17183 lt_prog_compiler_wl='-Wl,';;
17188 lt_prog_compiler_wl='-Qoption ld '
17189 lt_prog_compiler_pic='-PIC'
17190 lt_prog_compiler_static='-Bstatic'
17193 sysv4 | sysv4.2uw2* | sysv4.3*)
17194 lt_prog_compiler_wl='-Wl,'
17195 lt_prog_compiler_pic='-KPIC'
17196 lt_prog_compiler_static='-Bstatic'
17200 if test -d /usr/nec ;then
17201 lt_prog_compiler_pic='-Kconform_pic'
17202 lt_prog_compiler_static='-Bstatic'
17206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17207 lt_prog_compiler_wl='-Wl,'
17208 lt_prog_compiler_pic='-KPIC'
17209 lt_prog_compiler_static='-Bstatic'
17213 lt_prog_compiler_wl='-Wl,'
17214 lt_prog_compiler_can_build_shared=no
17218 lt_prog_compiler_pic='-pic'
17219 lt_prog_compiler_static='-Bstatic'
17223 lt_prog_compiler_can_build_shared=no
17229 # For platforms which do not support PIC, -DPIC is meaningless:
17231 lt_prog_compiler_pic=
17234 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17238 $as_echo "$lt_prog_compiler_pic" >&6; }
17246 # Check to make sure the PIC flag actually works.
17248 if test -n "$lt_prog_compiler_pic"; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17250 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17251 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17252 $as_echo_n "(cached
) " >&6
17254 lt_cv_prog_compiler_pic_works=no
17255 ac_outfile=conftest.$ac_objext
17256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17257 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17258 # Insert the option either (1) after the last *FLAGS variable, or
17259 # (2) before a word containing "conftest.
", or (3) at the end.
17260 # Note that $ac_compile itself does not contain backslashes and begins
17261 # with a dollar sign (not a hyphen), so the echo should work correctly.
17262 # The option is referenced via a variable to avoid confusing sed.
17263 lt_compile=`echo "$ac_compile" | $SED \
17264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17266 -e 's:$: $lt_compiler_flag:'`
17267 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17268 (eval "$lt_compile" 2>conftest.err)
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17272 if (exit $ac_status) && test -s "$ac_outfile"; then
17273 # The compiler can only warn and ignore the option if not recognized
17274 # So say no if there are warnings other than the usual output.
17275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17278 lt_cv_prog_compiler_pic_works=yes
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17285 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17287 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17288 case $lt_prog_compiler_pic in
17290 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17293 lt_prog_compiler_pic=
17294 lt_prog_compiler_can_build_shared=no
17305 # Check to make sure the static flag actually works.
17307 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17309 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17310 if ${lt_cv_prog_compiler_static_works+:} false; then :
17311 $as_echo_n "(cached
) " >&6
17313 lt_cv_prog_compiler_static_works=no
17314 save_LDFLAGS="$LDFLAGS"
17315 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17316 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17317 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17318 # The linker can only warn and ignore the option if not recognized
17319 # So say no if there are warnings
17320 if test -s conftest.err; then
17321 # Append any errors to the config.log.
17322 cat conftest.err 1>&5
17323 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17325 if diff conftest.exp conftest.er2 >/dev/null; then
17326 lt_cv_prog_compiler_static_works=yes
17329 lt_cv_prog_compiler_static_works=yes
17333 LDFLAGS="$save_LDFLAGS"
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17337 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17339 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17342 lt_prog_compiler_static=
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17352 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17353 if ${lt_cv_prog_compiler_c_o+:} false; then :
17354 $as_echo_n "(cached
) " >&6
17356 lt_cv_prog_compiler_c_o=no
17357 $RM -r conftest 2>/dev/null
17361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17363 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17364 # Insert the option either (1) after the last *FLAGS variable, or
17365 # (2) before a word containing "conftest.
", or (3) at the end.
17366 # Note that $ac_compile itself does not contain backslashes and begins
17367 # with a dollar sign (not a hyphen), so the echo should work correctly.
17368 lt_compile=`echo "$ac_compile" | $SED \
17369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17371 -e 's:$: $lt_compiler_flag:'`
17372 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17373 (eval "$lt_compile" 2>out/conftest.err)
17375 cat out/conftest.err >&5
17376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17379 # The compiler can only warn and ignore the option if not recognized
17380 # So say no if there are warnings
17381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17384 lt_cv_prog_compiler_c_o=yes
17389 # SGI C++ compiler will create directory out/ii_files/ for
17390 # template instantiation
17391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17392 $RM out/* && rmdir out
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17399 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17407 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17408 if ${lt_cv_prog_compiler_c_o+:} false; then :
17409 $as_echo_n "(cached
) " >&6
17411 lt_cv_prog_compiler_c_o=no
17412 $RM -r conftest 2>/dev/null
17416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17418 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17419 # Insert the option either (1) after the last *FLAGS variable, or
17420 # (2) before a word containing "conftest.
", or (3) at the end.
17421 # Note that $ac_compile itself does not contain backslashes and begins
17422 # with a dollar sign (not a hyphen), so the echo should work correctly.
17423 lt_compile=`echo "$ac_compile" | $SED \
17424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17426 -e 's:$: $lt_compiler_flag:'`
17427 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17428 (eval "$lt_compile" 2>out/conftest.err)
17430 cat out/conftest.err >&5
17431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17432 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17434 # The compiler can only warn and ignore the option if not recognized
17435 # So say no if there are warnings
17436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17439 lt_cv_prog_compiler_c_o=yes
17444 # SGI C++ compiler will create directory out/ii_files/ for
17445 # template instantiation
17446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17447 $RM out/* && rmdir out
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17454 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17459 hard_links="nottested
"
17460 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17461 # do not overwrite the value of need_locks provided by the user
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17463 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17468 ln conftest.a conftest.b 2>&5 || hard_links=no
17469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17471 $as_echo "$hard_links" >&6; }
17472 if test "$hard_links" = no; then
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17474 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17487 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17490 allow_undefined_flag=
17491 always_export_symbols=no
17493 archive_expsym_cmds=
17494 compiler_needs_object=no
17495 enable_shared_with_static_runtimes=no
17496 export_dynamic_flag_spec=
17497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17498 hardcode_automatic=no
17500 hardcode_direct_absolute=no
17501 hardcode_libdir_flag_spec=
17502 hardcode_libdir_flag_spec_ld=
17503 hardcode_libdir_separator=
17504 hardcode_minus_L=no
17505 hardcode_shlibpath_var=unsupported
17507 link_all_deplibs=unknown
17509 module_expsym_cmds=
17510 old_archive_from_new_cmds=
17511 old_archive_from_expsyms_cmds=
17512 thread_safe_flag_spec=
17513 whole_archive_flag_spec=
17514 # include_expsyms should be a list of space-separated symbols to be *always*
17515 # included in the symbol list
17517 # exclude_expsyms can be an extended regexp of symbols to exclude
17518 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17519 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17520 # as well as any symbol that contains `d'.
17521 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17522 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17523 # platforms (ab)use it in PIC code, but their linkers get confused if
17524 # the symbol is explicitly referenced. Since portable code cannot
17525 # rely on this symbol name, it's probably fine to never include it in
17526 # preloaded symbol tables.
17527 # Exclude shared library initialization/finalization symbols.
17528 extract_expsyms_cmds=
17531 cygwin* | mingw* | pw32* | cegcc*)
17532 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17533 # When not using gcc, we currently assume that we are using
17534 # Microsoft Visual C++.
17535 if test "$GCC" != yes; then
17540 # we just hope/assume this is gcc and not c89 (= MSVC++)
17550 # On some targets, GNU ld is compatible enough with the native linker
17551 # that we're better off using the native interface for both.
17552 lt_use_gnu_ld_interface=no
17553 if test "$with_gnu_ld" = yes; then
17556 # The AIX port of GNU ld has always aspired to compatibility
17557 # with the native linker. However, as the warning in the GNU ld
17558 # block says, versions before 2.19.5* couldn't really create working
17559 # shared libraries, regardless of the interface used.
17560 case `$LD -v 2>&1` in
17561 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17562 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17563 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17565 lt_use_gnu_ld_interface=yes
17570 lt_use_gnu_ld_interface=yes
17575 if test "$lt_use_gnu_ld_interface" = yes; then
17576 # If archive_cmds runs LD, not CC, wlarc should be empty
17579 # Set some defaults for GNU ld with shared library support. These
17580 # are reset later if shared libraries are not supported. Putting them
17581 # here allows them to be overridden if necessary.
17582 runpath_var=LD_RUN_PATH
17583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17584 export_dynamic_flag_spec='${wl}--export-dynamic'
17585 # ancient GNU ld didn't support --whole-archive et. al.
17586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17587 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17589 whole_archive_flag_spec=
17591 supports_anon_versioning=no
17592 case `$LD -v 2>&1` in
17593 *GNU\ gold*) supports_anon_versioning=yes ;;
17594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17597 *\ 2.11.*) ;; # other 2.11 versions
17598 *) supports_anon_versioning=yes ;;
17601 # See if GNU ld supports shared libraries.
17604 # On AIX/PPC, the GNU linker is very broken
17605 if test "$host_cpu" != ia64; then
17609 *** Warning: the GNU linker, at least up to release 2.19, is reported
17610 *** to be unable to reliably create shared libraries on AIX.
17611 *** Therefore, libtool is disabling shared libraries support. If you
17612 *** really care for shared libraries, you may want to install binutils
17613 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17614 *** You will then need to restart the configuration process.
17623 # see comment about AmigaOS4 .so support
17624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17625 archive_expsym_cmds=''
17628 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)'
17629 hardcode_libdir_flag_spec
='-L$libdir'
17630 hardcode_minus_L
=yes
17636 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17637 allow_undefined_flag
=unsupported
17638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17639 # support --undefined. This deserves some investigation. FIXME
17640 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17646 cygwin
* | mingw
* | pw32
* | cegcc
*)
17647 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17648 # as there is no search path for DLLs.
17649 hardcode_libdir_flag_spec
='-L$libdir'
17650 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17651 allow_undefined_flag
=unsupported
17652 always_export_symbols
=no
17653 enable_shared_with_static_runtimes
=yes
17654 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17656 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17657 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17658 # If the export-symbols file already is a .def file (1st line
17659 # is EXPORTS), use it as is; otherwise, prepend...
17660 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17661 cp $export_symbols $output_objdir/$soname.def;
17663 echo EXPORTS > $output_objdir/$soname.def;
17664 cat $export_symbols >> $output_objdir/$soname.def;
17666 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17673 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17674 link_all_deplibs
=yes
17679 hardcode_shlibpath_var
=no
17680 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17681 export_dynamic_flag_spec
='${wl}-E'
17682 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17683 # Instead, shared libraries are loaded at an image base (0x10000000 by
17684 # default) and relocated if they conflict, which is a slow very memory
17685 # consuming and fragmenting process. To avoid this, we pick a random,
17686 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17687 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17688 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17689 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'
17692 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17694 if test "$host_os" = linux-dietlibc
; then
17695 case $cc_basename in
17696 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17699 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17700 && test "$tmp_diet" = no
17702 tmp_addflag
=' $pic_flag'
17703 tmp_sharedflag
='-shared'
17704 case $cc_basename,$host_cpu in
17705 pgcc
*) # Portland Group C compiler
17706 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'
17707 tmp_addflag
=' $pic_flag'
17709 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17710 # Portland Group f77 and f90 compilers
17711 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'
17712 tmp_addflag
=' $pic_flag -Mnomain' ;;
17713 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17714 tmp_addflag
=' -i_dynamic' ;;
17715 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17716 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17717 ifc
* | ifort
*) # Intel Fortran compiler
17718 tmp_addflag
=' -nofor_main' ;;
17719 lf95
*) # Lahey Fortran 8.1
17720 whole_archive_flag_spec
=
17721 tmp_sharedflag
='--shared' ;;
17722 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17723 tmp_sharedflag
='-qmkshrobj'
17725 nvcc
*) # Cuda Compiler Driver 2.2
17726 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'
17727 compiler_needs_object
=yes
17730 case `$CC -V 2>&1 | sed 5q` in
17731 *Sun\ C
*) # Sun C 5.9
17732 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'
17733 compiler_needs_object
=yes
17734 tmp_sharedflag
='-G' ;;
17735 *Sun\ F
*) # Sun Fortran 8.3
17736 tmp_sharedflag
='-G' ;;
17738 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17740 if test "x$supports_anon_versioning" = xyes
; then
17741 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17742 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17743 echo "local: *; };" >> $output_objdir/$libname.ver~
17744 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17747 case $cc_basename in
17748 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17749 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17750 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17751 hardcode_libdir_flag_spec
=
17752 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17753 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17754 if test "x$supports_anon_versioning" = xyes
; then
17755 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17757 echo "local: *; };" >> $output_objdir/$libname.ver~
17758 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17768 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17769 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17772 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17773 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17778 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17782 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17783 *** create shared libraries on Solaris systems. Therefore, libtool
17784 *** is disabling shared libraries support. We urge you to upgrade GNU
17785 *** binutils to release 2.9.1 or newer. Another option is to modify
17786 *** your PATH or compiler configuration so that the native linker is
17787 *** used, and then restart.
17790 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17791 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17792 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17798 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17799 case `$LD -v 2>&1` in
17800 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17804 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17805 *** reliably create shared libraries on SCO systems. Therefore, libtool
17806 *** is disabling shared libraries support. We urge you to upgrade GNU
17807 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17808 *** your PATH or compiler configuration so that the native linker is
17809 *** used, and then restart.
17814 # For security reasons, it is highly recommended that you always
17815 # use absolute paths for naming shared libraries, and exclude the
17816 # DT_RUNPATH tag from executables and libraries. But doing so
17817 # requires that you compile everything twice, which is a pain.
17818 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17819 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17820 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17821 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17830 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17832 hardcode_direct
=yes
17833 hardcode_shlibpath_var
=no
17837 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17838 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17839 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17846 if test "$ld_shlibs" = no
; then
17848 hardcode_libdir_flag_spec
=
17849 export_dynamic_flag_spec
=
17850 whole_archive_flag_spec
=
17853 # PORTME fill in a description of your system's linker (not GNU ld)
17856 allow_undefined_flag
=unsupported
17857 always_export_symbols
=yes
17858 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'
17859 # Note: this linker hardcodes the directories in LIBPATH if there
17860 # are no directories specified by -L.
17861 hardcode_minus_L
=yes
17862 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17863 # Neither direct hardcoding nor static linking is supported with a
17865 hardcode_direct
=unsupported
17870 if test "$host_cpu" = ia64
; then
17871 # On IA64, the linker does run time linking by default, so we don't
17872 # have to do anything special.
17873 aix_use_runtimelinking
=no
17874 exp_sym_flag
='-Bexport'
17877 # If we're using GNU nm, then we don't want the "-C" option.
17878 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17879 # Also, AIX nm treats weak defined symbols like other global
17880 # defined symbols, whereas GNU nm marks them as "W".
17881 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17882 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'
17884 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'
17886 aix_use_runtimelinking
=no
17888 # Test if we are trying to use run time linking or normal
17889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17890 # need to do runtime linking.
17891 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17892 for ld_flag
in $LDFLAGS; do
17893 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17894 aix_use_runtimelinking
=yes
17901 exp_sym_flag
='-bexport'
17902 no_entry_flag
='-bnoentry'
17905 # When large executables or shared objects are built, AIX ld can
17906 # have problems creating the table of contents. If linking a library
17907 # or program results in "error TOC overflow" add -mminimal-toc to
17908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17912 hardcode_direct
=yes
17913 hardcode_direct_absolute
=yes
17914 hardcode_libdir_separator
=':'
17915 link_all_deplibs
=yes
17916 file_list_spec
='${wl}-f,'
17918 if test "$GCC" = yes; then
17919 case $host_os in aix4.
[012]|aix4.
[012].
*)
17920 # We only want to do this on AIX 4.2 and lower, the check
17921 # below for broken collect2 doesn't work under 4.3+
17922 collect2name
=`${CC} -print-prog-name=collect2`
17923 if test -f "$collect2name" &&
17924 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17926 # We have reworked collect2
17929 # We have old collect2
17930 hardcode_direct
=unsupported
17931 # It fails to find uninstalled libraries when the uninstalled
17932 # path is not listed in the libpath. Setting hardcode_minus_L
17933 # to unsupported forces relinking
17934 hardcode_minus_L
=yes
17935 hardcode_libdir_flag_spec
='-L$libdir'
17936 hardcode_libdir_separator
=
17940 shared_flag
='-shared'
17941 if test "$aix_use_runtimelinking" = yes; then
17942 shared_flag
="$shared_flag "'${wl}-G'
17946 if test "$host_cpu" = ia64
; then
17947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17948 # chokes on -Wl,-G. The following line is correct:
17951 if test "$aix_use_runtimelinking" = yes; then
17952 shared_flag
='${wl}-G'
17954 shared_flag
='${wl}-bM:SRE'
17959 export_dynamic_flag_spec
='${wl}-bexpall'
17960 # It seems that -bexpall does not export symbols beginning with
17961 # underscore (_), so it is better to generate a list of symbols to export.
17962 always_export_symbols
=yes
17963 if test "$aix_use_runtimelinking" = yes; then
17964 # Warning - without using the other runtime loading flags (-brtl),
17965 # -berok will link without error, but may produce a broken library.
17966 allow_undefined_flag
='-berok'
17967 # Determine the default libpath from the value encoded in an
17968 # empty executable.
17969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17980 if ac_fn_c_try_link
"$LINENO"; then :
17982 lt_aix_libpath_sed
='
17983 /Import File Strings/,/^$/ {
17989 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17990 # Check for a 64-bit object if we didn't find anything.
17991 if test -z "$aix_libpath"; then
17992 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17995 rm -f core conftest.err conftest.
$ac_objext \
17996 conftest
$ac_exeext conftest.
$ac_ext
17997 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17999 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18000 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"
18002 if test "$host_cpu" = ia64
; then
18003 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
18004 allow_undefined_flag
="-z nodefs"
18005 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"
18007 # Determine the default libpath from the value encoded in an
18008 # empty executable.
18009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18020 if ac_fn_c_try_link
"$LINENO"; then :
18022 lt_aix_libpath_sed
='
18023 /Import File Strings/,/^$/ {
18029 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18030 # Check for a 64-bit object if we didn't find anything.
18031 if test -z "$aix_libpath"; then
18032 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18035 rm -f core conftest.err conftest.
$ac_objext \
18036 conftest
$ac_exeext conftest.
$ac_ext
18037 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18039 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18040 # Warning - without using the other run time loading flags,
18041 # -berok will link without error, but may produce a broken library.
18042 no_undefined_flag
=' ${wl}-bernotok'
18043 allow_undefined_flag
=' ${wl}-berok'
18044 if test "$with_gnu_ld" = yes; then
18045 # We only use this code for GNU lds that support --whole-archive.
18046 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18048 # Exported symbols can be pulled into shared objects from archives
18049 whole_archive_flag_spec
='$convenience'
18051 archive_cmds_need_lc
=yes
18052 # This is similar to how AIX traditionally builds its shared libraries.
18053 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'
18061 # see comment about AmigaOS4 .so support
18062 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18063 archive_expsym_cmds
=''
18066 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)'
18067 hardcode_libdir_flag_spec
='-L$libdir'
18068 hardcode_minus_L
=yes
18074 export_dynamic_flag_spec
=-rdynamic
18077 cygwin
* | mingw
* | pw32
* | cegcc
*)
18078 # When not using gcc, we currently assume that we are using
18079 # Microsoft Visual C++.
18080 # hardcode_libdir_flag_spec is actually meaningless, as there is
18081 # no search path for DLLs.
18082 hardcode_libdir_flag_spec
=' '
18083 allow_undefined_flag
=unsupported
18084 # Tell ltmain to make .lib files, not .a files.
18086 # Tell ltmain to make .dll files, not .so files.
18088 # FIXME: Setting linknames here is a bad hack.
18089 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18090 # The linker will automatically build a .lib file if we build a DLL.
18091 old_archive_from_new_cmds
='true'
18092 # FIXME: Should let the user specify the lib program.
18093 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18094 fix_srcfile_path
='`cygpath -w "$srcfile"`'
18095 enable_shared_with_static_runtimes
=yes
18098 darwin
* | rhapsody
*)
18101 archive_cmds_need_lc
=no
18103 hardcode_automatic
=yes
18104 hardcode_shlibpath_var
=unsupported
18105 if test "$lt_cv_ld_force_load" = "yes"; then
18106 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\"`'
18108 whole_archive_flag_spec
=''
18110 link_all_deplibs
=yes
18111 allow_undefined_flag
="$_lt_dar_allow_undefined"
18112 case $cc_basename in
18113 ifort
*) _lt_dar_can_shared
=yes ;;
18114 *) _lt_dar_can_shared
=$GCC ;;
18116 if test "$_lt_dar_can_shared" = "yes"; then
18117 output_verbose_link_cmd
=func_echo_all
18118 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18119 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18120 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18121 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}"
18130 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131 hardcode_libdir_flag_spec
='-L$libdir'
18132 hardcode_shlibpath_var
=no
18135 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18136 # support. Future versions do this automatically, but an explicit c++rt0.o
18137 # does not break anything, and helps significantly (at the cost of a little
18140 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18141 hardcode_libdir_flag_spec
='-R$libdir'
18142 hardcode_direct
=yes
18143 hardcode_shlibpath_var
=no
18146 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18148 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18149 hardcode_direct
=yes
18150 hardcode_minus_L
=yes
18151 hardcode_shlibpath_var
=no
18154 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18155 freebsd
* | dragonfly
*)
18156 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18157 hardcode_libdir_flag_spec
='-R$libdir'
18158 hardcode_direct
=yes
18159 hardcode_shlibpath_var
=no
18163 if test "$GCC" = yes; then
18164 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'
18166 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'
18168 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18169 hardcode_libdir_separator
=:
18170 hardcode_direct
=yes
18172 # hardcode_minus_L: Not really in the search PATH,
18173 # but as the default location of the library.
18174 hardcode_minus_L
=yes
18175 export_dynamic_flag_spec
='${wl}-E'
18179 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18180 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18182 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18184 if test "$with_gnu_ld" = no
; then
18185 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18186 hardcode_libdir_flag_spec_ld
='+b $libdir'
18187 hardcode_libdir_separator
=:
18188 hardcode_direct
=yes
18189 hardcode_direct_absolute
=yes
18190 export_dynamic_flag_spec
='${wl}-E'
18191 # hardcode_minus_L: Not really in the search PATH,
18192 # but as the default location of the library.
18193 hardcode_minus_L
=yes
18198 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18201 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18204 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18207 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18213 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18216 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18220 # Older versions of the 11.00 compiler do not understand -b yet
18221 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18223 $as_echo_n "checking if $CC understands -b... " >&6; }
18224 if ${lt_cv_prog_compiler__b+:} false
; then :
18225 $as_echo_n "(cached) " >&6
18227 lt_cv_prog_compiler__b
=no
18228 save_LDFLAGS
="$LDFLAGS"
18229 LDFLAGS
="$LDFLAGS -b"
18230 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18231 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18232 # The linker can only warn and ignore the option if not recognized
18233 # So say no if there are warnings
18234 if test -s conftest.err
; then
18235 # Append any errors to the config.log.
18236 cat conftest.err
1>&5
18237 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18238 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18239 if diff conftest.exp conftest.er2
>/dev
/null
; then
18240 lt_cv_prog_compiler__b
=yes
18243 lt_cv_prog_compiler__b
=yes
18247 LDFLAGS
="$save_LDFLAGS"
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18251 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18253 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18254 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18256 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18262 if test "$with_gnu_ld" = no
; then
18263 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18264 hardcode_libdir_separator
=:
18269 hardcode_shlibpath_var
=no
18272 hardcode_direct
=yes
18273 hardcode_direct_absolute
=yes
18274 export_dynamic_flag_spec
='${wl}-E'
18276 # hardcode_minus_L: Not really in the search PATH,
18277 # but as the default location of the library.
18278 hardcode_minus_L
=yes
18284 irix5
* | irix6
* | nonstopux
*)
18285 if test "$GCC" = yes; then
18286 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'
18287 # Try to use the -exported_symbol ld option, if it does not
18288 # work, assume that -exports_file does not work either and
18289 # implicitly export all symbols.
18290 save_LDFLAGS
="$LDFLAGS"
18291 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18296 if ac_fn_c_try_link
"$LINENO"; then :
18297 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'
18300 rm -f core conftest.err conftest.
$ac_objext \
18301 conftest
$ac_exeext conftest.
$ac_ext
18302 LDFLAGS
="$save_LDFLAGS"
18304 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'
18305 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'
18307 archive_cmds_need_lc
='no'
18308 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18309 hardcode_libdir_separator
=:
18311 link_all_deplibs
=yes
18315 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18316 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18318 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18320 hardcode_libdir_flag_spec
='-R$libdir'
18321 hardcode_direct
=yes
18322 hardcode_shlibpath_var
=no
18326 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18327 hardcode_direct
=yes
18328 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18329 hardcode_libdir_separator
=:
18330 hardcode_shlibpath_var
=no
18337 if test -f /usr
/libexec
/ld.so
; then
18338 hardcode_direct
=yes
18339 hardcode_shlibpath_var
=no
18340 hardcode_direct_absolute
=yes
18341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18342 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18343 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18344 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18345 export_dynamic_flag_spec
='${wl}-E'
18348 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18349 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18350 hardcode_libdir_flag_spec
='-R$libdir'
18353 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18354 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18364 hardcode_libdir_flag_spec
='-L$libdir'
18365 hardcode_minus_L
=yes
18366 allow_undefined_flag
=unsupported
18367 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'
18368 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18372 if test "$GCC" = yes; then
18373 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18374 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'
18376 allow_undefined_flag
=' -expect_unresolved \*'
18377 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'
18379 archive_cmds_need_lc
='no'
18380 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18381 hardcode_libdir_separator
=:
18384 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18385 if test "$GCC" = yes; then
18386 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18387 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'
18388 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18390 allow_undefined_flag
=' -expect_unresolved \*'
18391 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'
18392 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~
18393 $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'
18395 # Both c and cxx compiler support -rpath directly
18396 hardcode_libdir_flag_spec
='-rpath $libdir'
18398 archive_cmds_need_lc
='no'
18399 hardcode_libdir_separator
=:
18403 no_undefined_flag
=' -z defs'
18404 if test "$GCC" = yes; then
18406 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18407 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18408 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18410 case `$CC -V 2>&1` in
18413 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18414 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18419 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18420 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18421 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18425 hardcode_libdir_flag_spec
='-R$libdir'
18426 hardcode_shlibpath_var
=no
18428 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18430 # The compiler driver will combine and reorder linker options,
18431 # but understands `-z linker_flag'. GCC discards it without `$wl',
18432 # but is careful enough not to reorder.
18433 # Supported since Solaris 2.6 (maybe 2.5.1?)
18434 if test "$GCC" = yes; then
18435 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18437 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18441 link_all_deplibs
=yes
18445 if test "x$host_vendor" = xsequent
; then
18446 # Use $CC to link under sequent, because it throws in some extra .o
18447 # files that make .init and .fini sections work.
18448 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18450 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18452 hardcode_libdir_flag_spec
='-L$libdir'
18453 hardcode_direct
=yes
18454 hardcode_minus_L
=yes
18455 hardcode_shlibpath_var
=no
18459 case $host_vendor in
18461 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18462 hardcode_direct
=yes # is this really true???
18465 ## LD is ld it makes a PLAMLIB
18466 ## CC just makes a GrossModule.
18467 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18468 reload_cmds
='$CC -r -o $output$reload_objs'
18472 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18473 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18476 runpath_var
='LD_RUN_PATH'
18477 hardcode_shlibpath_var
=no
18481 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482 hardcode_shlibpath_var
=no
18483 export_dynamic_flag_spec
='-Bexport'
18487 if test -d /usr
/nec
; then
18488 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18489 hardcode_shlibpath_var
=no
18490 runpath_var
=LD_RUN_PATH
18491 hardcode_runpath_var
=yes
18496 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18497 no_undefined_flag
='${wl}-z,text'
18498 archive_cmds_need_lc
=no
18499 hardcode_shlibpath_var
=no
18500 runpath_var
='LD_RUN_PATH'
18502 if test "$GCC" = yes; then
18503 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18504 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18506 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18507 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 sysv5
* | sco3.2v5
* | sco5v6
*)
18512 # Note: We can NOT use -z defs as we might desire, because we do not
18513 # link with -lc, and that would cause any symbols used from libc to
18514 # always be unresolved, which means just about no library would
18515 # ever link correctly. If we're not using GNU ld we use -z text
18516 # though, which does catch some bad symbols but isn't as heavy-handed
18518 no_undefined_flag
='${wl}-z,text'
18519 allow_undefined_flag
='${wl}-z,nodefs'
18520 archive_cmds_need_lc
=no
18521 hardcode_shlibpath_var
=no
18522 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18523 hardcode_libdir_separator
=':'
18524 link_all_deplibs
=yes
18525 export_dynamic_flag_spec
='${wl}-Bexport'
18526 runpath_var
='LD_RUN_PATH'
18528 if test "$GCC" = yes; then
18529 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18530 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18532 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18533 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18538 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18539 hardcode_libdir_flag_spec
='-L$libdir'
18540 hardcode_shlibpath_var
=no
18548 if test x
$host_vendor = xsni
; then
18550 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18551 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18558 $as_echo "$ld_shlibs" >&6; }
18559 test "$ld_shlibs" = no
&& can_build_shared
=no
18561 with_gnu_ld
=$with_gnu_ld
18578 # Do we need to explicitly link libc?
18580 case "x$archive_cmds_need_lc" in
18582 # Assume -lc should be added
18583 archive_cmds_need_lc
=yes
18585 if test "$enable_shared" = yes && test "$GCC" = yes; then
18586 case $archive_cmds in
18588 # FIXME: we may have to deal with multi-command sequences.
18591 # Test whether the compiler implicitly links with -lc since on some
18592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18593 # to ld, don't add -lc before -lgcc.
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18595 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18596 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18597 $as_echo_n "(cached) " >&6
18600 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18603 (eval $ac_compile) 2>&5
18605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18606 test $ac_status = 0; } 2>conftest.err
; then
18609 libobjs
=conftest.
$ac_objext
18611 wl
=$lt_prog_compiler_wl
18612 pic_flag
=$lt_prog_compiler_pic
18618 lt_save_allow_undefined_flag
=$allow_undefined_flag
18619 allow_undefined_flag
=
18620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18621 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18624 test $ac_status = 0; }
18626 lt_cv_archive_cmds_need_lc
=no
18628 lt_cv_archive_cmds_need_lc
=yes
18630 allow_undefined_flag
=$lt_save_allow_undefined_flag
18632 cat conftest.err
1>&5
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18638 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18639 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18803 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18805 if test "$GCC" = yes; then
18807 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18808 *) lt_awk_arg
="/^libraries:/" ;;
18811 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18812 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18814 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18815 case $lt_search_path_spec in
18817 # if the path contains ";" then we assume it to be the separator
18818 # otherwise default to the standard path separator (i.e. ":") - it is
18819 # assumed that no part of a normal pathname contains ";" but that should
18820 # okay in the real world where ";" in dirpaths is itself problematic.
18821 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18824 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18827 # Ok, now we have the path, separated by spaces, we can step through it
18828 # and add multilib dir if necessary.
18829 lt_tmp_lt_search_path_spec
=
18830 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18831 for lt_sys_path
in $lt_search_path_spec; do
18832 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18833 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18835 test -d "$lt_sys_path" && \
18836 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18839 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18840 BEGIN {RS=" "; FS="/|\n";} {
18843 for (lt_i = NF; lt_i > 0; lt_i--) {
18844 if ($lt_i != "" && $lt_i != ".") {
18845 if ($lt_i == "..") {
18848 if (lt_count == 0) {
18849 lt_foo="/" $lt_i lt_foo;
18856 if (lt_foo != "") { lt_freq[lt_foo]++; }
18857 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18859 # AWK program above erroneously prepends '/' to C:/dos/paths
18862 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18863 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18865 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18867 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18869 library_names_spec
=
18870 libname_spec
='lib$name'
18874 postuninstall_cmds
=
18878 shlibpath_overrides_runpath
=unknown
18880 dynamic_linker
="$host_os ld.so"
18881 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18882 need_lib_prefix
=unknown
18883 hardcode_into_libs
=no
18885 # when you set need_version to no, make sure it does not cause -set_version
18886 # flags to be left without arguments
18887 need_version
=unknown
18892 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18893 shlibpath_var
=LIBPATH
18895 # AIX 3 has no versioning support, so we append a major version to the name.
18896 soname_spec
='${libname}${release}${shared_ext}$major'
18903 hardcode_into_libs
=yes
18904 if test "$host_cpu" = ia64
; then
18905 # AIX 5 supports IA64
18906 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18907 shlibpath_var
=LD_LIBRARY_PATH
18909 # With GCC up to 2.95.x, collect2 would create an import file
18910 # for dependence libraries. The import file would start with
18911 # the line `#! .'. This would cause the generated library to
18912 # depend on `.', always an invalid library. This was fixed in
18913 # development snapshots of GCC prior to 3.0.
18915 aix4 | aix4.
[01] | aix4.
[01].
*)
18916 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18918 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18921 can_build_shared
=no
18925 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18926 # soname into executable. Probably we can add versioning support to
18927 # collect2, so additional links can be useful in future.
18928 if test "$aix_use_runtimelinking" = yes; then
18929 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18930 # instead of lib<name>.a to let people know that these are not
18931 # typical AIX shared libraries.
18932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18934 # We preserve .a as extension for shared libraries through AIX4.2
18935 # and later when we are not doing run time linking.
18936 library_names_spec
='${libname}${release}.a $libname.a'
18937 soname_spec
='${libname}${release}${shared_ext}$major'
18939 shlibpath_var
=LIBPATH
18946 # Since July 2007 AmigaOS4 officially supports .so libraries.
18947 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18951 library_names_spec
='$libname.ixlibrary $libname.a'
18952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18953 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'
18959 library_names_spec
='${libname}${shared_ext}'
18960 dynamic_linker
="$host_os ld.so"
18961 shlibpath_var
=LIBRARY_PATH
18967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18968 soname_spec
='${libname}${release}${shared_ext}$major'
18969 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18970 shlibpath_var
=LD_LIBRARY_PATH
18971 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18972 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18973 # the default ld.so.conf also contains /usr/contrib/lib and
18974 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18975 # libtool to hard-code these into programs
18978 cygwin
* | mingw
* | pw32
* | cegcc
*)
18979 version_type
=windows
18984 case $GCC,$host_os in
18985 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18986 library_names_spec
='$libname.dll.a'
18987 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18988 postinstall_cmds
='base_file=`basename \${file}`~
18989 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18990 dldir=$destdir/`dirname \$dlpath`~
18991 test -d \$dldir || mkdir -p \$dldir~
18992 $install_prog $dir/$dlname \$dldir/$dlname~
18993 chmod a+x \$dldir/$dlname~
18994 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18995 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18997 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18998 dlpath=$dir/\$dldll~
19000 shlibpath_overrides_runpath
=yes
19004 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19005 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19007 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
19010 # MinGW DLLs use traditional 'lib' prefix
19011 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19014 # pw32 DLLs use 'pw' prefix rather than 'lib'
19015 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19021 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19024 dynamic_linker
='Win32 ld.exe'
19025 # FIXME: first we should search . and the directory the executable is in
19029 darwin
* | rhapsody
*)
19030 dynamic_linker
="$host_os dyld"
19031 version_type
=darwin
19034 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19035 soname_spec
='${libname}${release}${major}$shared_ext'
19036 shlibpath_overrides_runpath
=yes
19037 shlibpath_var
=DYLD_LIBRARY_PATH
19038 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19040 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
19041 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19049 soname_spec
='${libname}${release}${shared_ext}$major'
19050 shlibpath_var
=LD_LIBRARY_PATH
19053 freebsd
* | dragonfly
*)
19054 # DragonFly does not have aout. When/if they implement a new
19055 # versioning mechanism, adjust this.
19056 if test -x /usr
/bin
/objformat
; then
19057 objformat
=`/usr/bin/objformat`
19060 freebsd
[23].
*) objformat
=aout
;;
19061 *) objformat
=elf
;;
19064 version_type
=freebsd-
$objformat
19065 case $version_type in
19067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19072 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19076 shlibpath_var
=LD_LIBRARY_PATH
19079 shlibpath_overrides_runpath
=yes
19081 freebsd3.
[01]* | freebsdelf3.
[01]*)
19082 shlibpath_overrides_runpath
=yes
19083 hardcode_into_libs
=yes
19085 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19086 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19087 shlibpath_overrides_runpath
=no
19088 hardcode_into_libs
=yes
19090 *) # from 4.6 on, and DragonFly
19091 shlibpath_overrides_runpath
=yes
19092 hardcode_into_libs
=yes
19101 dynamic_linker
="$host_os runtime_loader"
19102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19103 soname_spec
='${libname}${release}${shared_ext}$major'
19104 shlibpath_var
=LIBRARY_PATH
19105 shlibpath_overrides_runpath
=yes
19106 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19107 hardcode_into_libs
=yes
19110 hpux9
* | hpux10
* | hpux11
*)
19111 # Give a soname corresponding to the major version so that dld.sl refuses to
19112 # link against other versions.
19119 hardcode_into_libs
=yes
19120 dynamic_linker
="$host_os dld.so"
19121 shlibpath_var
=LD_LIBRARY_PATH
19122 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19124 soname_spec
='${libname}${release}${shared_ext}$major'
19125 if test "X$HPUX_IA64_MODE" = X32
; then
19126 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19128 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19130 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19134 hardcode_into_libs
=yes
19135 dynamic_linker
="$host_os dld.sl"
19136 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19137 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19139 soname_spec
='${libname}${release}${shared_ext}$major'
19140 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19141 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19145 dynamic_linker
="$host_os dld.sl"
19146 shlibpath_var
=SHLIB_PATH
19147 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149 soname_spec
='${libname}${release}${shared_ext}$major'
19152 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19153 postinstall_cmds
='chmod 555 $lib'
19154 # or fails outright, so override atomically:
19155 install_override_mode
=555
19162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19163 soname_spec
='${libname}${release}${shared_ext}$major'
19164 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19165 shlibpath_var
=LD_LIBRARY_PATH
19166 shlibpath_overrides_runpath
=no
19167 hardcode_into_libs
=yes
19170 irix5
* | irix6
* | nonstopux
*)
19172 nonstopux
*) version_type
=nonstopux
;;
19174 if test "$lt_cv_prog_gnu_ld" = yes; then
19182 soname_spec
='${libname}${release}${shared_ext}$major'
19183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19185 irix5
* | nonstopux
*)
19186 libsuff
= shlibsuff
=
19189 case $LD in # libtool.m4 will add one of these switches to LD
19190 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19191 libsuff
= shlibsuff
= libmagic
=32-bit;;
19192 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19193 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19194 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19195 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19196 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19200 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19201 shlibpath_overrides_runpath
=no
19202 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19203 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19204 hardcode_into_libs
=yes
19207 # No shared lib support for Linux oldld, aout, or coff.
19208 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19212 # This must be Linux ELF.
19214 # uclinux* changes (here and below) have been submitted to the libtool
19215 # project, but have not yet been accepted: they are GCC-local changes
19216 # for the time being. (See
19217 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19218 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
19222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19223 soname_spec
='${libname}${release}${shared_ext}$major'
19224 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19225 shlibpath_var
=LD_LIBRARY_PATH
19226 shlibpath_overrides_runpath
=no
19228 # Some binutils ld are patched to set DT_RUNPATH
19229 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19230 $as_echo_n "(cached) " >&6
19232 lt_cv_shlibpath_overrides_runpath
=no
19233 save_LDFLAGS
=$LDFLAGS
19234 save_libdir
=$libdir
19235 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19236 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19238 /* end confdefs.h. */
19248 if ac_fn_c_try_link
"$LINENO"; then :
19249 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19250 lt_cv_shlibpath_overrides_runpath
=yes
19253 rm -f core conftest.err conftest.
$ac_objext \
19254 conftest
$ac_exeext conftest.
$ac_ext
19255 LDFLAGS
=$save_LDFLAGS
19256 libdir
=$save_libdir
19260 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19262 # This implies no fast_install, which is unacceptable.
19263 # Some rework will be needed to allow for fast_install
19264 # before this can be enabled.
19265 hardcode_into_libs
=yes
19267 # Append ld.so.conf contents to the search path
19268 if test -f /etc
/ld.so.conf
; then
19269 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' ' '`
19270 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19273 # We used to test for /lib/ld.so.1 and disable shared libraries on
19274 # powerpc, because MkLinux only supported shared libraries with the
19275 # GNU dynamic linker. Since this was broken with cross compilers,
19276 # most powerpc-linux boxes support dynamic linking these days and
19277 # people can always --disable-shared, the test was removed, and we
19278 # assume the GNU/Linux dynamic linker is in use.
19279 dynamic_linker
='GNU/Linux ld.so'
19286 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19288 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19289 dynamic_linker
='NetBSD (a.out) ld.so'
19291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19292 soname_spec
='${libname}${release}${shared_ext}$major'
19293 dynamic_linker
='NetBSD ld.elf_so'
19295 shlibpath_var
=LD_LIBRARY_PATH
19296 shlibpath_overrides_runpath
=yes
19297 hardcode_into_libs
=yes
19302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19303 shlibpath_var
=LD_LIBRARY_PATH
19304 shlibpath_overrides_runpath
=yes
19311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19312 soname_spec
='${libname}${release}${shared_ext}$major'
19313 shlibpath_var
=LD_LIBRARY_PATH
19314 shlibpath_overrides_runpath
=no
19315 hardcode_into_libs
=yes
19316 dynamic_linker
='ldqnx.so'
19321 sys_lib_dlsearch_path_spec
="/usr/lib"
19323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19325 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19326 *) need_version
=no
;;
19328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19329 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19330 shlibpath_var
=LD_LIBRARY_PATH
19331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19333 openbsd2.
[89] | openbsd2.
[89].
*)
19334 shlibpath_overrides_runpath
=no
19337 shlibpath_overrides_runpath
=yes
19341 shlibpath_overrides_runpath
=yes
19346 libname_spec
='$name'
19349 library_names_spec
='$libname${shared_ext} $libname.a'
19350 dynamic_linker
='OS/2 ld.exe'
19351 shlibpath_var
=LIBPATH
19354 osf3
* | osf4
* | osf5
*)
19358 soname_spec
='${libname}${release}${shared_ext}$major'
19359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19360 shlibpath_var
=LD_LIBRARY_PATH
19361 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19362 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19374 soname_spec
='${libname}${release}${shared_ext}$major'
19375 shlibpath_var
=LD_LIBRARY_PATH
19376 shlibpath_overrides_runpath
=yes
19377 hardcode_into_libs
=yes
19378 # ldd complains unless libraries are executable
19379 postinstall_cmds
='chmod +x $lib'
19384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19385 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19386 shlibpath_var
=LD_LIBRARY_PATH
19387 shlibpath_overrides_runpath
=yes
19388 if test "$with_gnu_ld" = yes; then
19396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19397 soname_spec
='${libname}${release}${shared_ext}$major'
19398 shlibpath_var
=LD_LIBRARY_PATH
19399 case $host_vendor in
19401 shlibpath_overrides_runpath
=no
19403 runpath_var
=LD_RUN_PATH
19411 shlibpath_overrides_runpath
=no
19412 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19418 if test -d /usr
/nec
;then
19420 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19421 soname_spec
='$libname${shared_ext}.$major'
19422 shlibpath_var
=LD_LIBRARY_PATH
19426 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19427 version_type
=freebsd-elf
19430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19431 soname_spec
='${libname}${release}${shared_ext}$major'
19432 shlibpath_var
=LD_LIBRARY_PATH
19433 shlibpath_overrides_runpath
=yes
19434 hardcode_into_libs
=yes
19435 if test "$with_gnu_ld" = yes; then
19436 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19438 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19441 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19445 sys_lib_dlsearch_path_spec
='/usr/lib'
19449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19454 shlibpath_var
=LD_LIBRARY_PATH
19455 shlibpath_overrides_runpath
=no
19456 hardcode_into_libs
=yes
19461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19462 soname_spec
='${libname}${release}${shared_ext}$major'
19463 shlibpath_var
=LD_LIBRARY_PATH
19466 # Shared libraries for VwWorks, >= 7 only at this stage
19467 # and (fpic) still incompatible with "large" code models
19468 # in a few configurations. Only for RTP mode in any case,
19469 # and upon explicit request at configure time.
19472 case ${with_multisubdir}-${enable_shared} in
19479 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19480 soname_spec
='${libname}${release}${shared_ext}$major'
19481 dynamic_linker
="$host_os module_loader"
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19490 $as_echo "$dynamic_linker" >&6; }
19491 test "$dynamic_linker" = no
&& can_build_shared
=no
19493 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19494 if test "$GCC" = yes; then
19495 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19498 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19499 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19501 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19502 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19597 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19599 if test -n "$hardcode_libdir_flag_spec" ||
19600 test -n "$runpath_var" ||
19601 test "X$hardcode_automatic" = "Xyes" ; then
19603 # We can hardcode non-existent directories.
19604 if test "$hardcode_direct" != no
&&
19605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19606 # have to relink, otherwise we might link with an installed library
19607 # when we should be linking with a yet-to-be-installed one
19608 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19609 test "$hardcode_minus_L" != no
; then
19610 # Linking always hardcodes the temporary library directory.
19611 hardcode_action
=relink
19613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19614 hardcode_action
=immediate
19617 # We cannot hardcode anything, or else we can only hardcode existing
19619 hardcode_action
=unsupported
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19622 $as_echo "$hardcode_action" >&6; }
19624 if test "$hardcode_action" = relink ||
19625 test "$inherit_rpath" = yes; then
19626 # Fast installation is not supported
19627 enable_fast_install
=no
19628 elif test "$shlibpath_overrides_runpath" = yes ||
19629 test "$enable_shared" = no
; then
19630 # Fast installation is not necessary
19631 enable_fast_install
=needless
19639 if test "x$enable_dlopen" != xyes
; then
19640 enable_dlopen
=unknown
19641 enable_dlopen_self
=unknown
19642 enable_dlopen_self_static
=unknown
19649 lt_cv_dlopen
="load_add_on"
19651 lt_cv_dlopen_self
=yes
19654 mingw
* | pw32
* | cegcc
*)
19655 lt_cv_dlopen
="LoadLibrary"
19660 lt_cv_dlopen
="dlopen"
19665 # if libdl is installed we need to link against it
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19667 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19668 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19669 $as_echo_n "(cached) " >&6
19671 ac_check_lib_save_LIBS
=$LIBS
19673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19676 /* Override any GCC internal prototype to avoid an error.
19677 Use char because int might match the return type of a GCC
19678 builtin and then its argument prototype would still apply. */
19691 if ac_fn_c_try_link
"$LINENO"; then :
19692 ac_cv_lib_dl_dlopen
=yes
19694 ac_cv_lib_dl_dlopen
=no
19696 rm -f core conftest.err conftest.
$ac_objext \
19697 conftest
$ac_exeext conftest.
$ac_ext
19698 LIBS
=$ac_check_lib_save_LIBS
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19701 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19702 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19703 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19706 lt_cv_dlopen
="dyld"
19708 lt_cv_dlopen_self
=yes
19715 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19716 if test "x$ac_cv_func_shl_load" = xyes
; then :
19717 lt_cv_dlopen
="shl_load"
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19720 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19721 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19722 $as_echo_n "(cached) " >&6
19724 ac_check_lib_save_LIBS
=$LIBS
19726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19727 /* end confdefs.h. */
19729 /* Override any GCC internal prototype to avoid an error.
19730 Use char because int might match the return type of a GCC
19731 builtin and then its argument prototype would still apply. */
19739 return shl_load ();
19744 if ac_fn_c_try_link
"$LINENO"; then :
19745 ac_cv_lib_dld_shl_load
=yes
19747 ac_cv_lib_dld_shl_load
=no
19749 rm -f core conftest.err conftest.
$ac_objext \
19750 conftest
$ac_exeext conftest.
$ac_ext
19751 LIBS
=$ac_check_lib_save_LIBS
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19754 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19755 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19756 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19758 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19759 if test "x$ac_cv_func_dlopen" = xyes
; then :
19760 lt_cv_dlopen
="dlopen"
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19763 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19764 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19765 $as_echo_n "(cached) " >&6
19767 ac_check_lib_save_LIBS
=$LIBS
19769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19770 /* end confdefs.h. */
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19787 if ac_fn_c_try_link
"$LINENO"; then :
19788 ac_cv_lib_dl_dlopen
=yes
19790 ac_cv_lib_dl_dlopen
=no
19792 rm -f core conftest.err conftest.
$ac_objext \
19793 conftest
$ac_exeext conftest.
$ac_ext
19794 LIBS
=$ac_check_lib_save_LIBS
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19798 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19799 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19802 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19803 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19804 $as_echo_n "(cached) " >&6
19806 ac_check_lib_save_LIBS
=$LIBS
19807 LIBS
="-lsvld $LIBS"
19808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h. */
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19826 if ac_fn_c_try_link
"$LINENO"; then :
19827 ac_cv_lib_svld_dlopen
=yes
19829 ac_cv_lib_svld_dlopen
=no
19831 rm -f core conftest.err conftest.
$ac_objext \
19832 conftest
$ac_exeext conftest.
$ac_ext
19833 LIBS
=$ac_check_lib_save_LIBS
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19836 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19837 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19838 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19841 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19842 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19843 $as_echo_n "(cached) " >&6
19845 ac_check_lib_save_LIBS
=$LIBS
19847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19848 /* end confdefs.h. */
19850 /* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19860 return dld_link ();
19865 if ac_fn_c_try_link
"$LINENO"; then :
19866 ac_cv_lib_dld_dld_link
=yes
19868 ac_cv_lib_dld_dld_link
=no
19870 rm -f core conftest.err conftest.
$ac_objext \
19871 conftest
$ac_exeext conftest.
$ac_ext
19872 LIBS
=$ac_check_lib_save_LIBS
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19875 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19876 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19877 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19898 if test "x$lt_cv_dlopen" != xno
; then
19904 case $lt_cv_dlopen in
19906 save_CPPFLAGS
="$CPPFLAGS"
19907 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19909 save_LDFLAGS
="$LDFLAGS"
19910 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19913 LIBS
="$lt_cv_dlopen_libs $LIBS"
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19916 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19917 if ${lt_cv_dlopen_self+:} false
; then :
19918 $as_echo_n "(cached) " >&6
19920 if test "$cross_compiling" = yes; then :
19921 lt_cv_dlopen_self
=cross
19923 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19924 lt_status
=$lt_dlunknown
19925 cat > conftest.
$ac_ext <<_LT_EOF
19926 #line 19926 "configure"
19927 #include "confdefs.h"
19936 # define LT_DLGLOBAL RTLD_GLOBAL
19939 # define LT_DLGLOBAL DL_GLOBAL
19941 # define LT_DLGLOBAL 0
19945 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19946 find out it does not work in some platform. */
19947 #ifndef LT_DLLAZY_OR_NOW
19949 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19952 # define LT_DLLAZY_OR_NOW DL_LAZY
19955 # define LT_DLLAZY_OR_NOW RTLD_NOW
19958 # define LT_DLLAZY_OR_NOW DL_NOW
19960 # define LT_DLLAZY_OR_NOW 0
19967 /* When -fvisbility=hidden is used, assume the code has been annotated
19968 correspondingly for the symbols needed. */
19969 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19970 void fnord () __attribute__((visibility("default")));
19973 void fnord () { int i=42; }
19976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19977 int status = $lt_dlunknown;
19981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19984 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19985 else puts (dlerror ());
19987 /* dlclose (self); */
19995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19996 (eval $ac_link) 2>&5
19998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19999 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20000 (.
/conftest
; exit; ) >&5 2>/dev
/null
20002 case x
$lt_status in
20003 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
20004 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
20005 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
20008 # compilation failed
20009 lt_cv_dlopen_self
=no
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20017 $as_echo "$lt_cv_dlopen_self" >&6; }
20019 if test "x$lt_cv_dlopen_self" = xyes
; then
20020 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20022 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20023 if ${lt_cv_dlopen_self_static+:} false
; then :
20024 $as_echo_n "(cached) " >&6
20026 if test "$cross_compiling" = yes; then :
20027 lt_cv_dlopen_self_static
=cross
20029 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20030 lt_status
=$lt_dlunknown
20031 cat > conftest.
$ac_ext <<_LT_EOF
20032 #line 20032 "configure"
20033 #include "confdefs.h"
20042 # define LT_DLGLOBAL RTLD_GLOBAL
20045 # define LT_DLGLOBAL DL_GLOBAL
20047 # define LT_DLGLOBAL 0
20051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20052 find out it does not work in some platform. */
20053 #ifndef LT_DLLAZY_OR_NOW
20055 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20058 # define LT_DLLAZY_OR_NOW DL_LAZY
20061 # define LT_DLLAZY_OR_NOW RTLD_NOW
20064 # define LT_DLLAZY_OR_NOW DL_NOW
20066 # define LT_DLLAZY_OR_NOW 0
20073 /* When -fvisbility=hidden is used, assume the code has been annotated
20074 correspondingly for the symbols needed. */
20075 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20076 void fnord () __attribute__((visibility("default")));
20079 void fnord () { int i=42; }
20082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20083 int status = $lt_dlunknown;
20087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20090 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20091 else puts (dlerror ());
20093 /* dlclose (self); */
20101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20102 (eval $ac_link) 2>&5
20104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20105 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20106 (.
/conftest
; exit; ) >&5 2>/dev
/null
20108 case x
$lt_status in
20109 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20110 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20111 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20114 # compilation failed
20115 lt_cv_dlopen_self_static
=no
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20123 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20126 CPPFLAGS
="$save_CPPFLAGS"
20127 LDFLAGS
="$save_LDFLAGS"
20132 case $lt_cv_dlopen_self in
20133 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20134 *) enable_dlopen_self
=unknown
;;
20137 case $lt_cv_dlopen_self_static in
20138 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20139 *) enable_dlopen_self_static
=unknown
;;
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20162 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20163 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20164 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20165 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20167 $as_echo "yes" >&6; }
20169 # FIXME - insert some real tests, host_os isn't really good enough
20172 if test -n "$STRIP" ; then
20173 striplib
="$STRIP -x"
20174 old_striplib
="$STRIP -S"
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20176 $as_echo "yes" >&6; }
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20179 $as_echo "no" >&6; }
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20184 $as_echo "no" >&6; }
20200 # Report which library types will actually be built
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20202 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20204 $as_echo "$can_build_shared" >&6; }
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20207 $as_echo_n "checking whether to build shared libraries... " >&6; }
20208 test "$can_build_shared" = "no" && enable_shared
=no
20210 # On AIX, shared libraries and static libraries use the same namespace, and
20211 # are all built from PIC.
20214 test "$enable_shared" = yes && enable_static
=no
20215 if test -n "$RANLIB"; then
20216 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20217 postinstall_cmds
='$RANLIB $lib'
20222 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20223 test "$enable_shared" = yes && enable_static
=no
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20228 $as_echo "$enable_shared" >&6; }
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20231 $as_echo_n "checking whether to build static libraries... " >&6; }
20232 # Make sure either enable_shared or enable_static is yes.
20233 test "$enable_shared" = yes || enable_static
=yes
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20235 $as_echo "$enable_static" >&6; }
20242 ac_cpp
='$CXXCPP $CPPFLAGS'
20243 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20244 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20245 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20249 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20250 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20251 (test "X$CXX" != "Xg++"))) ; then
20253 ac_cpp
='$CXXCPP $CPPFLAGS'
20254 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20255 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20256 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20258 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20259 if test -z "$CXXCPP"; then
20260 if ${ac_cv_prog_CXXCPP+:} false
; then :
20261 $as_echo_n "(cached) " >&6
20263 # Double quotes because CXXCPP needs to be expanded
20264 for CXXCPP
in "$CXX -E" "/lib/cpp"
20266 ac_preproc_ok
=false
20267 for ac_cxx_preproc_warn_flag
in '' yes
20269 # Use a header file that comes with gcc, so configuring glibc
20270 # with a fresh cross-compiler works.
20271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20272 # <limits.h> exists even on freestanding compilers.
20273 # On the NeXT, cc -E runs the code through the compiler's parser,
20274 # not just through cpp. "Syntax error" is here to catch this case.
20275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20278 # include <limits.h>
20280 # include <assert.h>
20284 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20287 # Broken: fails on valid input.
20290 rm -f conftest.err conftest.i conftest.
$ac_ext
20292 # OK, works on sane cases. Now check whether nonexistent headers
20293 # can be detected and how.
20294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20296 #include <ac_nonexistent.h>
20298 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20299 # Broken: success on invalid input.
20302 # Passes both tests.
20306 rm -f conftest.err conftest.i conftest.
$ac_ext
20309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20310 rm -f conftest.i conftest.err conftest.
$ac_ext
20311 if $ac_preproc_ok; then :
20316 ac_cv_prog_CXXCPP
=$CXXCPP
20319 CXXCPP
=$ac_cv_prog_CXXCPP
20321 ac_cv_prog_CXXCPP
=$CXXCPP
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20324 $as_echo "$CXXCPP" >&6; }
20325 ac_preproc_ok
=false
20326 for ac_cxx_preproc_warn_flag
in '' yes
20328 # Use a header file that comes with gcc, so configuring glibc
20329 # with a fresh cross-compiler works.
20330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20331 # <limits.h> exists even on freestanding compilers.
20332 # On the NeXT, cc -E runs the code through the compiler's parser,
20333 # not just through cpp. "Syntax error" is here to catch this case.
20334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20335 /* end confdefs.h. */
20337 # include <limits.h>
20339 # include <assert.h>
20343 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20346 # Broken: fails on valid input.
20349 rm -f conftest.err conftest.i conftest.
$ac_ext
20351 # OK, works on sane cases. Now check whether nonexistent headers
20352 # can be detected and how.
20353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20355 #include <ac_nonexistent.h>
20357 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20358 # Broken: success on invalid input.
20361 # Passes both tests.
20365 rm -f conftest.err conftest.i conftest.
$ac_ext
20368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20369 rm -f conftest.i conftest.err conftest.
$ac_ext
20370 if $ac_preproc_ok; then :
20373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20375 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20376 See \`config.log' for more details" "$LINENO" 5; }
20380 ac_cpp
='$CXXCPP $CPPFLAGS'
20381 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20382 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20383 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20386 _lt_caught_CXX_error
=yes
20390 ac_cpp
='$CXXCPP $CPPFLAGS'
20391 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20395 archive_cmds_need_lc_CXX
=no
20396 allow_undefined_flag_CXX
=
20397 always_export_symbols_CXX
=no
20398 archive_expsym_cmds_CXX
=
20399 compiler_needs_object_CXX
=no
20400 export_dynamic_flag_spec_CXX
=
20401 hardcode_direct_CXX
=no
20402 hardcode_direct_absolute_CXX
=no
20403 hardcode_libdir_flag_spec_CXX
=
20404 hardcode_libdir_flag_spec_ld_CXX
=
20405 hardcode_libdir_separator_CXX
=
20406 hardcode_minus_L_CXX
=no
20407 hardcode_shlibpath_var_CXX
=unsupported
20408 hardcode_automatic_CXX
=no
20409 inherit_rpath_CXX
=no
20411 module_expsym_cmds_CXX
=
20412 link_all_deplibs_CXX
=unknown
20413 old_archive_cmds_CXX
=$old_archive_cmds
20414 reload_flag_CXX
=$reload_flag
20415 reload_cmds_CXX
=$reload_cmds
20416 no_undefined_flag_CXX
=
20417 whole_archive_flag_spec_CXX
=
20418 enable_shared_with_static_runtimes_CXX
=no
20420 # Source file extension for C++ test sources.
20423 # Object file extension for compiled C++ test sources.
20427 # No sense in running all these tests if we already determined that
20428 # the CXX compiler isn't working. Some variables (like enable_shared)
20429 # are currently assumed to apply to all compilers on this platform,
20430 # and will be corrupted by setting them based on a non-working compiler.
20431 if test "$_lt_caught_CXX_error" != yes; then
20432 # Code to be used in simple compile tests
20433 lt_simple_compile_test_code
="int some_variable = 0;"
20435 # Code to be used in simple link tests
20436 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20445 # If no C compiler was specified, use CC.
20448 # If no C compiler flags were specified, use CFLAGS.
20449 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20451 # Allow CC to be a program name with arguments.
20455 # save warnings/boilerplate of simple test code
20456 ac_outfile
=conftest.
$ac_objext
20457 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20458 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20459 _lt_compiler_boilerplate
=`cat conftest.err`
20462 ac_outfile
=conftest.
$ac_objext
20463 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20464 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20465 _lt_linker_boilerplate
=`cat conftest.err`
20469 # Allow CC to be a program name with arguments.
20474 lt_save_with_gnu_ld
=$with_gnu_ld
20475 lt_save_path_LD
=$lt_cv_path_LD
20476 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20477 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20479 $as_unset lt_cv_prog_gnu_ld
20481 if test -n "${lt_cv_path_LDCXX+set}"; then
20482 lt_cv_path_LD
=$lt_cv_path_LDCXX
20484 $as_unset lt_cv_path_LD
20486 test -z "${LDCXX+set}" || LD
=$LDCXX
20490 for cc_temp
in $compiler""; do
20492 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20493 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20498 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20501 if test -n "$compiler"; then
20502 # We don't want -fno-exception when compiling C++ code, so set the
20503 # no_builtin_flag separately
20504 if test "$GXX" = yes; then
20505 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20507 lt_prog_compiler_no_builtin_flag_CXX
=
20510 if test "$GXX" = yes; then
20511 # Set up default GNU C++ configuration
20515 # Check whether --with-gnu-ld was given.
20516 if test "${with_gnu_ld+set}" = set; then :
20517 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20523 if test "$GCC" = yes; then
20524 # Check if gcc -print-prog-name=ld gives a path.
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20526 $as_echo_n "checking for ld used by $CC... " >&6; }
20529 # gcc leaves a trailing carriage return which upsets mingw
20530 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20532 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20535 # Accept absolute paths.
20537 re_direlt
='/[^/][^/]*/\.\./'
20538 # Canonicalize the pathname of ld
20539 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20540 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20541 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20543 test -z "$LD" && LD
="$ac_prog"
20546 # If it fails, then pretend we aren't using GCC.
20550 # If it is relative, then search for the first ld in PATH.
20551 with_gnu_ld
=unknown
20554 elif test "$with_gnu_ld" = yes; then
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20556 $as_echo_n "checking for GNU ld... " >&6; }
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20559 $as_echo_n "checking for non-GNU ld... " >&6; }
20561 if ${lt_cv_path_LD+:} false
; then :
20562 $as_echo_n "(cached) " >&6
20564 if test -z "$LD"; then
20565 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20566 for ac_dir
in $PATH; do
20568 test -z "$ac_dir" && ac_dir
=.
20569 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20570 lt_cv_path_LD
="$ac_dir/$ac_prog"
20571 # Check to see if the program is GNU ld. I'd rather use --version,
20572 # but apparently some variants of GNU ld only accept -v.
20573 # Break only if it was the GNU/non-GNU ld that we prefer.
20574 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20575 *GNU
* |
*'with BFD'*)
20576 test "$with_gnu_ld" != no
&& break
20579 test "$with_gnu_ld" != yes && break
20586 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20590 LD
="$lt_cv_path_LD"
20591 if test -n "$LD"; then
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20593 $as_echo "$LD" >&6; }
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20596 $as_echo "no" >&6; }
20598 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20600 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20601 if ${lt_cv_prog_gnu_ld+:} false
; then :
20602 $as_echo_n "(cached) " >&6
20604 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20605 case `$LD -v 2>&1 </dev/null` in
20606 *GNU
* |
*'with BFD'*)
20607 lt_cv_prog_gnu_ld
=yes
20610 lt_cv_prog_gnu_ld
=no
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20615 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20616 with_gnu_ld
=$lt_cv_prog_gnu_ld
20624 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20625 # archiving commands below assume that GNU ld is being used.
20626 if test "$with_gnu_ld" = yes; then
20627 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20628 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'
20630 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20631 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20633 # If archive_cmds runs LD, not CC, wlarc should be empty
20634 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20635 # investigate it a little bit more. (MM)
20638 # ancient GNU ld didn't support --whole-archive et. al.
20639 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20640 $GREP 'no-whole-archive' > /dev
/null
; then
20641 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20643 whole_archive_flag_spec_CXX
=
20649 # A generic and very simple default shared library creation
20650 # command for GNU C++ for the case where it uses the native
20651 # linker, instead of GNU ld. If possible, this setting should
20652 # overridden to take advantage of the native linker features on
20653 # the platform it is being used on.
20654 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20657 # Commands to make compiler produce verbose output that lists
20658 # what "hidden" libraries, object files and flags are used when
20659 # linking a shared library.
20660 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20668 # PORTME: fill in a description of your system's C++ link characteristics
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20670 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20674 # FIXME: insert proper C++ library support
20678 if test "$host_cpu" = ia64
; then
20679 # On IA64, the linker does run time linking by default, so we don't
20680 # have to do anything special.
20681 aix_use_runtimelinking
=no
20682 exp_sym_flag
='-Bexport'
20685 aix_use_runtimelinking
=no
20687 # Test if we are trying to use run time linking or normal
20688 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20689 # need to do runtime linking.
20690 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20691 for ld_flag
in $LDFLAGS; do
20694 aix_use_runtimelinking
=yes
20702 exp_sym_flag
='-bexport'
20703 no_entry_flag
='-bnoentry'
20706 # When large executables or shared objects are built, AIX ld can
20707 # have problems creating the table of contents. If linking a library
20708 # or program results in "error TOC overflow" add -mminimal-toc to
20709 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20710 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20712 archive_cmds_CXX
=''
20713 hardcode_direct_CXX
=yes
20714 hardcode_direct_absolute_CXX
=yes
20715 hardcode_libdir_separator_CXX
=':'
20716 link_all_deplibs_CXX
=yes
20717 file_list_spec_CXX
='${wl}-f,'
20719 if test "$GXX" = yes; then
20720 case $host_os in aix4.
[012]|aix4.
[012].
*)
20721 # We only want to do this on AIX 4.2 and lower, the check
20722 # below for broken collect2 doesn't work under 4.3+
20723 collect2name
=`${CC} -print-prog-name=collect2`
20724 if test -f "$collect2name" &&
20725 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20727 # We have reworked collect2
20730 # We have old collect2
20731 hardcode_direct_CXX
=unsupported
20732 # It fails to find uninstalled libraries when the uninstalled
20733 # path is not listed in the libpath. Setting hardcode_minus_L
20734 # to unsupported forces relinking
20735 hardcode_minus_L_CXX
=yes
20736 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20737 hardcode_libdir_separator_CXX
=
20740 shared_flag
='-shared'
20741 if test "$aix_use_runtimelinking" = yes; then
20742 shared_flag
="$shared_flag "'${wl}-G'
20746 if test "$host_cpu" = ia64
; then
20747 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20748 # chokes on -Wl,-G. The following line is correct:
20751 if test "$aix_use_runtimelinking" = yes; then
20752 shared_flag
='${wl}-G'
20754 shared_flag
='${wl}-bM:SRE'
20759 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20760 # It seems that -bexpall does not export symbols beginning with
20761 # underscore (_), so it is better to generate a list of symbols to
20763 always_export_symbols_CXX
=yes
20764 if test "$aix_use_runtimelinking" = yes; then
20765 # Warning - without using the other runtime loading flags (-brtl),
20766 # -berok will link without error, but may produce a broken library.
20767 allow_undefined_flag_CXX
='-berok'
20768 # Determine the default libpath from the value encoded in an empty
20770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20771 /* end confdefs.h. */
20781 if ac_fn_cxx_try_link
"$LINENO"; then :
20783 lt_aix_libpath_sed
='
20784 /Import File Strings/,/^$/ {
20790 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20791 # Check for a 64-bit object if we didn't find anything.
20792 if test -z "$aix_libpath"; then
20793 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20796 rm -f core conftest.err conftest.
$ac_objext \
20797 conftest
$ac_exeext conftest.
$ac_ext
20798 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20800 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20802 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"
20804 if test "$host_cpu" = ia64
; then
20805 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20806 allow_undefined_flag_CXX
="-z nodefs"
20807 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"
20809 # Determine the default libpath from the value encoded in an
20810 # empty executable.
20811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h. */
20822 if ac_fn_cxx_try_link
"$LINENO"; then :
20824 lt_aix_libpath_sed
='
20825 /Import File Strings/,/^$/ {
20831 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20832 # Check for a 64-bit object if we didn't find anything.
20833 if test -z "$aix_libpath"; then
20834 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20837 rm -f core conftest.err conftest.
$ac_objext \
20838 conftest
$ac_exeext conftest.
$ac_ext
20839 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20841 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20842 # Warning - without using the other run time loading flags,
20843 # -berok will link without error, but may produce a broken library.
20844 no_undefined_flag_CXX
=' ${wl}-bernotok'
20845 allow_undefined_flag_CXX
=' ${wl}-berok'
20846 if test "$with_gnu_ld" = yes; then
20847 # We only use this code for GNU lds that support --whole-archive.
20848 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20850 # Exported symbols can be pulled into shared objects from archives
20851 whole_archive_flag_spec_CXX
='$convenience'
20853 archive_cmds_need_lc_CXX
=yes
20854 # This is similar to how AIX traditionally builds its shared
20856 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'
20862 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20863 allow_undefined_flag_CXX
=unsupported
20864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20865 # support --undefined. This deserves some investigation. FIXME
20866 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20873 case $cc_basename in
20875 # FIXME: insert proper C++ library support
20881 cygwin
* | mingw
* | pw32
* | cegcc
*)
20882 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20883 # as there is no search path for DLLs.
20884 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20885 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20886 allow_undefined_flag_CXX
=unsupported
20887 always_export_symbols_CXX
=no
20888 enable_shared_with_static_runtimes_CXX
=yes
20890 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20891 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'
20892 # If the export-symbols file already is a .def file (1st line
20893 # is EXPORTS), use it as is; otherwise, prepend...
20894 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20895 cp $export_symbols $output_objdir/$soname.def;
20897 echo EXPORTS > $output_objdir/$soname.def;
20898 cat $export_symbols >> $output_objdir/$soname.def;
20900 $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'
20905 darwin
* | rhapsody
*)
20908 archive_cmds_need_lc_CXX
=no
20909 hardcode_direct_CXX
=no
20910 hardcode_automatic_CXX
=yes
20911 hardcode_shlibpath_var_CXX
=unsupported
20912 if test "$lt_cv_ld_force_load" = "yes"; then
20913 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\"`'
20915 whole_archive_flag_spec_CXX
=''
20917 link_all_deplibs_CXX
=yes
20918 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20919 case $cc_basename in
20920 ifort
*) _lt_dar_can_shared
=yes ;;
20921 *) _lt_dar_can_shared
=$GCC ;;
20923 if test "$_lt_dar_can_shared" = "yes"; then
20924 output_verbose_link_cmd
=func_echo_all
20925 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20926 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20927 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20928 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}"
20929 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20930 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20931 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}"
20941 case $cc_basename in
20943 # FIXME: insert proper C++ library support
20947 # Green Hills C++ Compiler
20948 # FIXME: insert proper C++ library support
20952 # FIXME: insert proper C++ library support
20959 # C++ shared libraries reported to be fairly broken before
20965 archive_cmds_need_lc_CXX
=no
20968 freebsd
* | dragonfly
*)
20969 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20978 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20979 link_all_deplibs_CXX
=yes
20983 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20984 hardcode_libdir_separator_CXX
=:
20985 export_dynamic_flag_spec_CXX
='${wl}-E'
20986 hardcode_direct_CXX
=yes
20987 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20988 # but as the default
20989 # location of the library.
20991 case $cc_basename in
20993 # FIXME: insert proper C++ library support
20997 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'
20998 # Commands to make compiler produce verbose output that lists
20999 # what "hidden" libraries, object files and flags are used when
21000 # linking a shared library.
21002 # There doesn't appear to be a way to prevent this compiler from
21003 # explicitly linking system object files so we need to strip them
21004 # from the output so that they don't get included in the library
21006 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"'
21009 if test "$GXX" = yes; then
21010 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'
21012 # FIXME: insert proper C++ library support
21020 if test $with_gnu_ld = no
; then
21021 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
21022 hardcode_libdir_separator_CXX
=:
21028 export_dynamic_flag_spec_CXX
='${wl}-E'
21034 hardcode_direct_CXX
=no
21035 hardcode_shlibpath_var_CXX
=no
21038 hardcode_direct_CXX
=yes
21039 hardcode_direct_absolute_CXX
=yes
21040 hardcode_minus_L_CXX
=yes # Not in the search PATH,
21041 # but as the default
21042 # location of the library.
21046 case $cc_basename in
21048 # FIXME: insert proper C++ library support
21054 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21057 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21060 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21063 # Commands to make compiler produce verbose output that lists
21064 # what "hidden" libraries, object files and flags are used when
21065 # linking a shared library.
21067 # There doesn't appear to be a way to prevent this compiler from
21068 # explicitly linking system object files so we need to strip them
21069 # from the output so that they don't get included in the library
21071 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"'
21074 if test "$GXX" = yes; then
21075 if test $with_gnu_ld = no
; then
21078 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21081 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21084 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'
21089 # FIXME: insert proper C++ library support
21097 hardcode_direct_CXX
=no
21098 hardcode_shlibpath_var_CXX
=no
21099 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21100 export_dynamic_flag_spec_CXX
='${wl}-E'
21101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21102 # Instead, shared libraries are loaded at an image base (0x10000000 by
21103 # default) and relocated if they conflict, which is a slow very memory
21104 # consuming and fragmenting process. To avoid this, we pick a random,
21105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21107 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'
21108 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'
21111 case $cc_basename in
21114 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'
21116 # Archives containing C++ object files must be created using
21117 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21118 # necessary to make sure instantiated templates are included
21120 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
21123 if test "$GXX" = yes; then
21124 if test "$with_gnu_ld" = no
; then
21125 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'
21127 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'
21130 link_all_deplibs_CXX
=yes
21133 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21134 hardcode_libdir_separator_CXX
=:
21135 inherit_rpath_CXX
=yes
21138 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21139 case $cc_basename in
21141 # Kuck and Associates, Inc. (KAI) C++ Compiler
21143 # KCC will only create a shared library if the output file
21144 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21145 # to its proper name (with version) after linking.
21146 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'
21147 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'
21148 # Commands to make compiler produce verbose output that lists
21149 # what "hidden" libraries, object files and flags are used when
21150 # linking a shared library.
21152 # There doesn't appear to be a way to prevent this compiler from
21153 # explicitly linking system object files so we need to strip them
21154 # from the output so that they don't get included in the library
21156 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"'
21158 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21159 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21161 # Archives containing C++ object files must be created using
21162 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21163 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
21168 # version 8.0 and above of icpc choke on multiply defined symbols
21169 # if we add $predep_objects and $postdep_objects, however 7.1 and
21170 # earlier do not add the objects themselves.
21171 case `$CC -V 2>&1` in
21173 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21174 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'
21176 *) # Version 8.0 or newer
21179 ia64
*) tmp_idyn
=' -i_dynamic';;
21181 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21182 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'
21185 archive_cmds_need_lc_CXX
=no
21186 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21187 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21188 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21191 # Portland Group C++ compiler
21193 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
21194 prelink_cmds_CXX
='tpldir=Template.dir~
21196 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21197 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21198 old_archive_cmds_CXX
='tpldir=Template.dir~
21200 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21201 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21203 archive_cmds_CXX
='tpldir=Template.dir~
21205 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21206 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21207 archive_expsym_cmds_CXX
='tpldir=Template.dir~
21209 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21210 $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'
21212 *) # Version 6 and above use weak symbols
21213 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21214 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'
21218 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
21219 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21220 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'
21224 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21225 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'
21227 runpath_var
=LD_RUN_PATH
21228 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21229 hardcode_libdir_separator_CXX
=:
21231 # Commands to make compiler produce verbose output that lists
21232 # what "hidden" libraries, object files and flags are used when
21233 # linking a shared library.
21235 # There doesn't appear to be a way to prevent this compiler from
21236 # explicitly linking system object files so we need to strip them
21237 # from the output so that they don't get included in the library
21239 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'
21241 xl
* | mpixl
* | bgxl
*)
21242 # IBM XL 8.0 on PPC, with GNU ld
21243 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21244 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21245 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21246 if test "x$supports_anon_versioning" = xyes
; then
21247 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21249 echo "local: *; };" >> $output_objdir/$libname.ver~
21250 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21254 case `$CC -V 2>&1 | sed 5q` in
21257 no_undefined_flag_CXX
=' -zdefs'
21258 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21259 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'
21260 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21261 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'
21262 compiler_needs_object_CXX
=yes
21264 # Not sure whether something based on
21265 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21267 output_verbose_link_cmd
='func_echo_all'
21269 # Archives containing C++ object files must be created using
21270 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21271 # necessary to make sure instantiated templates are included
21273 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21281 # FIXME: insert proper C++ library support
21286 # FIXME: insert proper C++ library support
21291 case $cc_basename in
21293 # FIXME: insert proper C++ library support
21297 # FIXME: insert proper C++ library support
21304 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21305 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21307 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21308 hardcode_direct_CXX
=yes
21309 hardcode_shlibpath_var_CXX
=no
21311 # Workaround some broken pre-1.5 toolchains
21312 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21320 # C++ shared libraries are fairly broken
21325 if test -f /usr
/libexec
/ld.so
; then
21326 hardcode_direct_CXX
=yes
21327 hardcode_shlibpath_var_CXX
=no
21328 hardcode_direct_absolute_CXX
=yes
21329 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21330 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21332 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21333 export_dynamic_flag_spec_CXX
='${wl}-E'
21334 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21336 output_verbose_link_cmd
=func_echo_all
21342 osf3
* | osf4
* | osf5
*)
21343 case $cc_basename in
21345 # Kuck and Associates, Inc. (KAI) C++ Compiler
21347 # KCC will only create a shared library if the output file
21348 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21349 # to its proper name (with version) after linking.
21350 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'
21352 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21353 hardcode_libdir_separator_CXX
=:
21355 # Archives containing C++ object files must be created using
21356 # the KAI C++ compiler.
21358 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21359 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21363 # Rational C++ 2.4.1
21364 # FIXME: insert proper C++ library support
21370 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21371 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'
21372 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21375 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21376 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'
21377 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21378 echo "-hidden">> $lib.exp~
21379 $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~
21381 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21385 hardcode_libdir_separator_CXX
=:
21387 # Commands to make compiler produce verbose output that lists
21388 # what "hidden" libraries, object files and flags are used when
21389 # linking a shared library.
21391 # There doesn't appear to be a way to prevent this compiler from
21392 # explicitly linking system object files so we need to strip them
21393 # from the output so that they don't get included in the library
21395 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"'
21398 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21399 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21402 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'
21405 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'
21409 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21410 hardcode_libdir_separator_CXX
=:
21412 # Commands to make compiler produce verbose output that lists
21413 # what "hidden" libraries, object files and flags are used when
21414 # linking a shared library.
21415 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21418 # FIXME: insert proper C++ library support
21426 # FIXME: insert proper C++ library support
21431 case $cc_basename in
21434 # FIXME: insert proper C++ library support
21439 # FIXME: insert proper C++ library support
21443 # FIXME: insert proper C++ library support
21450 case $cc_basename in
21452 # Sun C++ 4.2, 5.x and Centerline C++
21453 archive_cmds_need_lc_CXX
=yes
21454 no_undefined_flag_CXX
=' -zdefs'
21455 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21456 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21457 $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'
21459 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21460 hardcode_shlibpath_var_CXX
=no
21462 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21464 # The compiler driver will combine and reorder linker options,
21465 # but understands `-z linker_flag'.
21466 # Supported since Solaris 2.6 (maybe 2.5.1?)
21467 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21470 link_all_deplibs_CXX
=yes
21472 output_verbose_link_cmd
='func_echo_all'
21474 # Archives containing C++ object files must be created using
21475 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21476 # necessary to make sure instantiated templates are included
21478 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21481 # Green Hills C++ Compiler
21482 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21484 # The C++ compiler must be used to create the archive.
21485 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21488 # GNU C++ compiler with Solaris linker
21489 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21490 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21491 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21492 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21493 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21494 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21496 # Commands to make compiler produce verbose output that lists
21497 # what "hidden" libraries, object files and flags are used when
21498 # linking a shared library.
21499 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21501 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21503 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21504 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21505 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21507 # Commands to make compiler produce verbose output that lists
21508 # what "hidden" libraries, object files and flags are used when
21509 # linking a shared library.
21510 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21513 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21515 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21517 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21525 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21526 no_undefined_flag_CXX
='${wl}-z,text'
21527 archive_cmds_need_lc_CXX
=no
21528 hardcode_shlibpath_var_CXX
=no
21529 runpath_var
='LD_RUN_PATH'
21531 case $cc_basename in
21533 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21534 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21537 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21538 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21543 sysv5
* | sco3.2v5
* | sco5v6
*)
21544 # Note: We can NOT use -z defs as we might desire, because we do not
21545 # link with -lc, and that would cause any symbols used from libc to
21546 # always be unresolved, which means just about no library would
21547 # ever link correctly. If we're not using GNU ld we use -z text
21548 # though, which does catch some bad symbols but isn't as heavy-handed
21550 no_undefined_flag_CXX
='${wl}-z,text'
21551 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21552 archive_cmds_need_lc_CXX
=no
21553 hardcode_shlibpath_var_CXX
=no
21554 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21555 hardcode_libdir_separator_CXX
=':'
21556 link_all_deplibs_CXX
=yes
21557 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21558 runpath_var
='LD_RUN_PATH'
21560 case $cc_basename in
21562 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21563 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21564 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21565 '"$old_archive_cmds_CXX"
21566 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21567 '"$reload_cmds_CXX"
21570 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21571 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21577 case $cc_basename in
21579 # NonStop-UX NCC 3.20
21580 # FIXME: insert proper C++ library support
21584 # FIXME: insert proper C++ library support
21591 # For VxWorks ports, we assume the use of a GNU linker with
21592 # standard elf conventions.
21597 # FIXME: insert proper C++ library support
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21603 $as_echo "$ld_shlibs_CXX" >&6; }
21604 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21610 ## There is no encapsulation within the following macros, do not change
21611 ## the running order or otherwise move them around unless you know exactly
21612 ## what you are doing...
21613 # Dependencies to place before and after the object being linked:
21614 predep_objects_CXX
=
21615 postdep_objects_CXX
=
21618 compiler_lib_search_path_CXX
=
21620 cat > conftest.
$ac_ext <<_LT_EOF
21624 Foo (void) { a = 0; }
21630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21631 (eval $ac_compile) 2>&5
21633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21634 test $ac_status = 0; }; then
21635 # Parse the compiler output and extract the necessary
21636 # objects, libraries and library flags.
21638 # Sentinel used to keep track of whether or not we are before
21639 # the conftest object file.
21640 pre_test_object_deps_done
=no
21642 for p
in `eval "$output_verbose_link_cmd"`; do
21646 # Some compilers place space between "-{L,R}" and the path.
21647 # Remove the space.
21648 if test $p = "-L" ||
21649 test $p = "-R"; then
21656 if test "$pre_test_object_deps_done" = no
; then
21659 # Internal compiler library paths should come after those
21660 # provided the user. The postdeps already come after the
21661 # user supplied libs so there is no need to process them.
21662 if test -z "$compiler_lib_search_path_CXX"; then
21663 compiler_lib_search_path_CXX
="${prev}${p}"
21665 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21668 # The "-l" case would never come before the object being
21669 # linked, so don't bother handling this case.
21672 if test -z "$postdeps_CXX"; then
21673 postdeps_CXX
="${prev}${p}"
21675 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21681 # This assumes that the test object file only shows up
21682 # once in the compiler output.
21683 if test "$p" = "conftest.$objext"; then
21684 pre_test_object_deps_done
=yes
21688 if test "$pre_test_object_deps_done" = no
; then
21689 if test -z "$predep_objects_CXX"; then
21690 predep_objects_CXX
="$p"
21692 predep_objects_CXX
="$predep_objects_CXX $p"
21695 if test -z "$postdep_objects_CXX"; then
21696 postdep_objects_CXX
="$p"
21698 postdep_objects_CXX
="$postdep_objects_CXX $p"
21703 *) ;; # Ignore the rest.
21711 echo "libtool.m4: error: problem compiling CXX test program"
21714 $RM -f confest.
$objext
21716 # PORTME: override above test on systems where it is broken
21719 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21720 # hack all around it, let's just trust "g++" to DTRT.
21721 predep_objects_CXX
=
21722 postdep_objects_CXX
=
21727 case `$CC -V 2>&1 | sed 5q` in
21731 # The more standards-conforming stlport4 library is
21732 # incompatible with the Cstd library. Avoid specifying
21733 # it if it's in CXXFLAGS. Ignore libCrun as
21734 # -library=stlport4 depends on it.
21735 case " $CXX $CXXFLAGS " in
21736 *" -library=stlport4 "*)
21737 solaris_use_stlport4
=yes
21741 if test "$solaris_use_stlport4" != yes; then
21742 postdeps_CXX
='-library=Cstd -library=Crun'
21749 case $cc_basename in
21751 # The more standards-conforming stlport4 library is
21752 # incompatible with the Cstd library. Avoid specifying
21753 # it if it's in CXXFLAGS. Ignore libCrun as
21754 # -library=stlport4 depends on it.
21755 case " $CXX $CXXFLAGS " in
21756 *" -library=stlport4 "*)
21757 solaris_use_stlport4
=yes
21761 # Adding this requires a known-good setup of shared libraries for
21762 # Sun compiler versions before 5.6, else PIC objects from an old
21763 # archive will be linked into the output, leading to subtle bugs.
21764 if test "$solaris_use_stlport4" != yes; then
21765 postdeps_CXX
='-library=Cstd -library=Crun'
21773 case " $postdeps_CXX " in
21774 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21776 compiler_lib_search_dirs_CXX
=
21777 if test -n "${compiler_lib_search_path_CXX}"; then
21778 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21811 lt_prog_compiler_wl_CXX
=
21812 lt_prog_compiler_pic_CXX
=
21813 lt_prog_compiler_static_CXX
=
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21816 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21818 # C++ specific cases for pic, static, wl, etc.
21819 if test "$GXX" = yes; then
21820 lt_prog_compiler_wl_CXX
='-Wl,'
21821 lt_prog_compiler_static_CXX
='-static'
21825 # All AIX code is PIC.
21826 if test "$host_cpu" = ia64
; then
21827 # AIX 5 now supports IA64 processor
21828 lt_prog_compiler_static_CXX
='-Bstatic'
21830 lt_prog_compiler_pic_CXX
='-fPIC'
21836 # see comment about AmigaOS4 .so support
21837 lt_prog_compiler_pic_CXX
='-fPIC'
21840 # FIXME: we need at least 68020 code to build shared libraries, but
21841 # adding the `-m68020' flag to GCC prevents building anything better,
21843 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21848 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21849 # PIC is the default for these OSes.
21851 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21852 # This hack is so that the source file can tell whether it is being
21853 # built for inclusion in a dll (and should export symbols for example).
21854 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21855 # (--disable-auto-import) libraries
21856 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21858 darwin
* | rhapsody
*)
21859 # PIC is the default on this platform
21860 # Common symbols not allowed in MH_DYLIB files
21861 lt_prog_compiler_pic_CXX
='-fno-common'
21864 # DJGPP does not support shared libraries at all
21865 lt_prog_compiler_pic_CXX
=
21868 # PIC is the default for Haiku.
21869 # The "-static" flag exists, but is broken.
21870 lt_prog_compiler_static_CXX
=
21873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21874 # Instead, we relocate shared libraries at runtime.
21877 if test -d /usr
/nec
; then
21878 lt_prog_compiler_pic_CXX
=-Kconform_pic
21882 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21883 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21884 # sets the default TLS model and affects inlining.
21889 lt_prog_compiler_pic_CXX
='-fPIC'
21894 # QNX uses GNU C++, but need to define -shared option too, otherwise
21895 # it will coredump.
21896 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21899 lt_prog_compiler_pic_CXX
='-fPIC'
21905 # All AIX code is PIC.
21906 if test "$host_cpu" = ia64
; then
21907 # AIX 5 now supports IA64 processor
21908 lt_prog_compiler_static_CXX
='-Bstatic'
21910 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21914 case $cc_basename in
21916 # Green Hills C++ Compiler
21917 # _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"
21922 case $cc_basename in
21924 lt_prog_compiler_pic_CXX
='-KPIC'
21927 # Green Hills C++ Compiler
21928 lt_prog_compiler_pic_CXX
='-pic'
21934 freebsd
* | dragonfly
*)
21935 # FreeBSD uses GNU C++
21937 hpux9
* | hpux10
* | hpux11
*)
21938 case $cc_basename in
21940 lt_prog_compiler_wl_CXX
='-Wl,'
21941 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21942 if test "$host_cpu" != ia64
; then
21943 lt_prog_compiler_pic_CXX
='+Z'
21947 lt_prog_compiler_wl_CXX
='-Wl,'
21948 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21954 lt_prog_compiler_pic_CXX
='+Z'
21963 # This is c89, which is MS Visual C++ (no shared libs)
21964 # Anyone wants to do a port?
21966 irix5
* | irix6
* | nonstopux
*)
21967 case $cc_basename in
21969 lt_prog_compiler_wl_CXX
='-Wl,'
21970 lt_prog_compiler_static_CXX
='-non_shared'
21971 # CC pic flag -KPIC is the default.
21977 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21978 case $cc_basename in
21981 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21982 lt_prog_compiler_pic_CXX
='-fPIC'
21985 # old Intel C++ for x86_64 which still supported -KPIC.
21986 lt_prog_compiler_wl_CXX
='-Wl,'
21987 lt_prog_compiler_pic_CXX
='-KPIC'
21988 lt_prog_compiler_static_CXX
='-static'
21991 # Intel C++, used to be incompatible with GCC.
21992 # ICC 10 doesn't accept -KPIC any more.
21993 lt_prog_compiler_wl_CXX
='-Wl,'
21994 lt_prog_compiler_pic_CXX
='-fPIC'
21995 lt_prog_compiler_static_CXX
='-static'
21998 # Portland Group C++ compiler
21999 lt_prog_compiler_wl_CXX
='-Wl,'
22000 lt_prog_compiler_pic_CXX
='-fpic'
22001 lt_prog_compiler_static_CXX
='-Bstatic'
22005 # Make sure the PIC flag is empty. It appears that all Alpha
22006 # Linux and Compaq Tru64 Unix objects are PIC.
22007 lt_prog_compiler_pic_CXX
=
22008 lt_prog_compiler_static_CXX
='-non_shared'
22010 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
22011 # IBM XL 8.0, 9.0 on PPC and BlueGene
22012 lt_prog_compiler_wl_CXX
='-Wl,'
22013 lt_prog_compiler_pic_CXX
='-qpic'
22014 lt_prog_compiler_static_CXX
='-qstaticlink'
22017 case `$CC -V 2>&1 | sed 5q` in
22020 lt_prog_compiler_pic_CXX
='-KPIC'
22021 lt_prog_compiler_static_CXX
='-Bstatic'
22022 lt_prog_compiler_wl_CXX
='-Qoption ld '
22033 case $cc_basename in
22035 lt_prog_compiler_pic_CXX
='-W c,exportall'
22044 # QNX uses GNU C++, but need to define -shared option too, otherwise
22045 # it will coredump.
22046 lt_prog_compiler_pic_CXX
='-fPIC -shared'
22048 osf3
* | osf4
* | osf5
*)
22049 case $cc_basename in
22051 lt_prog_compiler_wl_CXX
='--backend -Wl,'
22054 # Rational C++ 2.4.1
22055 lt_prog_compiler_pic_CXX
='-pic'
22058 # Digital/Compaq C++
22059 lt_prog_compiler_wl_CXX
='-Wl,'
22060 # Make sure the PIC flag is empty. It appears that all Alpha
22061 # Linux and Compaq Tru64 Unix objects are PIC.
22062 lt_prog_compiler_pic_CXX
=
22063 lt_prog_compiler_static_CXX
='-non_shared'
22072 case $cc_basename in
22074 # Sun C++ 4.2, 5.x and Centerline C++
22075 lt_prog_compiler_pic_CXX
='-KPIC'
22076 lt_prog_compiler_static_CXX
='-Bstatic'
22077 lt_prog_compiler_wl_CXX
='-Qoption ld '
22080 # Green Hills C++ Compiler
22081 lt_prog_compiler_pic_CXX
='-PIC'
22088 case $cc_basename in
22091 lt_prog_compiler_pic_CXX
='-pic'
22092 lt_prog_compiler_static_CXX
='-Bstatic'
22096 lt_prog_compiler_pic_CXX
='-pic'
22102 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
22103 case $cc_basename in
22105 lt_prog_compiler_wl_CXX
='-Wl,'
22106 lt_prog_compiler_pic_CXX
='-KPIC'
22107 lt_prog_compiler_static_CXX
='-Bstatic'
22112 case $cc_basename in
22114 # NonStop-UX NCC 3.20
22115 lt_prog_compiler_pic_CXX
='-KPIC'
22124 lt_prog_compiler_can_build_shared_CXX
=no
22130 # For platforms which do not support PIC, -DPIC is meaningless:
22132 lt_prog_compiler_pic_CXX
=
22135 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22139 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22144 # Check to make sure the PIC flag actually works.
22146 if test -n "$lt_prog_compiler_pic_CXX"; then
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22148 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22149 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
22150 $as_echo_n "(cached) " >&6
22152 lt_cv_prog_compiler_pic_works_CXX
=no
22153 ac_outfile
=conftest.
$ac_objext
22154 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22155 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
22156 # Insert the option either (1) after the last *FLAGS variable, or
22157 # (2) before a word containing "conftest.", or (3) at the end.
22158 # Note that $ac_compile itself does not contain backslashes and begins
22159 # with a dollar sign (not a hyphen), so the echo should work correctly.
22160 # The option is referenced via a variable to avoid confusing sed.
22161 lt_compile
=`echo "$ac_compile" | $SED \
22162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22164 -e 's:$: $lt_compiler_flag:'`
22165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22166 (eval "$lt_compile" 2>conftest.err
)
22168 cat conftest.err
>&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 if (exit $ac_status) && test -s "$ac_outfile"; then
22171 # The compiler can only warn and ignore the option if not recognized
22172 # So say no if there are warnings other than the usual output.
22173 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
22174 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22175 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
22176 lt_cv_prog_compiler_pic_works_CXX
=yes
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22183 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22185 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
22186 case $lt_prog_compiler_pic_CXX in
22188 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
22191 lt_prog_compiler_pic_CXX
=
22192 lt_prog_compiler_can_build_shared_CXX
=no
22200 # Check to make sure the static flag actually works.
22202 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22204 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22205 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
22206 $as_echo_n "(cached) " >&6
22208 lt_cv_prog_compiler_static_works_CXX
=no
22209 save_LDFLAGS
="$LDFLAGS"
22210 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
22211 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
22212 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
22213 # The linker can only warn and ignore the option if not recognized
22214 # So say no if there are warnings
22215 if test -s conftest.err
; then
22216 # Append any errors to the config.log.
22217 cat conftest.err
1>&5
22218 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
22219 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22220 if diff conftest.exp conftest.er2
>/dev
/null
; then
22221 lt_cv_prog_compiler_static_works_CXX
=yes
22224 lt_cv_prog_compiler_static_works_CXX
=yes
22228 LDFLAGS
="$save_LDFLAGS"
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22232 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22234 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22237 lt_prog_compiler_static_CXX
=
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22245 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22246 $as_echo_n "(cached) " >&6
22248 lt_cv_prog_compiler_c_o_CXX
=no
22249 $RM -r conftest
2>/dev
/null
22253 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22255 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22256 # Insert the option either (1) after the last *FLAGS variable, or
22257 # (2) before a word containing "conftest.", or (3) at the end.
22258 # Note that $ac_compile itself does not contain backslashes and begins
22259 # with a dollar sign (not a hyphen), so the echo should work correctly.
22260 lt_compile
=`echo "$ac_compile" | $SED \
22261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22263 -e 's:$: $lt_compiler_flag:'`
22264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22265 (eval "$lt_compile" 2>out
/conftest.err
)
22267 cat out
/conftest.err
>&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22271 # The compiler can only warn and ignore the option if not recognized
22272 # So say no if there are warnings
22273 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22274 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22275 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22276 lt_cv_prog_compiler_c_o_CXX
=yes
22281 # SGI C++ compiler will create directory out/ii_files/ for
22282 # template instantiation
22283 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22284 $RM out
/* && rmdir out
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22291 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22296 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22297 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22298 $as_echo_n "(cached) " >&6
22300 lt_cv_prog_compiler_c_o_CXX
=no
22301 $RM -r conftest
2>/dev
/null
22305 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22307 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22308 # Insert the option either (1) after the last *FLAGS variable, or
22309 # (2) before a word containing "conftest.", or (3) at the end.
22310 # Note that $ac_compile itself does not contain backslashes and begins
22311 # with a dollar sign (not a hyphen), so the echo should work correctly.
22312 lt_compile
=`echo "$ac_compile" | $SED \
22313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22315 -e 's:$: $lt_compiler_flag:'`
22316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22317 (eval "$lt_compile" 2>out
/conftest.err
)
22319 cat out
/conftest.err
>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22323 # The compiler can only warn and ignore the option if not recognized
22324 # So say no if there are warnings
22325 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22326 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22327 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22328 lt_cv_prog_compiler_c_o_CXX
=yes
22333 # SGI C++ compiler will create directory out/ii_files/ for
22334 # template instantiation
22335 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22336 $RM out
/* && rmdir out
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22343 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22348 hard_links
="nottested"
22349 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22350 # do not overwrite the value of need_locks provided by the user
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22352 $as_echo_n "checking if we can lock with hard links... " >&6; }
22355 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22357 ln conftest.a conftest.b
2>&5 || hard_links
=no
22358 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22360 $as_echo "$hard_links" >&6; }
22361 if test "$hard_links" = no
; then
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22363 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22373 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22375 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22378 # If we're using GNU nm, then we don't want the "-C" option.
22379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22380 # Also, AIX nm treats weak defined symbols like other global defined
22381 # symbols, whereas GNU nm marks them as "W".
22382 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22383 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'
22385 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'
22389 export_symbols_cmds_CXX
="$ltdll_cmds"
22391 cygwin
* | mingw
* | cegcc
*)
22392 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'
22395 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22398 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22401 $as_echo "$ld_shlibs_CXX" >&6; }
22402 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22404 with_gnu_ld_CXX
=$with_gnu_ld
22412 # Do we need to explicitly link libc?
22414 case "x$archive_cmds_need_lc_CXX" in
22416 # Assume -lc should be added
22417 archive_cmds_need_lc_CXX
=yes
22419 if test "$enable_shared" = yes && test "$GCC" = yes; then
22420 case $archive_cmds_CXX in
22422 # FIXME: we may have to deal with multi-command sequences.
22425 # Test whether the compiler implicitly links with -lc since on some
22426 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22427 # to ld, don't add -lc before -lgcc.
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22429 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22430 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22431 $as_echo_n "(cached) " >&6
22434 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22437 (eval $ac_compile) 2>&5
22439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22440 test $ac_status = 0; } 2>conftest.err
; then
22443 libobjs
=conftest.
$ac_objext
22445 wl
=$lt_prog_compiler_wl_CXX
22446 pic_flag
=$lt_prog_compiler_pic_CXX
22452 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22453 allow_undefined_flag_CXX
=
22454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22455 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22458 test $ac_status = 0; }
22460 lt_cv_archive_cmds_need_lc_CXX
=no
22462 lt_cv_archive_cmds_need_lc_CXX
=yes
22464 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22466 cat conftest.err
1>&5
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22472 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22473 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22544 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22546 library_names_spec
=
22547 libname_spec
='lib$name'
22551 postuninstall_cmds
=
22555 shlibpath_overrides_runpath
=unknown
22557 dynamic_linker
="$host_os ld.so"
22558 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22559 need_lib_prefix
=unknown
22560 hardcode_into_libs
=no
22562 # when you set need_version to no, make sure it does not cause -set_version
22563 # flags to be left without arguments
22564 need_version
=unknown
22569 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22570 shlibpath_var
=LIBPATH
22572 # AIX 3 has no versioning support, so we append a major version to the name.
22573 soname_spec
='${libname}${release}${shared_ext}$major'
22580 hardcode_into_libs
=yes
22581 if test "$host_cpu" = ia64
; then
22582 # AIX 5 supports IA64
22583 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22584 shlibpath_var
=LD_LIBRARY_PATH
22586 # With GCC up to 2.95.x, collect2 would create an import file
22587 # for dependence libraries. The import file would start with
22588 # the line `#! .'. This would cause the generated library to
22589 # depend on `.', always an invalid library. This was fixed in
22590 # development snapshots of GCC prior to 3.0.
22592 aix4 | aix4.
[01] | aix4.
[01].
*)
22593 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22595 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22598 can_build_shared
=no
22602 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22603 # soname into executable. Probably we can add versioning support to
22604 # collect2, so additional links can be useful in future.
22605 if test "$aix_use_runtimelinking" = yes; then
22606 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22607 # instead of lib<name>.a to let people know that these are not
22608 # typical AIX shared libraries.
22609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 # We preserve .a as extension for shared libraries through AIX4.2
22612 # and later when we are not doing run time linking.
22613 library_names_spec
='${libname}${release}.a $libname.a'
22614 soname_spec
='${libname}${release}${shared_ext}$major'
22616 shlibpath_var
=LIBPATH
22623 # Since July 2007 AmigaOS4 officially supports .so libraries.
22624 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22628 library_names_spec
='$libname.ixlibrary $libname.a'
22629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22630 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'
22636 library_names_spec
='${libname}${shared_ext}'
22637 dynamic_linker
="$host_os ld.so"
22638 shlibpath_var
=LIBRARY_PATH
22644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22645 soname_spec
='${libname}${release}${shared_ext}$major'
22646 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22647 shlibpath_var
=LD_LIBRARY_PATH
22648 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22649 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22650 # the default ld.so.conf also contains /usr/contrib/lib and
22651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22652 # libtool to hard-code these into programs
22655 cygwin
* | mingw
* | pw32
* | cegcc
*)
22656 version_type
=windows
22661 case $GCC,$host_os in
22662 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22663 library_names_spec
='$libname.dll.a'
22664 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22665 postinstall_cmds
='base_file=`basename \${file}`~
22666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22667 dldir=$destdir/`dirname \$dlpath`~
22668 test -d \$dldir || mkdir -p \$dldir~
22669 $install_prog $dir/$dlname \$dldir/$dlname~
22670 chmod a+x \$dldir/$dlname~
22671 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22672 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22674 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22675 dlpath=$dir/\$dldll~
22677 shlibpath_overrides_runpath
=yes
22681 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22682 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22686 # MinGW DLLs use traditional 'lib' prefix
22687 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22690 # pw32 DLLs use 'pw' prefix rather than 'lib'
22691 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22697 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22700 dynamic_linker
='Win32 ld.exe'
22701 # FIXME: first we should search . and the directory the executable is in
22705 darwin
* | rhapsody
*)
22706 dynamic_linker
="$host_os dyld"
22707 version_type
=darwin
22710 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22711 soname_spec
='${libname}${release}${major}$shared_ext'
22712 shlibpath_overrides_runpath
=yes
22713 shlibpath_var
=DYLD_LIBRARY_PATH
22714 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22716 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22724 soname_spec
='${libname}${release}${shared_ext}$major'
22725 shlibpath_var
=LD_LIBRARY_PATH
22728 freebsd
* | dragonfly
*)
22729 # DragonFly does not have aout. When/if they implement a new
22730 # versioning mechanism, adjust this.
22731 if test -x /usr
/bin
/objformat
; then
22732 objformat
=`/usr/bin/objformat`
22735 freebsd
[23].
*) objformat
=aout
;;
22736 *) objformat
=elf
;;
22739 version_type
=freebsd-
$objformat
22740 case $version_type in
22742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22747 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22751 shlibpath_var
=LD_LIBRARY_PATH
22754 shlibpath_overrides_runpath
=yes
22756 freebsd3.
[01]* | freebsdelf3.
[01]*)
22757 shlibpath_overrides_runpath
=yes
22758 hardcode_into_libs
=yes
22760 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22761 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22762 shlibpath_overrides_runpath
=no
22763 hardcode_into_libs
=yes
22765 *) # from 4.6 on, and DragonFly
22766 shlibpath_overrides_runpath
=yes
22767 hardcode_into_libs
=yes
22776 dynamic_linker
="$host_os runtime_loader"
22777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22778 soname_spec
='${libname}${release}${shared_ext}$major'
22779 shlibpath_var
=LIBRARY_PATH
22780 shlibpath_overrides_runpath
=yes
22781 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22782 hardcode_into_libs
=yes
22785 hpux9
* | hpux10
* | hpux11
*)
22786 # Give a soname corresponding to the major version so that dld.sl refuses to
22787 # link against other versions.
22794 hardcode_into_libs
=yes
22795 dynamic_linker
="$host_os dld.so"
22796 shlibpath_var
=LD_LIBRARY_PATH
22797 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22799 soname_spec
='${libname}${release}${shared_ext}$major'
22800 if test "X$HPUX_IA64_MODE" = X32
; then
22801 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22803 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22805 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22809 hardcode_into_libs
=yes
22810 dynamic_linker
="$host_os dld.sl"
22811 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22812 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22814 soname_spec
='${libname}${release}${shared_ext}$major'
22815 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22816 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22820 dynamic_linker
="$host_os dld.sl"
22821 shlibpath_var
=SHLIB_PATH
22822 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22824 soname_spec
='${libname}${release}${shared_ext}$major'
22827 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22828 postinstall_cmds
='chmod 555 $lib'
22829 # or fails outright, so override atomically:
22830 install_override_mode
=555
22837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22838 soname_spec
='${libname}${release}${shared_ext}$major'
22839 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22840 shlibpath_var
=LD_LIBRARY_PATH
22841 shlibpath_overrides_runpath
=no
22842 hardcode_into_libs
=yes
22845 irix5
* | irix6
* | nonstopux
*)
22847 nonstopux
*) version_type
=nonstopux
;;
22849 if test "$lt_cv_prog_gnu_ld" = yes; then
22857 soname_spec
='${libname}${release}${shared_ext}$major'
22858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22860 irix5
* | nonstopux
*)
22861 libsuff
= shlibsuff
=
22864 case $LD in # libtool.m4 will add one of these switches to LD
22865 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22866 libsuff
= shlibsuff
= libmagic
=32-bit;;
22867 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22868 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22869 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22870 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22871 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22875 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22876 shlibpath_overrides_runpath
=no
22877 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22878 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22879 hardcode_into_libs
=yes
22882 # No shared lib support for Linux oldld, aout, or coff.
22883 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22887 # This must be Linux ELF.
22889 # uclinux* changes (here and below) have been submitted to the libtool
22890 # project, but have not yet been accepted: they are GCC-local changes
22891 # for the time being. (See
22892 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22893 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22897 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898 soname_spec
='${libname}${release}${shared_ext}$major'
22899 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22900 shlibpath_var
=LD_LIBRARY_PATH
22901 shlibpath_overrides_runpath
=no
22903 # Some binutils ld are patched to set DT_RUNPATH
22904 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22905 $as_echo_n "(cached) " >&6
22907 lt_cv_shlibpath_overrides_runpath
=no
22908 save_LDFLAGS
=$LDFLAGS
22909 save_libdir
=$libdir
22910 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22911 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22913 /* end confdefs.h. */
22923 if ac_fn_cxx_try_link
"$LINENO"; then :
22924 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22925 lt_cv_shlibpath_overrides_runpath
=yes
22928 rm -f core conftest.err conftest.
$ac_objext \
22929 conftest
$ac_exeext conftest.
$ac_ext
22930 LDFLAGS
=$save_LDFLAGS
22931 libdir
=$save_libdir
22935 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22937 # This implies no fast_install, which is unacceptable.
22938 # Some rework will be needed to allow for fast_install
22939 # before this can be enabled.
22940 hardcode_into_libs
=yes
22942 # Append ld.so.conf contents to the search path
22943 if test -f /etc
/ld.so.conf
; then
22944 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' ' '`
22945 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22948 # We used to test for /lib/ld.so.1 and disable shared libraries on
22949 # powerpc, because MkLinux only supported shared libraries with the
22950 # GNU dynamic linker. Since this was broken with cross compilers,
22951 # most powerpc-linux boxes support dynamic linking these days and
22952 # people can always --disable-shared, the test was removed, and we
22953 # assume the GNU/Linux dynamic linker is in use.
22954 dynamic_linker
='GNU/Linux ld.so'
22961 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22963 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22964 dynamic_linker
='NetBSD (a.out) ld.so'
22966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22967 soname_spec
='${libname}${release}${shared_ext}$major'
22968 dynamic_linker
='NetBSD ld.elf_so'
22970 shlibpath_var
=LD_LIBRARY_PATH
22971 shlibpath_overrides_runpath
=yes
22972 hardcode_into_libs
=yes
22977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22978 shlibpath_var
=LD_LIBRARY_PATH
22979 shlibpath_overrides_runpath
=yes
22986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987 soname_spec
='${libname}${release}${shared_ext}$major'
22988 shlibpath_var
=LD_LIBRARY_PATH
22989 shlibpath_overrides_runpath
=no
22990 hardcode_into_libs
=yes
22991 dynamic_linker
='ldqnx.so'
22996 sys_lib_dlsearch_path_spec
="/usr/lib"
22998 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23000 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23001 *) need_version
=no
;;
23003 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23004 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23005 shlibpath_var
=LD_LIBRARY_PATH
23006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23008 openbsd2.
[89] | openbsd2.
[89].
*)
23009 shlibpath_overrides_runpath
=no
23012 shlibpath_overrides_runpath
=yes
23016 shlibpath_overrides_runpath
=yes
23021 libname_spec
='$name'
23024 library_names_spec
='$libname${shared_ext} $libname.a'
23025 dynamic_linker
='OS/2 ld.exe'
23026 shlibpath_var
=LIBPATH
23029 osf3
* | osf4
* | osf5
*)
23033 soname_spec
='${libname}${release}${shared_ext}$major'
23034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 shlibpath_var
=LD_LIBRARY_PATH
23036 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23037 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23049 soname_spec
='${libname}${release}${shared_ext}$major'
23050 shlibpath_var
=LD_LIBRARY_PATH
23051 shlibpath_overrides_runpath
=yes
23052 hardcode_into_libs
=yes
23053 # ldd complains unless libraries are executable
23054 postinstall_cmds
='chmod +x $lib'
23059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23060 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23061 shlibpath_var
=LD_LIBRARY_PATH
23062 shlibpath_overrides_runpath
=yes
23063 if test "$with_gnu_ld" = yes; then
23071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23072 soname_spec
='${libname}${release}${shared_ext}$major'
23073 shlibpath_var
=LD_LIBRARY_PATH
23074 case $host_vendor in
23076 shlibpath_overrides_runpath
=no
23078 runpath_var
=LD_RUN_PATH
23086 shlibpath_overrides_runpath
=no
23087 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23093 if test -d /usr
/nec
;then
23095 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23096 soname_spec
='$libname${shared_ext}.$major'
23097 shlibpath_var
=LD_LIBRARY_PATH
23101 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23102 version_type
=freebsd-elf
23105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23106 soname_spec
='${libname}${release}${shared_ext}$major'
23107 shlibpath_var
=LD_LIBRARY_PATH
23108 shlibpath_overrides_runpath
=yes
23109 hardcode_into_libs
=yes
23110 if test "$with_gnu_ld" = yes; then
23111 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23113 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23116 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23120 sys_lib_dlsearch_path_spec
='/usr/lib'
23124 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23129 shlibpath_var
=LD_LIBRARY_PATH
23130 shlibpath_overrides_runpath
=no
23131 hardcode_into_libs
=yes
23136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23137 soname_spec
='${libname}${release}${shared_ext}$major'
23138 shlibpath_var
=LD_LIBRARY_PATH
23141 # Shared libraries for VwWorks, >= 7 only at this stage
23142 # and (fpic) still incompatible with "large" code models
23143 # in a few configurations. Only for RTP mode in any case,
23144 # and upon explicit request at configure time.
23147 case ${with_multisubdir}-${enable_shared} in
23154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23155 soname_spec
='${libname}${release}${shared_ext}$major'
23156 dynamic_linker
="$host_os module_loader"
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23165 $as_echo "$dynamic_linker" >&6; }
23166 test "$dynamic_linker" = no
&& can_build_shared
=no
23168 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23169 if test "$GCC" = yes; then
23170 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23173 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23174 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
23176 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23177 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23219 hardcode_action_CXX
=
23220 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23221 test -n "$runpath_var_CXX" ||
23222 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23224 # We can hardcode non-existent directories.
23225 if test "$hardcode_direct_CXX" != no
&&
23226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23227 # have to relink, otherwise we might link with an installed library
23228 # when we should be linking with a yet-to-be-installed one
23229 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23230 test "$hardcode_minus_L_CXX" != no
; then
23231 # Linking always hardcodes the temporary library directory.
23232 hardcode_action_CXX
=relink
23234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23235 hardcode_action_CXX
=immediate
23238 # We cannot hardcode anything, or else we can only hardcode existing
23240 hardcode_action_CXX
=unsupported
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23243 $as_echo "$hardcode_action_CXX" >&6; }
23245 if test "$hardcode_action_CXX" = relink ||
23246 test "$inherit_rpath_CXX" = yes; then
23247 # Fast installation is not supported
23248 enable_fast_install
=no
23249 elif test "$shlibpath_overrides_runpath" = yes ||
23250 test "$enable_shared" = no
; then
23251 # Fast installation is not necessary
23252 enable_fast_install
=needless
23261 fi # test -n "$compiler"
23267 with_gnu_ld
=$lt_save_with_gnu_ld
23268 lt_cv_path_LDCXX
=$lt_cv_path_LD
23269 lt_cv_path_LD
=$lt_save_path_LD
23270 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23271 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23272 fi # test "$_lt_caught_CXX_error" != yes
23275 ac_cpp
='$CXXCPP $CPPFLAGS'
23276 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23277 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23278 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23295 # Only expand once:
23301 # Identify the assembler which will work hand-in-glove with the newly
23302 # built GCC, so that we can examine its features. This is the assembler
23303 # which will be driven by the driver program.
23305 # If build != host, and we aren't building gas in-tree, we identify a
23306 # build->target assembler and hope that it will have the same features
23307 # as the host->target assembler we'll be using.
23308 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23310 if ${gcc_cv_as+:} false
; then :
23314 if test -x "$DEFAULT_ASSEMBLER"; then
23315 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23316 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23317 && test -f ..
/gas
/Makefile \
23318 && test x
$build = x
$host; then
23319 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23320 elif test -x as
$build_exeext; then
23321 # Build using assembler in the current directory.
23322 gcc_cv_as
=.
/as
$build_exeext
23323 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23324 gcc_cv_as
="$AS_FOR_TARGET"
23326 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23327 set dummy
$AS_FOR_TARGET; ac_word
=$2
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23329 $as_echo_n "checking for $ac_word... " >&6; }
23330 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23331 $as_echo_n "(cached) " >&6
23335 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23339 for as_dir
in $PATH
23342 test -z "$as_dir" && as_dir
=.
23343 for ac_exec_ext
in '' $ac_executable_extensions; do
23344 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23345 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23356 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23357 if test -n "$gcc_cv_as"; then
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23359 $as_echo "$gcc_cv_as" >&6; }
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23362 $as_echo "no" >&6; }
23369 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23371 case "$ORIGINAL_AS_FOR_TARGET" in
23372 .
/as | .
/as
$build_exeext) ;;
23373 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23378 # Check whether --enable-ld was given.
23379 if test "${enable_ld+set}" = set; then :
23380 enableval
=$enable_ld; case "${enableval}" in
23388 install_gold_as_default
=no
23389 # Check whether --enable-gold was given.
23390 if test "${enable_gold+set}" = set; then :
23391 enableval
=$enable_gold; case "${enableval}" in
23393 install_gold_as_default
=yes
23396 if test x
${default_ld} != x
; then
23397 install_gold_as_default
=yes
23403 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23409 # Identify the linker which will work hand-in-glove with the newly
23410 # built GCC, so that we can examine its features. This is the linker
23411 # which will be driven by the driver program.
23413 # If build != host, and we aren't building gas in-tree, we identify a
23414 # build->target linker and hope that it will have the same features
23415 # as the host->target linker we'll be using.
23416 gcc_cv_gld_major_version
=
23417 gcc_cv_gld_minor_version
=
23418 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23419 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23420 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23422 if ${gcc_cv_ld+:} false
; then :
23426 if test -x "$DEFAULT_LINKER"; then
23427 gcc_cv_ld
="$DEFAULT_LINKER"
23428 elif test $install_gold_as_default = yes \
23429 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23430 && test -f ..
/gold
/Makefile \
23431 && test x
$build = x
$host; then
23432 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23433 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23434 && test -f ..
/ld
/Makefile \
23435 && test x
$build = x
$host; then
23436 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23437 elif test -x collect-ld
$build_exeext; then
23438 # Build using linker in the current directory.
23439 gcc_cv_ld
=.
/collect-ld
$build_exeext
23440 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23441 gcc_cv_ld
="$LD_FOR_TARGET"
23443 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23444 set dummy
$LD_FOR_TARGET; ac_word
=$2
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23446 $as_echo_n "checking for $ac_word... " >&6; }
23447 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23448 $as_echo_n "(cached) " >&6
23452 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23456 for as_dir
in $PATH
23459 test -z "$as_dir" && as_dir
=.
23460 for ac_exec_ext
in '' $ac_executable_extensions; do
23461 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23462 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23473 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23474 if test -n "$gcc_cv_ld"; then
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23476 $as_echo "$gcc_cv_ld" >&6; }
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23479 $as_echo "no" >&6; }
23486 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23487 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23488 # if the PLUGIN_LD is set ld-new, just have it as ld
23489 # as that is the installed named.
23490 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23491 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23492 PLUGIN_LD_SUFFIX
=ld
23495 # Check whether --with-plugin-ld was given.
23496 if test "${with_plugin_ld+set}" = set; then :
23497 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23498 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23499 PLUGIN_LD_SUFFIX
="$withval"
23505 cat >>confdefs.h
<<_ACEOF
23506 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23510 # Check to see if we are using gold instead of ld
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23512 $as_echo_n "checking whether we are using gold... " >&6; }
23514 if test x
$gcc_cv_ld != x
; then
23515 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23516 |
grep "GNU gold" > /dev
/null
; then
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23521 $as_echo "$ld_is_gold" >&6; }
23523 # Check to see if we are using mold instead of ld
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23525 $as_echo_n "checking whether we are using mold... " >&6; }
23527 if test x
$gcc_cv_ld != x
; then
23528 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23529 |
grep "mold" > /dev
/null
; then
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23534 $as_echo "$ld_is_mold" >&6; }
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23538 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23539 # Check to see if default ld is not gold, but gold is
23540 # available and has support for split stack. If gcc was configured
23541 # with gold then no checking is done.
23543 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23545 # For platforms other than powerpc64*, enable as appropriate.
23547 gold_non_default
=no
23548 ld_gold
=`which ${gcc_cv_ld}.gold`
23549 # Make sure this gold has minimal split stack support
23550 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23551 ld_vers
=`$ld_gold --version | sed 1q`
23552 gold_vers
=`echo $ld_vers | sed -n \
23553 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23555 # check that the gold version contains the complete split stack support
23556 # on powerpc64 big and little endian
23558 case "$gold_vers" in
23559 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23561 *) gold_non_default
=no
23567 if test $gold_non_default = yes; then
23569 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23574 $as_echo "$gold_non_default" >&6; }
23576 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23578 case "$ORIGINAL_LD_FOR_TARGET" in
23579 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23580 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23585 $as_echo_n "checking what linker to use... " >&6; }
23586 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23587 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23588 # Single tree build which includes ld. We want to prefer it
23589 # over whatever linker top-level may have detected, since
23590 # we'll use what we're building after installation anyway.
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23592 $as_echo "newly built ld" >&6; }
23594 in_tree_ld_is_elf
=no
23595 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23596 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23597 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23598 in_tree_ld_is_elf
=yes
23599 elif test "$ld_is_gold" = yes; then
23600 in_tree_ld_is_elf
=yes
23602 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
23604 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23605 if test x
$gcc_cv_gld_version != x
; then
23609 case $gcc_cv_gld_version in
23611 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23613 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23614 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23615 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23616 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23619 $as_echo "$gcc_cv_ld" >&6; }
23621 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23622 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23623 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23629 # Figure out what nm we will be using.
23630 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23631 if ${gcc_cv_nm+:} false
; then :
23635 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23636 && test -f ..
/binutils
/Makefile \
23637 && test x
$build = x
$host; then
23638 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23639 elif test -x nm
$build_exeext; then
23640 gcc_cv_nm
=.
/nm
$build_exeext
23641 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23642 gcc_cv_nm
="$NM_FOR_TARGET"
23644 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23645 set dummy
$NM_FOR_TARGET; ac_word
=$2
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23647 $as_echo_n "checking for $ac_word... " >&6; }
23648 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23649 $as_echo_n "(cached) " >&6
23653 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23657 for as_dir
in $PATH
23660 test -z "$as_dir" && as_dir
=.
23661 for ac_exec_ext
in '' $ac_executable_extensions; do
23662 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23663 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23674 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23675 if test -n "$gcc_cv_nm"; then
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23677 $as_echo "$gcc_cv_nm" >&6; }
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23680 $as_echo "no" >&6; }
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23688 $as_echo_n "checking what nm to use... " >&6; }
23689 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23690 # Single tree build which includes binutils.
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23692 $as_echo "newly built nm" >&6; }
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23696 $as_echo "$gcc_cv_nm" >&6; }
23700 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23702 case "$ORIGINAL_NM_FOR_TARGET" in
23703 .
/nm | .
/nm
$build_exeext) ;;
23704 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23709 # Figure out what objdump we will be using.
23710 if ${gcc_cv_objdump+:} false
; then :
23714 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23715 && test -f ..
/binutils
/Makefile \
23716 && test x
$build = x
$host; then
23717 # Single tree build which includes binutils.
23718 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23719 elif test -x objdump
$build_exeext; then
23720 gcc_cv_objdump
=.
/objdump
$build_exeext
23721 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23722 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23724 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23725 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23727 $as_echo_n "checking for $ac_word... " >&6; }
23728 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23729 $as_echo_n "(cached) " >&6
23731 case $gcc_cv_objdump in
23733 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23737 for as_dir
in $PATH
23740 test -z "$as_dir" && as_dir
=.
23741 for ac_exec_ext
in '' $ac_executable_extensions; do
23742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23743 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23754 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23755 if test -n "$gcc_cv_objdump"; then
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23757 $as_echo "$gcc_cv_objdump" >&6; }
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23760 $as_echo "no" >&6; }
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23768 $as_echo_n "checking what objdump to use... " >&6; }
23769 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23770 # Single tree build which includes binutils.
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23772 $as_echo "newly built objdump" >&6; }
23773 elif test x
$gcc_cv_objdump = x
; then
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23775 $as_echo "not found" >&6; }
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23778 $as_echo "$gcc_cv_objdump" >&6; }
23781 # Figure out what readelf we will be using.
23782 if ${gcc_cv_readelf+:} false
; then :
23786 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23787 && test -f ..
/binutils
/Makefile \
23788 && test x
$build = x
$host; then
23789 # Single tree build which includes binutils.
23790 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23791 elif test -x readelf
$build_exeext; then
23792 gcc_cv_readelf
=.
/readelf
$build_exeext
23793 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23794 gcc_cv_readelf
="$READELF_FOR_TARGET"
23796 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23797 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23799 $as_echo_n "checking for $ac_word... " >&6; }
23800 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23801 $as_echo_n "(cached) " >&6
23803 case $gcc_cv_readelf in
23805 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23809 for as_dir
in $PATH
23812 test -z "$as_dir" && as_dir
=.
23813 for ac_exec_ext
in '' $ac_executable_extensions; do
23814 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23815 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23826 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23827 if test -n "$gcc_cv_readelf"; then
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23829 $as_echo "$gcc_cv_readelf" >&6; }
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23832 $as_echo "no" >&6; }
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23840 $as_echo_n "checking what readelf to use... " >&6; }
23841 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23842 # Single tree build which includes binutils.
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23844 $as_echo "newly built readelf" >&6; }
23845 elif test x
$gcc_cv_readelf = x
; then
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23847 $as_echo "not found" >&6; }
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23850 $as_echo "$gcc_cv_readelf" >&6; }
23853 # Figure out what otool we will be using.
23854 if ${gcc_cv_otool+:} false
; then :
23858 if test -x otool
$build_exeext; then
23859 gcc_cv_otool
=.
/otool
$build_exeext
23860 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23861 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23863 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23864 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23866 $as_echo_n "checking for $ac_word... " >&6; }
23867 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23868 $as_echo_n "(cached) " >&6
23870 case $gcc_cv_otool in
23872 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23876 for as_dir
in $PATH
23879 test -z "$as_dir" && as_dir
=.
23880 for ac_exec_ext
in '' $ac_executable_extensions; do
23881 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23882 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23893 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23894 if test -n "$gcc_cv_otool"; then
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23896 $as_echo "$gcc_cv_otool" >&6; }
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23899 $as_echo "no" >&6; }
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23907 $as_echo_n "checking what otool to use... " >&6; }
23908 if test x
$gcc_cv_otool = x
; then
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23910 $as_echo "not found" >&6; }
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23913 $as_echo "$gcc_cv_otool" >&6; }
23916 # Figure out the dsymutil we will use.
23917 if ${gcc_cv_dsymutil+:} false
; then :
23921 if test -x "$DEFAULT_DSYMUTIL"; then
23922 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23923 elif test -x dsymutil
$build_exeext; then
23924 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23925 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23926 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23927 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23928 gcc_cv_dsymutil
=$DSYMUTIL
23930 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23931 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23933 $as_echo_n "checking for $ac_word... " >&6; }
23934 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23935 $as_echo_n "(cached) " >&6
23937 case $gcc_cv_dsymutil in
23939 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23943 for as_dir
in $PATH
23946 test -z "$as_dir" && as_dir
=.
23947 for ac_exec_ext
in '' $ac_executable_extensions; do
23948 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23949 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23960 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23961 if test -n "$gcc_cv_dsymutil"; then
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23963 $as_echo "$gcc_cv_dsymutil" >&6; }
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23966 $as_echo "no" >&6; }
23973 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23975 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23976 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23977 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23981 # Figure out what assembler alignment features are present.
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23983 $as_echo_n "checking assembler flags... " >&6; }
23984 if ${gcc_cv_as_flags+:} false
; then :
23985 $as_echo_n "(cached) " >&6
23988 i
[34567]86-*-linux*)
23989 gcc_cv_as_flags
=--32
23991 x86_64-
*-linux-gnux32)
23992 gcc_cv_as_flags
=--x32
23995 gcc_cv_as_flags
=--64
23997 powerpc
*-*-darwin*)
23998 gcc_cv_as_flags
="-arch ppc"
24001 gcc_cv_as_flags
=" "
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
24006 $as_echo "$gcc_cv_as_flags" >&6; }
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
24009 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
24010 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
24011 $as_echo_n "(cached) " >&6
24013 gcc_cv_as_balign_and_p2align
=no
24014 if test x
$gcc_cv_as != x
; then
24015 $as_echo '.balign 4
24016 .p2align 2' > conftest.s
24017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24019 (eval $ac_try) 2>&5
24021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24022 test $ac_status = 0; }; }
24024 gcc_cv_as_balign_and_p2align
=yes
24026 echo "configure: failed program was" >&5
24029 rm -f conftest.o conftest.s
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
24033 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
24034 if test $gcc_cv_as_balign_and_p2align = yes; then
24036 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24042 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24043 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
24044 $as_echo_n "(cached) " >&6
24046 gcc_cv_as_max_skip_p2align
=no
24047 if test x
$gcc_cv_as != x
; then
24048 $as_echo '.p2align 4,,7' > conftest.s
24049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24051 (eval $ac_try) 2>&5
24053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24054 test $ac_status = 0; }; }
24056 gcc_cv_as_max_skip_p2align
=yes
24058 echo "configure: failed program was" >&5
24061 rm -f conftest.o conftest.s
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24065 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24066 if test $gcc_cv_as_max_skip_p2align = yes; then
24068 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24074 $as_echo_n "checking assembler for .literal16... " >&6; }
24075 if ${gcc_cv_as_literal16+:} false
; then :
24076 $as_echo_n "(cached) " >&6
24078 gcc_cv_as_literal16
=no
24079 if test x
$gcc_cv_as != x
; then
24080 $as_echo '.literal16' > conftest.s
24081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24083 (eval $ac_try) 2>&5
24085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24086 test $ac_status = 0; }; }
24088 gcc_cv_as_literal16
=yes
24090 echo "configure: failed program was" >&5
24093 rm -f conftest.o conftest.s
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24097 $as_echo "$gcc_cv_as_literal16" >&6; }
24098 if test $gcc_cv_as_literal16 = yes; then
24100 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24106 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24107 if ${gcc_cv_as_subsection_m1+:} false
; then :
24108 $as_echo_n "(cached) " >&6
24110 gcc_cv_as_subsection_m1
=no
24111 if test x
$gcc_cv_as != x
; then
24112 $as_echo 'conftest_label1: .word 0
24114 conftest_label2: .word 0
24115 .previous' > conftest.s
24116 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24118 (eval $ac_try) 2>&5
24120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24121 test $ac_status = 0; }; }
24123 if test x
$gcc_cv_nm != x
; then
24124 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
24125 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
24126 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
24128 else gcc_cv_as_subsection_m1
=yes
24130 rm -f conftest.nm1 conftest.nm2
24133 echo "configure: failed program was" >&5
24136 rm -f conftest.o conftest.s
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24140 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24141 if test $gcc_cv_as_subsection_m1 = yes; then
24143 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24149 $as_echo_n "checking assembler for .weak... " >&6; }
24150 if ${gcc_cv_as_weak+:} false
; then :
24151 $as_echo_n "(cached) " >&6
24154 if test x
$gcc_cv_as != x
; then
24155 $as_echo ' .weak foobar' > conftest.s
24156 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24158 (eval $ac_try) 2>&5
24160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24161 test $ac_status = 0; }; }
24165 echo "configure: failed program was" >&5
24168 rm -f conftest.o conftest.s
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24172 $as_echo "$gcc_cv_as_weak" >&6; }
24173 if test $gcc_cv_as_weak = yes; then
24175 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24181 $as_echo_n "checking assembler for .weakref... " >&6; }
24182 if ${gcc_cv_as_weakref+:} false
; then :
24183 $as_echo_n "(cached) " >&6
24185 gcc_cv_as_weakref
=no
24186 if test x
$gcc_cv_as != x
; then
24187 $as_echo ' .weakref foobar, barfnot' > conftest.s
24188 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24190 (eval $ac_try) 2>&5
24192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24193 test $ac_status = 0; }; }
24195 gcc_cv_as_weakref
=yes
24197 echo "configure: failed program was" >&5
24200 rm -f conftest.o conftest.s
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24204 $as_echo "$gcc_cv_as_weakref" >&6; }
24205 if test $gcc_cv_as_weakref = yes; then
24207 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24213 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24214 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
24215 $as_echo_n "(cached) " >&6
24217 gcc_cv_as_nsubspa_comdat
=no
24218 if test x
$gcc_cv_as != x
; then
24219 $as_echo ' .SPACE $TEXT$
24220 .NSUBSPA $CODE$,COMDAT' > conftest.s
24221 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24223 (eval $ac_try) 2>&5
24225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226 test $ac_status = 0; }; }
24228 gcc_cv_as_nsubspa_comdat
=yes
24230 echo "configure: failed program was" >&5
24233 rm -f conftest.o conftest.s
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24237 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24238 if test $gcc_cv_as_nsubspa_comdat = yes; then
24240 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24245 # .hidden needs to be supported in both the assembler and the linker,
24246 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24247 # This is irritatingly difficult to feature test for; we have to check the
24248 # date string after the version number. If we've got an in-tree
24249 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24251 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24252 case "${target}" in
24254 conftest_s
=' .globl foobar,hidden'
24257 conftest_s
=' .hidden foobar
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24262 $as_echo_n "checking assembler for .hidden... " >&6; }
24263 if ${gcc_cv_as_hidden+:} false
; then :
24264 $as_echo_n "(cached) " >&6
24266 gcc_cv_as_hidden
=no
24267 if test x
$gcc_cv_as != x
; then
24268 $as_echo "$conftest_s" > conftest.s
24269 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24271 (eval $ac_try) 2>&5
24273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24274 test $ac_status = 0; }; }
24276 gcc_cv_as_hidden
=yes
24278 echo "configure: failed program was" >&5
24281 rm -f conftest.o conftest.s
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24285 $as_echo "$gcc_cv_as_hidden" >&6; }
24288 case "${target}" in
24290 # Darwin as has some visibility support, though with a different syntax.
24291 gcc_cv_as_hidden
=yes
24295 # gnu_indirect_function type is an extension proposed at
24296 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24297 # selection of function implementation
24298 # Check whether --enable-gnu-indirect-function was given.
24299 if test "${enable_gnu_indirect_function+set}" = set; then :
24300 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24302 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24303 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24306 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24310 case "${target}" in
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24313 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24314 cat > conftest.s
<<EOF
24316 .type foo_resolver, @function
24319 .size foo_resolver, .-foo_resolver
24322 .type foo, %gnu_indirect_function
24323 .set foo, foo_resolver
24326 .type bar, @function
24332 if test x
$gcc_cv_as != x \
24333 && test x
$gcc_cv_ld != x \
24334 && test x
$gcc_cv_readelf != x \
24335 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24336 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24337 && $gcc_cv_readelf --relocs --wide conftest \
24338 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24339 enable_gnu_indirect_function
=yes
24341 rm -f conftest conftest.o conftest.s
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24343 $as_echo "$enable_gnu_indirect_function" >&6; }
24347 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24349 cat >>confdefs.h
<<_ACEOF
24350 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24355 if test $in_tree_ld != yes ; then
24356 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24357 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24358 if test x
"$ld_is_gold" = xyes
; then
24359 # GNU gold --version looks like this:
24361 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24363 # We extract the binutils version which is more familiar and specific
24364 # than the gold version.
24365 ld_vers
=`echo $ld_ver | sed -n \
24366 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24368 # GNU ld --version looks like this:
24370 # GNU ld (GNU Binutils) 2.21.51.20110225
24371 ld_vers
=`echo $ld_ver | sed -n \
24372 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24374 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'`
24375 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24376 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24377 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24379 case "${target}" in
24381 # Solaris 2 ld -V output looks like this for a regular version:
24383 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24385 # but test versions add stuff at the end:
24387 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24389 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24390 # numbers can be used in ld.so.1 feature checks even if a different
24391 # linker is configured.
24392 ld_ver
=`$gcc_cv_ld -V 2>&1`
24393 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24394 ld_vers
=`echo $ld_ver | sed -n \
24395 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24396 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24397 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24405 $as_echo_n "checking linker for .hidden support... " >&6; }
24406 if ${gcc_cv_ld_hidden+:} false
; then :
24407 $as_echo_n "(cached) " >&6
24409 if test $in_tree_ld = yes ; then
24410 gcc_cv_ld_hidden
=no
24411 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 \
24412 && test $in_tree_ld_is_elf = yes; then
24413 gcc_cv_ld_hidden
=yes
24416 gcc_cv_ld_hidden
=yes
24417 if test x
"$ld_is_gold" = xyes
; then
24419 elif test x
"$ld_is_mold" = xyes
; then
24421 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24422 if test 0"$ld_date" -lt 20020404; then
24423 if test -n "$ld_date"; then
24424 # If there was date string, but was earlier than 2002-04-04, fail
24425 gcc_cv_ld_hidden
=no
24426 elif test -z "$ld_vers"; then
24427 # If there was no date string nor ld version number, something is wrong
24428 gcc_cv_ld_hidden
=no
24430 test -z "$ld_vers_patch" && ld_vers_patch
=0
24431 if test "$ld_vers_major" -lt 2; then
24432 gcc_cv_ld_hidden
=no
24433 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24434 gcc_cv_ld_hidden
="no"
24435 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24436 gcc_cv_ld_hidden
=no
24441 case "${target}" in
24443 gcc_cv_ld_hidden
=yes
24446 # Darwin ld has some visibility support.
24447 gcc_cv_ld_hidden
=yes
24449 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24450 gcc_cv_ld_hidden
=yes
24453 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24454 # .symbolic was only added in Solaris 9 12/02.
24455 gcc_cv_ld_hidden
=yes
24458 gcc_cv_ld_hidden
=no
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24465 $as_echo "$gcc_cv_ld_hidden" >&6; }
24466 libgcc_visibility
=no
24469 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24470 libgcc_visibility
=yes
24472 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24477 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24478 gcc_cv_ld_ro_rw_mix
=unknown
24479 if test $in_tree_ld = yes ; then
24480 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 \
24481 && test $in_tree_ld_is_elf = yes; then
24482 gcc_cv_ld_ro_rw_mix
=read-write
24484 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24485 echo '.section myfoosect, "a"' > conftest1.s
24486 echo '.section myfoosect, "aw"' > conftest2.s
24487 echo '.byte 1' >> conftest2.s
24488 echo '.section myfoosect, "a"' > conftest3.s
24489 echo '.byte 0' >> conftest3.s
24490 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24491 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24492 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1; then
24493 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24494 conftest2.o conftest3.o
> /dev
/null
2>&1 \
24495 ||
$gcc_cv_ld -r -o conftest1.so conftest1.o \
24496 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24497 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24498 | sed -e '/myfoosect/!d' -e N`
24499 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24500 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24501 gcc_cv_ld_ro_rw_mix
=read-only
24503 gcc_cv_ld_ro_rw_mix
=read-write
24508 rm -f conftest.
* conftest
[123].
*
24510 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24512 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24516 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24518 # Check whether --enable-initfini-array was given.
24519 if test "${enable_initfini_array+set}" = set; then :
24520 enableval
=$enable_initfini_array;
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24524 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24525 if ${gcc_cv_initfini_array+:} false
; then :
24526 $as_echo_n "(cached) " >&6
24528 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24529 case "${target}" in
24531 if test "$cross_compiling" = yes; then :
24532 gcc_cv_initfini_array
=no
24534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24535 /* end confdefs.h. */
24538 #error Not an ELF OS
24540 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24541 if it can be used. */
24543 int main (void) { return x; }
24544 int foo (void) { x = 0; }
24545 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24548 if ac_fn_cxx_try_run
"$LINENO"; then :
24549 gcc_cv_initfini_array
=yes
24551 gcc_cv_initfini_array
=no
24553 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24554 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24558 gcc_cv_initfini_array
=no
24559 if test $in_tree_ld = yes ; then
24560 if test "$gcc_cv_gld_major_version" -eq 2 \
24561 -a "$gcc_cv_gld_minor_version" -ge 22 \
24562 -o "$gcc_cv_gld_major_version" -gt 2 \
24563 && test $in_tree_ld_is_elf = yes; then
24564 gcc_cv_initfini_array
=yes
24566 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24567 case $target:$gas in
24570 sh_type
='%progbits'
24572 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24574 sh_type
='@progbits'
24576 sparc
*-*-solaris2*:no
)
24578 sh_type
='#progbits'
24582 case "$target:$gnu_ld" in
24584 cat > conftest.s
<<EOF
24585 .section .dtors,$sh_flags,$sh_type
24587 .byte 'A', 'A', 'A', 'A'
24588 .section .ctors,$sh_flags,$sh_type
24590 .byte 'B', 'B', 'B', 'B'
24591 .section .fini_array.65530,$sh_flags,$sh_type
24593 .byte 'C', 'C', 'C', 'C'
24594 .section .init_array.65530,$sh_flags,$sh_type
24596 .byte 'D', 'D', 'D', 'D'
24597 .section .dtors.64528,$sh_flags,$sh_type
24599 .byte 'E', 'E', 'E', 'E'
24600 .section .ctors.64528,$sh_flags,$sh_type
24602 .byte 'F', 'F', 'F', 'F'
24603 .section .fini_array.01005,$sh_flags,$sh_type
24605 .byte 'G', 'G', 'G', 'G'
24606 .section .init_array.01005,$sh_flags,$sh_type
24608 .byte 'H', 'H', 'H', 'H'
24613 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24614 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24615 && $gcc_cv_objdump -s -j .init_array conftest \
24616 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24617 && $gcc_cv_objdump -s -j .fini_array conftest \
24618 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24619 gcc_cv_initfini_array
=yes
24623 # When Solaris ld added constructor priority support, it was
24624 # decided to only handle .init_array.N/.fini_array.N since
24625 # there was no need for backwards compatibility with
24626 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24627 # sections with correct execution order resp. to
24628 # .init_array/.fini_array, while gld merges them into
24629 # .init_array/.fini_array.
24630 cat > conftest.s
<<EOF
24631 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24633 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24634 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24636 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24637 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24639 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24640 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24642 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24647 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24648 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24649 && $gcc_cv_objdump -s -j .init_array conftest \
24650 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24651 && $gcc_cv_objdump -s -j .fini_array conftest \
24652 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24653 gcc_cv_initfini_array
=yes
24657 rm -f conftest conftest.
*
24659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24660 /* end confdefs.h. */
24663 # error Not an ELF OS
24665 #include <stdlib.h>
24666 #if defined __GLIBC_PREREQ
24667 # if __GLIBC_PREREQ (2, 4)
24669 # error GLIBC 2.4 required
24672 # if defined __sun__ && defined __svr4__
24673 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24675 # error The C library not known to support .init_array/.fini_array
24680 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24683 gcc_cv_initfini_array
=no
24685 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24688 case "${target}" in
24689 aarch64
*-linux-gnu*)
24690 # AArch64 postdates glibc support for .init_array/.fini_array,
24691 # so we don't need the preprocessor test above.
24692 gcc_cv_initfini_array
=yes
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24697 $as_echo_n "checking cross compile... guessing... " >&6; }
24698 gcc_cv_initfini_array
=no
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24704 $as_echo "$gcc_cv_initfini_array" >&6; }
24705 enable_initfini_array
=$gcc_cv_initfini_array
24710 cat >>confdefs.h
<<_ACEOF
24711 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24716 # Some assemblers (GNU as for LoongArch) generates relocations for
24717 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
24718 # probing leb128 support then.
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
24722 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
24723 if ${gcc_cv_as_mno_relax+:} false
; then :
24724 $as_echo_n "(cached) " >&6
24726 gcc_cv_as_mno_relax
=no
24727 if test x
$gcc_cv_as != x
; then
24728 $as_echo '.text' > conftest.s
24729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24736 gcc_cv_as_mno_relax
=yes
24738 echo "configure: failed program was" >&5
24741 rm -f conftest.o conftest.s
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
24745 $as_echo "$gcc_cv_as_mno_relax" >&6; }
24746 if test $gcc_cv_as_mno_relax = yes; then
24747 check_leb128_asflags
=-mno-relax
24752 check_leb128_asflags
=
24756 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24757 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24758 # these directives, even when they appear to accept them.
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24760 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24761 if ${gcc_cv_as_leb128+:} false
; then :
24762 $as_echo_n "(cached) " >&6
24764 gcc_cv_as_leb128
=no
24765 if test x
$gcc_cv_as != x
; then
24772 .uleb128 0x8000000000000000
24774 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
24775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24776 (eval $ac_try) 2>&5
24778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24779 test $ac_status = 0; }; }
24782 if test "x$gcc_cv_objdump" != x
; then
24783 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24784 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24785 gcc_cv_as_leb128
=yes
24787 elif test "x$gcc_cv_otool" != x
; then
24788 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24789 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24790 gcc_cv_as_leb128
=yes
24793 # play safe, assume the assembler is broken.
24798 echo "configure: failed program was" >&5
24801 rm -f conftest.o conftest.s
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24805 $as_echo "$gcc_cv_as_leb128" >&6; }
24806 if test $gcc_cv_as_leb128 = yes; then
24808 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24811 if test $gcc_cv_as_leb128 != yes; then
24813 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24817 # Determine if an .eh_frame section is read-only.
24818 gcc_fn_eh_frame_ro
() {
24819 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24820 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24821 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24824 # Check if we have assembler support for unwind directives.
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24826 $as_echo_n "checking assembler for cfi directives... " >&6; }
24827 if ${gcc_cv_as_cfi_directive+:} false
; then :
24828 $as_echo_n "(cached) " >&6
24830 gcc_cv_as_cfi_directive
=no
24831 if test x
$gcc_cv_as != x
; then
24837 .cfi_escape 1, 2, 3, 4, 5
24838 .cfi_endproc' > conftest.s
24839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24841 (eval $ac_try) 2>&5
24843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24844 test $ac_status = 0; }; }
24848 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24849 # read-only and read-write sections, we need to make sure that the
24850 # assembler used emits read-write .eh_frame sections.
24851 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24852 gcc_cv_as_cfi_directive
=yes
24853 elif test "x$gcc_cv_objdump" = x
; then
24854 # No objdump, err on the side of caution.
24855 gcc_cv_as_cfi_directive
=no
24857 if test x
$gas = xyes
; then
24865 sparc
*-*-solaris2.
*)
24866 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24867 if gcc_fn_eh_frame_ro
$as_32_opt \
24868 || gcc_fn_eh_frame_ro
$as_64_opt; then
24869 gcc_cv_as_cfi_directive
=no
24871 gcc_cv_as_cfi_directive
=yes
24874 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24875 # On Solaris/x86, make sure that GCC and assembler agree on using
24876 # read-only .eh_frame sections for 64-bit.
24877 if gcc_fn_eh_frame_ro
$as_32_opt; then
24878 gcc_cv_as_cfi_directive
=no
24879 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24880 gcc_cv_as_cfi_directive
=yes
24882 gcc_cv_as_cfi_directive
=no
24889 gcc_cv_as_cfi_directive
=yes
24893 echo "configure: failed program was" >&5
24896 rm -f conftest.o conftest.s
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24900 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24903 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24905 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24906 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24907 $as_echo_n "(cached) " >&6
24909 gcc_cv_as_cfi_advance_working
=no
24910 if test x
$gcc_cv_as != x
; then
24913 .cfi_adjust_cfa_offset 64
24915 .cfi_adjust_cfa_offset 128
24916 .cfi_endproc' > conftest.s
24917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24919 (eval $ac_try) 2>&5
24921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24922 test $ac_status = 0; }; }
24925 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24926 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24927 gcc_cv_as_cfi_advance_working
=yes
24931 echo "configure: failed program was" >&5
24934 rm -f conftest.o conftest.s
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24938 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24942 # no objdump, err on the side of caution
24943 gcc_cv_as_cfi_advance_working
=no
24947 cat >>confdefs.h
<<_ACEOF
24948 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24949 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24955 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24956 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24957 $as_echo_n "(cached) " >&6
24959 gcc_cv_as_cfi_personality_directive
=no
24960 if test x
$gcc_cv_as != x
; then
24963 .cfi_personality 0, symbol
24964 .cfi_endproc' > conftest.s
24965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24967 (eval $ac_try) 2>&5
24969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24970 test $ac_status = 0; }; }
24972 gcc_cv_as_cfi_personality_directive
=yes
24974 echo "configure: failed program was" >&5
24977 rm -f conftest.o conftest.s
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24981 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24985 cat >>confdefs.h
<<_ACEOF
24986 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24991 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24992 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24993 $as_echo_n "(cached) " >&6
24995 gcc_cv_as_cfi_sections_directive
=no
24996 if test x
$gcc_cv_as != x
; then
24998 .cfi_sections .debug_frame, .eh_frame
25000 .cfi_endproc' > conftest.s
25001 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25003 (eval $ac_try) 2>&5
25005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25006 test $ac_status = 0; }; }
25009 win32 | pe | cygwin
* | mingw32
*)
25010 # Need to check that we generated the correct relocation for the
25011 # .debug_frame section. This was fixed for binutils 2.21.
25012 gcc_cv_as_cfi_sections_directive
=no
25013 if test "x$gcc_cv_objdump" != x
; then
25014 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
25015 grep -i secrel
> /dev
/null
; then
25016 gcc_cv_as_cfi_sections_directive
=yes
25021 gcc_cv_as_cfi_sections_directive
=yes
25025 echo "configure: failed program was" >&5
25028 rm -f conftest.o conftest.s
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
25032 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
25037 cat >>confdefs.h
<<_ACEOF
25038 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
25042 # GAS versions up to and including 2.11.0 may mis-optimize
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
25045 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
25046 if ${gcc_cv_as_eh_frame+:} false
; then :
25047 $as_echo_n "(cached) " >&6
25049 gcc_cv_as_eh_frame
=no
25050 if test x
$gcc_cv_as != x
; then
25057 .section .eh_frame,"aw",@progbits
25059 .4byte .LECIE1-.LSCIE1
25073 .4byte .LEFDE1-.LASFDE1
25075 .4byte .LASFDE1-__FRAME_BEGIN__
25082 .LEFDE1:' > conftest.s
25083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25085 (eval $ac_try) 2>&5
25087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25088 test $ac_status = 0; }; }
25090 cat > conftest.lit
<<EOF
25091 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25092 0010 01000000 12000000 18000000 00000000 ................
25093 0020 08000000 04080000 0044 .........D
25095 cat > conftest.big
<<EOF
25096 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25097 0010 00000001 00000012 00000018 00000000 ................
25098 0020 00000008 04000000 0844 .........D
25100 # If the assembler didn't choke, and we can objdump,
25101 # and we got the correct data, then succeed.
25102 # The text in the here-document typically retains its unix-style line
25103 # endings, while the output of objdump will use host line endings.
25104 # Therefore, use diff -b for the comparisons.
25105 if test x
$gcc_cv_objdump != x \
25106 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
25107 |
tail -3 > conftest.got \
25108 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
25109 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
25111 gcc_cv_as_eh_frame
=yes
25112 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25114 (eval $ac_try) 2>&5
25116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25117 test $ac_status = 0; }; }; then
25118 gcc_cv_as_eh_frame
=buggy
25120 # Uh oh, what do we do now?
25121 gcc_cv_as_eh_frame
=no
25124 echo "configure: failed program was" >&5
25127 rm -f conftest.o conftest.s
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25131 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25135 if test $gcc_cv_as_eh_frame = buggy
; then
25137 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25141 # Test if the assembler supports the section flag 'e' or #exclude for
25142 # specifying an excluded section.
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25144 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25145 if ${gcc_cv_as_section_exclude_e+:} false
; then :
25146 $as_echo_n "(cached) " >&6
25148 gcc_cv_as_section_exclude_e
=no
25149 if test x
$gcc_cv_as != x
; then
25150 $as_echo '.section foo1,"e"
25151 .byte 0,0,0,0' > conftest.s
25152 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25154 (eval $ac_try) 2>&5
25156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25157 test $ac_status = 0; }; }
25159 gcc_cv_as_section_exclude_e
=yes
25161 echo "configure: failed program was" >&5
25164 rm -f conftest.o conftest.s
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25168 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25171 if test $gcc_cv_as_section_exclude_e = no
; then
25172 case "${target}" in
25173 # Solaris as uses #exclude instead.
25175 case "${target}" in
25176 sparc
*-*-solaris2*)
25177 conftest_s
='.section "foo1", #exclude'
25179 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25180 conftest_s
='.section foo1, #exclude'
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25186 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25187 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
25188 $as_echo_n "(cached) " >&6
25190 gcc_cv_as_section_exclude_hash
=no
25191 if test x
$gcc_cv_as != x
; then
25192 $as_echo "$conftest_s
25193 .byte 0,0,0,0" > conftest.s
25194 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25196 (eval $ac_try) 2>&5
25198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25199 test $ac_status = 0; }; }
25201 gcc_cv_as_section_exclude_hash
=yes
25203 echo "configure: failed program was" >&5
25206 rm -f conftest.o conftest.s
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25210 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25215 cat >>confdefs.h
<<_ACEOF
25216 #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`
25220 # Test if the assembler supports the section flag 'R' for specifying
25221 # section with SHF_GNU_RETAIN.
25222 case "${target}" in
25223 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25224 # assembler supports the section flag 'R', it doesn't mean that
25225 # Solairs ld supports it.
25227 gcc_cv_as_shf_gnu_retain
=no
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25231 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25232 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
25233 $as_echo_n "(cached) " >&6
25235 gcc_cv_as_shf_gnu_retain
=no
25236 if test x
$gcc_cv_as != x
; then
25237 $as_echo '.section .foo,"awR",%progbits
25238 .byte 0' > conftest.s
25239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25241 (eval $ac_try) 2>&5
25243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25244 test $ac_status = 0; }; }
25246 gcc_cv_as_shf_gnu_retain
=yes
25248 echo "configure: failed program was" >&5
25251 rm -f conftest.o conftest.s
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25255 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25261 cat >>confdefs.h
<<_ACEOF
25262 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25266 # Test if the assembler supports the section flag 'o' for specifying
25267 # section with link-order.
25268 case "${target}" in
25269 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25270 # assembler supports the section flag 'o', it doesn't mean that
25271 # Solairs ld supports it.
25273 gcc_cv_as_section_link_order
=no
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25277 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25278 if ${gcc_cv_as_section_link_order+:} false
; then :
25279 $as_echo_n "(cached) " >&6
25281 gcc_cv_as_section_link_order
=no
25282 if test x
$gcc_cv_as != x
; then
25283 $as_echo '.section .foo,"a"
25285 .section __patchable_function_entries,"awo",%progbits,.foo
25286 .byte 0' > conftest.s
25287 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25289 (eval $ac_try) 2>&5
25291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25292 test $ac_status = 0; }; }
25294 gcc_cv_as_section_link_order
=yes
25296 echo "configure: failed program was" >&5
25299 rm -f conftest.o conftest.s
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25303 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25309 cat >>confdefs.h
<<_ACEOF
25310 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25315 $as_echo_n "checking assembler for section merging support... " >&6; }
25316 if ${gcc_cv_as_shf_merge+:} false
; then :
25317 $as_echo_n "(cached) " >&6
25319 gcc_cv_as_shf_merge
=no
25320 if test x
$gcc_cv_as != x
; then
25321 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25322 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }
25329 gcc_cv_as_shf_merge
=yes
25331 echo "configure: failed program was" >&5
25334 rm -f conftest.o conftest.s
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25338 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25341 if test $gcc_cv_as_shf_merge = no
; then
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25343 $as_echo_n "checking assembler for section merging support... " >&6; }
25344 if ${gcc_cv_as_shf_merge+:} false
; then :
25345 $as_echo_n "(cached) " >&6
25347 gcc_cv_as_shf_merge
=no
25348 if test x
$gcc_cv_as != x
; then
25349 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25357 gcc_cv_as_shf_merge
=yes
25359 echo "configure: failed program was" >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25366 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25371 cat >>confdefs.h
<<_ACEOF
25372 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25376 gcc_cv_ld_aligned_shf_merge
=yes
25378 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25380 sparc
*-*-solaris2.11
*)
25381 if test x
"$gnu_ld" = xno \
25382 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25383 gcc_cv_ld_aligned_shf_merge
=no
25388 cat >>confdefs.h
<<_ACEOF
25389 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25394 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25395 if ${gcc_cv_as_comdat_group+:} false
; then :
25396 $as_echo_n "(cached) " >&6
25398 gcc_cv_as_comdat_group
=no
25399 if test x
$gcc_cv_as != x
; then
25400 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25408 gcc_cv_as_comdat_group
=yes
25410 echo "configure: failed program was" >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25417 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25420 if test $gcc_cv_as_comdat_group = yes; then
25421 gcc_cv_as_comdat_group_percent
=no
25422 gcc_cv_as_comdat_group_group
=no
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25425 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25426 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25427 $as_echo_n "(cached) " >&6
25429 gcc_cv_as_comdat_group_percent
=no
25430 if test x
$gcc_cv_as != x
; then
25431 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25434 (eval $ac_try) 2>&5
25436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25437 test $ac_status = 0; }; }
25439 gcc_cv_as_comdat_group_percent
=yes
25441 echo "configure: failed program was" >&5
25444 rm -f conftest.o conftest.s
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25448 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25451 if test $gcc_cv_as_comdat_group_percent = yes; then
25452 gcc_cv_as_comdat_group_group
=no
25454 case "${target}" in
25455 # Sun as uses a completely different syntax.
25457 case "${target}" in
25458 sparc
*-*-solaris2*)
25460 .group foo,".text%foo",#comdat
25461 .section ".text%foo", #alloc,#execinstr,#progbits
25466 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25468 .group foo,.text%foo,#comdat
25469 .section .text%foo, "ax", @progbits
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25476 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25477 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25478 $as_echo_n "(cached) " >&6
25480 gcc_cv_as_comdat_group_group
=no
25481 if test x
$gcc_cv_as != x
; then
25482 $as_echo "$conftest_s" > conftest.s
25483 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25485 (eval $ac_try) 2>&5
25487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25488 test $ac_status = 0; }; }
25490 gcc_cv_as_comdat_group_group
=yes
25492 echo "configure: failed program was" >&5
25495 rm -f conftest.o conftest.s
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25499 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25504 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25505 gcc_cv_as_comdat_group_group
=no
25509 if test x
"$ld_is_gold" = xyes
; then
25511 elif test x
"$ld_is_mold" = xyes
; then
25513 elif test $in_tree_ld = yes ; then
25515 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 \
25516 && test $in_tree_ld_is_elf = yes; then
25519 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25521 if test 0"$ld_date" -lt 20050308; then
25522 if test -n "$ld_date"; then
25523 # If there was date string, but was earlier than 2005-03-08, fail
25525 elif test "$ld_vers_major" -lt 2; then
25527 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25532 case "${target}" in
25533 *-*-solaris2.1
[1-9]*)
25535 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25536 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25539 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25540 # least ld version 1.2267.
25541 if test "$ld_vers_major" -gt 1; then
25543 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25545 elif test "$ld_vers_minor" -ge 2267; then
25550 # Assume linkers other than GNU ld don't support COMDAT group.
25555 # Allow overriding the automatic COMDAT group tests above.
25556 # Check whether --enable-comdat was given.
25557 if test "${enable_comdat+set}" = set; then :
25558 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25561 if test $comdat_group = no
; then
25562 gcc_cv_as_comdat_group
=no
25563 gcc_cv_as_comdat_group_percent
=no
25564 gcc_cv_as_comdat_group_group
=no
25567 cat >>confdefs.h
<<_ACEOF
25568 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25569 || test $gcc_cv_as_comdat_group_percent = yes \
25570 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25574 # Restrict this test to Solaris/x86: other targets define this statically.
25575 case "${target}" in
25576 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25578 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25579 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25580 hidden_linkonce
=yes
25582 case "${target}" in
25583 # Full support for hidden thunks in linkonce sections only appeared in
25584 # Solaris 11/OpenSolaris.
25585 *-*-solaris2.1
[1-9]*)
25586 hidden_linkonce
=yes
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25594 $as_echo "$hidden_linkonce" >&6; }
25596 cat >>confdefs.h
<<_ACEOF
25597 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25604 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25605 if ${gcc_cv_as_is_stmt+:} false
; then :
25606 $as_echo_n "(cached) " >&6
25608 gcc_cv_as_is_stmt
=no
25609 if test x
$gcc_cv_as != x
; then
25612 .loc 1 1 0 is_stmt 1' > conftest.s
25613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25615 (eval $ac_try) 2>&5
25617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25618 test $ac_status = 0; }; }
25620 gcc_cv_as_is_stmt
=yes
25622 echo "configure: failed program was" >&5
25625 rm -f conftest.o conftest.s
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25629 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25630 if test $gcc_cv_as_is_stmt = yes; then
25632 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25638 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25639 if ${gcc_cv_as_discriminator+:} false
; then :
25640 $as_echo_n "(cached) " >&6
25642 gcc_cv_as_discriminator
=no
25643 if test x
$gcc_cv_as != x
; then
25646 .loc 1 1 0 discriminator 1' > conftest.s
25647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25654 gcc_cv_as_discriminator
=yes
25656 echo "configure: failed program was" >&5
25659 rm -f conftest.o conftest.s
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25663 $as_echo "$gcc_cv_as_discriminator" >&6; }
25664 if test $gcc_cv_as_discriminator = yes; then
25666 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25671 # Catch the newlib flag of the same name so we can gate GCC features on it.
25672 # Check whether --enable-newlib-nano-formatted-io was given.
25673 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25674 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25678 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25684 # Thread-local storage - the check is heavily parameterized.
25690 .section ".tdata","awT",@progbits
25693 ldq $27,__tls_get_addr($29) !literal!1
25694 lda $16,foo($29) !tlsgd!1
25695 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25696 ldq $27,__tls_get_addr($29) !literal!2
25697 lda $16,foo($29) !tlsldm!2
25698 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25699 ldq $1,foo($29) !gotdtprel
25700 ldah $2,foo($29) !dtprelhi
25701 lda $3,foo($2) !dtprello
25702 lda $4,foo($29) !dtprel
25703 ldq $1,foo($29) !gottprel
25704 ldah $2,foo($29) !tprelhi
25705 lda $3,foo($2) !tprello
25706 lda $4,foo($29) !tprel'
25707 tls_as_opt
=--fatal-warnings
25711 add_s r0,r0, @foo@tpoff'
25713 cris-
*-*|crisv32-
*-*)
25715 .section ".tdata","awT",@progbits
25720 tls_as_opt
=--fatal-warnings
25724 .section ".tdata","awT",@progbits
25727 call #gettlsoff(x)'
25734 .section ".tdata","awT",@progbits
25738 addil LT%foo-$tls_gdidx$,gp
25739 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25742 addil LT%foo-$tls_ldidx$,gp
25744 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25745 addil LR%foo-$tls_dtpoff$,%ret0
25746 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25748 addil LT%foo-$tls_ieoff$,gp
25749 ldw RT%foo-$tls_ieoff$(%r1),%t2
25752 addil LR%foo-$tls_leoff$,%t1
25753 ldo RR%foo-$tls_leoff$(%r1),%t2'
25754 tls_as_opt
=--fatal-warnings
25758 .section ".tdata","awT",%progbits
25761 .word foo(gottpoff)
25767 i
[34567]86-*-* | x86_64-
*-*)
25769 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25776 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25778 .section .tdata,"awt",@progbits'
25781 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25785 .section ".tdata","awT",@progbits'
25787 tls_as_opt
="--fatal-warnings"
25791 if test x
$on_solaris = xyes
; then
25793 yes) tls_as_opt
="$tls_as_opt --32" ;;
25796 conftest_s
="$conftest_s
25800 leal foo@tlsgd(,%ebx,1), %eax
25801 leal foo@tlsldm(%ebx), %eax
25802 leal foo@dtpoff(%eax), %edx
25803 movl foo@gottpoff(%ebx), %eax
25804 subl foo@gottpoff(%ebx), %eax
25805 addl foo@gotntpoff(%ebx), %eax
25806 movl foo@indntpoff, %eax
25807 movl \$foo@tpoff, %eax
25808 subl \$foo@tpoff, %eax
25809 leal foo@ntpoff(%ecx), %eax"
25812 if test x
$on_solaris = xyes
; then
25814 yes) tls_as_opt
="$tls_as_opt --64" ;;
25815 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25818 conftest_s
="$conftest_s
25822 leaq foo@tlsgd(%rip), %rdi
25823 leaq foo@tlsld(%rip), %rdi
25824 leaq foo@dtpoff(%rax), %rdx
25825 movq foo@gottpoff(%rip), %rax
25826 movq \$foo@tpoff, %rax"
25832 .section ".tdata","awT",@progbits
25835 addl r16 = @ltoff(@dtpmod(foo#)), gp
25836 addl r17 = @ltoff(@dtprel(foo#)), gp
25837 addl r18 = @ltoff(@tprel(foo#)), gp
25838 addl r19 = @dtprel(foo#), gp
25839 adds r21 = @dtprel(foo#), r13
25840 movl r23 = @dtprel(foo#)
25841 addl r20 = @tprel(foo#), gp
25842 adds r22 = @tprel(foo#), r13
25843 movl r24 = @tprel(foo#)'
25844 tls_as_opt
=--fatal-warnings
25848 .section .tdata,"awT",@progbits
25855 tls_as_opt
='--fatal-warnings'
25859 .section .tdata,"awT",@progbits
25863 addik r5,r20,x@TLSGD
25864 addik r5,r20,x@TLSLDM'
25865 tls_as_opt
='--fatal-warnings'
25869 .section .tdata,"awT",@progbits
25873 addiu $4, $28, %tlsgd(x)
25874 addiu $4, $28, %tlsldm(x)
25875 lui $4, %dtprel_hi(x)
25876 addiu $4, $4, %dtprel_lo(x)
25877 lw $4, %gottprel(x)($28)
25878 lui $4, %tprel_hi(x)
25879 addiu $4, $4, %tprel_lo(x)'
25880 tls_as_opt
='-32 --fatal-warnings'
25884 .section .tdata,"awT",@progbits
25889 move.l x@TLSGD(%a5),%a0
25890 move.l x@TLSLDM(%a5),%a0
25891 move.l x@TLSLDO(%a5),%a0
25892 move.l x@TLSIE(%a5),%a0
25893 move.l x@TLSLE(%a5),%a0'
25894 tls_as_opt
='--fatal-warnings'
25898 .section ".tdata","awT",@progbits'
25899 tls_as_opt
="--fatal-warnings"
25903 .section ".tdata","awT",%progbits
25907 add x0, x0, #:tlsgd_lo12:x
25910 tls_as_opt
='--fatal-warnings'
25914 .section ".tdata","awT",@progbits
25917 l.movhi r3, tpoffha(foo)
25919 l.lwz r4, tpofflo(foo)(r3)'
25920 tls_as_opt
=--fatal-warnings
25924 .extern __get_tpointer
25940 .section ".tdata","awT",@progbits
25948 addi 3,2,ld0@got@tlsgd
25954 addi 3,2,x1@got@tlsld
25960 addis 9,3,x2@dtprel@ha
25961 addi 9,9,x2@dtprel@l
25964 ld 9,x3@got@dtprel(2)
25968 tls_as_opt
="-a64 --fatal-warnings"
25972 .section ".tdata","awT",@progbits
25980 addi 3,31,ld0@got@tlsgd
25982 addi 3,31,x1@got@tlsld
25985 addis 9,3,x2@dtprel@ha
25986 addi 9,9,x2@dtprel@l
25987 lwz 9,x3@got@tprel(31)
25990 addis 9,2,x2@tprel@ha
25991 addi 9,9,x2@tprel@l'
25992 tls_as_opt
="-a32 --fatal-warnings"
25996 .section .tdata,"awT",@progbits
26000 call __tls_get_addr'
26001 tls_as_opt
='--fatal-warnings'
26005 .section ".tdata","awT",@progbits
26012 .long foo@GOTNTPOFF
26013 .long foo@INDNTPOFF
26014 l %r1,foo@GOTNTPOFF(%r12)
26015 l %r1,0(%r1):tls_load:foo
26016 bas %r14,0(%r1,%r13):tls_gdcall:foo
26017 bas %r14,0(%r1,%r13):tls_ldcall:foo'
26018 tls_as_opt
="-m31 --fatal-warnings"
26022 .section ".tdata","awT",@progbits
26029 .quad foo@GOTNTPOFF
26030 lg %r1,foo@GOTNTPOFF(%r12)
26031 larl %r1,foo@INDNTPOFF
26032 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
26033 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
26034 tls_as_opt
="-m64 -Aesame --fatal-warnings"
26036 sh-
*-* | sh
[123456789lbe
]*-*-*)
26038 .section ".tdata","awT",@progbits
26046 tls_as_opt
=--fatal-warnings
26050 sparc
*-sun-solaris2.
*)
26057 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
26059 .section ".tdata",#alloc,#write,#tls'
26062 .section ".tdata","awT",@progbits'
26063 tls_as_opt
="-32 --fatal-warnings"
26065 conftest_s
="$conftest_s
26068 sethi %tgd_hi22(foo), %o0
26069 add %o0, %tgd_lo10(foo), %o1
26070 add %l7, %o1, %o0, %tgd_add(foo)
26071 call __tls_get_addr, %tgd_call(foo)
26072 sethi %tldm_hi22(foo), %l1
26073 add %l1, %tldm_lo10(foo), %l2
26074 add %l7, %l2, %o0, %tldm_add(foo)
26075 call __tls_get_addr, %tldm_call(foo)
26076 sethi %tldo_hix22(foo), %l3
26077 xor %l3, %tldo_lox10(foo), %l4
26078 add %o0, %l4, %l5, %tldo_add(foo)
26079 sethi %tie_hi22(foo), %o3
26080 add %o3, %tie_lo10(foo), %o3
26081 ld [%l7 + %o3], %o2, %tie_ld(foo)
26082 add %g7, %o2, %o4, %tie_add(foo)
26083 sethi %tle_hix22(foo), %l1
26084 xor %l1, %tle_lox10(foo), %o5
26085 ld [%g7 + %o5], %o1"
26089 .section ".tdata","awT",@progbits
26092 movi a8, foo@TLSFUNC
26093 movi a10, foo@TLSARG
26094 callx8.tls a8, foo@TLSCALL'
26098 if test "x$enable_tls" = xno
; then
26099 : # TLS explicitly disabled.
26100 elif test "x$enable_tls" = xyes
; then
26101 set_have_as_tls
=yes # TLS explicitly enabled.
26102 elif test -z "$conftest_s"; then
26103 : # If we don't have a check, assume no support.
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26106 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26107 if ${gcc_cv_as_tls+:} false
; then :
26108 $as_echo_n "(cached) " >&6
26111 if test x
$gcc_cv_as != x
; then
26112 $as_echo "$conftest_s" > conftest.s
26113 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26115 (eval $ac_try) 2>&5
26117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26118 test $ac_status = 0; }; }
26122 echo "configure: failed program was" >&5
26125 rm -f conftest.o conftest.s
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26129 $as_echo "$gcc_cv_as_tls" >&6; }
26130 if test $gcc_cv_as_tls = yes; then
26131 set_have_as_tls
=yes
26135 if test $set_have_as_tls = yes ; then
26137 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26141 # Target-specific assembler checks.
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26144 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26145 gcc_cv_ld_static_dynamic
=no
26146 gcc_cv_ld_static_option
='-Bstatic'
26147 gcc_cv_ld_dynamic_option
='-Bdynamic'
26148 if test $in_tree_ld = yes ; then
26149 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
26150 gcc_cv_ld_static_dynamic
=yes
26152 elif test x
$gcc_cv_ld != x
; then
26153 # Check if linker supports -Bstatic/-Bdynamic option
26154 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
26155 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
26156 gcc_cv_ld_static_dynamic
=yes
26159 # AIX ld uses -b flags
26160 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
26161 gcc_cv_ld_static_dynamic
=yes
26162 gcc_cv_ld_static_option
="-bstatic"
26163 gcc_cv_ld_dynamic_option
="-bdynamic"
26165 # HP-UX ld uses -a flags to select between shared and archive.
26167 if test x
"$gnu_ld" = xno
; then
26168 gcc_cv_ld_static_dynamic
=yes
26169 gcc_cv_ld_static_option
="-aarchive_shared"
26170 gcc_cv_ld_dynamic_option
="-adefault"
26173 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26175 gcc_cv_ld_static_dynamic
=yes
26180 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
26182 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26185 cat >>confdefs.h
<<_ACEOF
26186 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26190 cat >>confdefs.h
<<_ACEOF
26191 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26196 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26199 $as_echo_n "checking linker --version-script option... " >&6; }
26200 gcc_cv_ld_version_script
=no
26201 ld_version_script_option
=''
26202 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26203 gcc_cv_ld_version_script
=yes
26204 ld_version_script_option
='--version-script'
26205 elif test x
$gcc_cv_ld != x
; then
26207 # Solaris 2 ld always supports -M. It also supports a subset of
26208 # --version-script since Solaris 11.4, but requires
26209 # -z gnu-version-script-compat to activate.
26211 gcc_cv_ld_version_script
=yes
26212 ld_version_script_option
='-M'
26216 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26218 $as_echo "$gcc_cv_ld_version_script" >&6; }
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26222 $as_echo_n "checking linker soname option... " >&6; }
26223 gcc_cv_ld_soname
=no
26224 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26225 gcc_cv_ld_soname
=yes
26226 ld_soname_option
='-soname'
26227 elif test x
$gcc_cv_ld != x
; then
26230 gcc_cv_ld_soname
=yes
26231 ld_soname_option
='-install_name'
26233 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26234 # ld compatiblity since some Solaris 10 update.
26236 gcc_cv_ld_soname
=yes
26237 ld_soname_option
='-h'
26241 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26243 $as_echo "$gcc_cv_ld_soname" >&6; }
26246 if test x
"$demangler_in_ld" = xyes
; then
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26248 $as_echo_n "checking linker --demangle support... " >&6; }
26249 gcc_cv_ld_demangle
=no
26250 if test $in_tree_ld = yes; then
26251 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 \
26252 gcc_cv_ld_demangle
=yes
26254 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26255 # Check if the GNU linker supports --demangle option
26256 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26257 gcc_cv_ld_demangle
=yes
26260 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26262 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26266 $as_echo "$gcc_cv_ld_demangle" >&6; }
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26270 $as_echo_n "checking linker plugin support... " >&6; }
26271 gcc_cv_lto_plugin
=0
26272 if test -f liblto_plugin.la
; then
26273 save_ld_ver
="$ld_ver"
26274 save_ld_vers_major
="$ld_vers_major"
26275 save_ld_vers_minor
="$ld_vers_minor"
26276 save_ld_is_gold
="$ld_is_gold"
26280 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26282 # FIXME: ld_is_gold?
26283 ld_vers_major
="$gcc_cv_gld_major_version"
26284 ld_vers_minor
="$gcc_cv_gld_minor_version"
26286 # Determine plugin linker version.
26287 # FIXME: Partial duplicate from above, generalize.
26288 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26289 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26290 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26292 ld_vers
=`echo $ld_ver | sed -n \
26293 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26295 ld_vers
=`echo $ld_ver | sed -n \
26296 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26298 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26299 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26303 # Determine plugin support.
26304 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26305 # Require GNU ld or gold 2.21+ for plugin support by default.
26306 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26307 gcc_cv_lto_plugin
=2
26308 elif test "$ld_is_mold" = yes; then
26309 gcc_cv_lto_plugin
=2
26310 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26311 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26312 gcc_cv_lto_plugin
=1
26316 ld_ver
="$save_ld_ver"
26317 ld_vers_major
="$save_ld_vers_major"
26318 ld_vers_minor
="$save_ld_vers_minor"
26319 ld_is_gold
="$save_ld_is_gold"
26322 cat >>confdefs.h
<<_ACEOF
26323 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26327 $as_echo "$gcc_cv_lto_plugin" >&6; }
26329 # Target OS-specific assembler checks.
26331 case "$target_os" in
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26334 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26335 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26336 $as_echo_n "(cached) " >&6
26338 gcc_cv_as_mmacosx_version_min
=no
26339 if test x
$gcc_cv_as != x
; then
26340 $as_echo '.text' > conftest.s
26341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26343 (eval $ac_try) 2>&5
26345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26346 test $ac_status = 0; }; }
26348 gcc_cv_as_mmacosx_version_min
=yes
26350 echo "configure: failed program was" >&5
26353 rm -f conftest.o conftest.s
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26357 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26358 if test $gcc_cv_as_mmacosx_version_min = yes; then
26360 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26367 # Target CPU-specific assembler checks.
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26372 $as_echo_n "checking assembler for -mabi option... " >&6; }
26373 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26374 $as_echo_n "(cached) " >&6
26376 gcc_cv_as_aarch64_mabi
=no
26377 if test x
$gcc_cv_as != x
; then
26378 $as_echo '.text' > conftest.s
26379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26381 (eval $ac_try) 2>&5
26383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26384 test $ac_status = 0; }; }
26386 gcc_cv_as_aarch64_mabi
=yes
26388 echo "configure: failed program was" >&5
26391 rm -f conftest.o conftest.s
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26395 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26398 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26400 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26403 if test x
$with_abi = xilp32
; then
26404 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26405 Upgrade the Assembler." "$LINENO" 5
26407 if test x
"$with_multilib_list" = xdefault
; then
26408 TM_MULTILIB_CONFIG
=lp64
26410 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26411 for aarch64_multilib
in ${aarch64_multilibs}; do
26412 case ${aarch64_multilib} in
26414 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26415 Upgrade the Assembler." "$LINENO" 5
26423 # Check if we have binutils support for relocations types needed by -fpic
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26425 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26426 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26427 $as_echo_n "(cached) " >&6
26429 gcc_cv_as_aarch64_picreloc
=no
26430 if test x
$gcc_cv_as != x
; then
26433 ldr x0, [x2, #:gotpage_lo15:globalsym]
26435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26442 gcc_cv_as_aarch64_picreloc
=yes
26444 echo "configure: failed program was" >&5
26447 rm -f conftest.o conftest.s
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26451 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26452 if test $gcc_cv_as_aarch64_picreloc = yes; then
26454 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26458 # Enable Branch Target Identification Mechanism and Return Address
26459 # Signing by default.
26460 # Check whether --enable-standard-branch-protection was given.
26461 if test "${enable_standard_branch_protection+set}" = set; then :
26462 enableval
=$enable_standard_branch_protection;
26465 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26470 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26471 Valid choices are 'yes' and 'no'." "$LINENO" 5
26477 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26478 # Check whether --enable-fix-cortex-a53-835769 was given.
26479 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26480 enableval
=$enable_fix_cortex_a53_835769;
26483 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26488 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26489 Valid choices are 'yes' and 'no'." "$LINENO" 5
26496 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26497 # Check whether --enable-fix-cortex-a53-843419 was given.
26498 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26499 enableval
=$enable_fix_cortex_a53_843419;
26502 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26507 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26508 Valid choices are 'yes' and 'no'." "$LINENO" 5
26517 # All TARGET_ABI_OSF targets.
26518 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26520 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26521 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26522 $as_echo_n "(cached) " >&6
26524 gcc_cv_as_alpha_explicit_relocs
=no
26525 if test x
$gcc_cv_as != x
; then
26526 $as_echo ' .set nomacro
26528 extbl $3, $2, $3 !lituse_bytoff!1
26529 ldq $2, a($29) !literal!1
26530 ldq $4, b($29) !literal!2
26531 ldq_u $3, 0($2) !lituse_base!1
26532 ldq $27, f($29) !literal!5
26533 jsr $26, ($27), f !lituse_jsr!5
26534 ldah $29, 0($26) !gpdisp!3
26535 lda $0, c($29) !gprel
26536 ldah $1, d($29) !gprelhigh
26537 lda $1, d($1) !gprellow
26538 lda $29, 0($29) !gpdisp!3' > conftest.s
26539 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26541 (eval $ac_try) 2>&5
26543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26544 test $ac_status = 0; }; }
26546 gcc_cv_as_alpha_explicit_relocs
=yes
26548 echo "configure: failed program was" >&5
26551 rm -f conftest.o conftest.s
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26555 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26556 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26558 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26563 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26564 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26565 $as_echo_n "(cached) " >&6
26567 gcc_cv_as_alpha_jsrdirect_relocs
=no
26568 if test x
$gcc_cv_as != x
; then
26569 $as_echo ' .set nomacro
26571 ldq $27, a($29) !literal!1
26572 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26573 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26575 (eval $ac_try) 2>&5
26577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578 test $ac_status = 0; }; }
26580 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26582 echo "configure: failed program was" >&5
26585 rm -f conftest.o conftest.s
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26589 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26590 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26592 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26600 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26601 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26602 $as_echo_n "(cached) " >&6
26604 gcc_cv_as_avr_mlink_relax
=no
26605 if test x
$gcc_cv_as != x
; then
26606 $as_echo '.text' > conftest.s
26607 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26614 gcc_cv_as_avr_mlink_relax
=yes
26616 echo "configure: failed program was" >&5
26619 rm -f conftest.o conftest.s
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26623 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26624 if test $gcc_cv_as_avr_mlink_relax = yes; then
26626 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26632 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26633 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26634 $as_echo_n "(cached) " >&6
26636 gcc_cv_as_avr_mrmw
=no
26637 if test x
$gcc_cv_as != x
; then
26638 $as_echo '.text' > conftest.s
26639 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26641 (eval $ac_try) 2>&5
26643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26644 test $ac_status = 0; }; }
26646 gcc_cv_as_avr_mrmw
=yes
26648 echo "configure: failed program was" >&5
26651 rm -f conftest.o conftest.s
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26655 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26656 if test $gcc_cv_as_avr_mrmw = yes; then
26658 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26664 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26665 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26666 $as_echo_n "(cached) " >&6
26668 gcc_cv_as_avr_mgccisr
=no
26669 if test x
$gcc_cv_as != x
; then
26675 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26677 (eval $ac_try) 2>&5
26679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26680 test $ac_status = 0; }; }
26682 gcc_cv_as_avr_mgccisr
=yes
26684 echo "configure: failed program was" >&5
26687 rm -f conftest.o conftest.s
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26691 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26692 if test $gcc_cv_as_avr_mgccisr = yes; then
26694 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26699 # Check how default linker description file implements .rodata for
26700 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26701 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26703 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26704 cat > conftest.s
<<EOF
26705 .section .rodata,"a",@progbits
26707 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26712 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26714 (eval $ac_try) 2>&5
26716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26717 test $ac_status = 0; }; }
26718 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26720 (eval $ac_try) 2>&5
26722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26723 test $ac_status = 0; }; }
26724 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26730 if test -s conftest.nm
26732 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26734 $as_echo "yes" >&6; }
26736 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26740 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26741 echo "$as_me: nm output was" >&5
26742 cat conftest.nm
>&5
26743 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26744 { $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
26745 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26749 $as_echo "test failed" >&6; }
26750 echo "$as_me: failed program was" >&5
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26753 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26755 rm -f conftest.s conftest.o conftest.elf conftest.nm
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26760 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26761 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26762 $as_echo_n "(cached) " >&6
26764 gcc_cv_as_cris_no_mul_bug
=no
26765 if test x
$gcc_cv_as != x
; then
26766 $as_echo '.text' > conftest.s
26767 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26769 (eval $ac_try) 2>&5
26771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; }
26774 gcc_cv_as_cris_no_mul_bug
=yes
26776 echo "configure: failed program was" >&5
26779 rm -f conftest.o conftest.s
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26783 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26784 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26786 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26794 $as_echo_n "checking assembler for -relax option... " >&6; }
26795 if ${gcc_cv_as_sparc_relax+:} false
; then :
26796 $as_echo_n "(cached) " >&6
26798 gcc_cv_as_sparc_relax
=no
26799 if test x
$gcc_cv_as != x
; then
26800 $as_echo '.text' > conftest.s
26801 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26803 (eval $ac_try) 2>&5
26805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26806 test $ac_status = 0; }; }
26808 gcc_cv_as_sparc_relax
=yes
26810 echo "configure: failed program was" >&5
26813 rm -f conftest.o conftest.s
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26817 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26818 if test $gcc_cv_as_sparc_relax = yes; then
26820 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26826 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26827 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26828 $as_echo_n "(cached) " >&6
26830 gcc_cv_as_sparc_gotdata_op
=no
26831 if test x
$gcc_cv_as != x
; then
26837 sethi %gdop_hix22(foo), %g1
26838 xor %g1, %gdop_lox10(foo), %g1
26839 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26840 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26842 (eval $ac_try) 2>&5
26844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; }
26847 if test x
$gcc_cv_ld != x \
26848 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26849 if test x
$gcc_cv_objdump != x
; then
26850 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26851 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26852 gcc_cv_as_sparc_gotdata_op
=no
26854 gcc_cv_as_sparc_gotdata_op
=yes
26860 echo "configure: failed program was" >&5
26863 rm -f conftest.o conftest.s
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26867 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26868 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26870 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26876 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26877 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26878 $as_echo_n "(cached) " >&6
26880 gcc_cv_as_sparc_ua_pcrel
=no
26881 if test x
$gcc_cv_as != x
; then
26888 .uaword %r_disp32(foo)' > conftest.s
26889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26896 if test x
$gcc_cv_ld != x \
26897 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26898 gcc_cv_as_sparc_ua_pcrel
=yes
26902 echo "configure: failed program was" >&5
26905 rm -f conftest.o conftest.s
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26909 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26910 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26912 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26916 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26917 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26918 $as_echo_n "(cached) " >&6
26920 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26921 if test x
$gcc_cv_as != x
; then
26925 .uaword %r_disp32(foo)
26926 .byte 0x32, 0x33, 0x34
26930 .skip 4' > conftest.s
26931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26933 (eval $ac_try) 2>&5
26935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26936 test $ac_status = 0; }; }
26938 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26939 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26940 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26941 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26942 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26943 |
grep 'DISP32' > /dev
/null
2>&1; then
26946 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26951 echo "configure: failed program was" >&5
26954 rm -f conftest.o conftest.s
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26958 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26959 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26961 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26967 # unaligned pcrel relocs
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26970 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26971 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26972 $as_echo_n "(cached) " >&6
26974 gcc_cv_as_sparc_offsetable_lo10
=no
26975 if test x
$gcc_cv_as != x
; then
26977 or %g1, %lo(ab) + 12, %g1
26978 or %g1, %lo(ab + 12), %g1' > conftest.s
26979 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }
26986 if test x
$gcc_cv_objdump != x \
26987 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26988 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26989 gcc_cv_as_sparc_offsetable_lo10
=yes
26992 echo "configure: failed program was" >&5
26995 rm -f conftest.o conftest.s
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26999 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
27000 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
27002 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
27008 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
27009 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
27010 $as_echo_n "(cached) " >&6
27012 gcc_cv_as_sparc_fmaf
=no
27013 if test x
$gcc_cv_as != x
; then
27015 .register %g2, #scratch
27016 .register %g3, #scratch
27018 fmaddd %f0, %f2, %f4, %f6
27019 addxccc %g1, %g2, %g3
27020 fsrl32 %f2, %f4, %f8
27021 fnaddd %f10, %f12, %f14' > conftest.s
27022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
27023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27024 (eval $ac_try) 2>&5
27026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27027 test $ac_status = 0; }; }
27029 gcc_cv_as_sparc_fmaf
=yes
27031 echo "configure: failed program was" >&5
27034 rm -f conftest.o conftest.s
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
27038 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
27039 if test $gcc_cv_as_sparc_fmaf = yes; then
27041 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
27047 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
27048 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
27049 $as_echo_n "(cached) " >&6
27051 gcc_cv_as_sparc_sparc4
=no
27052 if test x
$gcc_cv_as != x
; then
27054 .register %g2, #scratch
27055 .register %g3, #scratch
27058 1: cwbneg %g2, %g3, 1f
27061 aes_kexpand0 %f4, %f6, %f8
27062 des_round %f38, %f40, %f42, %f44
27063 camellia_f %f54, %f56, %f58, %f60
27064 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
27065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
27066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27067 (eval $ac_try) 2>&5
27069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27070 test $ac_status = 0; }; }
27072 gcc_cv_as_sparc_sparc4
=yes
27074 echo "configure: failed program was" >&5
27077 rm -f conftest.o conftest.s
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
27081 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27082 if test $gcc_cv_as_sparc_sparc4 = yes; then
27084 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27090 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27091 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
27092 $as_echo_n "(cached) " >&6
27094 gcc_cv_as_sparc_sparc5
=no
27095 if test x
$gcc_cv_as != x
; then
27097 .register %g2, #scratch
27098 .register %g3, #scratch
27100 subxc %g1, %g2, %g3
27101 fpadd8 %f0, %f2, %f4' > conftest.s
27102 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
27103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27104 (eval $ac_try) 2>&5
27106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27107 test $ac_status = 0; }; }
27109 gcc_cv_as_sparc_sparc5
=yes
27111 echo "configure: failed program was" >&5
27114 rm -f conftest.o conftest.s
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27118 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27119 if test $gcc_cv_as_sparc_sparc5 = yes; then
27121 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27127 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27128 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
27129 $as_echo_n "(cached) " >&6
27131 gcc_cv_as_sparc_sparc6
=no
27132 if test x
$gcc_cv_as != x
; then
27134 .register %g2, #scratch
27135 .register %g3, #scratch
27138 fpsll64x %f0, %f2, %f4' > conftest.s
27139 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27141 (eval $ac_try) 2>&5
27143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27144 test $ac_status = 0; }; }
27146 gcc_cv_as_sparc_sparc6
=yes
27148 echo "configure: failed program was" >&5
27151 rm -f conftest.o conftest.s
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27155 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27156 if test $gcc_cv_as_sparc_sparc6 = yes; then
27158 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27164 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27165 if ${gcc_cv_as_sparc_leon+:} false
; then :
27166 $as_echo_n "(cached) " >&6
27168 gcc_cv_as_sparc_leon
=no
27169 if test x
$gcc_cv_as != x
; then
27171 .register %g2, #scratch
27172 .register %g3, #scratch
27176 casa [%g2] 0xb, %g3, %g1' > conftest.s
27177 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27179 (eval $ac_try) 2>&5
27181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27182 test $ac_status = 0; }; }
27184 gcc_cv_as_sparc_leon
=yes
27186 echo "configure: failed program was" >&5
27189 rm -f conftest.o conftest.s
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27193 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27194 if test $gcc_cv_as_sparc_leon = yes; then
27196 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27202 i
[34567]86-*-* | x86_64-
*-*)
27205 # Full C++ conformance when using a shared libstdc++-v3 requires some
27206 # support from the Cygwin DLL, which in more recent versions exports
27207 # wrappers to aid in interposing and redirecting operators new, delete,
27208 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27209 # are configuring for a version of Cygwin that exports the wrappers.
27210 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
27211 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27212 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
27213 gcc_ac_cygwin_dll_wrappers
=yes
27215 gcc_ac_cygwin_dll_wrappers
=no
27219 # Can't check presence of libc functions during cross-compile, so
27220 # we just have to assume we're building for an up-to-date target.
27221 gcc_ac_cygwin_dll_wrappers
=yes
27224 cat >>confdefs.h
<<_ACEOF
27225 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27230 cygwin
* | pe | mingw32
*)
27231 # Recent binutils allows the three-operand form of ".comm" on PE. This
27232 # definition is used unconditionally to initialise the default state of
27233 # the target option variable that governs usage of the feature.
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27235 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27236 if ${gcc_cv_as_comm_has_align+:} false
; then :
27237 $as_echo_n "(cached) " >&6
27239 gcc_cv_as_comm_has_align
=no
27240 if test x
$gcc_cv_as != x
; then
27241 $as_echo '.comm foo,1,32' > conftest.s
27242 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27244 (eval $ac_try) 2>&5
27246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27247 test $ac_status = 0; }; }
27249 gcc_cv_as_comm_has_align
=yes
27251 echo "configure: failed program was" >&5
27254 rm -f conftest.o conftest.s
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27258 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27262 cat >>confdefs.h
<<_ACEOF
27263 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27266 # Used for DWARF 2 in PE
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27268 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27269 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27270 $as_echo_n "(cached) " >&6
27272 gcc_cv_as_ix86_pe_secrel32
=no
27273 if test x
$gcc_cv_as != x
; then
27277 .secrel32 foo' > conftest.s
27278 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27280 (eval $ac_try) 2>&5
27282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27283 test $ac_status = 0; }; }
27285 if test x
$gcc_cv_ld != x \
27286 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27287 gcc_cv_as_ix86_pe_secrel32
=yes
27291 echo "configure: failed program was" >&5
27294 rm -f conftest.o conftest.s
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27298 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27299 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27301 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27305 # Test if the assembler supports the extended form of the .section
27306 # directive that specifies section alignment. LTO support uses this,
27307 # but normally only after installation, so we warn but don't fail the
27308 # configure if LTO is enabled but the assembler does not support it.
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27310 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27311 if ${gcc_cv_as_section_has_align+:} false
; then :
27312 $as_echo_n "(cached) " >&6
27314 gcc_cv_as_section_has_align
=no
27315 if test x
$gcc_cv_as != x
; then
27316 $as_echo '.section lto_test,"dr0"' > conftest.s
27317 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27319 (eval $ac_try) 2>&5
27321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27322 test $ac_status = 0; }; }
27324 gcc_cv_as_section_has_align
=yes
27326 echo "configure: failed program was" >&5
27329 rm -f conftest.o conftest.s
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27333 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27336 if test x
$gcc_cv_as_section_has_align != xyes
; then
27337 case ",$enable_languages," in
27339 { $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
27340 $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;}
27347 darwin2
* | darwin19
*)
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27349 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27350 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27351 $as_echo_n "(cached) " >&6
27353 gcc_cv_as_mllvm_x86_pad_for_align
=no
27354 if test x
$gcc_cv_as != x
; then
27355 $as_echo '.text' > conftest.s
27356 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27358 (eval $ac_try) 2>&5
27360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27361 test $ac_status = 0; }; }
27363 gcc_cv_as_mllvm_x86_pad_for_align
=yes
27365 echo "configure: failed program was" >&5
27368 rm -f conftest.o conftest.s
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27372 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27373 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27375 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27383 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27384 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27385 $as_echo_n "(cached) " >&6
27387 gcc_cv_as_ix86_xbrace_comment
=no
27388 if test x
$gcc_cv_as != x
; then
27389 $as_echo '.text' > conftest.s
27390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27392 (eval $ac_try) 2>&5
27394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27395 test $ac_status = 0; }; }
27397 gcc_cv_as_ix86_xbrace_comment
=yes
27399 echo "configure: failed program was" >&5
27402 rm -f conftest.o conftest.s
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27406 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27407 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27409 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27415 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27416 if ${gcc_cv_as_ix86_filds+:} false
; then :
27417 $as_echo_n "(cached) " >&6
27419 gcc_cv_as_ix86_filds
=no
27420 if test x
$gcc_cv_as != x
; then
27421 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27422 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27424 (eval $ac_try) 2>&5
27426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27427 test $ac_status = 0; }; }
27429 gcc_cv_as_ix86_filds
=yes
27431 echo "configure: failed program was" >&5
27434 rm -f conftest.o conftest.s
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27438 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27439 if test $gcc_cv_as_ix86_filds = yes; then
27441 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27447 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27448 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27449 $as_echo_n "(cached) " >&6
27451 gcc_cv_as_ix86_fildq
=no
27452 if test x
$gcc_cv_as != x
; then
27453 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27456 (eval $ac_try) 2>&5
27458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27459 test $ac_status = 0; }; }
27461 gcc_cv_as_ix86_fildq
=yes
27463 echo "configure: failed program was" >&5
27466 rm -f conftest.o conftest.s
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27470 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27471 if test $gcc_cv_as_ix86_fildq = yes; then
27473 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27479 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27480 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27481 $as_echo_n "(cached) " >&6
27483 gcc_cv_as_ix86_cmov_sun_syntax
=no
27484 if test x
$gcc_cv_as != x
; then
27485 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27486 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27488 (eval $ac_try) 2>&5
27490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27491 test $ac_status = 0; }; }
27493 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27495 echo "configure: failed program was" >&5
27498 rm -f conftest.o conftest.s
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27502 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27503 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27505 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27511 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27512 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27513 $as_echo_n "(cached) " >&6
27515 gcc_cv_as_ix86_ffreep
=no
27516 if test x
$gcc_cv_as != x
; then
27517 $as_echo 'ffreep %st(1)' > conftest.s
27518 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27520 (eval $ac_try) 2>&5
27522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27523 test $ac_status = 0; }; }
27525 gcc_cv_as_ix86_ffreep
=yes
27527 echo "configure: failed program was" >&5
27530 rm -f conftest.o conftest.s
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27534 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27535 if test $gcc_cv_as_ix86_ffreep = yes; then
27537 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27543 $as_echo_n "checking assembler for .quad directive... " >&6; }
27544 if ${gcc_cv_as_ix86_quad+:} false
; then :
27545 $as_echo_n "(cached) " >&6
27547 gcc_cv_as_ix86_quad
=no
27548 if test x
$gcc_cv_as != x
; then
27549 $as_echo '.quad 0' > conftest.s
27550 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27552 (eval $ac_try) 2>&5
27554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27555 test $ac_status = 0; }; }
27557 gcc_cv_as_ix86_quad
=yes
27559 echo "configure: failed program was" >&5
27562 rm -f conftest.o conftest.s
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27566 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27567 if test $gcc_cv_as_ix86_quad = yes; then
27569 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27575 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27576 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27577 $as_echo_n "(cached) " >&6
27579 gcc_cv_as_ix86_sahf
=no
27580 if test x
$gcc_cv_as != x
; then
27583 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27585 (eval $ac_try) 2>&5
27587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27588 test $ac_status = 0; }; }
27590 gcc_cv_as_ix86_sahf
=yes
27592 echo "configure: failed program was" >&5
27595 rm -f conftest.o conftest.s
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27599 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27600 if test $gcc_cv_as_ix86_sahf = yes; then
27602 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27608 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27609 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27610 $as_echo_n "(cached) " >&6
27612 gcc_cv_as_ix86_interunit_movq
=no
27613 if test x
$gcc_cv_as != x
; then
27616 movq %rax, %xmm0' > conftest.s
27617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27619 (eval $ac_try) 2>&5
27621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27622 test $ac_status = 0; }; }
27624 gcc_cv_as_ix86_interunit_movq
=yes
27626 echo "configure: failed program was" >&5
27629 rm -f conftest.o conftest.s
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27633 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27637 cat >>confdefs.h
<<_ACEOF
27638 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27643 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27644 if ${gcc_cv_as_ix86_hle+:} false
; then :
27645 $as_echo_n "(cached) " >&6
27647 gcc_cv_as_ix86_hle
=no
27648 if test x
$gcc_cv_as != x
; then
27649 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27650 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27652 (eval $ac_try) 2>&5
27654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27655 test $ac_status = 0; }; }
27657 gcc_cv_as_ix86_hle
=yes
27659 echo "configure: failed program was" >&5
27662 rm -f conftest.o conftest.s
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27666 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27667 if test $gcc_cv_as_ix86_hle = yes; then
27669 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27675 $as_echo_n "checking assembler for swap suffix... " >&6; }
27676 if ${gcc_cv_as_ix86_swap+:} false
; then :
27677 $as_echo_n "(cached) " >&6
27679 gcc_cv_as_ix86_swap
=no
27680 if test x
$gcc_cv_as != x
; then
27681 $as_echo 'movl.s %esp, %ebp' > conftest.s
27682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27684 (eval $ac_try) 2>&5
27686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27687 test $ac_status = 0; }; }
27689 gcc_cv_as_ix86_swap
=yes
27691 echo "configure: failed program was" >&5
27694 rm -f conftest.o conftest.s
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27698 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27699 if test $gcc_cv_as_ix86_swap = yes; then
27701 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27707 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27708 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27709 $as_echo_n "(cached) " >&6
27711 gcc_cv_as_ix86_diff_sect_delta
=no
27712 if test x
$gcc_cv_as != x
; then
27713 $as_echo '.section .rodata
27719 .L2: nop' > conftest.s
27720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27722 (eval $ac_try) 2>&5
27724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27725 test $ac_status = 0; }; }
27727 gcc_cv_as_ix86_diff_sect_delta
=yes
27729 echo "configure: failed program was" >&5
27732 rm -f conftest.o conftest.s
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27736 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27737 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27739 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27745 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27746 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27747 $as_echo_n "(cached) " >&6
27749 gcc_cv_as_ix86_rep_lock_prefix
=no
27750 if test x
$gcc_cv_as != x
; then
27751 $as_echo 'rep movsl
27756 lock addl %edi, (%eax,%esi)
27757 lock orl $0, (%esp)' > conftest.s
27758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27760 (eval $ac_try) 2>&5
27762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27763 test $ac_status = 0; }; }
27765 gcc_cv_as_ix86_rep_lock_prefix
=yes
27767 echo "configure: failed program was" >&5
27770 rm -f conftest.o conftest.s
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27774 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27775 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27777 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27783 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27784 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27785 $as_echo_n "(cached) " >&6
27787 gcc_cv_as_ix86_ud2
=no
27788 if test x
$gcc_cv_as != x
; then
27789 $as_echo 'ud2' > conftest.s
27790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27792 (eval $ac_try) 2>&5
27794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27795 test $ac_status = 0; }; }
27797 gcc_cv_as_ix86_ud2
=yes
27799 echo "configure: failed program was" >&5
27802 rm -f conftest.o conftest.s
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27806 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27807 if test $gcc_cv_as_ix86_ud2 = yes; then
27809 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27814 # Enforce 32-bit output with gas and gld.
27815 if test x
$gas = xyes
; then
27816 as_ix86_gas_32_opt
="--32"
27818 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27819 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27820 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27822 ld_ix86_gld_32_opt
="-melf_i386"
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27827 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27828 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27829 $as_echo_n "(cached) " >&6
27831 gcc_cv_as_ix86_tlsgdplt
=no
27832 if test x
$gcc_cv_as != x
; then
27833 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27834 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27836 (eval $ac_try) 2>&5
27838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27839 test $ac_status = 0; }; }
27841 if test x
$gcc_cv_ld != x \
27842 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27843 gcc_cv_as_ix86_tlsgdplt
=yes
27847 echo "configure: failed program was" >&5
27850 rm -f conftest.o conftest.s
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27854 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27855 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27857 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27863 .section .tdata,"aw'$tls_section_flag'",@progbits
27865 .section .text,"ax",@progbits
27866 call tls_ld@tlsldmplt'
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27869 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27870 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27871 $as_echo_n "(cached) " >&6
27873 gcc_cv_as_ix86_tlsldmplt
=no
27874 if test x
$gcc_cv_as != x
; then
27875 $as_echo "$conftest_s" > conftest.s
27876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27878 (eval $ac_try) 2>&5
27880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27881 test $ac_status = 0; }; }
27883 if test x
$gcc_cv_ld != x \
27884 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27885 gcc_cv_as_ix86_tlsldmplt
=yes
27889 echo "configure: failed program was" >&5
27892 rm -f conftest.o conftest.s
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27896 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27900 cat >>confdefs.h
<<_ACEOF
27901 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27906 .section .text,"ax",@progbits
27908 .type _start, @function
27910 leal value@tlsldm(%ebx), %eax
27911 call ___tls_get_addr@plt
27913 .section .tdata,"aw'$tls_section_flag'",@progbits
27914 .type value, @object
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27917 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27918 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27919 $as_echo_n "(cached) " >&6
27921 gcc_cv_as_ix86_tlsldm
=no
27922 if test x
$gcc_cv_as != x
; then
27923 $as_echo "$conftest_s" > conftest.s
27924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27926 (eval $ac_try) 2>&5
27928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27929 test $ac_status = 0; }; }
27931 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27932 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27933 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27934 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27935 gcc_cv_as_ix86_tlsldm
=yes
27940 echo "configure: failed program was" >&5
27943 rm -f conftest.o conftest.s
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27947 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27951 cat >>confdefs.h
<<_ACEOF
27952 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27966 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27967 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27968 $as_echo_n "(cached) " >&6
27970 gcc_cv_as_ix86_got32x
=no
27971 if test x
$gcc_cv_as != x
; then
27972 $as_echo "$conftest_s" > conftest.s
27973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27975 (eval $ac_try) 2>&5
27977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27978 test $ac_status = 0; }; }
27980 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27981 && test x
$gcc_cv_readelf != x \
27982 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27983 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27984 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27985 if $gcc_cv_objdump -dw conftest
2>&1 \
27986 |
grep 0xffffff > /dev
/null
2>&1; then
27987 gcc_cv_as_ix86_got32x
=no
27989 gcc_cv_as_ix86_got32x
=yes
27994 echo "configure: failed program was" >&5
27997 rm -f conftest.o conftest.s
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
28001 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
28005 cat >>confdefs.h
<<_ACEOF
28006 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
28011 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
28012 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
28013 $as_echo_n "(cached) " >&6
28015 gcc_cv_as_ix86_gotoff_in_data
=no
28016 if test x
$gcc_cv_as != x
; then
28021 .long .L0@GOTOFF' > conftest.s
28022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28024 (eval $ac_try) 2>&5
28026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28027 test $ac_status = 0; }; }
28029 gcc_cv_as_ix86_gotoff_in_data
=yes
28031 echo "configure: failed program was" >&5
28034 rm -f conftest.o conftest.s
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
28038 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
28042 cat >>confdefs.h
<<_ACEOF
28043 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
28048 .section .text,"ax",@progbits
28050 .type _start, @function
28052 leal ld@tlsldm(%ecx), %eax
28053 call *___tls_get_addr@GOT(%ecx)
28054 leal gd@tlsgd(%ecx), %eax
28055 call *___tls_get_addr@GOT(%ecx)
28057 .section .tdata,"aw'$tls_section_flag'",@progbits
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
28066 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
28067 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
28068 $as_echo_n "(cached) " >&6
28070 gcc_cv_as_ix86_tls_get_addr_via_got
=no
28071 if test x
$gcc_cv_as != x
; then
28072 $as_echo "$conftest_s" > conftest.s
28073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28075 (eval $ac_try) 2>&5
28077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28078 test $ac_status = 0; }; }
28080 if test x
$gcc_cv_ld != x \
28081 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
28082 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
28086 echo "configure: failed program was" >&5
28089 rm -f conftest.o conftest.s
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28093 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28097 cat >>confdefs.h
<<_ACEOF
28098 #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`
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28105 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28106 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
28107 $as_echo_n "(cached) " >&6
28109 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
28110 if test x
$gcc_cv_as != x
; then
28112 addl r15 = @ltoffx(x#), gp
28114 ld8.mov r16 = [r15], x#
28116 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28118 (eval $ac_try) 2>&5
28120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28121 test $ac_status = 0; }; }
28123 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
28125 echo "configure: failed program was" >&5
28128 rm -f conftest.o conftest.s
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28132 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28133 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28135 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28147 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28148 if ${gcc_cv_as_machine_directive+:} false
; then :
28149 $as_echo_n "(cached) " >&6
28151 gcc_cv_as_machine_directive
=no
28152 if test x
$gcc_cv_as != x
; then
28153 $as_echo ' .machine ppc7400' > conftest.s
28154 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28156 (eval $ac_try) 2>&5
28158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28159 test $ac_status = 0; }; }
28161 gcc_cv_as_machine_directive
=yes
28163 echo "configure: failed program was" >&5
28166 rm -f conftest.o conftest.s
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28170 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28173 if test x
$gcc_cv_as_machine_directive != xyes
; then
28174 echo "*** This target requires an assembler supporting \".machine\"" >&2
28175 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
28176 test x
$build = x
$target && exit 1
28182 *-*-aix*) conftest_s
=' .machine "pwr5"
28185 *-*-darwin*) conftest_s
=' .text
28187 *) conftest_s
=' .machine power4
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28193 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28194 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
28195 $as_echo_n "(cached) " >&6
28197 gcc_cv_as_powerpc_mfcrf
=no
28198 if test x
$gcc_cv_as != x
; then
28199 $as_echo "$conftest_s" > conftest.s
28200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28202 (eval $ac_try) 2>&5
28204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205 test $ac_status = 0; }; }
28207 gcc_cv_as_powerpc_mfcrf
=yes
28209 echo "configure: failed program was" >&5
28212 rm -f conftest.o conftest.s
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28216 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28217 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28219 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28225 *-*-aix*) conftest_s
=' .csect .text[PR]
28227 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28231 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28232 *) conftest_s
=' .text
28234 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28238 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28239 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
28240 $as_echo_n "(cached) " >&6
28242 gcc_cv_as_powerpc_rel16
=no
28243 if test x
$gcc_cv_as != x
; then
28244 $as_echo "$conftest_s" > conftest.s
28245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28247 (eval $ac_try) 2>&5
28249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28250 test $ac_status = 0; }; }
28252 gcc_cv_as_powerpc_rel16
=yes
28254 echo "configure: failed program was" >&5
28257 rm -f conftest.o conftest.s
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28261 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28262 if test $gcc_cv_as_powerpc_rel16 = yes; then
28264 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28270 *-*-aix*) conftest_s
=' .machine "pwr7"
28273 *) conftest_s
=' .machine power7
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28279 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28280 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28281 $as_echo_n "(cached) " >&6
28283 gcc_cv_as_powerpc_vsx
=no
28284 if test x
$gcc_cv_as != x
; then
28285 $as_echo "$conftest_s" > conftest.s
28286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28288 (eval $ac_try) 2>&5
28290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28291 test $ac_status = 0; }; }
28293 gcc_cv_as_powerpc_vsx
=yes
28295 echo "configure: failed program was" >&5
28298 rm -f conftest.o conftest.s
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28302 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28303 if test $gcc_cv_as_powerpc_vsx = yes; then
28305 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28311 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28312 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28313 $as_echo_n "(cached) " >&6
28315 gcc_cv_as_powerpc_gnu_attribute
=no
28316 if test x
$gcc_cv_as != x
; then
28317 $as_echo '.gnu_attribute 4,1' > conftest.s
28318 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28320 (eval $ac_try) 2>&5
28322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28323 test $ac_status = 0; }; }
28325 gcc_cv_as_powerpc_gnu_attribute
=yes
28327 echo "configure: failed program was" >&5
28330 rm -f conftest.o conftest.s
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28334 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28335 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28337 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28343 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28344 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28345 $as_echo_n "(cached) " >&6
28347 gcc_cv_as_powerpc_entry_markers
=no
28348 if test x
$gcc_cv_as != x
; then
28349 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28352 (eval $ac_try) 2>&5
28354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28355 test $ac_status = 0; }; }
28357 gcc_cv_as_powerpc_entry_markers
=yes
28359 echo "configure: failed program was" >&5
28362 rm -f conftest.o conftest.s
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28366 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28367 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28369 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28375 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28376 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28377 $as_echo_n "(cached) " >&6
28379 gcc_cv_as_powerpc_pltseq_markers
=no
28380 if test x
$gcc_cv_as != x
; then
28381 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28382 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28384 (eval $ac_try) 2>&5
28386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28387 test $ac_status = 0; }; }
28389 gcc_cv_as_powerpc_pltseq_markers
=yes
28391 echo "configure: failed program was" >&5
28394 rm -f conftest.o conftest.s
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28398 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28399 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28401 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28409 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28410 if ${gcc_cv_as_aix_ref+:} false
; then :
28411 $as_echo_n "(cached) " >&6
28413 gcc_cv_as_aix_ref
=no
28414 if test x
$gcc_cv_as != x
; then
28415 $as_echo ' .csect stuff[rw]
28421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28423 (eval $ac_try) 2>&5
28425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28426 test $ac_status = 0; }; }
28428 gcc_cv_as_aix_ref
=yes
28430 echo "configure: failed program was" >&5
28433 rm -f conftest.o conftest.s
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28437 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28438 if test $gcc_cv_as_aix_ref = yes; then
28440 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28446 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28447 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28448 $as_echo_n "(cached) " >&6
28450 gcc_cv_as_aix_dwloc
=no
28451 if test x
$gcc_cv_as != x
; then
28452 $as_echo ' .dwsect 0xA0000
28456 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28458 (eval $ac_try) 2>&5
28460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28461 test $ac_status = 0; }; }
28463 gcc_cv_as_aix_dwloc
=yes
28465 echo "configure: failed program was" >&5
28468 rm -f conftest.o conftest.s
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28472 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28473 if test $gcc_cv_as_aix_dwloc = yes; then
28475 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28485 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28486 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28487 $as_echo_n "(cached) " >&6
28489 gcc_cv_as_mips_explicit_relocs
=no
28490 if test x
$gcc_cv_as != x
; then
28491 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28494 (eval $ac_try) 2>&5
28496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28497 test $ac_status = 0; }; }
28499 gcc_cv_as_mips_explicit_relocs
=yes
28501 echo "configure: failed program was" >&5
28504 rm -f conftest.o conftest.s
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28508 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28509 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28510 if test x
$target_cpu_default = x
28511 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28512 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28518 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28519 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28520 $as_echo_n "(cached) " >&6
28522 gcc_cv_as_mips_no_shared
=no
28523 if test x
$gcc_cv_as != x
; then
28524 $as_echo 'nop' > conftest.s
28525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28527 (eval $ac_try) 2>&5
28529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28530 test $ac_status = 0; }; }
28532 gcc_cv_as_mips_no_shared
=yes
28534 echo "configure: failed program was" >&5
28537 rm -f conftest.o conftest.s
28540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28541 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28542 if test $gcc_cv_as_mips_no_shared = yes; then
28544 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28550 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28551 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28552 $as_echo_n "(cached) " >&6
28554 gcc_cv_as_mips_gnu_attribute
=no
28555 if test x
$gcc_cv_as != x
; then
28556 $as_echo '.gnu_attribute 4,1' > conftest.s
28557 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28559 (eval $ac_try) 2>&5
28561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28562 test $ac_status = 0; }; }
28564 gcc_cv_as_mips_gnu_attribute
=yes
28566 echo "configure: failed program was" >&5
28569 rm -f conftest.o conftest.s
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28573 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28574 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28576 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28582 $as_echo_n "checking assembler for .module support... " >&6; }
28583 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28584 $as_echo_n "(cached) " >&6
28586 gcc_cv_as_mips_dot_module
=no
28587 if test x
$gcc_cv_as != x
; then
28588 $as_echo '.module mips2
28589 .module fp=xx' > conftest.s
28590 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28592 (eval $ac_try) 2>&5
28594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28595 test $ac_status = 0; }; }
28597 gcc_cv_as_mips_dot_module
=yes
28599 echo "configure: failed program was" >&5
28602 rm -f conftest.o conftest.s
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28606 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28607 if test $gcc_cv_as_mips_dot_module = yes; then
28609 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28613 if test x
$gcc_cv_as_mips_dot_module = xno \
28614 && test x
$with_fp_32 != x
; then
28615 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28619 $as_echo_n "checking assembler for .micromips support... " >&6; }
28620 if ${gcc_cv_as_micromips_support+:} false
; then :
28621 $as_echo_n "(cached) " >&6
28623 gcc_cv_as_micromips_support
=no
28624 if test x
$gcc_cv_as != x
; then
28625 $as_echo '.set micromips' > conftest.s
28626 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28628 (eval $ac_try) 2>&5
28630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28631 test $ac_status = 0; }; }
28633 gcc_cv_as_micromips_support
=yes
28635 echo "configure: failed program was" >&5
28638 rm -f conftest.o conftest.s
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28642 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28643 if test $gcc_cv_as_micromips_support = yes; then
28645 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28651 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28652 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28653 $as_echo_n "(cached) " >&6
28655 gcc_cv_as_mips_dtprelword
=no
28656 if test x
$gcc_cv_as != x
; then
28657 $as_echo '.section .tdata,"awT",@progbits
28661 .dtprelword x+0x8000' > conftest.s
28662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28664 (eval $ac_try) 2>&5
28666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28667 test $ac_status = 0; }; }
28669 gcc_cv_as_mips_dtprelword
=yes
28671 echo "configure: failed program was" >&5
28674 rm -f conftest.o conftest.s
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28678 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28679 if test $gcc_cv_as_mips_dtprelword = yes; then
28681 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28687 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28688 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28689 $as_echo_n "(cached) " >&6
28691 gcc_cv_as_mips_dspr1_mult
=no
28692 if test x
$gcc_cv_as != x
; then
28693 $as_echo ' .set mips32r2
28701 multu $ac3,$4,$5' > conftest.s
28702 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28704 (eval $ac_try) 2>&5
28706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28707 test $ac_status = 0; }; }
28709 gcc_cv_as_mips_dspr1_mult
=yes
28711 echo "configure: failed program was" >&5
28714 rm -f conftest.o conftest.s
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28718 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28719 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28721 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28727 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28728 gcc_cv_as_ld_jalr_reloc
=no
28729 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28730 if test $in_tree_ld = yes ; then
28731 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 \
28732 && test $in_tree_ld_is_elf = yes; then
28733 gcc_cv_as_ld_jalr_reloc
=yes
28735 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28736 echo ' .ent x' > conftest.s
28737 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28738 echo ' lw $25,%call16(y)($28)' >> conftest.s
28739 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28740 echo '1: jalr $25' >> conftest.s
28741 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28742 echo '1: jalr $25' >> conftest.s
28743 echo ' .end x' >> conftest.s
28744 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28745 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28746 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28747 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28748 gcc_cv_as_ld_jalr_reloc
=yes
28754 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28755 if test x
$target_cpu_default = x
; then
28756 target_cpu_default
=MASK_RELAX_PIC_CALLS
28758 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28762 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28765 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28766 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28767 $as_echo_n "(cached) " >&6
28769 gcc_cv_ld_mips_personality_relaxation
=no
28770 if test $in_tree_ld = yes ; then
28771 if test "$gcc_cv_gld_major_version" -eq 2 \
28772 -a "$gcc_cv_gld_minor_version" -ge 21 \
28773 -o "$gcc_cv_gld_major_version" -gt 2; then
28774 gcc_cv_ld_mips_personality_relaxation
=yes
28776 elif test x
$gcc_cv_as != x \
28777 -a x
$gcc_cv_ld != x \
28778 -a x
$gcc_cv_readelf != x
; then
28779 cat > conftest.s
<<EOF
28781 .cfi_personality 0x80,indirect_ptr
28788 .section .data,"aw",@progbits
28792 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28793 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28794 if $gcc_cv_readelf -d conftest
2>&1 \
28795 |
grep TEXTREL
> /dev
/null
2>&1; then
28797 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28798 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28801 gcc_cv_ld_mips_personality_relaxation
=yes
28805 rm -f conftest.s conftest.o conftest
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28808 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28809 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28811 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28816 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28817 if ${gcc_cv_as_mips_nan+:} false
; then :
28818 $as_echo_n "(cached) " >&6
28820 gcc_cv_as_mips_nan
=no
28821 if test x
$gcc_cv_as != x
; then
28822 $as_echo '' > conftest.s
28823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -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_nan
=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_nan" >&5
28839 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28840 if test $gcc_cv_as_mips_nan = yes; then
28842 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28846 if test x
$gcc_cv_as_mips_nan = xno \
28847 && test x
$with_nan != x
; then
28848 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28852 # Earlier GAS versions generically support .gnu_attribute, but the
28853 # msp430 assembler will not do anything with it.
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28855 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28856 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28857 $as_echo_n "(cached) " >&6
28859 gcc_cv_as_msp430_gnu_attribute
=no
28860 if test x
$gcc_cv_as != x
; then
28861 $as_echo '.gnu_attribute 4,1' > conftest.s
28862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28864 (eval $ac_try) 2>&5
28866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28867 test $ac_status = 0; }; }
28869 gcc_cv_as_msp430_gnu_attribute
=yes
28871 echo "configure: failed program was" >&5
28874 rm -f conftest.o conftest.s
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28878 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28879 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28881 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28886 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28887 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28888 $as_echo_n "(cached) " >&6
28890 gcc_cv_as_msp430_mspabi_attribute
=no
28891 if test x
$gcc_cv_as != x
; then
28892 $as_echo '.mspabi_attribute 4,2' > conftest.s
28893 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28895 (eval $ac_try) 2>&5
28897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28898 test $ac_status = 0; }; }
28900 gcc_cv_as_msp430_mspabi_attribute
=yes
28902 echo "configure: failed program was" >&5
28905 rm -f conftest.o conftest.s
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28909 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28910 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28912 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28916 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28918 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28923 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28924 # syntax that is documented in the ABI specification.
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28926 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28927 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28928 $as_echo_n "(cached) " >&6
28930 gcc_cv_as_nios2_gotoff_relocation
=no
28931 if test x
$gcc_cv_as != x
; then
28932 $as_echo ' .extern foo
28934 .long %gotoff(foo)' > 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_nios2_gotoff_relocation
=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_nios2_gotoff_relocation" >&5
28951 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28952 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28954 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28961 $as_echo_n "checking assembler for .attribute support... " >&6; }
28962 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28963 $as_echo_n "(cached) " >&6
28965 gcc_cv_as_riscv_attribute
=no
28966 if test x
$gcc_cv_as != x
; then
28967 $as_echo '.attribute stack_align,4' > conftest.s
28968 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28970 (eval $ac_try) 2>&5
28972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28973 test $ac_status = 0; }; }
28975 gcc_cv_as_riscv_attribute
=yes
28977 echo "configure: failed program was" >&5
28980 rm -f conftest.o conftest.s
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28984 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28985 if test $gcc_cv_as_riscv_attribute = yes; then
28987 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28992 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28993 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28994 $as_echo_n "(cached) " >&6
28996 gcc_cv_as_riscv_isa_spec
=no
28997 if test x
$gcc_cv_as != x
; then
28998 $as_echo '' > conftest.s
28999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
29000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29001 (eval $ac_try) 2>&5
29003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29004 test $ac_status = 0; }; }
29006 gcc_cv_as_riscv_isa_spec
=yes
29008 echo "configure: failed program was" >&5
29011 rm -f conftest.o conftest.s
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
29015 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
29016 if test $gcc_cv_as_riscv_isa_spec = yes; then
29018 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
29023 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
29024 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
29025 $as_echo_n "(cached) " >&6
29027 gcc_cv_as_riscv_march_zifencei
=no
29028 if test x
$gcc_cv_as != x
; then
29029 $as_echo '' > conftest.s
29030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
29031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29032 (eval $ac_try) 2>&5
29034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29035 test $ac_status = 0; }; }
29037 gcc_cv_as_riscv_march_zifencei
=yes
29039 echo "configure: failed program was" >&5
29042 rm -f conftest.o conftest.s
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
29046 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
29047 if test $gcc_cv_as_riscv_march_zifencei = yes; then
29049 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
29056 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
29057 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
29058 $as_echo_n "(cached) " >&6
29060 gcc_cv_as_loongarch_dtprelword
=no
29061 if test x
$gcc_cv_as != x
; then
29062 $as_echo '' > conftest.s
29063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
29064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29065 (eval $ac_try) 2>&5
29067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29068 test $ac_status = 0; }; }
29070 .section .tdata
,"awT",@progbits
29074 .dtprelword x
+0x8000
29076 echo "configure: failed program was" >&5
29079 rm -f conftest.o conftest.s
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
29083 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
29085 if test $gcc_cv_as_loongarch_dtprelword != yes; then
29087 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
29091 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
29092 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
29093 $as_echo_n "(cached) " >&6
29095 gcc_cv_as_loongarch_explicit_relocs
=no
29096 if test x
$gcc_cv_as != x
; then
29097 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
29098 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29100 (eval $ac_try) 2>&5
29102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29103 test $ac_status = 0; }; }
29105 gcc_cv_as_loongarch_explicit_relocs
=yes
29107 echo "configure: failed program was" >&5
29110 rm -f conftest.o conftest.s
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
29114 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29115 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29117 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29122 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29123 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
29124 $as_echo_n "(cached) " >&6
29126 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
29127 if test x
$gcc_cv_as != x
; then
29128 $as_echo '.cfi_startproc
29129 .cfi_personality 0x9b,a
29131 .cfi_endproc' > conftest.s
29132 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29134 (eval $ac_try) 2>&5
29136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29137 test $ac_status = 0; }; }
29139 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
29141 echo "configure: failed program was" >&5
29144 rm -f conftest.o conftest.s
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29148 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29149 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29151 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
29156 $as_echo_n "checking assembler for -mrelax option... " >&6; }
29157 if ${gcc_cv_as_loongarch_relax+:} false
; then :
29158 $as_echo_n "(cached) " >&6
29160 gcc_cv_as_loongarch_relax
=no
29161 if test x
$gcc_cv_as != x
; then
29162 $as_echo '.text' > conftest.s
29163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
29164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29165 (eval $ac_try) 2>&5
29167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29168 test $ac_status = 0; }; }
29170 gcc_cv_as_loongarch_relax
=yes
29172 echo "configure: failed program was" >&5
29175 rm -f conftest.o conftest.s
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
29179 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
29180 if test $gcc_cv_as_loongarch_relax = yes; then
29182 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
29188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29189 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29190 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
29191 $as_echo_n "(cached) " >&6
29193 gcc_cv_as_s390_gnu_attribute
=no
29194 if test x
$gcc_cv_as != x
; then
29195 $as_echo '.gnu_attribute 8,1' > conftest.s
29196 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29198 (eval $ac_try) 2>&5
29200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29201 test $ac_status = 0; }; }
29203 gcc_cv_as_s390_gnu_attribute
=yes
29205 echo "configure: failed program was" >&5
29208 rm -f conftest.o conftest.s
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29212 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29213 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29215 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29220 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29221 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
29222 $as_echo_n "(cached) " >&6
29224 gcc_cv_as_s390_machine_machinemode
=no
29225 if test x
$gcc_cv_as != x
; then
29226 $as_echo ' .machinemode push
29229 .machine pop' > conftest.s
29230 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29232 (eval $ac_try) 2>&5
29234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29235 test $ac_status = 0; }; }
29237 gcc_cv_as_s390_machine_machinemode
=yes
29239 echo "configure: failed program was" >&5
29242 rm -f conftest.o conftest.s
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29246 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29247 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29249 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29254 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29255 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
29256 $as_echo_n "(cached) " >&6
29258 gcc_cv_as_s390_architecture_modifiers
=no
29259 if test x
$gcc_cv_as != x
; then
29260 $as_echo ' .machine z13+vx ' > conftest.s
29261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29263 (eval $ac_try) 2>&5
29265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29266 test $ac_status = 0; }; }
29268 gcc_cv_as_s390_architecture_modifiers
=yes
29270 echo "configure: failed program was" >&5
29273 rm -f conftest.o conftest.s
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29277 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29278 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29280 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29285 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29286 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
29287 $as_echo_n "(cached) " >&6
29289 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
29290 if test x
$gcc_cv_as != x
; then
29291 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29294 (eval $ac_try) 2>&5
29296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29297 test $ac_status = 0; }; }
29299 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29301 echo "configure: failed program was" >&5
29304 rm -f conftest.o conftest.s
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29308 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29309 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29311 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29316 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29317 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
29318 $as_echo_n "(cached) " >&6
29320 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
29321 if test x
$gcc_cv_as != x
; then
29322 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29325 (eval $ac_try) 2>&5
29327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29328 test $ac_status = 0; }; }
29330 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
29332 echo "configure: failed program was" >&5
29335 rm -f conftest.o conftest.s
29338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29339 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29340 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29342 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29350 # Mips, LoongArch and HP-UX need the GNU assembler.
29351 # Linux on IA64 might be able to use the Intel assembler.
29354 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29355 if test x
$gas_flag = xyes \
29356 ||
test x
"$host" != x
"$build" \
29357 ||
test ! -x "$gcc_cv_as" \
29358 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29361 echo "*** This configuration requires the GNU assembler" >&2
29367 # AMD GCN needs the LLVM assembler and linker.
29368 # Test that LLVM is at least 13.0.1.
29371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29372 $as_echo_n "checking llvm assembler version... " >&6; }
29373 gcc_cv_as_version
="unknown"
29374 if test x
$gcc_cv_as != x
; then
29375 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29376 case "$gcc_cv_as_version" in
29377 13.0.
[1-9]*) ;; # 13.0.1+
29378 13.
[1-9]*) ;; # 13.1+
29379 1[4-9]*) ;; # 14..19
29380 [2-9][0-9]*) ;; # 20..99
29381 [1-9][0-9][0-9]*) ;; # 100+
29382 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
29383 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29387 $as_echo "$gcc_cv_as_version, ok" >&6; }
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29394 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29395 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29396 $as_echo_n "(cached) " >&6
29398 gcc_cv_as_arm_option_extensions
=no
29399 if test x
$gcc_cv_as != x
; then
29403 vmov.f32 s0, s1' > conftest.s
29404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29406 (eval $ac_try) 2>&5
29408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29409 test $ac_status = 0; }; }
29411 gcc_cv_as_arm_option_extensions
=yes
29413 echo "configure: failed program was" >&5
29416 rm -f conftest.o conftest.s
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29420 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29421 if test $gcc_cv_as_arm_option_extensions = yes; then
29423 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29429 # ??? Not all targets support dwarf2 debug_line, even within a version
29430 # of gas. Moreover, we need to emit a valid instruction to trigger any
29431 # info to the output file. So, as supported targets are added to gas 2.11,
29432 # add some instruction here to (also) show we expect this might work.
29433 # ??? Once 2.11 is released, probably need to add first known working
29434 # version to the per-target configury.
29435 case "$cpu_type" in
29436 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29437 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29438 | visium | xstormy16 | xtensa
)
29448 if test x
"$insn" != x
; then
29450 .file 1 \"conftest.s\"
29453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29454 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29455 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29456 $as_echo_n "(cached) " >&6
29458 gcc_cv_as_dwarf2_debug_line
=no
29459 if test x
$gcc_cv_as != x
; then
29460 $as_echo "$conftest_s" > conftest.s
29461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29463 (eval $ac_try) 2>&5
29465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29466 test $ac_status = 0; }; }
29468 if test x
$gcc_cv_objdump != x \
29469 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29470 |
grep debug_line
> /dev
/null
2>&1; then
29471 gcc_cv_as_dwarf2_debug_line
=yes
29472 elif test x
$gcc_cv_otool != x \
29473 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29474 |
grep debug_line
> /dev
/null
2>&1; then
29475 gcc_cv_as_dwarf2_debug_line
=yes
29478 echo "configure: failed program was" >&5
29481 rm -f conftest.o conftest.s
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29485 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29489 # The .debug_line file table must be in the exact order that
29490 # we specified the files, since these indices are also used
29491 # by DW_AT_decl_file. Approximate this test by testing if
29492 # the assembler bitches if the same index is assigned twice.
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29494 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29495 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29496 $as_echo_n "(cached) " >&6
29498 gcc_cv_as_dwarf2_file_buggy
=no
29499 if test x
$gcc_cv_as != x
; then
29500 $as_echo ' .file 1 "foo.s"
29501 .file 1 "bar.s"' > conftest.s
29502 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29504 (eval $ac_try) 2>&5
29506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29507 test $ac_status = 0; }; }
29509 gcc_cv_as_dwarf2_file_buggy
=yes
29511 echo "configure: failed program was" >&5
29514 rm -f conftest.o conftest.s
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29518 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29522 if test $gcc_cv_as_dwarf2_debug_line = yes \
29523 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29525 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29528 if test $gcc_cv_as_leb128 = yes; then
29530 .file 1 \"conftest.s\"
29531 .loc 1 3 0 view .LVU1
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29538 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29539 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29540 $as_echo_n "(cached) " >&6
29542 gcc_cv_as_dwarf2_debug_view
=no
29543 if test x
$gcc_cv_as != x
; then
29544 $as_echo "$conftest_s" > conftest.s
29545 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29547 (eval $ac_try) 2>&5
29549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29550 test $ac_status = 0; }; }
29552 gcc_cv_as_dwarf2_debug_view
=yes
29554 echo "configure: failed program was" >&5
29557 rm -f conftest.o conftest.s
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29561 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29562 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29564 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29572 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29573 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29574 $as_echo_n "(cached) " >&6
29576 gcc_cv_as_gdwarf2_flag
=no
29577 if test x
$gcc_cv_as != x
; then
29578 $as_echo "$insn" > conftest.s
29579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29581 (eval $ac_try) 2>&5
29583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29584 test $ac_status = 0; }; }
29586 gcc_cv_as_gdwarf2_flag
=yes
29588 echo "configure: failed program was" >&5
29591 rm -f conftest.o conftest.s
29594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29595 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29596 if test $gcc_cv_as_gdwarf2_flag = yes; then
29598 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29604 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29605 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29606 $as_echo_n "(cached) " >&6
29608 gcc_cv_as_gdwarf_5_flag
=no
29609 if test x
$gcc_cv_as != x
; then
29610 $as_echo "$insn" > conftest.s
29611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29613 (eval $ac_try) 2>&5
29615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29616 test $ac_status = 0; }; }
29618 if test x
$gcc_cv_objdump != x \
29619 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29620 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29621 gcc_cv_as_gdwarf_5_flag
=yes;
29624 echo "configure: failed program was" >&5
29627 rm -f conftest.o conftest.s
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29631 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29632 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29634 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29640 win32 | pe | cygwin
* | mingw32
*)
29641 section_flags
=\"dr
\"
29642 function_type
=".def foo; .scl 2; .type 32; .endef"
29645 section_flags
=\"\",%progbits
29646 function_type
=".type foo, %function"
29647 function_size
=".size foo, .-foo";;
29649 dwarf4_debug_info_size
=0x46
29650 dwarf4_high_pc_form
=7
29651 dwarf4_debug_aranges_size
=0x2c
29653 for dwarf4_addr_size
in 8 4; do
29669 .section .debug_info,$section_flags
29671 .4byte $dwarf4_debug_info_size
29673 .4byte .Ldebug_abbrev0
29674 .byte 0x$dwarf4_addr_size
29676 .ascii \"GNU C17\\0\"
29680 .${dwarf4_addr_size}byte .Ltext0
29681 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29682 .4byte .Ldebug_line0
29688 .${dwarf4_addr_size}byte .LFB0
29689 .${dwarf4_addr_size}byte .LFE0-.LFB0
29693 .section .debug_abbrev,$section_flags
29709 .byte 0x$dwarf4_high_pc_form
29730 .byte 0x$dwarf4_high_pc_form
29736 .section .debug_aranges,$section_flags
29737 .4byte $dwarf4_debug_aranges_size
29739 .4byte .Ldebug_info0
29744 .${dwarf4_addr_size}byte .Ltext0
29745 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29746 .${dwarf4_addr_size}byte 0
29747 .${dwarf4_addr_size}byte 0
29748 .section .debug_line,$section_flags
29750 .4byte .LELT0-.LSLT0
29753 .4byte .LELTP0-.LASLTP0
29781 .byte 0x$dwarf4_line_sz
29783 .${dwarf4_addr_size}byte .LM1
29788 .byte 0x$dwarf4_line_sz
29790 .${dwarf4_addr_size}byte .LM2
29795 .byte 0x$dwarf4_line_sz
29797 .${dwarf4_addr_size}byte .Letext0
29802 .section .debug_str,$section_flags
29806 if test $dwarf4_addr_size = 4; then
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29808 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29809 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29810 $as_echo_n "(cached) " >&6
29812 gcc_cv_as_debug_line_32_flag
=no
29813 if test x
$gcc_cv_as != x
; then
29814 $as_echo "$conftest_s" > conftest.s
29815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29817 (eval $ac_try) 2>&5
29819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29820 test $ac_status = 0; }; }
29822 gcc_cv_as_debug_line_32_flag
=yes
29824 echo "configure: failed program was" >&5
29827 rm -f conftest.o conftest.s
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29831 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29832 if test $gcc_cv_as_debug_line_32_flag = yes; then
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29838 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29839 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29840 $as_echo_n "(cached) " >&6
29842 gcc_cv_as_debug_line_64_flag
=no
29843 if test x
$gcc_cv_as != x
; then
29844 $as_echo "$conftest_s" > conftest.s
29845 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29847 (eval $ac_try) 2>&5
29849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29850 test $ac_status = 0; }; }
29852 gcc_cv_as_debug_line_64_flag
=yes
29854 echo "configure: failed program was" >&5
29857 rm -f conftest.o conftest.s
29860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29861 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29862 if test $gcc_cv_as_debug_line_64_flag = yes; then
29867 if test $dwarf4_success = yes; then
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29870 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29871 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29872 $as_echo_n "(cached) " >&6
29874 gcc_cv_as_dwarf_4_debug_line_flag
=no
29875 if test x
$gcc_cv_as != x
; then
29876 $as_echo "$conftest_s" > conftest.s
29877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29879 (eval $ac_try) 2>&5
29881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29882 test $ac_status = 0; }; }
29884 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29886 echo "configure: failed program was" >&5
29889 rm -f conftest.o conftest.s
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29893 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29894 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29900 dwarf4_debug_info_size
=0x36
29901 dwarf4_high_pc_form
=6
29902 dwarf4_debug_aranges_size
=0x1c
29906 if test $dwarf4_success = yes; then
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29925 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29926 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29927 $as_echo_n "(cached) " >&6
29929 gcc_cv_as_dwarf_4_app_flag
=no
29930 if test x
$gcc_cv_as != x
; then
29931 $as_echo "$conftest_s" > conftest.s
29932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29934 (eval $ac_try) 2>&5
29936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29937 test $ac_status = 0; }; }
29939 gcc_cv_as_dwarf_4_app_flag
=yes
29941 echo "configure: failed program was" >&5
29944 rm -f conftest.o conftest.s
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29948 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29949 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29955 if test $dwarf4_success = yes; then
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29966 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29967 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29968 $as_echo_n "(cached) " >&6
29970 gcc_cv_as_working_gdwarf_n_flag
=no
29971 if test x
$gcc_cv_as != x
; then
29972 $as_echo "$conftest_s" > conftest.s
29973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29975 (eval $ac_try) 2>&5
29977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29978 test $ac_status = 0; }; }
29980 if test x
$gcc_cv_objdump != x \
29981 && $gcc_cv_objdump -W conftest.o
2>&1 \
29982 |
grep conftest.s
> /dev
/null
2>&1; then
29983 gcc_cv_as_working_gdwarf_n_flag
=no
29985 gcc_cv_as_working_gdwarf_n_flag
=yes
29988 echo "configure: failed program was" >&5
29991 rm -f conftest.o conftest.s
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29995 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29998 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
30000 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
30005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
30006 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
30007 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
30008 $as_echo_n "(cached) " >&6
30010 gcc_cv_as_debug_prefix_map_flag
=no
30011 if test x
$gcc_cv_as != x
; then
30012 $as_echo "$insn" > conftest.s
30013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
30014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30015 (eval $ac_try) 2>&5
30017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30018 test $ac_status = 0; }; }
30020 gcc_cv_as_debug_prefix_map_flag
=yes
30022 echo "configure: failed program was" >&5
30025 rm -f conftest.o conftest.s
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
30029 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
30030 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
30032 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
30038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
30039 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
30040 if ${gcc_cv_as_compress_debug+:} false
; then :
30041 $as_echo_n "(cached) " >&6
30043 gcc_cv_as_compress_debug
=no
30044 if test x
$gcc_cv_as != x
; then
30045 $as_echo '' > conftest.s
30046 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30048 (eval $ac_try) 2>&5
30050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30051 test $ac_status = 0; }; }
30053 # gas compiled without zlib cannot compress debug sections and warns
30054 # about it, but still exits successfully. So check for this, too.
30055 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
30057 gcc_cv_as_compress_debug
=0
30058 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
30060 gcc_cv_as_compress_debug
=1
30061 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
30062 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
30063 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
30064 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
30066 gcc_cv_as_compress_debug
=2
30069 gcc_cv_as_compress_debug
=0
30072 echo "configure: failed program was" >&5
30075 rm -f conftest.o conftest.s
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
30079 $as_echo "$gcc_cv_as_compress_debug" >&6; }
30083 cat >>confdefs.h
<<_ACEOF
30084 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
30088 cat >>confdefs.h
<<_ACEOF
30089 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
30093 cat >>confdefs.h
<<_ACEOF
30094 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
30099 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
30100 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
30101 $as_echo_n "(cached) " >&6
30103 gcc_cv_as_lcomm_with_alignment
=no
30104 if test x
$gcc_cv_as != x
; then
30105 $as_echo '.lcomm bar,4,16' > conftest.s
30106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30108 (eval $ac_try) 2>&5
30110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30111 test $ac_status = 0; }; }
30113 gcc_cv_as_lcomm_with_alignment
=yes
30115 echo "configure: failed program was" >&5
30118 rm -f conftest.o conftest.s
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
30122 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
30123 if test $gcc_cv_as_lcomm_with_alignment = yes; then
30125 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
30130 if test x
$with_sysroot = x
&& test x
$host = x
$target \
30131 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
30132 && test "$prefix" != "NONE"; then
30134 cat >>confdefs.h
<<_ACEOF
30135 #define PREFIX_INCLUDE_DIR "$prefix/include"
30140 # Determine the version of glibc, if any, used on the target.
30141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30142 $as_echo_n "checking for target glibc version... " >&6; }
30144 # Check whether --with-glibc-version was given.
30145 if test "${with_glibc_version+set}" = set; then :
30146 withval
=$with_glibc_version;
30147 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30148 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30149 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30151 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
30155 glibc_version_major
=0
30156 glibc_version_minor
=0
30157 if test -f $target_header_dir/features.h \
30158 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30159 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30160 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30161 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30166 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30168 cat >>confdefs.h
<<_ACEOF
30169 #define TARGET_GLIBC_MAJOR $glibc_version_major
30173 cat >>confdefs.h
<<_ACEOF
30174 #define TARGET_GLIBC_MINOR $glibc_version_minor
30178 # Check whether --enable-gnu-unique-object was given.
30179 if test "${enable_gnu_unique_object+set}" = set; then :
30180 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30182 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30183 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30187 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30188 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
30189 $as_echo_n "(cached) " >&6
30191 gcc_cv_as_gnu_unique_object
=no
30192 if test x
$gcc_cv_as != x
; then
30193 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30194 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30196 (eval $ac_try) 2>&5
30198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30199 test $ac_status = 0; }; }
30201 gcc_cv_as_gnu_unique_object
=yes
30203 echo "configure: failed program was" >&5
30206 rm -f conftest.o conftest.s
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30210 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30211 if test $gcc_cv_as_gnu_unique_object = yes; then
30212 # We need to unquote above to to use the definition from config.gcc.
30213 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30215 if test $glibc_version_major -gt 2 \
30216 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30217 enable_gnu_unique_object
=yes
30224 if test x
$enable_gnu_unique_object = xyes
; then
30226 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30231 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30232 if ${gcc_cv_as_line_zero+:} false
; then :
30233 $as_echo_n "(cached) " >&6
30235 gcc_cv_as_line_zero
=no
30236 if test "x$gcc_cv_as" != x
; then
30237 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30238 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30240 (eval $ac_try) 2>&5
30242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30243 test $ac_status = 0; }; } &&
30244 test "x`cat conftest.out`" = x
30246 gcc_cv_as_line_zero
=yes
30248 echo "configure: failed program was" >&5
30250 echo "configure: error output was" >&5
30251 cat conftest.out
>&5
30253 rm -f conftest.o conftest.s conftest.out
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30257 $as_echo "$gcc_cv_as_line_zero" >&6; }
30258 if test "x$gcc_cv_as_line_zero" = xyes
; then
30260 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30265 $as_echo_n "checking support for thin archives... " >&6; }
30266 thin_archive_support
=no
30267 echo 'int main (void) { return 0; }' > conftest.c
30268 if ($AR --version |
sed 1q |
grep "GNU ar" \
30269 && $CC $CFLAGS -c conftest.c \
30270 && $AR rcT conftest.a conftest.o \
30271 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30272 thin_archive_support
=yes
30274 rm -f conftest.c conftest.o conftest.a conftest
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30276 $as_echo "$thin_archive_support" >&6; }
30279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30280 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30281 gcc_cv_ld_eh_frame_hdr
=no
30282 if test $in_tree_ld = yes ; then
30283 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 \
30284 && test $in_tree_ld_is_elf = yes; then
30285 gcc_cv_ld_eh_frame_hdr
=yes
30287 elif test x
$gcc_cv_ld != x
; then
30288 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30289 # Check if linker supports --eh-frame-hdr option
30290 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30291 gcc_cv_ld_eh_frame_hdr
=yes
30296 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30297 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30298 gcc_cv_ld_eh_frame_hdr
=yes
30305 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30307 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30311 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30314 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30315 gcc_cv_ld_eh_frame_ciev3
=no
30316 if test $in_tree_ld = yes ; then
30317 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 \
30318 && test $in_tree_ld_is_elf = yes; then
30319 gcc_cv_ld_eh_frame_ciev3
=yes
30321 elif test x
$gcc_cv_ld != x
; then
30322 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30323 gcc_cv_ld_eh_frame_ciev3
=yes
30324 if test 0"$ld_date" -lt 20040513; then
30325 if test -n "$ld_date"; then
30326 # If there was date string, but was earlier than 2004-05-13, fail
30327 gcc_cv_ld_eh_frame_ciev3
=no
30328 elif test "$ld_vers_major" -lt 2; then
30329 gcc_cv_ld_eh_frame_ciev3
=no
30330 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30331 gcc_cv_ld_eh_frame_ciev3
=no
30337 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30338 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30339 gcc_cv_ld_eh_frame_ciev3
=yes
30346 cat >>confdefs.h
<<_ACEOF
30347 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30351 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30354 $as_echo_n "checking linker position independent executable support... " >&6; }
30356 if test $in_tree_ld = yes ; then
30358 # Full PIE support on Solaris was only introduced in gld 2.26.
30359 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30360 *) gcc_gld_pie_min_version
=15 ;;
30362 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 \
30363 && test $in_tree_ld_is_elf = yes; then
30366 elif test x
$gcc_cv_ld != x
; then
30367 # Check if linker supports -pie option
30368 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30372 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30373 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30380 *-*-solaris2.1
[1-9]*)
30381 # Solaris 11.3 added PIE support.
30382 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30389 if test x
"$gcc_cv_ld_pie" = xyes
; then
30391 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30395 $as_echo "$gcc_cv_ld_pie" >&6; }
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30398 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30399 gcc_cv_ld_pie_copyreloc
=no
30400 if test $gcc_cv_ld_pie = yes ; then
30401 if test $in_tree_ld = yes ; then
30402 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
30403 gcc_cv_ld_pie_copyreloc
=yes
30405 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30406 # Check if linker supports -pie option with copy reloc
30408 i?
86-*-linux* | x86_64-
*-linux*)
30409 cat > conftest1.s
<<EOF
30412 .type a_glob, @object
30417 cat > conftest2.s
<<EOF
30420 .type main, @function
30422 movl %eax, a_glob(%rip)
30425 .section .data.rel,"aw",@progbits
30430 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30431 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30432 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30433 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30434 gcc_cv_ld_pie_copyreloc
=yes
30436 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30442 cat >>confdefs.h
<<_ACEOF
30443 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30447 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30450 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30451 gcc_cv_ld_eh_gc_sections
=no
30452 if test $in_tree_ld = yes ; then
30453 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 \
30454 && test $in_tree_ld_is_elf = yes; then
30455 gcc_cv_ld_eh_gc_sections
=yes
30457 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30458 cat > conftest.s
<<EOF
30461 .type _start, @function
30464 .size _start, .-_start
30465 .section .text.foo,"ax",@progbits
30466 .type foo, @function
30470 .section .gcc_except_table.foo,"a",@progbits
30473 .section .eh_frame,"a",@progbits
30476 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30477 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30478 |
grep "gc-sections option ignored" > /dev
/null
; then
30479 gcc_cv_ld_eh_gc_sections
=no
30480 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30481 |
grep gcc_except_table
> /dev
/null
; then
30482 gcc_cv_ld_eh_gc_sections
=yes
30483 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30484 if test x
$gcc_cv_as_comdat_group != xyes
; then
30485 gcc_cv_ld_eh_gc_sections
=no
30486 cat > conftest.s
<<EOF
30489 .type _start, @function
30492 .size _start, .-_start
30493 .section .gnu.linkonce.t.foo,"ax",@progbits
30494 .type foo, @function
30498 .section .gcc_except_table.foo,"a",@progbits
30501 .section .eh_frame,"a",@progbits
30504 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30505 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30506 |
grep "gc-sections option ignored" > /dev
/null
; then
30507 gcc_cv_ld_eh_gc_sections
=no
30508 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30509 |
grep gcc_except_table
> /dev
/null
; then
30510 gcc_cv_ld_eh_gc_sections
=yes
30516 rm -f conftest.s conftest.o conftest
30520 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30521 gcc_cv_ld_eh_gc_sections
=no
30524 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30526 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30530 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30533 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30534 gcc_cv_ld_eh_gc_sections_bug
=no
30535 if test $in_tree_ld = yes ; then
30536 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 \
30537 && test $in_tree_ld_is_elf = yes; then
30538 gcc_cv_ld_eh_gc_sections_bug
=yes
30540 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
30541 gcc_cv_ld_eh_gc_sections_bug
=yes
30542 cat > conftest.s
<<EOF
30545 .type _start, @function
30548 .size _start, .-_start
30549 .section .text.startup.foo,"ax",@progbits
30550 .type foo, @function
30554 .section .gcc_except_table.foo,"a",@progbits
30557 .section .eh_frame,"a",@progbits
30560 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30561 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30562 |
grep "gc-sections option ignored" > /dev
/null
; then
30564 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30565 |
grep gcc_except_table
> /dev
/null
; then
30566 gcc_cv_ld_eh_gc_sections_bug
=no
30569 rm -f conftest.s conftest.o conftest
30571 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30573 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30577 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30580 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30581 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30582 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
30583 gcc_cv_ld_compress_debug
=1
30584 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30585 # Detect zstd debug section compression support
30586 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
30587 gcc_cv_ld_compress_debug
=2
30590 case "${target}" in
30592 # Introduced in Solaris 11.2.
30593 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30594 gcc_cv_ld_compress_debug
=1
30595 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30597 gcc_cv_ld_compress_debug
=0
30601 # Assume linkers other than GNU ld don't support compessed debug
30603 gcc_cv_ld_compress_debug
=0
30608 cat >>confdefs.h
<<_ACEOF
30609 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30613 cat >>confdefs.h
<<_ACEOF
30614 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30618 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30620 if test x
"$ld64_flag" = x
"yes"; then
30622 # Set defaults for possibly untestable items.
30623 gcc_cv_ld64_export_dynamic
=0
30624 gcc_cv_ld64_platform_version
=0
30625 gcc_cv_ld64_demangle
=0
30627 if test "$build" = "$host"; then
30633 # On Darwin, because of FAT library support, it is often possible to execute
30634 # exes from compatible archs even when the host differs from the build system.
30635 case "$build","$host" in
30636 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30637 darwin_try_test
=1;;
30641 # If the configurer specified a minimum ld64 version to be supported, then use
30642 # that to determine feature support.
30643 if test x
"${gcc_cv_ld64_version}" != x
; then
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30645 $as_echo_n "checking ld64 specified version... " >&6; }
30646 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30648 $as_echo "$gcc_cv_ld64_major" >&6; }
30649 if test "$gcc_cv_ld64_major" -ge 97; then
30650 gcc_cv_ld64_demangle
=1
30652 if test "$gcc_cv_ld64_major" -ge 236; then
30653 gcc_cv_ld64_export_dynamic
=1
30655 if test "$gcc_cv_ld64_major" -ge 512; then
30656 gcc_cv_ld64_platform_version
=1
30658 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30659 # If the version was not specified, try to find it.
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30661 $as_echo_n "checking linker version... " >&6; }
30662 if test x
"${gcc_cv_ld64_version}" = x
; then
30663 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
30664 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30667 $as_echo "$gcc_cv_ld64_version" >&6; }
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
30670 $as_echo_n "checking linker for -demangle support... " >&6; }
30671 gcc_cv_ld64_demangle
=1
30672 if $gcc_cv_ld -demangle < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30673 gcc_cv_ld64_demangle
=0
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
30676 $as_echo "$gcc_cv_ld64_demangle" >&6; }
30678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30679 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30680 gcc_cv_ld64_export_dynamic
=1
30681 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30682 gcc_cv_ld64_export_dynamic
=0
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30685 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30688 $as_echo_n "checking linker for -platform_version support... " >&6; }
30689 gcc_cv_ld64_platform_version
=1
30690 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30691 gcc_cv_ld64_platform_version
=0
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30694 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30697 if test x
"${gcc_cv_ld64_version}" != x
; then
30699 cat >>confdefs.h
<<_ACEOF
30700 #define LD64_VERSION "${gcc_cv_ld64_version}"
30706 cat >>confdefs.h
<<_ACEOF
30707 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
30712 cat >>confdefs.h
<<_ACEOF
30713 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30718 cat >>confdefs.h
<<_ACEOF
30719 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30724 if test x
"$dsymutil_flag" = x
"yes"; then
30726 # If the user specified a dsymutil path, then we will already have the
30727 # version string, otherwise, pick it up.
30728 if test x
"$gcc_cv_dsymutil" = x
; then
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30730 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30731 dsymutil_vers
="tool unspecified"
30732 elif test x
"$dsymutil_vers" = x
; then
30733 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30736 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30738 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30739 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30740 dsymutil_kind
=DWARFUTILS
30741 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30742 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30743 dsymutil_kind
=CLANG
30744 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30745 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30747 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30749 dsymutil_kind
=DET_UNKNOWN
30750 dsymutil_vers
="0.0"
30752 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30753 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30754 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30755 if test x
"${dsymutil_minor}" = x
; then
30758 if test x
"${dsymutil_tiny}" = x
; then
30762 cat >>confdefs.h
<<_ACEOF
30763 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30767 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30771 win32 | pe | cygwin* | mingw32*)
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30773 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30774 gcc_cv_ld_broken_pe_dwarf5=yes
30775 if test $in_tree_ld = yes ; then
30776 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30777 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30778 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30779 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30780 gcc_cv_ld_broken_pe_dwarf5=no
30783 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30784 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30785 gcc_cv_ld_broken_pe_dwarf5=no
30788 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30790 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30794 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30797 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30798 gcc_cv_ld_disable_dynamicbase
=no
30799 if test $in_tree_ld = yes; then
30800 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 \
30801 gcc_cv_ld_disable_dynamicbase
=yes
30804 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30805 gcc_cv_ld_disable_dynamicbase
=yes
30808 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30810 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30814 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30823 $as_echo_n "checking linker --as-needed support... " >&6; }
30824 if ${gcc_cv_ld_as_needed+:} false
; then :
30825 $as_echo_n "(cached) " >&6
30827 gcc_cv_ld_as_needed
=no
30828 gcc_cv_ld_as_needed_option
='--as-needed'
30829 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30830 if test $in_tree_ld = yes ; then
30831 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 \
30832 && test $in_tree_ld_is_elf = yes; then
30833 gcc_cv_ld_as_needed
=yes
30834 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30835 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30836 gcc_cv_ld_no_as_needed_option
='--pop-state'
30839 elif test x
$gcc_cv_ld != x
; then
30840 # Check if linker supports --as-needed and --no-as-needed options
30841 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30842 gcc_cv_ld_as_needed
=yes
30843 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30844 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30845 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30846 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30847 # Use these options only when both ld.bfd and ld.gold support
30848 # --push-state/--pop-state, which unfortunately wasn't added
30849 # at the same time.
30850 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30851 gcc_cv_ld_no_as_needed_option
='--pop-state'
30854 case "$target:$gnu_ld" in
30856 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30858 gcc_cv_ld_as_needed
=yes
30859 gcc_cv_ld_as_needed_option
="-z ignore"
30860 gcc_cv_ld_no_as_needed_option
="-z record"
30864 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30865 # dl_iterate_phdr, i.e. since Solaris 11.
30867 *-*-solaris2.1
[1-9]*)
30869 i?
86-*-* | x86_64-
*-*)
30870 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30871 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30872 gcc_cv_ld_as_needed
=no
30878 gcc_cv_ld_as_needed
=no
30883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30884 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30885 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30887 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30890 cat >>confdefs.h
<<_ACEOF
30891 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30895 cat >>confdefs.h
<<_ACEOF
30896 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30902 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30903 saved_LDFLAGS
="$LDFLAGS"
30904 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30905 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30907 /* end confdefs.h. */
30908 int main(void) {return 0;}
30910 if ac_fn_cxx_try_link
"$LINENO"; then :
30911 gcc_cv_ld_clearcap
=yes; break
30913 gcc_cv_ld_clearcap
=no
30915 rm -f core conftest.err conftest.
$ac_objext \
30916 conftest
$ac_exeext conftest.
$ac_ext
30918 LDFLAGS
="$saved_LDFLAGS"
30919 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30921 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30923 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30927 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30933 emul_name
="-melf32lppc"
30936 emul_name
="-melf32ppc"
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30940 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30941 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30942 $as_echo_n "(cached) " >&6
30944 gcc_cv_ld_ppc_attr
=no
30945 if test x
"$ld_is_gold" = xyes
; then
30946 gcc_cv_ld_ppc_attr
=yes
30947 elif test $in_tree_ld = yes ; then
30948 if test "$gcc_cv_gld_major_version" -eq 2 \
30949 -a "$gcc_cv_gld_minor_version" -ge 28 \
30950 -o "$gcc_cv_gld_major_version" -gt 2; then
30951 gcc_cv_ld_ppc_attr
=yes
30953 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30954 # check that merging the long double .gnu_attribute doesn't warn
30955 cat > conftest1.s
<<EOF
30958 cat > conftest2.s
<<EOF
30961 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30962 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30963 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30964 && test ! -s conftest.err
; then
30965 gcc_cv_ld_ppc_attr
=yes
30967 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30972 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30973 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30975 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30981 case "$target:$tm_file" in
30982 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30985 emul_name
="-melf64lppc"
30988 emul_name
="-melf64ppc"
30991 emul_name
="-melf64lppc_fbsd"
30994 emul_name
="-melf64ppc_fbsd"
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30998 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30999 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
31000 $as_echo_n "(cached) " >&6
31002 gcc_cv_ld_no_dot_syms
=no
31003 if test x
"$ld_is_gold" = xyes
; then
31004 gcc_cv_ld_no_dot_syms
=yes
31005 elif test $in_tree_ld = yes ; then
31006 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
31007 gcc_cv_ld_no_dot_syms
=yes
31009 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31010 cat > conftest1.s
<<EOF
31014 cat > conftest2.s
<<EOF
31015 .section ".opd","aw"
31018 .type foo,@function
31020 .quad .LEfoo,.TOC.@tocbase,0
31026 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
31027 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
31028 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
31029 gcc_cv_ld_no_dot_syms
=yes
31031 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
31036 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
31037 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
31039 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
31043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31044 $as_echo_n "checking linker large toc support... " >&6; }
31045 if ${gcc_cv_ld_large_toc+:} false
; then :
31046 $as_echo_n "(cached) " >&6
31048 gcc_cv_ld_large_toc
=no
31049 if test x
"$ld_is_gold" = xyes
; then
31050 gcc_cv_ld_large_toc
=yes
31051 elif test $in_tree_ld = yes ; then
31052 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
31053 gcc_cv_ld_large_toc
=yes
31055 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31056 cat > conftest.s
<<EOF
31057 .section ".tbss","awT",@nobits
31063 addis 9,13,ie0@got@tprel@ha
31064 ld 9,ie0@got@tprel@l(9)
31066 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
31067 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
31068 gcc_cv_ld_large_toc
=yes
31070 rm -f conftest conftest.o conftest.s
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31075 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31076 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31078 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
31083 $as_echo_n "checking linker toc pointer alignment... " >&6; }
31084 if ${gcc_cv_ld_toc_align+:} false
; then :
31085 $as_echo_n "(cached) " >&6
31087 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
31088 cat > conftest.s
<<EOF
31093 .section .data.rel.ro,"aw",@progbits
31098 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
31099 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
31100 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)) }'`
31102 rm -f conftest conftest.o conftest.s
31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
31107 $as_echo "$gcc_cv_ld_toc_align" >&6; }
31108 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
31110 cat >>confdefs.h
<<_ACEOF
31111 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31121 $as_echo_n "checking linker large toc support... " >&6; }
31122 if ${gcc_cv_ld_large_toc+:} false
; then :
31123 $as_echo_n "(cached) " >&6
31125 gcc_cv_ld_large_toc
=no
31126 if test x
$gcc_cv_as != x
; then
31127 cat > conftest.s
<<EOF
31137 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
31138 gcc_cv_ld_large_toc
=yes
31140 rm -f conftest conftest.o conftest.s
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31145 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31146 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31148 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31155 $as_echo_n "checking linker --build-id support... " >&6; }
31156 if ${gcc_cv_ld_buildid+:} false
; then :
31157 $as_echo_n "(cached) " >&6
31159 gcc_cv_ld_buildid
=no
31160 if test $in_tree_ld = yes ; then
31161 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31162 "$gcc_cv_gld_minor_version" -ge 18 -o \
31163 "$gcc_cv_gld_major_version" -gt 2 \
31164 && test $in_tree_ld_is_elf = yes; then
31165 gcc_cv_ld_buildid
=yes
31167 elif test x
$gcc_cv_ld != x
; then
31168 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
31169 gcc_cv_ld_buildid
=yes
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31174 $as_echo "$gcc_cv_ld_buildid" >&6; }
31175 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31177 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31181 # Check whether --enable-linker-build-id was given.
31182 if test "${enable_linker_build_id+set}" = set; then :
31183 enableval
=$enable_linker_build_id;
31185 enable_linker_build_id
=no
31189 if test x
"$enable_linker_build_id" = xyes
; then
31190 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31192 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31196 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31200 # In binutils 2.21, GNU ld gained support for new emulations fully
31201 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31203 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31204 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
31205 $as_echo_n "(cached) " >&6
31207 gcc_cv_ld_sol2_emulation
=no
31208 if test $in_tree_ld = yes ; then
31209 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31210 "$gcc_cv_gld_minor_version" -ge 21 -o \
31211 "$gcc_cv_gld_major_version" -gt 2 \
31212 && test $in_tree_ld_is_elf = yes; then
31213 gcc_cv_ld_sol2_emulation
=yes
31215 elif test x
$gcc_cv_ld != x
; then
31216 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
31217 grep _sol2
> /dev
/null
; then
31218 gcc_cv_ld_sol2_emulation
=yes
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31223 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31224 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31226 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31231 $as_echo_n "checking linker --sysroot support... " >&6; }
31232 if ${gcc_cv_ld_sysroot+:} false
; then :
31233 $as_echo_n "(cached) " >&6
31235 gcc_cv_ld_sysroot
=no
31236 if test $in_tree_ld = yes ; then
31237 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
31238 gcc_cv_ld_sysroot
=yes
31240 elif test x
$gcc_cv_ld != x
; then
31241 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31242 gcc_cv_ld_sysroot
=yes
31246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31247 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31248 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31250 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31256 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31258 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31259 if ${gcc_cv_solaris_crts+:} false
; then :
31260 $as_echo_n "(cached) " >&6
31262 gcc_cv_solaris_crts
=no
31263 if test x
$host != x
$target; then
31264 if test "x$with_sysroot" = xyes
; then
31265 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31267 target_sysroot
="${with_sysroot}"
31270 target_libdir
="$target_sysroot/usr/lib"
31271 # At the time they were added, gcrt1.o became a symlink for backwards
31272 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31274 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31275 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31277 sparc
*-*-solaris2*)
31278 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31283 $as_echo "$gcc_cv_solaris_crts" >&6; }
31286 if test x
$gcc_cv_solaris_crts = xyes
; then
31288 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31292 # Check whether --enable-libssp was given.
31293 if test "${enable_libssp+set}" = set; then :
31294 enableval
=$enable_libssp; case "${enableval}" in
31298 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31304 # Test for stack protector support in target C library.
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31306 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31307 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31308 $as_echo_n "(cached) " >&6
31310 gcc_cv_libc_provides_ssp
=no
31311 if test "x$enable_libssp" = "xno"; then
31312 gcc_cv_libc_provides_ssp
=yes
31313 elif test "x$enable_libssp" = "xyes"; then
31314 gcc_cv_libc_provides_ssp
=no
31318 # All versions of musl provide stack protector
31319 gcc_cv_libc_provides_ssp
=yes;;
31320 *-*-linux* |
*-*-kfreebsd*-gnu)
31321 # glibc 2.4 and later provides __stack_chk_fail and
31322 # either __stack_chk_guard, or TLS access to stack guard canary.
31324 if test $glibc_version_major -gt 2 \
31325 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31326 gcc_cv_libc_provides_ssp
=yes
31329 if test -f $target_header_dir/features.h \
31330 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31331 $target_header_dir/features.h
> /dev
/null
; then
31332 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31333 $target_header_dir/features.h
> /dev
/null
&& \
31334 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31335 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31336 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31337 gcc_cv_libc_provides_ssp
=yes
31339 # all versions of Bionic support stack protector
31340 elif test -f $target_header_dir/sys
/cdefs.h \
31341 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31342 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31343 gcc_cv_libc_provides_ssp
=yes
31348 # Avoid complicated tests (see
31349 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31350 # simply assert that glibc does provide this, which is true for all
31351 # realistically usable GNU/Hurd configurations.
31352 # All supported versions of musl provide it as well
31353 gcc_cv_libc_provides_ssp
=yes;;
31354 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31355 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31356 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31357 gcc_cv_libc_provides_ssp
=yes
31359 echo "no __stack_chk_fail on this target"
31363 *) gcc_cv_libc_provides_ssp
=no
;;
31367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31368 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31370 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31372 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31376 # Check whether --enable-default-ssp was given.
31377 # Check whether --enable-default-ssp was given.
31378 if test "${enable_default_ssp+set}" = set; then :
31379 enableval
=$enable_default_ssp;
31380 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31382 ia64
*-*-*) enable_default_ssp
=no
;;
31383 *) enable_default_ssp
=$enableval ;;
31386 enable_default_ssp
=no
31389 enable_default_ssp
=no
31392 if test x
$enable_default_ssp = xyes
; then
31394 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31399 # Test for <sys/sdt.h> on the target.
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31402 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31403 if ${gcc_cv_sys_sdt_h+:} false
; then :
31404 $as_echo_n "(cached) " >&6
31407 gcc_cv_sys_sdt_h
=no
31408 if test -f $target_header_dir/sys
/sdt.h
; then
31409 gcc_cv_sys_sdt_h
=yes
31413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31414 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31415 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
31418 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31423 # Check if TFmode long double should be used by default or not.
31424 # Some glibc targets used DFmode long double, but with glibc 2.4
31425 # and later they can use TFmode.
31427 powerpc
*-*-linux* | \
31428 sparc
*-*-linux* | \
31432 # Check whether --with-long-double-128 was given.
31433 if test "${with_long_double_128+set}" = set; then :
31434 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31438 s390
*-*-linux-musl*)
31439 gcc_cv_target_ldbl128
=yes
31441 powerpc
*-*-linux-musl*)
31442 gcc_cv_target_ldbl128
=no
31446 if test $glibc_version_major -gt 2 \
31447 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31448 gcc_cv_target_ldbl128
=yes
31451 gcc_cv_target_ldbl128
=no
31452 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31453 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31454 && gcc_cv_target_ldbl128
=yes
31465 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31467 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31471 # Check if TFmode long double target should use the IBM extended double or IEEE
31472 # 128-bit floating point formats if long doubles are 128-bits long. The long
31473 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31474 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31477 # Check whether --with-long-double-format was given.
31478 if test "${with_long_double_format+set}" = set; then :
31479 withval
=$with_long_double_format;
31480 case "$target:$with_long_double_format" in
31481 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31484 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31485 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31486 case "$with_cpu" in
31487 power7 | power8 | power9 | power1
*)
31491 as_fn_error $?
"Configuration option --with-long-double-format is only \
31492 supported if the default cpu is power7 or newer" "$LINENO" 5
31493 with_long_double_format
=""
31497 powerpc64
*-*-linux*:*)
31498 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31499 with_long_double_format
=""
31502 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31503 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31504 with_long_double_format
=""
31510 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31511 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31512 gcc_cv_libc_provides_hwcap_in_tcb
=no
31516 if test $glibc_version_major -gt 2 \
31517 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31518 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31522 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31524 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31528 # Check if the target LIBC handles PT_GNU_STACK.
31529 gcc_cv_libc_gnustack
=unknown
31531 mips
*-*-linux-musl*)
31532 gcc_cv_libc_gnustack
=yes
31536 if test $glibc_version_major -gt 2 \
31537 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31538 gcc_cv_libc_gnustack
=yes
31542 if test x
$gcc_cv_libc_gnustack = xyes
; then
31544 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31549 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31550 gcc_cv_target_dl_iterate_phdr
=unknown
31553 # <link.h> needs both a dl_iterate_phdr declaration and support for
31554 # compilation with largefile support.
31555 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31556 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31557 gcc_cv_target_dl_iterate_phdr
=yes
31559 gcc_cv_target_dl_iterate_phdr
=no
31562 *-*-dragonfly* |
*-*-freebsd*)
31563 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31564 gcc_cv_target_dl_iterate_phdr
=yes
31566 gcc_cv_target_dl_iterate_phdr
=no
31570 gcc_cv_target_dl_iterate_phdr
=yes
31574 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31576 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31580 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31582 # We no longer support different GC mechanisms. Emit an error if
31583 # the user configures with --with-gc.
31585 # Check whether --with-gc was given.
31586 if test "${with_gc+set}" = set; then :
31587 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31591 # Libraries to use on the host. This will normally be set by the top
31592 # level Makefile. Here we simply capture the value for our Makefile.
31593 if test -z "${HOST_LIBS+set}"; then
31598 # Use the system's zlib library.
31600 # Use the system's zlib library.
31601 zlibdir
="-L\$(top_builddir)/../zlib"
31602 zlibinc
="-I\$(top_srcdir)/../zlib"
31604 # Check whether --with-system-zlib was given.
31605 if test "${with_system_zlib+set}" = set; then :
31606 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31619 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31620 # Check whether --enable-maintainer-mode was given.
31621 if test "${enable_maintainer_mode+set}" = set; then :
31622 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31629 $as_echo "$maintainer_mode" >&6; }
31631 if test "$maintainer_mode" = "yes"; then
31637 if test -z "$CTAGS"; then
31641 if test -z "$ETAGS"; then
31645 if test -z "$CSCOPE"; then
31651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31652 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31653 # Check whether --enable-link-mutex was given.
31654 if test "${enable_link_mutex+set}" = set; then :
31655 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31661 $as_echo "$do_link_mutex" >&6; }
31663 if test "$do_link_mutex" = "yes"; then
31665 { $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
31666 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31668 DO_LINK_MUTEX
=false
31673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31674 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31675 # Check whether --enable-link-serialization was given.
31676 if test "${enable_link_serialization+set}" = set; then :
31677 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31679 do_link_serialization
=no
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31683 $as_echo "$do_link_serialization" >&6; }
31685 case "$do_link_serialization" in
31687 DO_LINK_SERIALIZATION
=1;;
31688 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31689 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31691 DO_LINK_SERIALIZATION
=;;
31693 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31701 # Make empty files to contain the specs and options for each language.
31702 # Then add #include lines to for a compiler that has specs and/or options.
31708 # These (without "all_") are set in each config-lang.in.
31709 # `language' must be a single word so is spelled singularly.
31712 all_outputs
='Makefile'
31713 # List of language configure and makefile fragments.
31714 all_lang_configurefrags
=
31715 all_lang_makefrags
=
31716 # Additional files for gengtype
31717 all_gtfiles
="$target_gtfiles"
31719 # These are the languages that are set in --enable-languages,
31720 # and are available in the GCC tree.
31721 all_selected_languages
=
31723 # Add the language fragments.
31724 # Languages are added via two mechanisms. Some information must be
31725 # recorded in makefile variables, these are defined in config-lang.in.
31726 # We accumulate them and plug them into the main Makefile.
31727 # The other mechanism is a set of hooks for each of the main targets
31728 # like `clean', `install', etc.
31730 language_hooks
="Make-hooks"
31732 for lang
in ${srcdir}/*/config-lang.
in
31734 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31736 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31737 if test "x$lang_alias" = x
31739 echo "$lang doesn't set \$language." 1>&2
31742 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31743 subdirs
="$subdirs $subdir"
31745 # $gcc_subdir is where the gcc integration files are to be found
31746 # for a language, both for internal compiler purposes (compiler
31747 # sources implementing front-end to GCC tree converters), and for
31748 # build infrastructure purposes (Make-lang.in, etc.)
31750 # This will be <subdir> (relative to $srcdir) if a line like
31751 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31752 # is found in <langdir>/config-lang.in, and will remain <langdir>
31755 # Except for the language alias (fetched above), the regular
31756 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31757 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31758 # only this and the language alias.
31760 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31761 if [ "$gcc_subdir" = "" ]; then
31762 gcc_subdir
="$subdir"
31765 case ",$enable_languages," in
31767 all_selected_languages
="$all_selected_languages $lang_alias"
31768 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31769 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31780 .
${srcdir}/$gcc_subdir/config-lang.
in
31781 if test "x$language" = x
31783 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31788 case ",$enable_languages," in
31789 *,$lang_alias,*) ;;
31791 for i
in $subdir_requires; do
31792 test -f "${srcdir}/$i/config-lang.in" && continue
31800 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31801 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31802 # Put c/Make-lang.in fragment first to match serialization languages order.
31803 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31805 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31807 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31808 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31809 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31811 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31812 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31814 all_languages
="$all_languages $language"
31815 all_compilers
="$all_compilers $compilers"
31816 all_outputs
="$all_outputs $outputs"
31817 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31818 case ",$enable_languages," in
31821 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31831 for language
in $all_selected_languages
31833 check_languages
="$check_languages check-$language"
31836 selftest_languages
=
31837 for language
in $all_selected_languages
31839 selftest_languages
="$selftest_languages selftest-$language"
31842 # We link each language in with a set of hooks, reached indirectly via
31843 # lang.${target}. Only do so for selected languages.
31847 target_list
="all.cross start.encap rest.encap tags \
31848 install-common install-man install-info install-dvi install-pdf \
31849 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31850 mostlyclean clean distclean maintainer-clean install-plugin"
31852 for t
in $target_list
31855 for lang
in $all_selected_languages
31859 echo "lang.$t: $x" >> Make-hooks
31862 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31863 echo "SERIAL_LIST =" >> Make-hooks
31864 echo else >> Make-hooks
31868 serialization_languages
=c
31869 for lang
in $all_selected_languages
31871 test $lang = c
&& continue
31872 if test $lang = lto
; then
31873 serialization_languages
="$serialization_languages lto1 lto2"
31875 serialization_languages
="$serialization_languages $lang"
31878 for lang
in $serialization_languages
31880 test $lang = c
&& continue
31881 lang_cnt
=`expr $lang_cnt + 1`
31882 lang_list
=" $prev$lang_list"
31885 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31886 echo endif
>> Make-hooks
31887 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31888 echo "INDEX.c = 0" >> Make-hooks
31890 for lang
in $serialization_languages
31892 test $lang = c
&& continue
31893 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31894 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31895 lang_cnt
=`expr $lang_cnt - 1`
31896 lang_idx
=`expr $lang_idx + 1`
31900 # Option include files
31903 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31904 option_includes
="option-includes.mk"
31913 echo "dir ." > .gdbinit
31914 echo "dir ${srcdir}" >> .gdbinit
31915 if test x
$gdb_needs_out_file_path = xyes
31917 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31919 if test "x$subdirs" != x
; then
31922 echo "dir ${srcdir}/$s" >> .gdbinit
31925 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31926 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31928 # Put a breakpoint on __asan_report_error to help with debugging buffer
31931 *-fsanitize=address
*)
31932 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31936 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31940 # Find a directory in which to install a shared libgcc.
31942 # Check whether --enable-version-specific-runtime-libs was given.
31943 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31944 enableval
=$enable_version_specific_runtime_libs;
31948 # Substitute configuration variables
32022 if test x
${build} = x
${host} ; then
32023 if test x
${host} = x
${target} ; then
32024 echo "Links are now set up to build a native compiler for ${target}." 1>&2
32026 echo "Links are now set up to build a cross-compiler" 1>&2
32027 echo " from ${host} to ${target}." 1>&2
32030 if test x
${host} = x
${target} ; then
32031 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
32032 echo " for ${target}." 1>&2
32034 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
32035 echo " from ${host} to ${target}." 1>&2
32044 if test "x${ISLLIBS}" != "x" ; then
32046 $as_echo "#define HAVE_isl 1" >>confdefs.h
32050 # Check for plugin support
32051 # Check whether --enable-plugin was given.
32052 if test "${enable_plugin+set}" = set; then :
32053 enableval
=$enable_plugin; enable_plugin
=$enableval
32055 enable_plugin
=yes; default_plugin
=yes
32064 # Since plugin support under MinGW is not as straightforward as on
32065 # other platforms (e.g., we have to link import library, etc), we
32066 # only enable it if explicitly requested.
32067 if test x
"$default_plugin" = x
"yes"; then
32069 elif test x
"$enable_plugin" = x
"yes"; then
32070 # Use make's target variable to derive import library name.
32071 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
32076 if test x
$build = x
$host; then
32077 export_sym_check
="nm${exeext} -g"
32078 elif test x
$host = x
$target; then
32079 export_sym_check
="$gcc_cv_nm -g"
32085 if test x
$build = x
$host; then
32086 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
32087 elif test x
$host = x
$target; then
32088 export_sym_check
="$gcc_cv_objdump -T"
32090 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
32095 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
32097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
32098 $as_echo_n "checking for exported symbols... " >&6; }
32099 if test "x$export_sym_check" != x
; then
32100 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
32101 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
32102 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
32103 : # No need to use a flag
32104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32105 $as_echo "yes" >&6; }
32107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32108 $as_echo "yes" >&6; }
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
32110 $as_echo_n "checking for -rdynamic... " >&6; }
32111 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
32112 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
32113 plugin_rdynamic
=yes
32114 pluginlibs
="-rdynamic"
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
32120 $as_echo "$plugin_rdynamic" >&6; }
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
32124 $as_echo "unable to check" >&6; }
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
32130 $as_echo_n "checking for library containing dlopen... " >&6; }
32131 if ${ac_cv_search_dlopen+:} false
; then :
32132 $as_echo_n "(cached) " >&6
32134 ac_func_search_save_LIBS
=$LIBS
32135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32136 /* end confdefs.h. */
32138 /* Override any GCC internal prototype to avoid an error.
32139 Use char because int might match the return type of a GCC
32140 builtin and then its argument prototype would still apply. */
32153 for ac_lib
in '' dl
; do
32154 if test -z "$ac_lib"; then
32155 ac_res
="none required"
32158 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
32160 if ac_fn_cxx_try_link
"$LINENO"; then :
32161 ac_cv_search_dlopen
=$ac_res
32163 rm -f core conftest.err conftest.
$ac_objext \
32165 if ${ac_cv_search_dlopen+:} false
; then :
32169 if ${ac_cv_search_dlopen+:} false
; then :
32172 ac_cv_search_dlopen
=no
32174 rm conftest.
$ac_ext
32175 LIBS
=$ac_func_search_save_LIBS
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32178 $as_echo "$ac_cv_search_dlopen" >&6; }
32179 ac_res
=$ac_cv_search_dlopen
32180 if test "$ac_res" != no
; then :
32181 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
32185 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
32186 pluginlibs
="$pluginlibs -ldl"
32190 # Check that we can build shared objects with -fPIC -shared
32191 saved_LDFLAGS
="$LDFLAGS"
32192 saved_CFLAGS
="$CFLAGS"
32193 saved_CXXFLAGS
="$CXXFLAGS"
32196 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32197 CFLAGS
="$CFLAGS -fPIC"
32198 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32199 CXXFLAGS
="$CXXFLAGS -fPIC"
32200 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
32203 CFLAGS
="$CFLAGS -fPIC"
32204 CXXFLAGS
="$CXXFLAGS -fPIC"
32205 LDFLAGS
="$LDFLAGS -fPIC -shared"
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32209 $as_echo_n "checking for -fPIC -shared... " >&6; }
32210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32211 /* end confdefs.h. */
32221 if ac_fn_cxx_try_link
"$LINENO"; then :
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32223 $as_echo "yes" >&6; }; have_pic_shared
=yes
32225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32226 $as_echo "no" >&6; }; have_pic_shared
=no
32228 rm -f core conftest.err conftest.
$ac_objext \
32229 conftest
$ac_exeext conftest.
$ac_ext
32230 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32234 LDFLAGS
="$saved_LDFLAGS"
32235 CFLAGS
="$saved_CFLAGS"
32236 CXXFLAGS
="$saved_CXXFLAGS"
32238 # If plugin support had been requested but not available, fail.
32239 if test x
"$enable_plugin" = x
"no" ; then
32240 if test x
"$default_plugin" != x
"yes"; then
32242 Building GCC with plugin support requires a host that supports
32243 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32250 if test x
"$enable_plugin" = x
"yes"; then
32252 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32257 # Enable --enable-host-shared
32258 # Check whether --enable-host-shared was given.
32259 if test "${enable_host_shared+set}" = set; then :
32260 enableval
=$enable_host_shared;
32265 # Enable --enable-host-pie
32266 # Check whether --enable-host-pie was given.
32267 if test "${enable_host_pie+set}" = set; then :
32268 enableval
=$enable_host_pie;
32273 # Enable --enable-host-bind-now
32274 # Check whether --enable-host-bind-now was given.
32275 if test "${enable_host_bind_now+set}" = set; then :
32276 enableval
=$enable_host_bind_now;
32281 # Check whether --enable-libquadmath-support was given.
32282 if test "${enable_libquadmath_support+set}" = set; then :
32283 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32285 ENABLE_LIBQUADMATH_SUPPORT
=yes
32288 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32290 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32295 # Specify what hash style to use by default.
32297 # Check whether --with-linker-hash-style was given.
32298 if test "${with_linker_hash_style+set}" = set; then :
32299 withval
=$with_linker_hash_style; case x
"$withval" in
32301 LINKER_HASH_STYLE
=sysv
32304 LINKER_HASH_STYLE
=gnu
32307 LINKER_HASH_STYLE
=both
32310 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32314 LINKER_HASH_STYLE
=''
32317 if test x
"${LINKER_HASH_STYLE}" != x
; then
32319 cat >>confdefs.h
<<_ACEOF
32320 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32325 # Specify what should be the default of -fdiagnostics-color option.
32327 # Check whether --with-diagnostics-color was given.
32328 if test "${with_diagnostics_color+set}" = set; then :
32329 withval
=$with_diagnostics_color; case x
"$withval" in
32331 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32334 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32337 DIAGNOSTICS_COLOR_DEFAULT
=-1
32340 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32343 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32347 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32351 cat >>confdefs.h
<<_ACEOF
32352 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32356 # Specify what should be the default of -fdiagnostics-urls option.
32358 # Check whether --with-diagnostics-urls was given.
32359 if test "${with_diagnostics_urls+set}" = set; then :
32360 withval
=$with_diagnostics_urls; case x
"$withval" in
32362 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32365 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32368 DIAGNOSTICS_URLS_DEFAULT
=-1
32371 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32374 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32378 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32382 cat >>confdefs.h
<<_ACEOF
32383 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32387 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32388 # of jit/jit-playback.cc.
32389 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32390 echo "gcc_driver_version: ${gcc_driver_version}"
32391 cat > gcc-driver-name.h
<<EOF
32392 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32395 # Check whether --enable-default-pie was given.
32396 # Check whether --enable-default-pie was given.
32397 if test "${enable_default_pie+set}" = set; then :
32398 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32400 enable_default_pie
=no
32403 if test x
$enable_default_pie = xyes
; then
32405 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32410 # Check if -fno-PIE works.
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32412 $as_echo_n "checking for -fno-PIE option... " >&6; }
32413 if ${gcc_cv_c_no_fpie+:} false
; then :
32414 $as_echo_n "(cached) " >&6
32416 saved_CXXFLAGS
="$CXXFLAGS"
32417 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32419 /* end confdefs.h. */
32420 int main(void) {return 0;}
32422 if ac_fn_cxx_try_compile
"$LINENO"; then :
32423 gcc_cv_c_no_fpie
=yes
32425 gcc_cv_c_no_fpie
=no
32427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32428 CXXFLAGS
="$saved_CXXFLAGS"
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32431 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32433 # Check if -no-pie works.
32434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32435 $as_echo_n "checking for -no-pie option... " >&6; }
32436 if ${gcc_cv_no_pie+:} false
; then :
32437 $as_echo_n "(cached) " >&6
32439 saved_LDFLAGS
="$LDFLAGS"
32440 LDFLAGS
="$LDFLAGS -no-pie"
32441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32442 /* end confdefs.h. */
32443 int main(void) {return 0;}
32445 if ac_fn_cxx_try_link
"$LINENO"; then :
32450 rm -f core conftest.err conftest.
$ac_objext \
32451 conftest
$ac_exeext conftest.
$ac_ext
32452 LDFLAGS
="$saved_LDFLAGS"
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32455 $as_echo "$gcc_cv_no_pie" >&6; }
32457 if test x
$enable_host_shared = xyes
; then
32459 elif test x
$enable_host_pie = xyes
; then
32461 elif test x
$gcc_cv_c_no_fpie = xyes
; then
32469 if test x
$enable_host_pie = xyes
; then
32471 elif test x
$gcc_cv_no_pie = xyes
; then
32477 if test x
$enable_host_bind_now = xyes
; then
32478 LD_PICFLAG
="$LD_PICFLAG -Wl,-z,now"
32483 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32484 # Check whether --enable-cet was given.
32485 if test "${enable_cet+set}" = set; then :
32486 enableval
=$enable_cet;
32487 case "$enableval" in
32489 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32498 $as_echo_n "checking for CET support... " >&6; }
32501 i
[34567]86-*-linux* | x86_64-
*-linux*)
32503 cet_save_CFLAGS
="$CFLAGS"
32504 CFLAGS
="$CFLAGS -fcf-protection"
32505 case "$enable_cet" in
32507 # Check if target supports multi-byte NOPs
32508 # and if compiler and assembler support CET.
32509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32510 /* end confdefs.h. */
32516 #if !defined(__SSE2__)
32517 #error target does not support multi-byte NOPs
32526 if ac_fn_cxx_try_compile
"$LINENO"; then :
32531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32534 # Check if compiler and assembler support CET.
32535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32536 /* end confdefs.h. */
32546 if ac_fn_cxx_try_compile
"$LINENO"; then :
32551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32552 if test $support_cet = "no"; then
32553 if test x
$enable_bootstrap != xno \
32554 && test -z "${with_build_subdir}" \
32555 && (test ! -f ..
/stage_current \
32556 ||
test `cat ../stage_current` != "stage1"); then
32557 # Require CET support only for the final GCC build.
32558 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32560 # Don't enable CET without CET support for non-bootstrap
32561 # build, in stage1 nor for build support.
32567 CFLAGS
="$cet_save_CFLAGS"
32575 cet_save_CFLAGS
="$CFLAGS"
32576 CFLAGS
="$CFLAGS -fcf-protection=none"
32577 cet_save_LDFLAGS
="$LDFLAGS"
32578 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32579 if test x
$may_have_cet = xyes
; then
32580 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32582 /* end confdefs.h. */
32592 if ac_fn_cxx_try_link
"$LINENO"; then :
32597 rm -f core conftest.err conftest.
$ac_objext \
32598 conftest
$ac_exeext conftest.
$ac_ext
32601 if test x
$may_have_cet = xyes
; then
32602 if test x
$cross_compiling = xno
; then
32603 if test "$cross_compiling" = yes; then :
32604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32606 as_fn_error $?
"cannot run test program while cross compiling
32607 See \`config.log' for more details" "$LINENO" 5; }
32609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32610 /* end confdefs.h. */
32620 if ac_fn_cxx_try_run
"$LINENO"; then :
32621 have_multi_byte_nop
=yes
32623 have_multi_byte_nop
=no
32625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32626 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32630 if test x
$have_multi_byte_nop = xyes
; then
32631 if test "$cross_compiling" = yes; then :
32632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32634 as_fn_error $?
"cannot run test program while cross compiling
32635 See \`config.log' for more details" "$LINENO" 5; }
32637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32638 /* end confdefs.h. */
32646 __attribute__ ((noinline, noclone))
32647 xxx (void (*f) (void))
32653 __attribute__ ((noinline, noclone))
32667 if ac_fn_cxx_try_run
"$LINENO"; then :
32672 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32673 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32677 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32678 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32682 # Enable CET in cross compiler if possible so that it will run on both
32683 # CET and non-CET hosts.
32686 if test x
$enable_cet = xyes
; then
32687 CET_HOST_FLAGS
="-fcf-protection"
32688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32689 $as_echo "yes" >&6; }
32691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32692 $as_echo "no" >&6; }
32694 CFLAGS
="$cet_save_CFLAGS"
32695 LDFLAGS
="$cet_save_LDFLAGS"
32697 case x
$enable_languages in
32706 # Check linker supports '-z bndplt'
32707 ld_bndplt_support
=no
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32709 $as_echo_n "checking linker -z bndplt option... " >&6; }
32710 if test x
"$ld_is_gold" = xno
; then
32711 if test $in_tree_ld = yes ; then
32712 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
32713 ld_bndplt_support
=yes
32715 elif test x
$gcc_cv_ld != x
; then
32716 # Check if linker supports -a bndplt option
32717 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32718 ld_bndplt_support
=yes
32722 if test x
"$ld_bndplt_support" = xyes
; then
32724 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32728 $as_echo "$ld_bndplt_support" >&6; }
32730 # Check linker supports '--push-state'/'--pop-state'
32731 ld_pushpopstate_support
=no
32732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32733 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32734 if test x
"$ld_is_gold" = xno
; then
32735 if test $in_tree_ld = yes ; then
32736 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
32737 ld_pushpopstate_support
=yes
32739 elif test x
$gcc_cv_ld != x
; then
32740 # Check if linker supports --push-state/--pop-state options
32741 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32742 ld_pushpopstate_support
=yes
32746 if test x
"$ld_pushpopstate_support" = xyes
; then
32748 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32752 $as_echo "$ld_pushpopstate_support" >&6; }
32754 # On s390, float_t has historically been statically defined as double for no
32755 # good reason. To comply with the C standard in the light of this definition,
32756 # gcc has evaluated float expressions in double precision when in
32757 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32758 # a smooth transition towards the new model used by most architectures, where
32759 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32760 # float_t from that, this behavior can be configured with
32761 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32762 # the old model. When omitted, native builds and cross compiles that have target
32763 # libc headers will detect whether libc clamps float_t to double and in that
32764 # case maintain the old model. Otherwise, they will default to the new model.
32765 # Check whether --enable-s390-excess-float-precision was given.
32766 if test "${enable_s390_excess_float_precision+set}" = set; then :
32767 enableval
=$enable_s390_excess_float_precision;
32769 enable_s390_excess_float_precision
=auto
32775 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32776 # Can we autodetect the behavior of the target libc?
32777 if test "$target" = "$host" -a "$host" = "$build"; then
32778 enable_s390_excess_float_precision
=autodetect
32779 elif test "x$with_headers" != xno
; then
32780 # cross build. are target headers available?
32781 # carefully coerce the build-system compiler to use target headers
32782 saved_CXXFLAGS
="$CXXFLAGS"
32783 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32784 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32785 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32787 /* end confdefs.h. */
32792 if ac_fn_cxx_try_compile
"$LINENO"; then :
32793 enable_s390_excess_float_precision
=autodetect
32795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32796 CXXFLAGS
="$saved_CXXFLAGS"
32799 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32800 saved_CXXFLAGS
="$CXXFLAGS"
32801 if ! test "$target" = "$host" -a "$host" = "$build"; then
32802 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32803 unset CROSS_TEST_CXXFLAGS
32805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32806 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32807 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32808 $as_echo_n "(cached) " >&6
32811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32812 /* end confdefs.h. */
32814 #define __FLT_EVAL_METHOD__ 0
32816 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32819 if ac_fn_cxx_try_compile
"$LINENO"; then :
32820 gcc_cv_float_t_clamped_to_double
=yes
32822 gcc_cv_float_t_clamped_to_double
=no
32824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32827 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32828 CXXFLAGS
="$saved_CXXFLAGS"
32829 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32831 # no way to detect behavior of target libc, default to new model
32832 enable_s390_excess_float_precision
=no
32837 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32839 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32845 # Configure the subdirectories
32846 # AC_CONFIG_SUBDIRS($subdirs)
32848 # Create the Makefile
32849 # and configure language subdirectories
32850 ac_config_files
="$ac_config_files $all_outputs"
32853 ac_config_commands
="$ac_config_commands default"
32855 cat >confcache
<<\_ACEOF
32856 # This file is a shell script that caches the results of configure
32857 # tests run on this system so they can be shared between configure
32858 # scripts and configure runs, see configure's option --config-cache.
32859 # It is not useful on other systems. If it contains results you don't
32860 # want to keep, you may remove or edit it.
32862 # config.status only pays attention to the cache file if you give it
32863 # the --recheck option to rerun configure.
32865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32867 # following values.
32871 # The following way of writing the cache mishandles newlines in values,
32872 # but we know of no workaround that is simple, portable, and efficient.
32873 # So, we kill variables containing newlines.
32874 # Ultrix sh set writes to stderr and can't be redirected directly,
32875 # and sets the high bit in the cache file unless we assign to the vars.
32877 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32878 eval ac_val
=\$
$ac_var
32882 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32886 _ | IFS | as_nl
) ;; #(
32887 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32888 *) { eval $ac_var=; unset $ac_var;} ;;
32894 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32895 *${as_nl}ac_space
=\
*)
32896 # `set' does not quote correctly, so add quotes: double-quote
32897 # substitution turns \\\\ into \\, and sed turns \\ into \.
32900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32903 # `set' quotes correctly as required by POSIX, so do not add quotes.
32904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32917 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32918 if test -w "$cache_file"; then
32919 if test "x$cache_file" != "x/dev/null"; then
32920 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32921 $as_echo "$as_me: updating cache $cache_file" >&6;}
32922 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32923 cat confcache
>"$cache_file"
32925 case $cache_file in #(
32927 mv -f confcache
"$cache_file"$$
&&
32928 mv -f "$cache_file"$$
"$cache_file" ;; #(
32930 mv -f confcache
"$cache_file" ;;
32935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32936 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32941 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32942 # Let make expand exec_prefix.
32943 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32945 DEFS
=-DHAVE_CONFIG_H
32950 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32951 # 1. Remove the extension, and $U if already installed.
32952 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32953 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32954 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32955 # will be set to the directory where LIBOBJS objects are built.
32956 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32957 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32959 LIBOBJS
=$ac_libobjs
32961 LTLIBOBJS
=$ac_ltlibobjs
32966 : "${CONFIG_STATUS=./config.status}"
32968 ac_clean_files_save
=$ac_clean_files
32969 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32971 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32973 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32975 # Generated by $as_me.
32976 # Run this file to recreate the current configuration.
32977 # Compiler output produced by configure, useful for debugging
32978 # configure, is in config.log if it exists.
32981 ac_cs_recheck=false
32984 SHELL=\${CONFIG_SHELL-$SHELL}
32987 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32988 ## -------------------- ##
32989 ## M4sh Initialization. ##
32990 ## -------------------- ##
32992 # Be more Bourne compatible
32993 DUALCASE
=1; export DUALCASE
# for MKS sh
32994 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32997 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32998 # is contrary to our usage. Disable this feature.
32999 alias -g '${1+"$@"}'='"$@"'
33000 setopt NO_GLOB_SUBST
33002 case `(set -o) 2>/dev/null` in #(
33014 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33015 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33016 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33017 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33018 # Prefer a ksh shell builtin over an external printf program on Solaris,
33019 # but without wasting forks for bash or zsh.
33020 if test -z "$BASH_VERSION$ZSH_VERSION" \
33021 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33022 as_echo='print
-r --'
33023 as_echo_n='print
-rn --'
33024 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33025 as_echo='printf %s
\n'
33026 as_echo_n='printf %s
'
33028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33029 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
33030 as_echo_n='/usr
/ucb
/echo -n'
33032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33033 as_echo_n_body='eval
33037 expr "X$arg" : "X\\(.*\\)$as_nl";
33038 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33040 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
33042 export as_echo_n_body
33043 as_echo_n='sh
-c $as_echo_n_body as_echo
'
33045 export as_echo_body
33046 as_echo='sh
-c $as_echo_body as_echo
'
33049 # The user is always right.
33050 if test "${PATH_SEPARATOR+set}" != set; then
33052 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33053 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33060 # We need space, tab and new line, in precisely that order. Quoting is
33061 # there to prevent editors from complaining about space-tab.
33062 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33063 # splitting by setting IFS to empty value.)
33066 # Find who we are. Look in the path if we contain no directory separator.
33069 *[\\/]* ) as_myself=$0 ;;
33070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33071 for as_dir in $PATH
33074 test -z "$as_dir" && as_dir=.
33075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33081 # We did not find ourselves, most probably we were run as `sh COMMAND'
33082 # in which case we are not to be found in the path.
33083 if test "x$as_myself" = x
; then
33086 if test ! -f "$as_myself"; then
33087 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33091 # Unset variables that we do not need and which cause bugs (e.g. in
33092 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33093 # suppresses any "Segmentation fault" message there. '((' could
33094 # trigger a bug in pdksh 5.2.14.
33095 for as_var
in BASH_ENV ENV MAIL MAILPATH
33096 do eval test x\
${$as_var+set} = xset \
33097 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
33110 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
33113 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33114 # ----------------------------------------
33115 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33116 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33117 # script with STATUS, using 1 if that was 0.
33120 as_status
=$1; test $as_status -eq 0 && as_status
=1
33122 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
33123 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33125 $as_echo "$as_me: error: $2" >&2
33126 as_fn_exit
$as_status
33130 # as_fn_set_status STATUS
33131 # -----------------------
33132 # Set $? to STATUS, without forking.
33133 as_fn_set_status
()
33136 } # as_fn_set_status
33138 # as_fn_exit STATUS
33139 # -----------------
33140 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33144 as_fn_set_status
$1
33150 # Portably unset VAR.
33153 { eval $1=; unset $1;}
33155 as_unset
=as_fn_unset
33156 # as_fn_append VAR VALUE
33157 # ----------------------
33158 # Append the text in VALUE to the end of the definition contained in VAR. Take
33159 # advantage of any shell optimizations that allow amortized linear growth over
33160 # repeated appends, instead of the typical quadratic growth present in naive
33162 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
33163 eval 'as_fn_append ()
33174 # as_fn_arith ARG...
33175 # ------------------
33176 # Perform arithmetic evaluation on the ARGs, and store the result in the
33177 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33178 # must be portable across $(()) and expr.
33179 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
33180 eval 'as_fn_arith ()
33187 as_val
=`expr "$@" || test $? -eq 1`
33192 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33193 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33199 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33200 as_basename
=basename
33205 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33211 as_me
=`$as_basename -- "$0" ||
33212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33213 X"$0" : 'X\(//\)$' \| \
33214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33216 sed '/^.*\/\([^/][^/]*\)\/*$/{
33230 # Avoid depending upon Character Ranges.
33231 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33232 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33233 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33234 as_cr_digits
='0123456789'
33235 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33237 ECHO_C
= ECHO_N
= ECHO_T
=
33238 case `echo -n x` in #(((((
33240 case `echo 'xy\c'` in
33241 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33243 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33250 rm -f conf$$ conf$$.exe conf$$.
file
33251 if test -d conf$$.dir
; then
33252 rm -f conf$$.dir
/conf$$.
file
33255 mkdir conf$$.dir
2>/dev
/null
33257 if (echo >conf$$.
file) 2>/dev
/null
; then
33258 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33260 # ... but there are two gotchas:
33261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33263 # In both cases, we have to default to `cp -pR'.
33264 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33266 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33274 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33275 rmdir conf$$.dir
2>/dev
/null
33280 # Create "$as_dir" as a directory, including parents if necessary.
33285 -*) as_dir
=.
/$as_dir;;
33287 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33291 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33292 *) as_qdir
=$as_dir;;
33294 as_dirs
="'$as_qdir' $as_dirs"
33295 as_dir
=`$as_dirname -- "$as_dir" ||
33296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33297 X"$as_dir" : 'X\(//\)[^/]' \| \
33298 X"$as_dir" : 'X\(//\)$' \| \
33299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33300 $as_echo X"$as_dir" |
33301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33305 /^X\(\/\/\)[^/].*/{
33318 test -d "$as_dir" && break
33320 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33321 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33325 if mkdir
-p .
2>/dev
/null
; then
33326 as_mkdir_p
='mkdir -p "$as_dir"'
33328 test -d .
/-p && rmdir .
/-p
33333 # as_fn_executable_p FILE
33334 # -----------------------
33335 # Test if FILE is an executable regular file.
33336 as_fn_executable_p
()
33338 test -f "$1" && test -x "$1"
33339 } # as_fn_executable_p
33340 as_test_x
='test -x'
33341 as_executable_p
=as_fn_executable_p
33343 # Sed expression to map a string onto a valid CPP name.
33344 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33346 # Sed expression to map a string onto a valid variable name.
33347 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33351 ## ----------------------------------- ##
33352 ## Main body of $CONFIG_STATUS script. ##
33353 ## ----------------------------------- ##
33355 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33358 # Save the log message, to keep $0 and so on meaningful, and to
33359 # report actual input values of CONFIG_FILES etc. instead of their
33360 # values after options handling.
33362 This file was extended by $as_me, which was
33363 generated by GNU Autoconf 2.69. Invocation command line was
33365 CONFIG_FILES = $CONFIG_FILES
33366 CONFIG_HEADERS = $CONFIG_HEADERS
33367 CONFIG_LINKS = $CONFIG_LINKS
33368 CONFIG_COMMANDS = $CONFIG_COMMANDS
33371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33376 case $ac_config_files in *"
33377 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33380 case $ac_config_headers in *"
33381 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33386 # Files that config.status was made for.
33387 config_files="$ac_config_files"
33388 config_headers="$ac_config_headers"
33389 config_links="$ac_config_links"
33390 config_commands="$ac_config_commands"
33394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33396 \`$as_me' instantiates files and other configuration actions
33397 from templates according to the current configuration. Unless the files
33398 and actions are specified as TAGs, all are instantiated by default.
33400 Usage: $0 [OPTION]... [TAG]...
33402 -h, --help print this help, then exit
33403 -V, --version print version number and configuration settings, then exit
33404 --config print configuration, then exit
33405 -q, --quiet, --silent
33406 do not print progress messages
33407 -d, --debug don't remove temporary files
33408 --recheck update $as_me by reconfiguring in the same conditions
33409 --file=FILE[:TEMPLATE]
33410 instantiate the configuration file FILE
33411 --header=FILE[:TEMPLATE]
33412 instantiate the configuration header FILE
33414 Configuration files:
33417 Configuration headers:
33420 Configuration links:
33423 Configuration commands:
33426 Report bugs to the package provider."
33429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33430 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33433 configured by $0, generated by GNU Autoconf 2.69,
33434 with options \\"\$ac_cs_config\\"
33436 Copyright (C) 2012 Free Software Foundation, Inc.
33437 This config.status script is free software; the Free Software Foundation
33438 gives unlimited permission to copy, distribute and modify it."
33443 test -n "\$AWK" || AWK=awk
33446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33447 # The default lists apply if the user does not specify any file.
33453 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33454 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33458 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33470 # Handling of the options.
33471 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33473 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33474 $as_echo "$ac_cs_version"; exit ;;
33475 --config |
--confi |
--conf |
--con |
--co |
--c )
33476 $as_echo "$ac_cs_config"; exit ;;
33477 --debug |
--debu |
--deb |
--de |
--d |
-d )
33479 --file |
--fil |
--fi |
--f )
33482 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33483 '') as_fn_error $?
"missing file argument" ;;
33485 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33486 ac_need_defaults
=false
;;
33487 --header |
--heade |
--head |
--hea )
33490 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33492 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33493 ac_need_defaults
=false
;;
33495 # Conflict between --help and --header
33496 as_fn_error $?
"ambiguous option: \`$1'
33497 Try \`$0 --help' for more information.";;
33498 --help |
--hel |
-h )
33499 $as_echo "$ac_cs_usage"; exit ;;
33500 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33501 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33504 # This is an error.
33505 -*) as_fn_error $?
"unrecognized option: \`$1'
33506 Try \`$0 --help' for more information." ;;
33508 *) as_fn_append ac_config_targets
" $1"
33509 ac_need_defaults
=false
;;
33515 ac_configure_extra_args
=
33517 if $ac_cs_silent; then
33519 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33524 if \$ac_cs_recheck; then
33525 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33527 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33528 CONFIG_SHELL='$SHELL'
33529 export CONFIG_SHELL
33534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33539 ## Running $as_me. ##
33545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33549 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33550 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33557 # Handling of arguments.
33558 for ac_config_target
in $ac_config_targets
33560 case $ac_config_target in
33561 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33562 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33563 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33564 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33565 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33566 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33567 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33568 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33569 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33570 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33572 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33577 # If the user did not use the arguments to specify the items to instantiate,
33578 # then the envvar interface is used. Set only those that are not.
33579 # We use the long form for the default assignment because of an extremely
33580 # bizarre bug on SunOS 4.1.3.
33581 if $ac_need_defaults; then
33582 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33583 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33584 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33588 # Have a temporary directory for convenience. Make it in the build tree
33589 # simply because there is no reason against having it here, and in addition,
33590 # creating and moving files from /tmp can sometimes cause problems.
33591 # Hook for its removal unless debugging.
33592 # Note that there is a small window in which the directory will not be cleaned:
33593 # after its creation but before its name has been assigned to `$tmp'.
33597 trap 'exit_status=$?
33598 : "${ac_tmp:=$tmp}"
33599 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33601 trap 'as_fn_exit 1' 1 2 13 15
33603 # Create a (secure) tmp directory for tmp files.
33606 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33610 tmp
=.
/conf$$
-$RANDOM
33611 (umask 077 && mkdir
"$tmp")
33612 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33615 # Set up the scripts for CONFIG_FILES section.
33616 # No need to generate them if there are no CONFIG_FILES.
33617 # This happens for instance with `./config.status config.h'.
33618 if test -n "$CONFIG_FILES"; then
33620 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33621 ac_cs_awk_getline
=:
33622 ac_cs_awk_pipe_init
=
33623 ac_cs_awk_read_file
='
33624 while ((getline aline < (F[key])) > 0)
33627 ac_cs_awk_pipe_fini
=
33629 ac_cs_awk_getline
=false
33630 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33631 ac_cs_awk_read_file
='
33633 print "cat " F[key] " &&"
33634 '$ac_cs_awk_pipe_init
33635 # The final `:' finishes the AND list.
33636 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33638 ac_cr
=`echo X | tr X '\015'`
33639 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33640 # But we know of no other shell where ac_cr would be empty at this
33641 # point, so we can use a bashism as a fallback.
33642 if test "x$ac_cr" = x
; then
33643 eval ac_cr
=\$
\'\\r
\'
33645 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33646 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33649 ac_cs_awk_cr
=$ac_cr
33652 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33655 # Create commands to substitute file output variables.
33657 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33658 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33659 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33662 } >conf$
$files.sh
&&
33663 . .
/conf$
$files.sh ||
33664 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33665 rm -f conf$
$files.sh
33668 echo "cat >conf$$subs.awk <<_ACEOF" &&
33669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33671 } >conf$$subs.sh ||
33672 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33675 for ac_last_try in false false false false false :; do
33676 . ./conf$$subs.sh ||
33677 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33679 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33680 if test $ac_delim_n = $ac_delim_num; then
33682 elif $ac_last_try; then
33683 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33685 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33688 rm -f conf$$subs.sh
33690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33691 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33695 s/^/S["/; s
/!.
*/"]=/
33705 s/\(.\{148\}\)..*/\1/
33707 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33712 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33719 s/\(.\{148\}\)..*/\1/
33721 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33725 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33730 ' <conf$$subs.awk | sed '
33735 ' >>$CONFIG_STATUS || ac_write_fail=1
33736 rm -f conf$$subs.awk
33737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33739 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33740 for (key in S) S_is_set[key] = 1
33742 \$ac_cs_awk_pipe_init
33746 nfields = split(line, field, "@
")
33748 len = length(field[1])
33749 for (i = 2; i < nfields; i++) {
33751 keylen = length(key)
33752 if (S_is_set[key]) {
33754 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33755 len += length(value) + length(field[++i])
33760 if (nfields == 3 && !substed) {
33762 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33763 \$ac_cs_awk_read_file
33769 \$ac_cs_awk_pipe_fini
33772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33773 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33774 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33777 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33778 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33781 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33782 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33783 # trailing colons and then remove the whole line if VPATH becomes empty
33784 # (actually we leave an empty line to preserve line numbers).
33785 if test "x
$srcdir" = x.; then
33786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33805 fi # test -n "$CONFIG_FILES"
33807 # Set up the scripts for CONFIG_HEADERS section.
33808 # No need to generate them if there are no CONFIG_HEADERS.
33809 # This happens for instance with `./config.status Makefile'.
33810 if test -n "$CONFIG_HEADERS"; then
33811 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33815 # Transform confdefs.h into an awk script `defines.awk', embedded as
33816 # here-document in config.status, that substitutes the proper values into
33817 # config.h.in to produce config.h.
33819 # Create a delimiter string that does not exist in confdefs.h, to ease
33820 # handling of long lines.
33822 for ac_last_try in false false :; do
33823 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33824 if test -z "$ac_tt"; then
33826 elif $ac_last_try; then
33827 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33829 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33833 # For the awk script, D is an array of macro values keyed by name,
33834 # likewise P contains macro parameters if any. Preserve backslash
33835 # newline sequences.
33837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33839 s/.\{148\}/&'"$ac_delim"'/g
33842 s/^[ ]*#[ ]*define[ ][ ]*/ /
33849 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33851 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33856 D["\
1"]=" \
3\\\\\\n
"\\/p
33858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33863 s/.\{148\}/&'"$ac_delim"'/g
33868 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33871 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33873 ' <confdefs.h | sed '
33874 s/'"$ac_delim"'/"\\\
33875 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33878 for (key in D) D_is_set[key] = 1
33881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33883 split(line, arg, " ")
33884 if (arg[1] == "#") {
33888 defundef
= substr
(arg
[1], 2)
33891 split(mac1
, mac2
, "(") #)
33893 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33894 if (D_is_set
[macro
]) {
33895 # Preserve the white space surrounding the "#".
33896 print prefix
"define", macro P
[macro
] D
[macro
]
33899 # Replace #undef with comments. This is necessary, for example,
33900 # in the case of _POSIX_SOURCE, which is predefined and required
33901 # on some systems where configure will not decide to define it.
33902 if (defundef
== "undef") {
33903 print
"/*", prefix defundef
, macro
, "*/"
33911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33912 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33913 fi # test -n "$CONFIG_HEADERS"
33916 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33921 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33923 case $ac_mode$ac_tag in
33925 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33926 :[FH
]-) ac_tag
=-:-;;
33927 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33944 -) ac_f
="$ac_tmp/stdin";;
33945 *) # Look for the file first in the build tree, then in the source tree
33946 # (if the path is not absolute). The absolute path cannot be DOS-style,
33947 # because $ac_f cannot contain `:'.
33951 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33953 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33955 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33956 as_fn_append ac_file_inputs
" '$ac_f'"
33959 # Let's still pretend it is `configure' which instantiates (i.e., don't
33960 # use $as_me), people would be surprised to read:
33961 # /* config.h. Generated by config.status. */
33962 configure_input
='Generated from '`
33963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33965 if test x
"$ac_file" != x-
; then
33966 configure_input
="$ac_file. $configure_input"
33967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33968 $as_echo "$as_me: creating $ac_file" >&6;}
33970 # Neutralize special characters interpreted by sed in replacement strings.
33971 case $configure_input in #(
33972 *\
&* |
*\|
* |
*\\* )
33973 ac_sed_conf_input
=`$as_echo "$configure_input" |
33974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33975 *) ac_sed_conf_input
=$configure_input;;
33979 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33980 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33985 ac_dir
=`$as_dirname -- "$ac_file" ||
33986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33987 X"$ac_file" : 'X\(//\)[^/]' \| \
33988 X"$ac_file" : 'X\(//\)$' \| \
33989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33990 $as_echo X"$ac_file" |
33991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33995 /^X\(\/\/\)[^/].*/{
34008 as_dir
="$ac_dir"; as_fn_mkdir_p
34012 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34014 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34015 # A ".." for each directory in $ac_dir_suffix.
34016 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34017 case $ac_top_builddir_sub in
34018 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34019 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34022 ac_abs_top_builddir
=$ac_pwd
34023 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34024 # for backward compatibility:
34025 ac_top_builddir
=$ac_top_build_prefix
34028 .
) # We are building in place.
34030 ac_top_srcdir
=$ac_top_builddir_sub
34031 ac_abs_top_srcdir
=$ac_pwd ;;
34032 [\\/]* | ?
:[\\/]* ) # Absolute name.
34033 ac_srcdir
=$srcdir$ac_dir_suffix;
34034 ac_top_srcdir
=$srcdir
34035 ac_abs_top_srcdir
=$srcdir ;;
34036 *) # Relative name.
34037 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34038 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34039 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34041 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34053 # If the template does not know about datarootdir, expand it.
34054 # FIXME: This hack should be removed a few years after 2.60.
34055 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34067 *datarootdir
*) ac_datarootdir_seen
=yes;;
34068 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34070 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34073 ac_datarootdir_hack='
34074 s&@datadir@&$datadir&g
34075 s&@docdir@&$docdir&g
34076 s&@infodir@&$infodir&g
34077 s&@localedir@&$localedir&g
34078 s&@mandir@&$mandir&g
34079 s&\\\${datarootdir}&$datarootdir&g' ;;
34083 # Neutralize VPATH when `$srcdir' = `.'.
34084 # Shell code in configure.ac might set extrasub.
34085 # FIXME: do we really want to maintain this feature?
34086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34087 ac_sed_extra="$ac_vpsub
34090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34092 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34093 s|@configure_input@|
$ac_sed_conf_input|
;t t
34094 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34095 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
34096 s
&@srcdir@
&$ac_srcdir&;t t
34097 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34098 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34099 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34100 s
&@builddir@
&$ac_builddir&;t t
34101 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34102 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34103 $ac_datarootdir_hack
34105 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
34106 if $ac_cs_awk_getline; then
34107 $AWK -f "$ac_tmp/subs.
awk"
34109 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
34111 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
34113 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34114 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
34115 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34116 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
34117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34118 which seems to be undefined. Please make sure it is defined" >&5
34119 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34120 which seems to be undefined. Please make sure it is defined" >&2;}
34122 rm -f "$ac_tmp/stdin"
34124 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34125 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34133 if test x"$ac_file" != x-; then
34135 $as_echo "/* $configure_input */" \
34136 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34137 } >"$ac_tmp/config.h" \
34138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34139 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34140 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34141 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34144 mv "$ac_tmp/config.h" "$ac_file" \
34145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34148 $as_echo "/* $configure_input */" \
34149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34150 || as_fn_error $? "could not create -" "$LINENO" 5
34158 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
34161 # Prefer the file from the source tree if names are identical.
34162 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34163 ac_source=$srcdir/$ac_source
34166 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34167 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34169 if test ! -r "$ac_source"; then
34170 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34174 # Try a relative symlink, then a hard link, then a copy.
34176 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34177 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34179 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34180 ln "$ac_source" "$ac_file" 2>/dev/null ||
34181 cp -p "$ac_source" "$ac_file" ||
34182 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34186 $as_echo "$as_me: executing $ac_file commands" >&6;}
34191 case $ac_file$ac_mode in
34192 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34194 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34195 for lang in $subdirs c-family common analyzer text-art rtl-ssa
34197 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34199 "as":F) chmod +x as ;;
34200 "collect-ld":F) chmod +x collect-ld ;;
34201 "nm":F) chmod +x nm ;;
34202 "dsymutil":F) chmod +x dsymutil ;;
34204 case ${CONFIG_HEADERS} in
34205 *auto-host.h:config.in*)
34208 # Make sure all the subdirs exist.
34209 for d in $subdirs doc build common c-family
34211 test -d $d || mkdir $d
34221 ac_clean_files=$ac_clean_files_save
34223 test $ac_write_fail = 0 ||
34224 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34227 # configure is writing to config.log, and then calls config.status.
34228 # config.status does its own redirection, appending to config.log.
34229 # Unfortunately, on DOS this fails, as config.log is still kept open
34230 # by configure, so config.status won't be able to
write to it
; its
34231 # output is simply discarded. So we exec the FD to /dev/null,
34232 # effectively closing config.log, so it can be properly (re)opened and
34233 # appended to by config.status. When coming back to configure, we
34234 # need to make the FD available again.
34235 if test "$no_create" != yes; then
34237 ac_config_status_args
=
34238 test "$silent" = yes &&
34239 ac_config_status_args
="$ac_config_status_args --quiet"
34241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34244 # would make configure fail if this is the last instruction.
34245 $ac_cs_success || as_fn_exit
1
34247 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34249 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}