2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
595 ac_unique_file
="tree.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='LTLIBOBJS
662 common_out_object_file
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
690 TM_MULTILIB_EXCEPTIONS_CONFIG
700 build_xm_include_list
702 build_install_headers_dir
704 all_selected_languages
707 all_lang_configurefrags
715 DO_LINK_SERIALIZATION
727 ld_version_script_option
729 ORIGINAL_DSYMUTIL_FOR_TARGET
734 ORIGINAL_NM_FOR_TARGET
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
741 ORIGINAL_AS_FOR_TARGET
766 BUILD_SYSTEM_HEADER_DIR
786 NATIVE_SYSTEM_HEADER_DIR
824 omp_device_property_deps
825 omp_device_properties
827 real_target_noncanonical
828 enable_as_accelerator
844 valgrind_path_defines
876 CROSS_SYSTEM_HEADER_DIR
877 TARGET_SYSTEM_ROOT_DEFINE
879 SYSROOT_CFLAGS_FOR_TARGET
925 program_transform_name
936 ac_subst_files
='option_includes
939 enable_option_checking
942 with_native_system_header_dir
946 with_gxx_libcxx_include_dir
948 enable_generated_files_in_srcdir
956 enable_build_format_warnings
960 enable_gather_detailed_mem_stats
961 enable_valgrind_annotations
964 with_stack_clash_protection_guard_size
979 with_documentation_root_url
980 with_changes_root_url
983 with_multilib_generator
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
998 enable_win32_registry
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1018 with_long_double_128
1019 with_long_double_format
1022 enable_maintainer_mode
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1034 enable_s390_excess_float_precision
1036 ac_precious_vars
='build_alias
1055 # Initialize some variables set by options.
1057 ac_init_version
=false
1058 ac_unrecognized_opts
=
1059 ac_unrecognized_sep
=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file
=/dev
/null
1069 program_transform_name
=s
,x
,x
,
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir
='${exec_prefix}/bin'
1084 sbindir
='${exec_prefix}/sbin'
1085 libexecdir
='${exec_prefix}/libexec'
1086 datarootdir
='${prefix}/share'
1087 datadir
='${datarootdir}'
1088 sysconfdir
='${prefix}/etc'
1089 sharedstatedir
='${prefix}/com'
1090 localstatedir
='${prefix}/var'
1091 includedir
='${prefix}/include'
1092 oldincludedir
='/usr/include'
1093 docdir
='${datarootdir}/doc/${PACKAGE}'
1094 infodir
='${datarootdir}/info'
1099 libdir
='${exec_prefix}/lib'
1100 localedir
='${datarootdir}/locale'
1101 mandir
='${datarootdir}/man'
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\
$ac_option
1115 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1126 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1128 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1129 bindir
=$ac_optarg ;;
1131 -build |
--build |
--buil |
--bui |
--bu)
1132 ac_prev
=build_alias
;;
1133 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1134 build_alias
=$ac_optarg ;;
1136 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1137 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1138 ac_prev
=cache_file
;;
1139 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1140 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1141 cache_file
=$ac_optarg ;;
1143 --config-cache |
-C)
1144 cache_file
=config.cache
;;
1146 -datadir |
--datadir |
--datadi |
--datad)
1148 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1149 datadir
=$ac_optarg ;;
1151 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1152 |
--dataroo |
--dataro |
--datar)
1153 ac_prev
=datarootdir
;;
1154 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1155 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1156 datarootdir
=$ac_optarg ;;
1158 -disable-* |
--disable-*)
1159 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1162 as_fn_error $?
"invalid feature name: $ac_useropt"
1163 ac_useropt_orig
=$ac_useropt
1164 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_
$ac_useropt"
1169 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep
=', ';;
1172 eval enable_
$ac_useropt=no
;;
1174 -docdir |
--docdir |
--docdi |
--doc |
--do)
1176 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1177 docdir
=$ac_optarg ;;
1179 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1181 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1182 dvidir
=$ac_optarg ;;
1184 -enable-* |
--enable-*)
1185 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1188 as_fn_error $?
"invalid feature name: $ac_useropt"
1189 ac_useropt_orig
=$ac_useropt
1190 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_
$ac_useropt"
1195 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep
=', ';;
1198 eval enable_
$ac_useropt=\
$ac_optarg ;;
1200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1202 |
--exec |
--exe |
--ex)
1203 ac_prev
=exec_prefix
;;
1204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1206 |
--exec=* |
--exe=* |
--ex=*)
1207 exec_prefix
=$ac_optarg ;;
1209 -gas |
--gas |
--ga |
--g)
1210 # Obsolete; use --with-gas.
1213 -help |
--help |
--hel |
--he |
-h)
1214 ac_init_help
=long
;;
1215 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1216 ac_init_help
=recursive
;;
1217 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1218 ac_init_help
=short
;;
1220 -host |
--host |
--hos |
--ho)
1221 ac_prev
=host_alias
;;
1222 -host=* |
--host=* |
--hos=* |
--ho=*)
1223 host_alias
=$ac_optarg ;;
1225 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1227 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1229 htmldir
=$ac_optarg ;;
1231 -includedir |
--includedir |
--includedi |
--included |
--include \
1232 |
--includ |
--inclu |
--incl |
--inc)
1233 ac_prev
=includedir
;;
1234 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1235 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1236 includedir
=$ac_optarg ;;
1238 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1240 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1241 infodir
=$ac_optarg ;;
1243 -libdir |
--libdir |
--libdi |
--libd)
1245 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1246 libdir
=$ac_optarg ;;
1248 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1249 |
--libexe |
--libex |
--libe)
1250 ac_prev
=libexecdir
;;
1251 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1252 |
--libexe=* |
--libex=* |
--libe=*)
1253 libexecdir
=$ac_optarg ;;
1255 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1256 ac_prev
=localedir
;;
1257 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1258 localedir
=$ac_optarg ;;
1260 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1261 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1262 ac_prev
=localstatedir
;;
1263 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1264 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1265 localstatedir
=$ac_optarg ;;
1267 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1269 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1270 mandir
=$ac_optarg ;;
1272 -nfp |
--nfp |
--nf)
1273 # Obsolete; use --without-fp.
1276 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1277 |
--no-cr |
--no-c |
-n)
1280 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1281 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1284 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1285 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1286 |
--oldin |
--oldi |
--old |
--ol |
--o)
1287 ac_prev
=oldincludedir
;;
1288 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1289 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1290 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1291 oldincludedir
=$ac_optarg ;;
1293 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1295 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1296 prefix
=$ac_optarg ;;
1298 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1299 |
--program-pre |
--program-pr |
--program-p)
1300 ac_prev
=program_prefix
;;
1301 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1302 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1303 program_prefix
=$ac_optarg ;;
1305 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1306 |
--program-suf |
--program-su |
--program-s)
1307 ac_prev
=program_suffix
;;
1308 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1309 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1310 program_suffix
=$ac_optarg ;;
1312 -program-transform-name |
--program-transform-name \
1313 |
--program-transform-nam |
--program-transform-na \
1314 |
--program-transform-n |
--program-transform- \
1315 |
--program-transform |
--program-transfor \
1316 |
--program-transfo |
--program-transf \
1317 |
--program-trans |
--program-tran \
1318 |
--progr-tra |
--program-tr |
--program-t)
1319 ac_prev
=program_transform_name
;;
1320 -program-transform-name=* |
--program-transform-name=* \
1321 |
--program-transform-nam=* |
--program-transform-na=* \
1322 |
--program-transform-n=* |
--program-transform-=* \
1323 |
--program-transform=* |
--program-transfor=* \
1324 |
--program-transfo=* |
--program-transf=* \
1325 |
--program-trans=* |
--program-tran=* \
1326 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1327 program_transform_name
=$ac_optarg ;;
1329 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1331 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1332 pdfdir
=$ac_optarg ;;
1334 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1336 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1339 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1340 |
-silent |
--silent |
--silen |
--sile |
--sil)
1343 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1345 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1347 sbindir
=$ac_optarg ;;
1349 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1350 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1351 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1353 ac_prev
=sharedstatedir
;;
1354 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1355 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1356 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1358 sharedstatedir
=$ac_optarg ;;
1360 -site |
--site |
--sit)
1362 -site=* |
--site=* |
--sit=*)
1365 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1367 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1368 srcdir
=$ac_optarg ;;
1370 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1371 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1372 ac_prev
=sysconfdir
;;
1373 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1374 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1375 sysconfdir
=$ac_optarg ;;
1377 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1378 ac_prev
=target_alias
;;
1379 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1380 target_alias
=$ac_optarg ;;
1382 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1385 -version |
--version |
--versio |
--versi |
--vers |
-V)
1386 ac_init_version
=: ;;
1389 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1392 as_fn_error $?
"invalid package name: $ac_useropt"
1393 ac_useropt_orig
=$ac_useropt
1394 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1399 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep
=', ';;
1402 eval with_
$ac_useropt=\
$ac_optarg ;;
1404 -without-* |
--without-*)
1405 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1408 as_fn_error $?
"invalid package name: $ac_useropt"
1409 ac_useropt_orig
=$ac_useropt
1410 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1415 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep
=', ';;
1418 eval with_
$ac_useropt=no
;;
1421 # Obsolete; use --with-x.
1424 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1425 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1426 ac_prev
=x_includes
;;
1427 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1428 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1429 x_includes
=$ac_optarg ;;
1431 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1432 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1433 ac_prev
=x_libraries
;;
1434 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1435 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1436 x_libraries
=$ac_optarg ;;
1438 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1443 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1447 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1449 eval $ac_envvar=\
$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1463 if test -n "$ac_prev"; then
1464 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $?
"missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1471 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1476 # Check all directory arguments for consistency.
1477 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val
=\$
$ac_var
1483 # Remove trailing slashes.
1486 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\
$ac_val;;
1489 # Be sure to have absolute directory names.
1491 [\\/$
]* | ?
:[\\/]* ) continue;;
1492 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1494 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1502 target
=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x
; then
1506 if test "x$build_alias" = x
; then
1507 cross_compiling
=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1514 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1516 test "$silent" = yes && exec 6>/dev
/null
1519 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di
=`ls -di .` &&
1521 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $?
"working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $?
"pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted
=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir
=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1559 ac_srcdir_defaulted
=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1563 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1577 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1579 for ac_var
in $ac_precious_vars; do
1580 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1582 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1593 \`configure' configures this package to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1656 --build=BUILD configure
for building on BUILD
[guessed
]
1657 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1658 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1662 if test -n "$ac_init_help"; then
1667 --disable-option-checking ignore unrecognized
--enable/--with options
1668 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1669 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files
in source dir intended
1672 for creating
source tarballs
for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support
for large files
1675 --disable-build-format-warnings
1676 don
't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and
locate unused parts
1687 of the compiler. With LEVEL
, specify optimization.
1688 Values are opt
, noopt
, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support
for multiple ABIs
1694 --enable-multiarch enable support
for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1696 --enable-decimal-float={no
,yes,bid
,dpd
}
1697 enable decimal float extension to C. Selecting
'bid'
1698 or
'dpd' choses
which decimal floating point format
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check
for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable
-fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don
't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stack-clash-protection-guard-size=size
1824 Set the default stack clash protection guard size
1825 for specific targets as a power of two in bytes.
1826 --with-dwarf2 force the default debug format to be DWARF 2
1827 --with-specs=SPECS add SPECS to driver command-line processing
1828 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1829 --with-bugurl=URL Direct users to URL to report a bug
1830 --with-documentation-root-url=URL
1831 Root for documentation URLs
1832 --with-changes-root-url=URL
1833 Root for GCC changes URLs
1834 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1836 --with-multilib-generator
1837 Multi-libs configuration string (RISC-V only)
1838 --with-zstd=PATH specify prefix directory for installed zstd library.
1839 Equivalent to --with-zstd-include=PATH/include plus
1840 --with-zstd-lib=PATH/lib
1841 --with-zstd-include=PATH
1842 specify directory for installed zstd include files
1843 --with-zstd-lib=PATH specify directory for the installed zstd library
1844 --with-gnu-ld assume the C compiler uses GNU ld default=no
1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1846 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1847 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1848 --with-gcc-major-version-only
1849 use only GCC major number
in filesystem paths
1850 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1852 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1853 --with-plugin-ld=[ARG
] specify the plugin linker
1854 --with-glibc-version=M.N
1855 assume GCC used with glibc version M.N or later
1856 --with-long-double-128 use
128-bit long double by default
1857 --with-long-double-format={ieee
,ibm
}
1858 Specify whether PowerPC long double uses IEEE or IBM format
1860 --with-gc={page
,zone
} this option is not supported anymore. It used to
1861 choose the garbage collection mechanism to use with
1863 --with-system-zlib use installed libz
1864 --with-linker-hash-style={sysv
,gnu
,both
}
1865 specify the linker
hash style
1866 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1867 specify the default of
-fdiagnostics-color option
1868 auto-if-env stands
for -fdiagnostics-color=auto
if
1869 GCC_COLOR environment variable is present and
1870 -fdiagnostics-color=never otherwise
1871 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1872 specify the default of
-fdiagnostics-urls option
1873 auto-if-env stands
for -fdiagnostics-urls=auto
if
1874 GCC_URLS or TERM_URLS environment variable is
1875 present and
-fdiagnostics-urls=never otherwise
1877 Some influential environment variables
:
1878 CC C compiler
command
1879 CFLAGS C compiler flags
1880 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1881 nonstandard directory
<lib dir
>
1882 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1883 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1884 you have headers
in a nonstandard directory
<include dir
>
1885 CXX C
++ compiler
command
1886 CXXFLAGS C
++ compiler flags
1887 CXXCPP C
++ preprocessor
1889 GMPLIBS How to link GMP
1890 GMPINC How to
find GMP include files
1891 ISLLIBS How to link isl
1892 ISLINC How to
find isl include files
1894 Use these variables to override the choices made by
`configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1897 Report bugs to the package provider.
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1927 .) # We are building in place.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1961 generated by GNU Autoconf 2.69
1963 Copyright (C) 2012 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1970 ## ------------------------ ##
1971 ## Autoconf initialization. ##
1972 ## ------------------------ ##
1974 # ac_fn_c_try_compile LINENO
1975 # --------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1984 *) ac_try_echo
=$ac_try;;
1986 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1990 if test -s conftest.err
; then
1991 grep -v '^ *+' conftest.err
>conftest.er1
1992 cat conftest.er1
>&5
1993 mv -f conftest.er1 conftest.err
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.
$ac_objext; then :
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.
$ac_ext >&5
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status
$ac_retval
2010 } # ac_fn_c_try_compile
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile
()
2017 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2018 rm -f conftest.
$ac_objext
2019 if { { ac_try
="$ac_compile"
2021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_cxx_try_compile
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2059 *) ac_try_echo
=$ac_try;;
2061 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2065 if test -s conftest.err
; then
2066 grep -v '^ *+' conftest.err
>conftest.er1
2067 cat conftest.er1
>&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i
&& {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.
$ac_ext >&5
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status
$ac_retval
2085 } # ac_fn_cxx_try_cpp
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2092 ac_fn_cxx_check_header_mongrel
()
2094 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2095 if eval \
${$3+:} false
; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \
${$3+:} false
; then :
2099 $as_echo_n "(cached) " >&6
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2113 if ac_fn_cxx_try_compile
"$LINENO"; then :
2114 ac_header_compiler
=yes
2116 ac_header_compiler
=no
2118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2130 ac_header_preproc
=yes
2132 ac_header_preproc
=no
2134 rm -f conftest.err conftest.i conftest.
$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \
${$3+:} false
; then :
2162 $as_echo_n "(cached) " >&6
2164 eval "$3=\$ac_header_compiler"
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_cxx_check_header_mongrel
2174 # ac_fn_cxx_try_run LINENO
2175 # ------------------------
2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177 # that executables *can* be run.
2178 ac_fn_cxx_try_run
()
2180 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2181 if { { ac_try
="$ac_link"
2183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_link") 2>&5
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192 { { case "(($ac_try" in
2193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2194 *) ac_try_echo
=$ac_try;;
2196 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_try") 2>&5
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; }; }; then :
2204 $as_echo "$as_me: program exited with status $ac_status" >&5
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.
$ac_ext >&5
2208 ac_retval
=$ac_status
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status
$ac_retval
2214 } # ac_fn_cxx_try_run
2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists and can be compiled using the include files in
2219 # INCLUDES, setting the cache variable VAR accordingly.
2220 ac_fn_cxx_check_header_compile
()
2222 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \
${$3+:} false
; then :
2226 $as_echo_n "(cached) " >&6
2228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2233 if ac_fn_cxx_try_compile
"$LINENO"; then :
2238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_cxx_check_header_compile
2247 # ac_fn_c_try_cpp LINENO
2248 # ----------------------
2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2252 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2253 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285 # ----------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2289 ac_fn_cxx_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2302 return test_array [0];
2308 if ac_fn_cxx_try_compile "$LINENO"; then :
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2319 return test_array [0];
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2344 static int test_array [1 - 2 * !(($2) < 0)];
2346 return test_array [0];
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2363 return test_array [0];
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2398 return test_array [0];
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2427 FILE *f = fopen ("conftest.val", "w");
2432 long int i = longval ();
2435 fprintf (f, "%ld", i);
2439 unsigned long int i = ulongval ();
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2452 if ac_fn_cxx_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_cxx_compute_int
2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468 # ---------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_cxx_check_type ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2492 if ac_fn_cxx_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2505 if ac_fn_cxx_try_compile "$LINENO"; then :
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_cxx_check_type
2521 # ac_fn_c_find_intX_t LINENO BITS VAR
2522 # -----------------------------------
2523 # Finds a signed integer type with width BITS, setting cache variable VAR
2525 ac_fn_c_find_intX_t ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529 $as_echo_n "checking for int$2_t... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2534 # Order is important - never check a type that is potentially smaller
2535 # than half of the expected target width.
2536 for ac_type in int$2_t 'int' 'long int' \
2537 'long long int' 'short int' 'signed char'; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $ac_includes_default
2541 enum { N = $2 / 2 - 1 };
2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2547 return test_array [0];
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $ac_includes_default
2557 enum { N = $2 / 2 - 1 };
2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2564 return test_array [0];
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2577 eval "$3=\$ac_type" ;;
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 if eval test \"x\$"$3"\" = x"no"; then :
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 } # ac_fn_c_find_intX_t
2597 # ac_fn_cxx_try_link LINENO
2598 # -------------------------
2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_link ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { { ac_try="$ac_link"
2606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2607 *) ac_try_echo
=$ac_try;;
2609 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>conftest.err
2613 if test -s conftest.err
; then
2614 grep -v '^ *+' conftest.err
>conftest.er1
2615 cat conftest.er1
>&5
2616 mv -f conftest.er1 conftest.err
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; } && {
2620 test -z "$ac_cxx_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest
$ac_exeext && {
2623 test "$cross_compiling" = yes ||
2624 test -x conftest
$ac_exeext
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.
$ac_ext >&5
2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635 # interfere with the next link command; also delete a directory that is
2636 # left behind by Apple's compiler. We do this before executing the actions.
2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status
$ac_retval
2641 } # ac_fn_cxx_try_link
2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
2644 # ------------------------------------
2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2647 ac_fn_c_find_uintX_t
()
2649 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2651 $as_echo_n "checking for uint$2_t... " >&6; }
2652 if eval \
${$3+:} false
; then :
2653 $as_echo_n "(cached) " >&6
2656 # Order is important - never check a type that is potentially smaller
2657 # than half of the expected target width.
2658 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $ac_includes_default
2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2668 return test_array [0];
2674 if ac_fn_cxx_try_compile
"$LINENO"; then :
2679 eval "$3=\$ac_type" ;;
2682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 if eval test \"x\$
"$3"\" = x
"no"; then :
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_find_uintX_t
2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698 # ------------------------------------------------
2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700 ac_fn_cxx_check_header_preproc
()
2702 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704 $as_echo_n "checking for $2... " >&6; }
2705 if eval \
${$3+:} false
; then :
2706 $as_echo_n "(cached) " >&6
2708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2712 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2717 rm -f conftest.err conftest.i conftest.
$ac_ext
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724 } # ac_fn_cxx_check_header_preproc
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func
()
2731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \
${$3+:} false
; then :
2735 $as_echo_n "(cached) " >&6
2737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2741 #define $2 innocuous_$2
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char $2 (); below.
2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 <limits.h> exists even on freestanding compilers. */
2749 # include <limits.h>
2751 # include <assert.h>
2756 /* Override any GCC internal prototype to avoid an error.
2757 Use char because int might match the return type of a GCC
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined __stub_$2 || defined __stub___$2
2778 if ac_fn_cxx_try_link
"$LINENO"; then :
2783 rm -f core conftest.err conftest.
$ac_objext \
2784 conftest
$ac_exeext conftest.
$ac_ext
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 } # ac_fn_cxx_check_func
2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794 # -----------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2797 ac_fn_cxx_check_decl
()
2799 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2800 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \
${$3+:} false
; then :
2805 $as_echo_n "(cached) " >&6
2807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2813 #ifndef $as_decl_name
2815 (void) $as_decl_use;
2817 (void) $as_decl_name;
2825 if ac_fn_cxx_try_compile
"$LINENO"; then :
2830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 } # ac_fn_cxx_check_decl
2839 # ac_fn_c_try_link LINENO
2840 # -----------------------
2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
2844 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2845 rm -f conftest.
$ac_objext conftest
$ac_exeext
2846 if { { ac_try
="$ac_link"
2848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>conftest.err
2855 if test -s conftest.err; then
2856 grep -v '^ *+' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 mv -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest$ac_exeext && {
2865 test "$cross_compiling" = yes ||
2866 test -x conftest$ac_exeext
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877 # interfere with the next link command; also delete a directory that is
2878 # left behind by Apple's compiler. We do this before executing the actions.
2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 as_fn_set_status $ac_retval
2883 } # ac_fn_c_try_link
2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2886 # ----------------------------------------------
2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888 ac_fn_c_check_header_preproc ()
2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892 $as_echo_n "checking for $2... " >&6; }
2893 if eval \${$3+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2900 if ac_fn_c_try_cpp "$LINENO"; then :
2905 rm -f conftest.err conftest.i conftest.$ac_ext
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_header_preproc
2914 # ac_fn_c_check_func LINENO FUNC VAR
2915 # ----------------------------------
2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2917 ac_fn_c_check_func ()
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921 $as_echo_n "checking for $2... " >&6; }
2922 if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2929 #define $2 innocuous_$2
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $2 (); below.
2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 <limits.h> exists even on freestanding compilers. */
2937 # include <limits.h>
2939 # include <assert.h>
2944 /* Override any GCC internal prototype to avoid an error.
2945 Use char because int might match the return type of a GCC
2946 builtin and then its argument prototype would still apply. */
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined __stub_$2 || defined __stub___$2
2966 if ac_fn_c_try_link "$LINENO"; then :
2971 rm -f core conftest.err conftest.$ac_objext \
2972 conftest$ac_exeext conftest.$ac_ext
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979 } # ac_fn_c_check_func
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2984 It was created by $as_me, which was
2985 generated by GNU Autoconf 2.69. Invocation command line was
2997 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2998 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2999 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3000 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3001 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3003 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3004 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3006 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3007 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3008 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3009 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3010 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3011 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3012 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3045 ac_must_keep_next=false
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3056 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3074 -* ) ac_must_keep_next=true ;;
3077 as_fn_append ac_configure_args " '$ac_arg'"
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3099 # The following way of writing the cache mishandles newlines in values,
3101 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3102 eval ac_val=\$$ac_var
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3117 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3135 for ac_var in $ac_subst_vars
3137 eval ac_val=\$$ac_var
3139 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3141 $as_echo "$ac_var='\''$ac_val'\''"
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3150 for ac_var in $ac_subst_files
3152 eval ac_val=\$$ac_var
3154 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3156 $as_echo "$ac_var='\''$ac_val'\''"
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site
script $ac_site_file
3243 See \
`config.log' for more details" "$LINENO" 5; }
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3264 # Check that the precious variables saved in the cache have kept the same
3266 ac_cache_corrupted=false
3267 for ac_var in $ac_precious_vars; do
3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269 eval ac_new_set=\$ac_env_${ac_var}_set
3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271 eval ac_new_val=\$ac_env_${ac_var}_value
3272 case $ac_old_set,$ac_new_set in
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3275 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276 ac_cache_corrupted=: ;;
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3279 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3283 if test "x$ac_old_val" != "x$ac_new_val"; then
3284 # differences in whitespace do not lead to failure.
3285 ac_old_val_w=`echo x
$ac_old_val`
3286 ac_new_val_w=`echo x
$ac_new_val`
3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3290 ac_cache_corrupted=:
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294 eval $ac_var=\$ac_old_val
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3297 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3302 # Pass precious variables to config.status.
3303 if test "$ac_new_set" = set; then
3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3306 *) ac_arg=$ac_var=$ac_new_val ;;
3308 case " $ac_configure_args " in
3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3314 if $ac_cache_corrupted; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3321 ## -------------------- ##
3322 ## Main body of script. ##
3323 ## -------------------- ##
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3339 gcc_version=`cat $srcdir/BASE-VER
`
3341 # Determine the host, build, and target systems
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3348 elif test -f "$ac_dir/install.sh"; then
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3352 elif test -f "$ac_dir/shtool"; then
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3396 ac_save_IFS=$IFS; IFS='-'
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3406 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3429 ac_save_IFS=$IFS; IFS='-'
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3439 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3443 $as_echo_n "checking target system type... " >&6; }
3444 if ${ac_cv_target+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test "x$target_alias" = x; then
3448 ac_cv_target=$ac_cv_host
3450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3456 $as_echo "$ac_cv_target" >&6; }
3457 case $ac_cv_target in
3459 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3461 target=$ac_cv_target
3462 ac_save_IFS=$IFS; IFS='-'
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3472 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3480 program_prefix=${target_alias}-
3482 # Determine the noncanonical host name, for Ada.
3483 case ${build_alias} in
3484 "") build_noncanonical=${build} ;;
3485 *) build_noncanonical=${build_alias} ;;
3488 case ${host_alias} in
3489 "") host_noncanonical=${build_noncanonical} ;;
3490 *) host_noncanonical=${host_alias} ;;
3496 # Determine the noncanonical target name, for directory use.
3497 case ${target_alias} in
3498 "") target_noncanonical=${host_noncanonical} ;;
3499 *) target_noncanonical=${target_alias} ;;
3505 # Used for constructing correct paths for offload compilers.
3506 real_target_noncanonical=${target_noncanonical}
3509 # Determine the target- and build-specific subdirectories
3511 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3512 # have matching libraries, they should use host libraries: Makefile.tpl
3513 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3514 # However, they still use the build modules, because the corresponding
3515 # host modules (e.g. bison) are only built for the host when bootstrap
3517 # - build_subdir is where we find build modules, and never changes.
3518 # - build_libsubdir is where we find build libraries, and can be overridden.
3520 # Prefix 'build-' so this never conflicts with target_subdir.
3521 build_subdir="build-${build_noncanonical}"
3523 # Check whether --with-build-libsubdir was given.
3524 if test "${with_build_libsubdir+set}" = set; then :
3525 withval=$with_build_libsubdir; build_libsubdir="$withval"
3527 build_libsubdir="$build_subdir"
3530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3531 if ( test $srcdir = . && test -d gcc ) \
3532 || test -d $srcdir/../host-${host_noncanonical}; then
3533 host_subdir="host-${host_noncanonical}"
3538 target_subdir=${target_noncanonical}
3541 # Set program_transform_name
3542 test "$program_prefix" != NONE &&
3543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3544 # Use a double $ so make ignores it.
3545 test "$program_suffix" != NONE &&
3546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3547 # Double any \ or $.
3548 # By default was `s
,x
,x
', remove it if useless.
3549 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3553 # Check for bogus environment variables.
3554 # Test if LIBRARY_PATH contains the notation for the current directory
3555 # since this would lead to problems installing/building glibc.
3556 # LIBRARY_PATH contains the current directory if one of the following
3558 # - one of the terminals (":" and ";") is the first or last sign
3559 # - two terminals occur directly after each other
3560 # - the path contains an element with a dot in it
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3562 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3563 case ${LIBRARY_PATH} in
3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565 library_path_setting="contains current directory"
3568 library_path_setting="ok"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3572 $as_echo "$library_path_setting" >&6; }
3573 if test "$library_path_setting" != "ok"; then
3575 *** LIBRARY_PATH shouldn't contain the current directory when
3576 *** building gcc. Please change the environment variable
3577 *** and run configure again.
" "$LINENO" 5
3580 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3581 # since this would lead to problems installing/building glibc.
3582 # GCC_EXEC_PREFIX contains the current directory if one of the following
3584 # - one of the terminals (":" and ";") is the first or last sign
3585 # - two terminals occur directly after each other
3586 # - the path contains an element with a dot in it
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3588 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3589 case ${GCC_EXEC_PREFIX} in
3590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3591 gcc_exec_prefix_setting="contains current directory
"
3594 gcc_exec_prefix_setting="ok
"
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3598 $as_echo "$gcc_exec_prefix_setting" >&6; }
3599 if test "$gcc_exec_prefix_setting" != "ok
"; then
3601 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3602 *** building gcc. Please change the environment variable
3603 *** and run configure again." "$LINENO" 5
3610 # Specify the local prefix
3613 # Check whether --with-local-prefix was given.
3614 if test "${with_local_prefix+set}" = set; then :
3615 withval=$with_local_prefix; case "${withval}" in
3616 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3618 *) local_prefix=$with_local_prefix ;;
3623 # Default local prefix if it is empty
3624 if test x$local_prefix = x; then
3625 local_prefix=/usr/local
3629 # Check whether --with-native-system-header-dir was given.
3630 if test "${with_native_system_header_dir+set}" = set; then :
3631 withval=$with_native_system_header_dir;
3632 case ${with_native_system_header_dir} in
3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3634 /* | [A-Za-z]:[\\/]*) ;;
3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3637 configured_native_system_header_dir="${withval}"
3640 configured_native_system_header_dir=
3645 # Check whether --with-build-sysroot was given.
3646 if test "${with_build_sysroot+set}" = set; then :
3647 withval=$with_build_sysroot; if test x"$withval" != x ; then
3648 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3651 SYSROOT_CFLAGS_FOR_TARGET=
3656 if test "x$prefix" = xNONE; then
3657 test_prefix=/usr/local
3661 if test "x$exec_prefix" = xNONE; then
3662 test_exec_prefix=$test_prefix
3664 test_exec_prefix=$exec_prefix
3668 # Check whether --with-sysroot was given.
3669 if test "${with_sysroot+set}" = set; then :
3670 withval=$with_sysroot;
3671 case ${with_sysroot} in
3673 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3675 case ${with_sysroot} in
3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3681 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3683 case ${TARGET_SYSTEM_ROOT} in
3684 "${test_prefix}"|"${test_prefix}/"*|\
3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3686 '${prefix}'|'${prefix}/'*|\
3687 '${exec_prefix}'|'${exec_prefix}/'*)
3688 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3689 TARGET_SYSTEM_ROOT_DEFINE="$t"
3696 TARGET_SYSTEM_ROOT_DEFINE=
3697 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3705 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3706 # passed in by the toplevel make and thus we'd get different behavior
3707 # depending on where we built the sources.
3708 gcc_gxx_include_dir
=
3709 # Specify the g++ header file directory
3711 # Check whether --with-gxx-include-dir was given.
3712 if test "${with_gxx_include_dir+set}" = set; then :
3713 withval
=$with_gxx_include_dir; case "${withval}" in
3714 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3716 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3721 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3722 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3723 # relative to the sysroot.
3724 gcc_gxx_include_dir_add_sysroot
=0
3726 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3727 if test x
${gcc_gxx_include_dir} = x
; then
3728 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3729 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3731 libstdcxx_incdir
='include/c++/$(version)'
3732 if test x
$host != x
$target; then
3733 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3735 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3737 elif test "${with_sysroot+set}" = set; then
3738 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3739 if test "${gcc_gxx_without_sysroot}"; then
3740 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3741 gcc_gxx_include_dir_add_sysroot
=1
3745 # Configuration for an alternate set of C++ headers.
3746 gcc_gxx_libcxx_include_dir
=
3747 # Specify the alternate g++ header file directory
3749 # Check whether --with-gxx-libcxx-include-dir was given.
3750 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3751 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3752 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3754 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3759 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3760 # check to see if the latter starts with the former and, upon success, compute
3761 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3762 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3764 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3766 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3769 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3772 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3773 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3774 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3775 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3777 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3778 if test x
$host != x
$target; then
3779 libcxx_incdir
="$target_alias/$libcxx_incdir"
3781 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3783 elif test "${with_sysroot+set}" = set; then
3784 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3785 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3786 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3787 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3792 # Check whether --with-cpp_install_dir was given.
3793 if test "${with_cpp_install_dir+set}" = set; then :
3794 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3795 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3796 elif test x
$withval != xno
; then
3797 cpp_install_dir
=$withval
3802 # We would like to our source tree to be readonly. However when releases or
3803 # pre-releases are generated, the flex/bison generated files as well as the
3804 # various formats of manuals need to be included along with the rest of the
3805 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3809 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3810 # Check whether --enable-generated-files-in-srcdir was given.
3811 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3812 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3814 generated_files_in_srcdir
=no
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3819 $as_echo "$generated_files_in_srcdir" >&6; }
3821 if test "$generated_files_in_srcdir" = "yes"; then
3828 # -------------------
3829 # Find default linker
3830 # -------------------
3834 # Check whether --with-gnu-ld was given.
3835 if test "${with_gnu_ld+set}" = set; then :
3836 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3844 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3845 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3853 # With pre-defined ld
3855 # Check whether --with-ld was given.
3856 if test "${with_ld+set}" = set; then :
3857 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3860 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3861 if test ! -x "$DEFAULT_LINKER"; then
3862 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3863 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3865 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3869 cat >>confdefs.h
<<_ACEOF
3870 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3876 $as_echo_n "checking whether a default linker was specified... " >&6; }
3877 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3878 if test x
"$gnu_ld_flag" = x
"no"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3880 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3883 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3890 # With demangler in GNU ld
3892 # Check whether --with-demangler-in-ld was given.
3893 if test "${with_demangler_in_ld+set}" = set; then :
3894 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3900 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3902 # Check whether --with-dsymutil was given.
3903 if test "${with_dsymutil+set}" = set; then :
3904 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3909 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3910 if test ! -x "$DEFAULT_DSYMUTIL"; then
3911 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3913 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3918 cat >>confdefs.h
<<_ACEOF
3919 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3925 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3926 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3928 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3934 # ----------------------
3935 # Find default assembler
3936 # ----------------------
3940 # Check whether --with-gnu-as was given.
3941 if test "${with_gnu_as+set}" = set; then :
3942 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3949 # Check whether --with-as was given.
3950 if test "${with_as+set}" = set; then :
3951 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3954 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3955 if test ! -x "$DEFAULT_ASSEMBLER"; then
3956 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3957 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3961 cat >>confdefs.h
<<_ACEOF
3962 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3968 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3969 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3970 if test x
"$gas_flag" = x
"no"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3972 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3975 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3986 # If a non-executable a.out is present (e.g. created by GNU as above even if
3987 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3988 # file, even when creating an executable, so an execution test fails.
3989 # Remove possible default executable files to avoid this.
3991 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3992 # Autoconf includes it.
3993 rm -f a.out a.exe b.out
3995 # Find the native compiler
3997 ac_cpp
='$CPP $CPPFLAGS'
3998 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4003 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false
; then :
4007 $as_echo_n "(cached) " >&6
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC
="$CC" # Let the user override the test.
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_exec_ext
in '' $ac_executable_extensions; do
4018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$ac_cv_prog_CC"; then
4042 # Extract the first word of "gcc", so it can be a program name with args.
4043 set dummy gcc
; ac_word
=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4047 $as_echo_n "(cached) " >&6
4049 if test -n "$ac_ct_CC"; then
4050 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_exec_ext
in '' $ac_executable_extensions; do
4058 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_CC
="gcc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4070 if test -n "$ac_ct_CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4072 $as_echo "$ac_ct_CC" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4078 if test "x$ac_ct_CC" = x
; then
4081 case $cross_compiling:$ac_tool_warned in
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned
=yes ;;
4093 if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4096 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CC+:} false
; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC
="$CC" # Let the user override the test.
4105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir
=.
4110 for ac_exec_ext
in '' $ac_executable_extensions; do
4111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 if test -n "$CC"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125 $as_echo "$CC" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4134 if test -z "$CC"; then
4135 # Extract the first word of "cc", so it can be a program name with args.
4136 set dummy cc
; ac_word
=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_CC+:} false
; then :
4140 $as_echo_n "(cached) " >&6
4142 if test -n "$CC"; then
4143 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4154 ac_prog_rejected
=yes
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 if test $ac_prog_rejected = yes; then
4166 # We found a bogon in the path, so make sure we never use it.
4167 set dummy
$ac_cv_prog_CC
4169 if test $# != 0; then
4170 # We chose a different compiler from the bogus one.
4171 # However, it has the same basename, so the bogon will be chosen
4172 # first if we set CC to just the basename; use the full file name.
4174 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4190 if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog
in cl.exe
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false
; then :
4199 $as_echo_n "(cached) " >&6
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC
="$CC" # Let the user override the test.
4204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir
=.
4209 for ac_exec_ext
in '' $ac_executable_extensions; do
4210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4231 test -n "$CC" && break
4234 if test -z "$CC"; then
4236 for ac_prog
in cl.exe
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy
$ac_prog; ac_word
=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4243 $as_echo_n "(cached) " >&6
4245 if test -n "$ac_ct_CC"; then
4246 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_CC
="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268 $as_echo "$ac_ct_CC" >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$ac_ct_CC" && break
4278 if test "x$ac_ct_CC" = x
; then
4281 case $cross_compiling:$ac_tool_warned in
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned
=yes ;;
4294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error $?
"no acceptable C compiler found in \$PATH
4297 See \`config.log' for more details" "$LINENO" 5; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4303 for ac_option
in --version -v -V -qversion; do
4304 { { ac_try
="$ac_compiler $ac_option >&5"
4306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4313 if test -s conftest.err; then
4315 ... rest of stderr output deleted ...
4316 10q' conftest.err >conftest.er1
4317 cat conftest.er1 >&5
4319 rm -f conftest.er1 conftest.err
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341 $as_echo_n "checking whether the C compiler works... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4348 for ac_file in $ac_files
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4357 if { { ac_try="$ac_link_default"
4359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4360 *) ac_try_echo
=$ac_try;;
4362 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_link_default") 2>&5
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4373 for ac_file
in $ac_files ''
4375 test -f "$ac_file" ||
continue
4377 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4380 # We found the default executable, but exeext='' is most
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4386 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4398 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4403 if test -z "$ac_file"; then :
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.
$ac_ext >&5
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error
77 "C compiler cannot create executables
4412 See \`config.log' for more details" "$LINENO" 5; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4418 $as_echo_n "checking for C compiler default output file name... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 ac_exeext
=$ac_cv_exeext
4423 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4424 ac_clean_files
=$ac_clean_files_save
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4426 $as_echo_n "checking for suffix of executables... " >&6; }
4427 if { { ac_try
="$ac_link"
4429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_link") 2>&5
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
4438 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4439 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4440 # work properly (i.e., refer to `conftest.exe'), while it won't with
4442 for ac_file
in conftest.exe conftest conftest.
*; do
4443 test -f "$ac_file" ||
continue
4445 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4446 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4455 See \`config.log' for more details" "$LINENO" 5; }
4457 rm -f conftest conftest
$ac_cv_exeext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459 $as_echo "$ac_cv_exeext" >&6; }
4461 rm -f conftest.
$ac_ext
4462 EXEEXT
=$ac_cv_exeext
4464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4470 FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4477 ac_clean_files
="$ac_clean_files conftest.out"
4478 # Check that the compiler produces executables we can run. If not, either
4479 # the compiler is broken, or we cross compile.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481 $as_echo_n "checking whether we are cross compiling... " >&6; }
4482 if test "$cross_compiling" != yes; then
4483 { { ac_try
="$ac_link"
4485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 if { ac_try='./conftest$ac_cv_exeext'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4497 *) ac_try_echo
=$ac_try;;
4499 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4507 if test "$cross_compiling" = maybe
; then
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $?
"cannot run C compiled programs.
4513 If you meant to cross compile, use \`--host'.
4514 See \`config.log' for more details" "$LINENO" 5; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519 $as_echo "$cross_compiling" >&6; }
4521 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4522 ac_clean_files
=$ac_clean_files_save
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524 $as_echo_n "checking for suffix of object files... " >&6; }
4525 if ${ac_cv_objext+:} false
; then :
4526 $as_echo_n "(cached) " >&6
4528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 rm -f conftest.o conftest.obj
4540 if { { ac_try
="$ac_compile"
4542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_compile") 2>&5
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; then :
4551 for ac_file in conftest.o conftest.obj conftest.*; do
4552 test -f "$ac_file" || continue;
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4566 See \
`config.log' for more details" "$LINENO" 5; }
4568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571 $as_echo "$ac_cv_objext" >&6; }
4572 OBJEXT=$ac_cv_objext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4576 if ${ac_cv_c_compiler_gnu+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4593 if ac_fn_c_try_compile "$LINENO"; then :
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4604 if test $ac_compiler_gnu = yes; then
4609 ac_test_CFLAGS=${CFLAGS+set}
4610 ac_save_CFLAGS=$CFLAGS
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4613 if ${ac_cv_prog_cc_g+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 ac_save_c_werror_flag=$ac_c_werror_flag
4617 ac_c_werror_flag=yes
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 if ac_fn_c_try_compile "$LINENO"; then :
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4646 if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4662 if ac_fn_c_try_compile "$LINENO"; then :
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4673 $as_echo "$ac_cv_prog_cc_g" >&6; }
4674 if test "$ac_test_CFLAGS" = set; then
4675 CFLAGS=$ac_save_CFLAGS
4676 elif test $ac_cv_prog_cc_g = yes; then
4677 if test "$GCC" = yes; then
4683 if test "$GCC" = yes; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if ${ac_cv_prog_cc_c89+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 ac_cv_prog_cc_c89=no
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4715 s = g (p, va_arg (v,int));
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4758 rm -f conftest.$ac_ext
4763 case "x$ac_cv_prog_cc_c89" in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_CXX+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CXX" && break
4837 if test -z "$CXX"; then
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CXX" && break
4881 if test "x$ac_ct_CXX" = x; then
4884 case $cross_compiling:$ac_tool_warned in
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4904 *) ac_try_echo
=$ac_try;;
4906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4910 if test -s conftest.err
; then
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err
>conftest.er1
4914 cat conftest.er1
>&5
4916 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4924 $as_echo_n "(cached) " >&6
4926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4940 if ac_fn_cxx_try_compile
"$LINENO"; then :
4945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4946 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4956 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS
=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if ${ac_cv_prog_cxx_g+:} false
; then :
4961 $as_echo_n "(cached) " >&6
4963 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag
=yes
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4978 if ac_fn_cxx_try_compile
"$LINENO"; then :
4979 ac_cv_prog_cxx_g
=yes
4982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4993 if ac_fn_cxx_try_compile
"$LINENO"; then :
4996 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5009 if ac_fn_cxx_try_compile
"$LINENO"; then :
5010 ac_cv_prog_cxx_g
=yes
5012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5017 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS
=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5030 if test "$GXX" = yes; then
5037 ac_cpp
='$CPP $CPPFLAGS'
5038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_GNATBIND+:} false
; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 GNATBIND
=$ac_cv_prog_GNATBIND
5074 if test -n "$GNATBIND"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076 $as_echo "$GNATBIND" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5084 if test -z "$ac_cv_prog_GNATBIND"; then
5085 ac_ct_GNATBIND
=$GNATBIND
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087 set dummy gnatbind
; ac_word
=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5091 $as_echo_n "(cached) " >&6
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir
=.
5101 for ac_exec_ext
in '' $ac_executable_extensions; do
5102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5114 if test -n "$ac_ct_GNATBIND"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116 $as_echo "$ac_ct_GNATBIND" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5122 if test "x$ac_ct_GNATBIND" = x
; then
5125 case $cross_compiling:$ac_tool_warned in
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned
=yes ;;
5131 GNATBIND
=$ac_ct_GNATBIND
5134 GNATBIND
="$ac_cv_prog_GNATBIND"
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 GNATMAKE
=$ac_cv_prog_GNATMAKE
5166 if test -n "$GNATMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168 $as_echo "$GNATMAKE" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$ac_cv_prog_GNATMAKE"; then
5177 ac_ct_GNATMAKE
=$GNATMAKE
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179 set dummy gnatmake
; ac_word
=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5183 $as_echo_n "(cached) " >&6
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir
=.
5193 for ac_exec_ext
in '' $ac_executable_extensions; do
5194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5206 if test -n "$ac_ct_GNATMAKE"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208 $as_echo "$ac_ct_GNATMAKE" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5214 if test "x$ac_ct_GNATMAKE" = x
; then
5217 case $cross_compiling:$ac_tool_warned in
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned
=yes ;;
5223 GNATMAKE
=$ac_ct_GNATMAKE
5226 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5230 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5231 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 cat >conftest.adb
<<EOF
5235 procedure conftest is begin null; end conftest;
5237 acx_cv_cc_gcc_supports_ada
=no
5238 # There is a bug in old released versions of GCC which causes the
5239 # driver to exit successfully when the appropriate language module
5240 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5241 # Therefore we must check for the error message as well as an
5242 # unsuccessful exit.
5243 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5244 # given a .adb file, but produce no object file. So we must check
5245 # if an object file was really produced to guard against this.
5246 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5247 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5248 acx_cv_cc_gcc_supports_ada
=yes
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5253 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5255 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5263 if test -n "$ac_tool_prefix"; then
5264 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5265 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_GDC+:} false
; then :
5269 $as_echo_n "(cached) " >&6
5271 if test -n "$GDC"; then
5272 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir
=.
5279 for ac_exec_ext
in '' $ac_executable_extensions; do
5280 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 if test -n "$GDC"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5294 $as_echo "$GDC" >&6; }
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5302 if test -z "$ac_cv_prog_GDC"; then
5304 # Extract the first word of "gdc", so it can be a program name with args.
5305 set dummy gdc
; ac_word
=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5309 $as_echo_n "(cached) " >&6
5311 if test -n "$ac_ct_GDC"; then
5312 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5318 test -z "$as_dir" && as_dir
=.
5319 for ac_exec_ext
in '' $ac_executable_extensions; do
5320 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_ac_ct_GDC
="gdc"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5332 if test -n "$ac_ct_GDC"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5334 $as_echo "$ac_ct_GDC" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5340 if test "x$ac_ct_GDC" = x
; then
5343 case $cross_compiling:$ac_tool_warned in
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347 ac_tool_warned
=yes ;;
5352 GDC
="$ac_cv_prog_GDC"
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5356 $as_echo_n "checking whether the D compiler works... " >&6; }
5357 if ${acx_cv_d_compiler_works+:} false
; then :
5358 $as_echo_n "(cached) " >&6
5360 cat >conftest.d
<<EOF
5361 module conftest; int main() { return 0; }
5363 acx_cv_d_compiler_works
=no
5364 if test "x$GDC" != xno
; then
5365 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5366 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5367 acx_cv_d_compiler_works
=yes
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5373 $as_echo "$acx_cv_d_compiler_works" >&6; }
5374 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5381 # Do configure tests with the C++ compiler, since that's what we build with.
5383 ac_cpp
='$CXXCPP $CPPFLAGS'
5384 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5389 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5390 # optimizations to be activated explicitly by the toplevel.
5392 */prev-gcc
/xgcc
*) ;;
5393 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5394 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5400 # Determine PICFLAG for target gnatlib.
5406 # PIC is the default on some targets or must not be used.
5408 # For darwin, common symbols are not allowed in MH_DYLIB files
5410 # If we are using a compiler supporting mdynamic-no-pic
5411 # and the option has been tested as safe to add, then cancel
5412 # it here, since the code generated is incompatible with shared
5414 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5415 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5419 # PIC is the default.
5422 # PIC is the default for 64-bit PA HP-UX.
5424 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5426 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5428 i
[34567]86-*-interix[3-9]*)
5429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5430 # Instead, we relocate shared libraries at runtime.
5432 i
[34567]86-*-nto-qnx*)
5433 # QNX uses GNU C++, but need to define -shared option too, otherwise
5435 PICFLAG_FOR_TARGET
='-fPIC -shared'
5437 i
[34567]86-pc-msdosdjgpp*)
5438 # DJGPP does not support shared libraries at all.
5441 # On IA64 HP-UX, PIC is the default but the pic flag
5442 # sets the default TLS model and affects inlining.
5443 PICFLAG_FOR_TARGET
=-fPIC
5446 PICFLAG_FOR_TARGET
=-fpic
5449 # PIC is the default.
5451 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5452 # All AIX code is PIC.
5455 # Some targets support both -fPIC and -fpic, but prefer the latter.
5457 i
[34567]86-*-* | x86_64-
*-*)
5458 PICFLAG_FOR_TARGET
=-fpic
5460 # FIXME: Override -fPIC default in libgcc only?
5461 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5462 PICFLAG_FOR_TARGET
=-fpic
5464 # FIXME: Simplify to sh*-*-netbsd*?
5465 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5466 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5467 PICFLAG_FOR_TARGET
=-fpic
5469 # Default to -fPIC unless specified otherwise.
5471 PICFLAG_FOR_TARGET
=-fPIC
5475 # If the user explicitly uses -fpic/-fPIC, keep that.
5476 case "${CFLAGS_FOR_TARGET}" in
5478 PICFLAG_FOR_TARGET
=-fpic
5481 PICFLAG_FOR_TARGET
=-fPIC
5487 # -------------------------
5488 # Check C compiler features
5489 # -------------------------
5493 ac_cpp
='$CXXCPP $CPPFLAGS'
5494 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5498 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5499 if test -z "$CXXCPP"; then
5500 if ${ac_cv_prog_CXXCPP+:} false
; then :
5501 $as_echo_n "(cached) " >&6
5503 # Double quotes because CXXCPP needs to be expanded
5504 for CXXCPP
in "$CXX -E" "/lib/cpp"
5507 for ac_cxx_preproc_warn_flag
in '' yes
5509 # Use a header file that comes with gcc, so configuring glibc
5510 # with a fresh cross-compiler works.
5511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512 # <limits.h> exists even on freestanding compilers.
5513 # On the NeXT, cc -E runs the code through the compiler's parser,
5514 # not just through cpp. "Syntax error" is here to catch this case.
5515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5518 # include <limits.h>
5520 # include <assert.h>
5524 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5527 # Broken: fails on valid input.
5530 rm -f conftest.err conftest.i conftest.
$ac_ext
5532 # OK, works on sane cases. Now check whether nonexistent headers
5533 # can be detected and how.
5534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <ac_nonexistent.h>
5538 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5539 # Broken: success on invalid input.
5542 # Passes both tests.
5546 rm -f conftest.err conftest.i conftest.
$ac_ext
5549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5550 rm -f conftest.i conftest.err conftest.
$ac_ext
5551 if $ac_preproc_ok; then :
5556 ac_cv_prog_CXXCPP
=$CXXCPP
5559 CXXCPP
=$ac_cv_prog_CXXCPP
5561 ac_cv_prog_CXXCPP
=$CXXCPP
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5564 $as_echo "$CXXCPP" >&6; }
5566 for ac_cxx_preproc_warn_flag
in '' yes
5568 # Use a header file that comes with gcc, so configuring glibc
5569 # with a fresh cross-compiler works.
5570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5571 # <limits.h> exists even on freestanding compilers.
5572 # On the NeXT, cc -E runs the code through the compiler's parser,
5573 # not just through cpp. "Syntax error" is here to catch this case.
5574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5577 # include <limits.h>
5579 # include <assert.h>
5583 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5586 # Broken: fails on valid input.
5589 rm -f conftest.err conftest.i conftest.
$ac_ext
5591 # OK, works on sane cases. Now check whether nonexistent headers
5592 # can be detected and how.
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #include <ac_nonexistent.h>
5597 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5598 # Broken: success on invalid input.
5601 # Passes both tests.
5605 rm -f conftest.err conftest.i conftest.
$ac_ext
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.i conftest.err conftest.
$ac_ext
5610 if $ac_preproc_ok; then :
5613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5615 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5616 See \`config.log' for more details" "$LINENO" 5; }
5620 ac_cpp
='$CXXCPP $CPPFLAGS'
5621 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5627 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5628 if ${ac_cv_path_GREP+:} false
; then :
5629 $as_echo_n "(cached) " >&6
5631 if test -z "$GREP"; then
5632 ac_path_GREP_found
=false
5633 # Loop through the user's path and test for each of PROGNAME-LIST
5634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5635 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5638 test -z "$as_dir" && as_dir
=.
5639 for ac_prog
in grep ggrep
; do
5640 for ac_exec_ext
in '' $ac_executable_extensions; do
5641 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5642 as_fn_executable_p
"$ac_path_GREP" ||
continue
5643 # Check for GNU ac_path_GREP and select it if it is found.
5644 # Check for GNU $ac_path_GREP
5645 case `"$ac_path_GREP" --version 2>&1` in
5647 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5650 $as_echo_n 0123456789 >"conftest.in"
5653 cat "conftest.in" "conftest.in" >"conftest.tmp"
5654 mv "conftest.tmp" "conftest.in"
5655 cp "conftest.in" "conftest.nl"
5656 $as_echo 'GREP' >> "conftest.nl"
5657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5658 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5659 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5661 # Best one so far, save it but keep looking for a better one
5662 ac_cv_path_GREP
="$ac_path_GREP"
5663 ac_path_GREP_max
=$ac_count
5665 # 10*(2^10) chars as input seems more than enough
5666 test $ac_count -gt 10 && break
5668 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5671 $ac_path_GREP_found && break 3
5676 if test -z "$ac_cv_path_GREP"; then
5677 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5680 ac_cv_path_GREP
=$GREP
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5685 $as_echo "$ac_cv_path_GREP" >&6; }
5686 GREP
="$ac_cv_path_GREP"
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5690 $as_echo_n "checking for egrep... " >&6; }
5691 if ${ac_cv_path_EGREP+:} false
; then :
5692 $as_echo_n "(cached) " >&6
5694 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5695 then ac_cv_path_EGREP
="$GREP -E"
5697 if test -z "$EGREP"; then
5698 ac_path_EGREP_found
=false
5699 # Loop through the user's path and test for each of PROGNAME-LIST
5700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5701 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5704 test -z "$as_dir" && as_dir
=.
5705 for ac_prog
in egrep; do
5706 for ac_exec_ext
in '' $ac_executable_extensions; do
5707 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5708 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5709 # Check for GNU ac_path_EGREP and select it if it is found.
5710 # Check for GNU $ac_path_EGREP
5711 case `"$ac_path_EGREP" --version 2>&1` in
5713 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5716 $as_echo_n 0123456789 >"conftest.in"
5719 cat "conftest.in" "conftest.in" >"conftest.tmp"
5720 mv "conftest.tmp" "conftest.in"
5721 cp "conftest.in" "conftest.nl"
5722 $as_echo 'EGREP' >> "conftest.nl"
5723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5724 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5725 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5727 # Best one so far, save it but keep looking for a better one
5728 ac_cv_path_EGREP
="$ac_path_EGREP"
5729 ac_path_EGREP_max
=$ac_count
5731 # 10*(2^10) chars as input seems more than enough
5732 test $ac_count -gt 10 && break
5734 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5737 $ac_path_EGREP_found && break 3
5742 if test -z "$ac_cv_path_EGREP"; then
5743 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5746 ac_cv_path_EGREP
=$EGREP
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5752 $as_echo "$ac_cv_path_EGREP" >&6; }
5753 EGREP
="$ac_cv_path_EGREP"
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5757 $as_echo_n "checking for ANSI C header files... " >&6; }
5758 if ${ac_cv_header_stdc+:} false
; then :
5759 $as_echo_n "(cached) " >&6
5761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5776 if ac_fn_cxx_try_compile
"$LINENO"; then :
5777 ac_cv_header_stdc
=yes
5779 ac_cv_header_stdc
=no
5781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5783 if test $ac_cv_header_stdc = yes; then
5784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5791 $EGREP "memchr" >/dev
/null
2>&1; then :
5794 ac_cv_header_stdc
=no
5800 if test $ac_cv_header_stdc = yes; then
5801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5808 $EGREP "free" >/dev
/null
2>&1; then :
5811 ac_cv_header_stdc
=no
5817 if test $ac_cv_header_stdc = yes; then
5818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5819 if test "$cross_compiling" = yes; then :
5822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5826 #if ((' ' & 0x0FF) == 0x020)
5827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5830 # define ISLOWER(c) \
5831 (('a' <= (c) && (c) <= 'i') \
5832 || ('j' <= (c) && (c) <= 'r') \
5833 || ('s' <= (c) && (c) <= 'z'))
5834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5842 for (i = 0; i < 256; i++)
5843 if (XOR (islower (i), ISLOWER (i))
5844 || toupper (i) != TOUPPER (i))
5849 if ac_fn_cxx_try_run
"$LINENO"; then :
5852 ac_cv_header_stdc
=no
5854 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5855 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5861 $as_echo "$ac_cv_header_stdc" >&6; }
5862 if test $ac_cv_header_stdc = yes; then
5864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5869 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5870 inttypes.h stdint.h unistd.h
5872 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5873 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5875 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5876 cat >>confdefs.h
<<_ACEOF
5877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5886 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5887 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5894 if test "$MINIX" = yes; then
5896 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5899 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5902 $as_echo "#define _MINIX 1" >>confdefs.h
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5908 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5909 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5910 $as_echo_n "(cached) " >&6
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5915 # define __EXTENSIONS__ 1
5916 $ac_includes_default
5925 if ac_fn_cxx_try_compile
"$LINENO"; then :
5926 ac_cv_safe_to_define___extensions__
=yes
5928 ac_cv_safe_to_define___extensions__
=no
5930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5933 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5934 test $ac_cv_safe_to_define___extensions__ = yes &&
5935 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5937 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5939 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5941 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5943 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5948 ac_cpp
='$CPP $CPPFLAGS'
5949 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5950 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5953 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5954 # On Suns, sometimes $CPP names a directory.
5955 if test -n "$CPP" && test -d "$CPP"; then
5958 if test -z "$CPP"; then
5959 if ${ac_cv_prog_CPP+:} false
; then :
5960 $as_echo_n "(cached) " >&6
5962 # Double quotes because CPP needs to be expanded
5963 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5966 for ac_c_preproc_warn_flag
in '' yes
5968 # Use a header file that comes with gcc, so configuring glibc
5969 # with a fresh cross-compiler works.
5970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5971 # <limits.h> exists even on freestanding compilers.
5972 # On the NeXT, cc -E runs the code through the compiler's parser,
5973 # not just through cpp. "Syntax error" is here to catch this case.
5974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5977 # include <limits.h>
5979 # include <assert.h>
5983 if ac_fn_c_try_cpp
"$LINENO"; then :
5986 # Broken: fails on valid input.
5989 rm -f conftest.err conftest.i conftest.
$ac_ext
5991 # OK, works on sane cases. Now check whether nonexistent headers
5992 # can be detected and how.
5993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #include <ac_nonexistent.h>
5997 if ac_fn_c_try_cpp
"$LINENO"; then :
5998 # Broken: success on invalid input.
6001 # Passes both tests.
6005 rm -f conftest.err conftest.i conftest.
$ac_ext
6008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6009 rm -f conftest.i conftest.err conftest.
$ac_ext
6010 if $ac_preproc_ok; then :
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6023 $as_echo "$CPP" >&6; }
6025 for ac_c_preproc_warn_flag
in '' yes
6027 # Use a header file that comes with gcc, so configuring glibc
6028 # with a fresh cross-compiler works.
6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 # <limits.h> exists even on freestanding compilers.
6031 # On the NeXT, cc -E runs the code through the compiler's parser,
6032 # not just through cpp. "Syntax error" is here to catch this case.
6033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6036 # include <limits.h>
6038 # include <assert.h>
6042 if ac_fn_c_try_cpp
"$LINENO"; then :
6045 # Broken: fails on valid input.
6048 rm -f conftest.err conftest.i conftest.
$ac_ext
6050 # OK, works on sane cases. Now check whether nonexistent headers
6051 # can be detected and how.
6052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <ac_nonexistent.h>
6056 if ac_fn_c_try_cpp
"$LINENO"; then :
6057 # Broken: success on invalid input.
6060 # Passes both tests.
6064 rm -f conftest.err conftest.i conftest.
$ac_ext
6067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6068 rm -f conftest.i conftest.err conftest.
$ac_ext
6069 if $ac_preproc_ok; then :
6072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6074 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6075 See \`config.log' for more details" "$LINENO" 5; }
6079 ac_cpp
='$CXXCPP $CPPFLAGS'
6080 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6081 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6082 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6085 $as_echo_n "checking for inline... " >&6; }
6086 if ${ac_cv_c_inline+:} false
; then :
6087 $as_echo_n "(cached) " >&6
6090 for ac_kw
in inline __inline__ __inline
; do
6091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6095 static $ac_kw foo_t static_foo () {return 0; }
6096 $ac_kw foo_t foo () {return 0; }
6100 if ac_fn_cxx_try_compile
"$LINENO"; then :
6101 ac_cv_c_inline
=$ac_kw
6103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6104 test "$ac_cv_c_inline" != no
&& break
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6109 $as_echo "$ac_cv_c_inline" >&6; }
6111 case $ac_cv_c_inline in
6114 case $ac_cv_c_inline in
6116 *) ac_val
=$ac_cv_c_inline;;
6118 cat >>confdefs.h
<<_ACEOF
6120 #define inline $ac_val
6127 # Check whether --enable-largefile was given.
6128 if test "${enable_largefile+set}" = set; then :
6129 enableval
=$enable_largefile;
6132 if test "$enable_largefile" != no
; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6135 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6136 if ${ac_cv_sys_largefile_CC+:} false
; then :
6137 $as_echo_n "(cached) " >&6
6139 ac_cv_sys_largefile_CC
=no
6140 if test "$GCC" != yes; then
6143 # IRIX 6.2 and later do not support large files by default,
6144 # so use the C compiler's -n32 option if that helps.
6145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 #include <sys/types.h>
6148 /* Check that off_t can represent 2**63 - 1 correctly.
6149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6150 since some C++ compilers masquerading as C compilers
6151 incorrectly reject 9223372036854775807. */
6152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6154 && LARGE_OFF_T % 2147483647 == 1)
6164 if ac_fn_cxx_try_compile
"$LINENO"; then :
6167 rm -f core conftest.err conftest.
$ac_objext
6169 if ac_fn_cxx_try_compile
"$LINENO"; then :
6170 ac_cv_sys_largefile_CC
=' -n32'; break
6172 rm -f core conftest.err conftest.
$ac_objext
6176 rm -f conftest.
$ac_ext
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6180 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6181 if test "$ac_cv_sys_largefile_CC" != no
; then
6182 CC
=$CC$ac_cv_sys_largefile_CC
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6186 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6187 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6188 $as_echo_n "(cached) " >&6
6191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #include <sys/types.h>
6194 /* Check that off_t can represent 2**63 - 1 correctly.
6195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6196 since some C++ compilers masquerading as C compilers
6197 incorrectly reject 9223372036854775807. */
6198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6200 && LARGE_OFF_T % 2147483647 == 1)
6210 if ac_fn_cxx_try_compile
"$LINENO"; then :
6211 ac_cv_sys_file_offset_bits
=no
; break
6213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #define _FILE_OFFSET_BITS 64
6217 #include <sys/types.h>
6218 /* Check that off_t can represent 2**63 - 1 correctly.
6219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6220 since some C++ compilers masquerading as C compilers
6221 incorrectly reject 9223372036854775807. */
6222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6224 && LARGE_OFF_T % 2147483647 == 1)
6234 if ac_fn_cxx_try_compile
"$LINENO"; then :
6235 ac_cv_sys_file_offset_bits
=64; break
6237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6238 ac_cv_sys_file_offset_bits
=unknown
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6243 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6244 case $ac_cv_sys_file_offset_bits in #(
6247 cat >>confdefs.h
<<_ACEOF
6248 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6253 if test $ac_cv_sys_file_offset_bits = unknown
; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6255 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6256 if ${ac_cv_sys_large_files+:} false
; then :
6257 $as_echo_n "(cached) " >&6
6260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <sys/types.h>
6263 /* Check that off_t can represent 2**63 - 1 correctly.
6264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6265 since some C++ compilers masquerading as C compilers
6266 incorrectly reject 9223372036854775807. */
6267 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6269 && LARGE_OFF_T % 2147483647 == 1)
6279 if ac_fn_cxx_try_compile
"$LINENO"; then :
6280 ac_cv_sys_large_files
=no
; break
6282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 #define _LARGE_FILES 1
6286 #include <sys/types.h>
6287 /* Check that off_t can represent 2**63 - 1 correctly.
6288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6289 since some C++ compilers masquerading as C compilers
6290 incorrectly reject 9223372036854775807. */
6291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6293 && LARGE_OFF_T % 2147483647 == 1)
6303 if ac_fn_cxx_try_compile
"$LINENO"; then :
6304 ac_cv_sys_large_files
=1; break
6306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6307 ac_cv_sys_large_files
=unknown
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6312 $as_echo "$ac_cv_sys_large_files" >&6; }
6313 case $ac_cv_sys_large_files in #(
6316 cat >>confdefs.h
<<_ACEOF
6317 #define _LARGE_FILES $ac_cv_sys_large_files
6327 # The cast to long int works around a bug in the HP C Compiler
6328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6330 # This bug is HP SR number 8606223364.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6332 $as_echo_n "checking size of ino_t... " >&6; }
6333 if ${ac_cv_sizeof_ino_t+:} false
; then :
6334 $as_echo_n "(cached) " >&6
6336 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6339 if test "$ac_cv_type_ino_t" = yes; then
6340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6342 as_fn_error
77 "cannot compute sizeof (ino_t)
6343 See \`config.log' for more details" "$LINENO" 5; }
6345 ac_cv_sizeof_ino_t
=0
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6351 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6355 cat >>confdefs.h
<<_ACEOF
6356 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6360 # The cast to long int works around a bug in the HP C Compiler
6361 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6362 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6363 # This bug is HP SR number 8606223364.
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6365 $as_echo_n "checking size of dev_t... " >&6; }
6366 if ${ac_cv_sizeof_dev_t+:} false
; then :
6367 $as_echo_n "(cached) " >&6
6369 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6372 if test "$ac_cv_type_dev_t" = yes; then
6373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6375 as_fn_error
77 "cannot compute sizeof (dev_t)
6376 See \`config.log' for more details" "$LINENO" 5; }
6378 ac_cv_sizeof_dev_t
=0
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6384 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6388 cat >>confdefs.h
<<_ACEOF
6389 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6394 # Select the right stat being able to handle 64bit inodes, if needed.
6395 if test "$enable_largefile" != no
; then
6396 case "$host, $build" in
6397 *-*-aix*,*|
*,*-*-aix*)
6398 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6400 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6407 # sizeof(char) is 1 by definition.
6408 # The cast to long int works around a bug in the HP C Compiler
6409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6411 # This bug is HP SR number 8606223364.
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6413 $as_echo_n "checking size of void *... " >&6; }
6414 if ${ac_cv_sizeof_void_p+:} false
; then :
6415 $as_echo_n "(cached) " >&6
6417 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6420 if test "$ac_cv_type_void_p" = yes; then
6421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6423 as_fn_error
77 "cannot compute sizeof (void *)
6424 See \`config.log' for more details" "$LINENO" 5; }
6426 ac_cv_sizeof_void_p
=0
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6432 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6436 cat >>confdefs.h
<<_ACEOF
6437 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6441 # The cast to long int works around a bug in the HP C Compiler
6442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6444 # This bug is HP SR number 8606223364.
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6446 $as_echo_n "checking size of short... " >&6; }
6447 if ${ac_cv_sizeof_short+:} false
; then :
6448 $as_echo_n "(cached) " >&6
6450 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6453 if test "$ac_cv_type_short" = yes; then
6454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6456 as_fn_error
77 "cannot compute sizeof (short)
6457 See \`config.log' for more details" "$LINENO" 5; }
6459 ac_cv_sizeof_short
=0
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6465 $as_echo "$ac_cv_sizeof_short" >&6; }
6469 cat >>confdefs.h
<<_ACEOF
6470 #define SIZEOF_SHORT $ac_cv_sizeof_short
6474 # The cast to long int works around a bug in the HP C Compiler
6475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6477 # This bug is HP SR number 8606223364.
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6479 $as_echo_n "checking size of int... " >&6; }
6480 if ${ac_cv_sizeof_int+:} false
; then :
6481 $as_echo_n "(cached) " >&6
6483 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6486 if test "$ac_cv_type_int" = yes; then
6487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6489 as_fn_error
77 "cannot compute sizeof (int)
6490 See \`config.log' for more details" "$LINENO" 5; }
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6498 $as_echo "$ac_cv_sizeof_int" >&6; }
6502 cat >>confdefs.h
<<_ACEOF
6503 #define SIZEOF_INT $ac_cv_sizeof_int
6507 # The cast to long int works around a bug in the HP C Compiler
6508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6510 # This bug is HP SR number 8606223364.
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6512 $as_echo_n "checking size of long... " >&6; }
6513 if ${ac_cv_sizeof_long+:} false
; then :
6514 $as_echo_n "(cached) " >&6
6516 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6519 if test "$ac_cv_type_long" = yes; then
6520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6522 as_fn_error
77 "cannot compute sizeof (long)
6523 See \`config.log' for more details" "$LINENO" 5; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6531 $as_echo "$ac_cv_sizeof_long" >&6; }
6535 cat >>confdefs.h
<<_ACEOF
6536 #define SIZEOF_LONG $ac_cv_sizeof_long
6540 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6541 if test "x$ac_cv_type_long_long" = xyes
; then :
6543 cat >>confdefs.h
<<_ACEOF
6544 #define HAVE_LONG_LONG 1
6547 # The cast to long int works around a bug in the HP C Compiler
6548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6550 # This bug is HP SR number 8606223364.
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6552 $as_echo_n "checking size of long long... " >&6; }
6553 if ${ac_cv_sizeof_long_long+:} false
; then :
6554 $as_echo_n "(cached) " >&6
6556 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6559 if test "$ac_cv_type_long_long" = yes; then
6560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6562 as_fn_error
77 "cannot compute sizeof (long long)
6563 See \`config.log' for more details" "$LINENO" 5; }
6565 ac_cv_sizeof_long_long
=0
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6571 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6575 cat >>confdefs.h
<<_ACEOF
6576 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6582 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6583 case $ac_cv_c_int8_t in #(
6587 cat >>confdefs.h
<<_ACEOF
6588 #define int8_t $ac_cv_c_int8_t
6593 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6594 case $ac_cv_c_int16_t in #(
6598 cat >>confdefs.h
<<_ACEOF
6599 #define int16_t $ac_cv_c_int16_t
6604 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6605 case $ac_cv_c_int32_t in #(
6609 cat >>confdefs.h
<<_ACEOF
6610 #define int32_t $ac_cv_c_int32_t
6615 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6616 case $ac_cv_c_int64_t in #(
6620 cat >>confdefs.h
<<_ACEOF
6621 #define int64_t $ac_cv_c_int64_t
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6628 $as_echo_n "checking for unsigned long long int... " >&6; }
6629 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6630 $as_echo_n "(cached) " >&6
6632 ac_cv_type_unsigned_long_long_int
=yes
6633 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6637 /* For now, do not test the preprocessor; as of 2007 there are too many
6638 implementations with broken preprocessors. Perhaps this can
6639 be revisited in 2012. In the meantime, code should not expect
6640 #if to work with literals wider than 32 bits. */
6641 /* Test literals. */
6642 long long int ll = 9223372036854775807ll;
6643 long long int nll = -9223372036854775807LL;
6644 unsigned long long int ull = 18446744073709551615ULL;
6645 /* Test constant expressions. */
6646 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6648 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6654 /* Test availability of runtime routines for shift and division. */
6655 long long int llmax = 9223372036854775807ll;
6656 unsigned long long int ullmax = 18446744073709551615ull;
6657 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6658 | (llmax / ll) | (llmax % ll)
6659 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6660 | (ullmax / ull) | (ullmax % ull));
6666 if ac_fn_cxx_try_link
"$LINENO"; then :
6669 ac_cv_type_unsigned_long_long_int
=no
6671 rm -f core conftest.err conftest.
$ac_objext \
6672 conftest
$ac_exeext conftest.
$ac_ext
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6676 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6677 if test $ac_cv_type_unsigned_long_long_int = yes; then
6679 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6686 $as_echo_n "checking for long long int... " >&6; }
6687 if ${ac_cv_type_long_long_int+:} false
; then :
6688 $as_echo_n "(cached) " >&6
6690 ac_cv_type_long_long_int
=yes
6691 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6692 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6693 if test $ac_cv_type_long_long_int = yes; then
6694 if test "$cross_compiling" = yes; then :
6697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6702 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6703 # define LLONG_MAX (HALF - 1 + HALF)
6708 long long int n = 1;
6712 long long int m = n << i;
6715 if (LLONG_MAX / 2 < m)
6723 if ac_fn_cxx_try_run
"$LINENO"; then :
6726 ac_cv_type_long_long_int
=no
6728 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6729 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6736 $as_echo "$ac_cv_type_long_long_int" >&6; }
6737 if test $ac_cv_type_long_long_int = yes; then
6739 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6745 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6746 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6748 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6751 test $ac_cv_type_long_long_int = yes \
6752 && ac_type
='long long int' \
6753 || ac_type
='long int'
6755 cat >>confdefs.h
<<_ACEOF
6756 #define intmax_t $ac_type
6763 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6764 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6766 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6769 for ac_type
in 'int' 'long int' 'long long int'; do
6770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772 $ac_includes_default
6776 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6778 return test_array [0];
6784 if ac_fn_cxx_try_compile
"$LINENO"; then :
6786 cat >>confdefs.h
<<_ACEOF
6787 #define intptr_t $ac_type
6792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6793 test -z "$ac_type" && break
6798 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6799 case $ac_cv_c_uint8_t in #(
6803 $as_echo "#define _UINT8_T 1" >>confdefs.h
6806 cat >>confdefs.h
<<_ACEOF
6807 #define uint8_t $ac_cv_c_uint8_t
6812 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6813 case $ac_cv_c_uint16_t in #(
6818 cat >>confdefs.h
<<_ACEOF
6819 #define uint16_t $ac_cv_c_uint16_t
6824 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6825 case $ac_cv_c_uint32_t in #(
6829 $as_echo "#define _UINT32_T 1" >>confdefs.h
6832 cat >>confdefs.h
<<_ACEOF
6833 #define uint32_t $ac_cv_c_uint32_t
6838 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6839 case $ac_cv_c_uint64_t in #(
6843 $as_echo "#define _UINT64_T 1" >>confdefs.h
6846 cat >>confdefs.h
<<_ACEOF
6847 #define uint64_t $ac_cv_c_uint64_t
6854 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6855 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6857 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6860 test $ac_cv_type_unsigned_long_long_int = yes \
6861 && ac_type
='unsigned long long int' \
6862 || ac_type
='unsigned long int'
6864 cat >>confdefs.h
<<_ACEOF
6865 #define uintmax_t $ac_type
6872 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6873 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6875 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6878 for ac_type
in 'unsigned int' 'unsigned long int' \
6879 'unsigned long long int'; do
6880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 $ac_includes_default
6886 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6888 return test_array [0];
6894 if ac_fn_cxx_try_compile
"$LINENO"; then :
6896 cat >>confdefs.h
<<_ACEOF
6897 #define uintptr_t $ac_type
6902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6903 test -z "$ac_type" && break
6920 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6921 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6924 # check what underlying integer type int64_t uses
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6926 $as_echo_n "checking for int64_t underlying type... " >&6; }
6927 if ${ac_cv_int64_t_type+:} false
; then :
6928 $as_echo_n "(cached) " >&6
6931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6934 #ifdef HAVE_STDINT_H
6937 template <typename T> struct X { };
6939 struct X<long> { typedef long t; };
6949 if ac_fn_cxx_try_compile
"$LINENO"; then :
6950 ac_cv_int64_t_type
=long
6952 ac_cv_int64_t_type
="long long"
6954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6957 $as_echo "$ac_cv_int64_t_type" >&6; }
6958 if test "$ac_cv_int64_t_type" = "long"; then
6960 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6966 #ifdef HAVE_STDINT_H
6969 template <typename T> struct X { };
6971 struct X<long long> { typedef long long t; };
6981 if ac_fn_cxx_try_compile
"$LINENO"; then :
6984 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6990 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6991 if ${ac_cv_std_swap_in_utility+:} false
; then :
6992 $as_echo_n "(cached) " >&6
6995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
7003 int a, b; std::swap(a,b);
7008 if ac_fn_cxx_try_compile
"$LINENO"; then :
7009 ac_cv_std_swap_in_utility
=yes
7011 ac_cv_std_swap_in_utility
=no
7013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7016 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7017 if test $ac_cv_std_swap_in_utility = yes; then
7019 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7023 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7024 # If the host compiler is affected by the bug, and we build with optimization
7025 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7026 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7027 # Since there is no reliable feature check for the presence of this bug,
7028 # we simply use a GCC version number check. (This should never trigger for
7029 # stages 2 or 3 of a native bootstrap.)
7031 if test "$GCC" = yes; then
7032 saved_CXXFLAGS
="$CXXFLAGS"
7034 # The following test compilation will succeed if and only if $CXX accepts
7035 # -fno-strict-aliasing *and* is older than GCC 4.3.
7036 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7038 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7042 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7043 #error compiler not affected by placement new aliasing bug
7047 if ac_fn_cxx_try_compile
"$LINENO"; then :
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7049 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7056 CXXFLAGS
="$saved_CXXFLAGS"
7062 # ---------------------
7063 # Warnings and checking
7064 # ---------------------
7066 # Check $CC warning features (if it's GCC).
7067 # We want to use -pedantic, but we don't want warnings about
7070 # * overlong strings
7071 # * C++11 narrowing conversions in { }
7072 # So, we only use -pedantic if we can disable those warnings.
7074 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7075 # Check whether --enable-build-format-warnings was given.
7076 if test "${enable_build_format_warnings+set}" = set; then :
7077 enableval
=$enable_build_format_warnings;
7079 enable_build_format_warnings
=yes
7082 if test $enable_build_format_warnings = no
; then :
7088 ac_cpp
='$CXXCPP $CPPFLAGS'
7089 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7090 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7091 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7094 save_CXXFLAGS
="$CXXFLAGS"
7095 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7096 # Do the check with the no- prefix removed since gcc silently
7097 # accepts any -Wno-* option on purpose
7098 case $real_option in
7099 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7100 *) option
=$real_option ;;
7102 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7105 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7106 if eval \
${$as_acx_Woption+:} false
; then :
7107 $as_echo_n "(cached) " >&6
7110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7121 if ac_fn_cxx_try_compile
"$LINENO"; then :
7122 eval "$as_acx_Woption=yes"
7124 eval "$as_acx_Woption=no"
7126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7129 eval ac_res
=\$
$as_acx_Woption
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7131 $as_echo "$ac_res" >&6; }
7132 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7133 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7136 CXXFLAGS
="$save_CXXFLAGS"
7138 ac_cpp
='$CXXCPP $CPPFLAGS'
7139 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7140 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7141 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7146 ac_cpp
='$CPP $CPPFLAGS'
7147 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7152 save_CFLAGS
="$CFLAGS"
7153 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7154 # Do the check with the no- prefix removed since gcc silently
7155 # accepts any -Wno-* option on purpose
7156 case $real_option in
7157 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7158 *) option
=$real_option ;;
7160 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7163 $as_echo_n "checking whether $CC supports $option... " >&6; }
7164 if eval \
${$as_acx_Woption+:} false
; then :
7165 $as_echo_n "(cached) " >&6
7168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7179 if ac_fn_c_try_compile
"$LINENO"; then :
7180 eval "$as_acx_Woption=yes"
7182 eval "$as_acx_Woption=no"
7184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7187 eval ac_res
=\$
$as_acx_Woption
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7189 $as_echo "$ac_res" >&6; }
7190 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7191 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7194 CFLAGS
="$save_CFLAGS"
7196 ac_cpp
='$CXXCPP $CPPFLAGS'
7197 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7198 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7199 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7203 ac_cpp
='$CXXCPP $CPPFLAGS'
7204 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7205 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7206 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7209 save_CXXFLAGS
="$CXXFLAGS"
7210 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
7211 # Do the check with the no- prefix removed since gcc silently
7212 # accepts any -Wno-* option on purpose
7213 case $real_option in
7214 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7215 *) option
=$real_option ;;
7217 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7220 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7221 if eval \
${$as_acx_Woption+:} false
; then :
7222 $as_echo_n "(cached) " >&6
7225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7236 if ac_fn_cxx_try_compile
"$LINENO"; then :
7237 eval "$as_acx_Woption=yes"
7239 eval "$as_acx_Woption=no"
7241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7244 eval ac_res
=\$
$as_acx_Woption
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7246 $as_echo "$ac_res" >&6; }
7247 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7248 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7251 CXXFLAGS
="$save_CXXFLAGS"
7253 ac_cpp
='$CXXCPP $CPPFLAGS'
7254 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7260 ac_cpp
='$CPP $CPPFLAGS'
7261 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7266 save_CFLAGS
="$CFLAGS"
7267 for real_option
in -Wold-style-definition -Wc++-compat; do
7268 # Do the check with the no- prefix removed since gcc silently
7269 # accepts any -Wno-* option on purpose
7270 case $real_option in
7271 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7272 *) option
=$real_option ;;
7274 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7277 $as_echo_n "checking whether $CC supports $option... " >&6; }
7278 if eval \
${$as_acx_Woption+:} false
; then :
7279 $as_echo_n "(cached) " >&6
7282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7293 if ac_fn_c_try_compile
"$LINENO"; then :
7294 eval "$as_acx_Woption=yes"
7296 eval "$as_acx_Woption=no"
7298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7301 eval ac_res
=\$
$as_acx_Woption
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7303 $as_echo "$ac_res" >&6; }
7304 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7305 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7308 CFLAGS
="$save_CFLAGS"
7310 ac_cpp
='$CXXCPP $CPPFLAGS'
7311 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7317 ac_cpp
='$CXXCPP $CPPFLAGS'
7318 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7322 # Do the check with the no- prefix removed from the warning options
7323 # since gcc silently accepts any -Wno-* option on purpose
7324 if test "$GXX" = yes; then :
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7326 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7327 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7328 $as_echo_n "(cached) " >&6
7330 save_CXXFLAGS
="$CXXFLAGS"
7331 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7343 if ac_fn_cxx_try_compile
"$LINENO"; then :
7344 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7346 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7349 CXXFLAGS
="$save_CXXFLAGS"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7352 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7353 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7354 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7359 ac_cpp
='$CXXCPP $CPPFLAGS'
7360 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7366 ac_cpp
='$CXXCPP $CPPFLAGS'
7367 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7371 # Check whether --enable-werror-always was given.
7372 if test "${enable_werror_always+set}" = set; then :
7373 enableval
=$enable_werror_always;
7375 enable_werror_always
=no
7378 if test $enable_werror_always = yes; then :
7379 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7383 ac_cpp
='$CXXCPP $CPPFLAGS'
7384 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7390 # The above macros do nothing if the compiler is not GCC. However, the
7391 # Makefile has more goo to add other flags, so these variables are used
7392 # to enable warnings only for GCC.
7395 if test "x$GCC" = "xyes"; then
7396 warn_cflags
='$(GCC_WARN_CFLAGS)'
7397 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7402 # Disable exceptions and RTTI if building with g++
7404 ac_cpp
='$CPP $CPPFLAGS'
7405 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7410 save_CFLAGS
="$CFLAGS"
7411 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7412 # Do the check with the no- prefix removed since gcc silently
7413 # accepts any -Wno-* option on purpose
7414 case $real_option in
7415 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7416 *) option
=$real_option ;;
7418 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7421 $as_echo_n "checking whether $CC supports $option... " >&6; }
7422 if eval \
${$as_acx_Woption+:} false
; then :
7423 $as_echo_n "(cached) " >&6
7426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7437 if ac_fn_c_try_compile
"$LINENO"; then :
7438 eval "$as_acx_Woption=yes"
7440 eval "$as_acx_Woption=no"
7442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7445 eval ac_res
=\$
$as_acx_Woption
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7447 $as_echo "$ac_res" >&6; }
7448 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7449 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7452 CFLAGS
="$save_CFLAGS"
7454 ac_cpp
='$CXXCPP $CPPFLAGS'
7455 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7461 # Enable expensive internal checks
7463 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7467 # Check whether --enable-checking was given.
7468 if test "${enable_checking+set}" = set; then :
7469 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7472 # Determine the default checks.
7473 if test x
$is_release = x
; then
7474 ac_checking_flags
=yes,extra
7476 ac_checking_flags
=release
7480 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7481 for check
in release
$ac_checking_flags
7484 # these set all the flags to specific states
7485 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7486 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7487 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7488 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7489 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7490 ac_types_checking
=1 ;;
7491 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7492 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7493 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7494 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7495 ac_tree_checking
= ; ac_valgrind_checking
= ;
7496 ac_types_checking
= ;;
7497 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7498 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7499 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7500 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7501 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7502 ac_types_checking
=1 ;;
7503 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7504 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7505 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7506 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7507 ac_tree_checking
= ; ac_valgrind_checking
= ;
7508 ac_types_checking
= ;;
7509 # these enable particular checks
7510 assert
) ac_assert_checking
=1 ;;
7511 df
) ac_df_checking
=1 ;;
7512 extra
) ac_extra_checking
=1 ;;
7513 fold) ac_fold_checking
=1 ;;
7514 gc
) ac_gc_checking
=1 ;;
7515 gcac
) ac_gc_always_collect
=1 ;;
7516 gimple
) ac_gimple_checking
=1 ;;
7517 misc
) ac_checking
=1 ;;
7518 rtl
) ac_rtl_checking
=1 ;;
7519 rtlflag
) ac_rtlflag_checking
=1 ;;
7520 runtime
) ac_runtime_checking
=1 ;;
7521 tree
) ac_tree_checking
=1 ;;
7522 types
) ac_types_checking
=1 ;;
7523 valgrind
) ac_valgrind_checking
=1 ;;
7524 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7530 if test x
$ac_checking != x
; then
7532 $as_echo "#define CHECKING_P 1" >>confdefs.h
7534 nocommon_flag
=-fno-common
7536 $as_echo "#define CHECKING_P 0" >>confdefs.h
7540 if test x
$ac_extra_checking != x
; then
7542 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7545 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7548 if test x
$ac_df_checking != x
; then
7550 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7553 if test x
$ac_assert_checking != x
; then
7555 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7558 if test x
$ac_gimple_checking != x
; then
7560 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7564 if test x
$ac_runtime_checking != x
; then
7566 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7569 if test x
$ac_tree_checking != x
; then
7571 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7575 if test x
$ac_types_checking != x
; then
7577 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7581 if test x
$ac_rtl_checking != x
; then
7583 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7586 if test x
$ac_rtlflag_checking != x
; then
7588 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7591 if test x
$ac_gc_checking != x
; then
7593 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7596 if test x
$ac_gc_always_collect != x
; then
7598 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7601 if test x
$ac_fold_checking != x
; then
7603 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7606 valgrind_path_defines
=
7609 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7610 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7618 # It is certainly possible that there's valgrind but no valgrind.h.
7619 # GCC relies on making annotations so we must have both.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7621 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 #include <valgrind/memcheck.h>
7625 #ifndef VALGRIND_DISCARD
7626 #error VALGRIND_DISCARD not defined
7629 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7630 gcc_cv_header_valgrind_memcheck_h
=yes
7632 gcc_cv_header_valgrind_memcheck_h
=no
7634 rm -f conftest.err conftest.i conftest.
$ac_ext
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7636 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7638 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 #include <memcheck.h>
7642 #ifndef VALGRIND_DISCARD
7643 #error VALGRIND_DISCARD not defined
7646 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7647 gcc_cv_header_memcheck_h
=yes
7649 gcc_cv_header_memcheck_h
=no
7651 rm -f conftest.err conftest.i conftest.
$ac_ext
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7653 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7654 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7656 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7659 if test $gcc_cv_header_memcheck_h = yes; then
7661 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7665 if test x
$ac_valgrind_checking != x
; then
7667 # Prepare PATH_SEPARATOR.
7668 # The user is always right.
7669 if test "${PATH_SEPARATOR+set}" != set; then
7670 echo "#! /bin/sh" >conf$$.sh
7671 echo "exit 0" >>conf$$.sh
7673 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7681 # Find out how to test for executable files. Don't use a zero-byte file,
7682 # as systems may use methods other than mode bits to determine executability.
7683 cat >conf$$.
file <<_ASEOF
7687 chmod +x conf$$.
file
7688 if test -x conf$$.
file >/dev
/null
2>&1; then
7689 ac_executable_p
="test -x"
7691 ac_executable_p
="test -f"
7695 # Extract the first word of "valgrind", so it can be a program name with args.
7696 set dummy valgrind
; ac_word
=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_path_valgrind_path+:} false
; then :
7700 $as_echo_n "(cached) " >&6
7702 case "$valgrind_path" in
7704 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7707 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7708 for ac_dir
in $PATH; do
7710 test -z "$ac_dir" && ac_dir
=.
7711 for ac_exec_ext
in '' $ac_executable_extensions; do
7712 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7713 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7714 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7724 valgrind_path
="$ac_cv_path_valgrind_path"
7725 if test -n "$valgrind_path"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7727 $as_echo "$valgrind_path" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7733 if test "x$valgrind_path" = "x" \
7734 ||
(test $have_valgrind_h = no \
7735 && test $gcc_cv_header_memcheck_h = no \
7736 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7737 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7739 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7740 valgrind_command
="$valgrind_path -q"
7742 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7748 # Enable code coverage collection
7749 # Check whether --enable-coverage was given.
7750 if test "${enable_coverage+set}" = set; then :
7751 enableval
=$enable_coverage; case "${enableval}" in
7753 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7756 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7759 # a.k.a. --disable-coverage
7763 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7772 # Check whether --enable-gather-detailed-mem-stats was given.
7773 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7774 enableval
=$enable_gather_detailed_mem_stats;
7776 enable_gather_detailed_mem_stats
=no
7779 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7781 cat >>confdefs.h
<<_ACEOF
7782 #define GATHER_STATISTICS $gather_stats
7786 # Check whether --enable-valgrind-annotations was given.
7787 if test "${enable_valgrind_annotations+set}" = set; then :
7788 enableval
=$enable_valgrind_annotations;
7790 enable_valgrind_annotations
=no
7793 if test x
$enable_valgrind_annotations != xno \
7794 ||
test x
$ac_valgrind_checking != x
; then
7795 if (test $have_valgrind_h = no \
7796 && test $gcc_cv_header_memcheck_h = no \
7797 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7798 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7801 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7805 # -------------------------------
7806 # Miscenalleous configure options
7807 # -------------------------------
7809 # Determine whether or not multilibs are enabled.
7810 # Check whether --enable-multilib was given.
7811 if test "${enable_multilib+set}" = set; then :
7812 enableval
=$enable_multilib;
7819 # Determine whether or not multiarch is enabled.
7820 # Check whether --enable-multiarch was given.
7821 if test "${enable_multiarch+set}" = set; then :
7822 enableval
=$enable_multiarch; case "${enableval}" in
7823 yes|no|auto
) enable_multiarch
=$enableval;;
7824 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7827 enable_multiarch
=auto
7830 if test x
${enable_multiarch} = xauto
; then
7831 if test x
${with_native_system_header_dir} != x
; then
7832 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7835 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7836 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7841 $as_echo_n "checking for multiarch configuration... " >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7844 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7846 # needed for setting the multiarch name for soft-float/hard-float ABIs
7850 # default stack clash protection guard size as power of twos in bytes.
7851 # Please keep these in sync with params.def.
7855 # Keep the default value when the option is not used to 0, this allows us to
7856 # distinguish between the cases where the user specifially set a value via
7857 # configure and when the normal default value is used.
7859 # Check whether --with-stack-clash-protection-guard-size was given.
7860 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7861 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7863 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7866 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7867 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7868 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7869 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
7873 cat >>confdefs.h
<<_ACEOF
7874 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7878 # Enable __cxa_atexit for C++.
7879 # Check whether --enable-__cxa_atexit was given.
7880 if test "${enable___cxa_atexit+set}" = set; then :
7881 enableval
=$enable___cxa_atexit;
7885 # Enable C extension for decimal float if target supports it.
7887 # Check whether --enable-decimal-float was given.
7888 if test "${enable_decimal_float+set}" = set; then :
7889 enableval
=$enable_decimal_float;
7890 case $enable_decimal_float in
7891 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7892 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7893 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7899 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7900 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7901 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7902 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7903 enable_decimal_float
=yes
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7907 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7908 enable_decimal_float
=no
7915 # x86's use BID format instead of DPD
7916 case x
$enable_decimal_float in
7919 i?
86*-*-* | x86_64
*-*-*)
7920 enable_decimal_float
=bid
7923 enable_decimal_float
=dpd
7926 default_decimal_float
=$enable_decimal_float
7929 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7930 # dependency on libdecnumber.
7931 default_decimal_float
=dpd
7938 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7940 cat >>confdefs.h
<<_ACEOF
7941 #define ENABLE_DECIMAL_FLOAT $dfp
7945 # Use default_decimal_float for dependency.
7946 enable_decimal_float
=$default_decimal_float
7948 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7950 cat >>confdefs.h
<<_ACEOF
7951 #define ENABLE_DECIMAL_BID_FORMAT $bid
7955 # Enable C extension for fixed-point arithmetic.
7956 # Check whether --enable-fixed-point was given.
7957 if test "${enable_fixed_point+set}" = set; then :
7958 enableval
=$enable_fixed_point;
7963 enable_fixed_point
=yes
7967 enable_fixed_point
=yes
7970 enable_fixed_point
=yes
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7974 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7975 enable_fixed_point
=no
7983 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7985 cat >>confdefs.h
<<_ACEOF
7986 #define ENABLE_FIXED_POINT $fixedpoint
7991 # Pass with no value to take the default
7992 # Pass with a value to specify a thread package
7993 # Check whether --enable-threads was given.
7994 if test "${enable_threads+set}" = set; then :
7995 enableval
=$enable_threads;
8001 # Check whether --enable-tls was given.
8002 if test "${enable_tls+set}" = set; then :
8003 enableval
=$enable_tls;
8006 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8007 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8015 # Check whether --enable-vtable-verify was given.
8016 if test "${enable_vtable_verify+set}" = set; then :
8017 enableval
=$enable_vtable_verify;
8019 enable_vtable_verify
=no
8022 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8024 cat >>confdefs.h
<<_ACEOF
8025 #define ENABLE_VTABLE_VERIFY $vtable_verify
8029 # Check whether --enable-analyzer was given.
8030 if test "${enable_analyzer+set}" = set; then :
8031 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8041 cat >>confdefs.h
<<_ACEOF
8042 #define ENABLE_ANALYZER $analyzer
8046 # Check whether --enable-objc-gc was given.
8047 if test "${enable_objc_gc+set}" = set; then :
8048 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8059 # Check whether --with-dwarf2 was given.
8060 if test "${with_dwarf2+set}" = set; then :
8061 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8067 # Check whether --enable-shared was given.
8068 if test "${enable_shared+set}" = set; then :
8069 enableval
=$enable_shared;
8070 case $enable_shared in
8074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8075 for pkg
in $enableval; do
8076 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8090 # Check whether --enable-gcov was given.
8091 if test "${enable_gcov+set}" = set; then :
8092 enableval
=$enable_gcov;
8108 # Check whether --with-specs was given.
8109 if test "${with_specs+set}" = set; then :
8110 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8120 # Check whether --with-pkgversion was given.
8121 if test "${with_pkgversion+set}" = set; then :
8122 withval
=$with_pkgversion; case "$withval" in
8123 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8125 *) PKGVERSION
="($withval) " ;;
8136 # Check whether --with-bugurl was given.
8137 if test "${with_bugurl+set}" = set; then :
8138 withval
=$with_bugurl; case "$withval" in
8139 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8142 *) BUGURL
="$withval"
8146 BUGURL
="https://gcc.gnu.org/bugs/"
8156 REPORT_BUGS_TO
="<$BUGURL>"
8157 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8164 # Allow overriding the default URL for documentation
8166 # Check whether --with-documentation-root-url was given.
8167 if test "${with_documentation_root_url+set}" = set; then :
8168 withval
=$with_documentation_root_url; case "$withval" in
8169 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8170 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8171 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8172 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8175 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8180 cat >>confdefs.h
<<_ACEOF
8181 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8185 # Allow overriding the default URL for GCC changes
8187 # Check whether --with-changes-root-url was given.
8188 if test "${with_changes_root_url+set}" = set; then :
8189 withval
=$with_changes_root_url; case "$withval" in
8190 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8191 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8192 */) CHANGES_ROOT_URL
="$withval" ;;
8193 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8196 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8201 cat >>confdefs.h
<<_ACEOF
8202 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8206 # Sanity check enable_languages in case someone does not run the toplevel
8207 # configure # script.
8208 # Check whether --enable-languages was given.
8209 if test "${enable_languages+set}" = set; then :
8210 enableval
=$enable_languages; case ,${enable_languages}, in
8212 # go safe -- we cannot be much sure without the toplevel
8214 # analysis of which target libs are present and usable
8218 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8223 enable_languages
=c
,${enable_languages}
8231 # If top-level libada has been disabled, then wire in install-gnatlib
8232 # invocation with `make install', so that one can build and install
8233 # the library manually with `make -C gcc all gnatlib gnattools install'.
8234 if test x
"$enable_libada" = xno
; then
8235 gnat_install_lib
=gnat-install-lib
8241 if test x
"$enable_as_accelerator_for" != x
; then
8243 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8245 enable_as_accelerator
=yes
8248 # In this case we expect offload compiler to be built as native, so we
8249 # need to rename the driver to avoid clashes with host's drivers.
8250 program_transform_name
="s&^&${target}-&" ;;
8252 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8253 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8254 accel_dir_suffix
=/accel
/${target_noncanonical}
8255 real_target_noncanonical
=${enable_as_accelerator_for}
8261 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8262 tgt
=`echo $tgt | sed 's/=.*//'`
8266 *-intelmic-* |
*-intelmicemul-*)
8267 omp_device_property
=omp-device-properties-i386
8268 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8271 omp_device_property
=omp-device-properties-gcn
8272 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8275 omp_device_property
=omp-device-properties-nvptx
8276 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8279 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8282 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8283 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8285 if test x
"$offload_targets" = x
; then
8286 offload_targets
=$tgt
8288 offload_targets
="$offload_targets,$tgt"
8295 cat >>confdefs.h
<<_ACEOF
8296 #define OFFLOAD_TARGETS "$offload_targets"
8299 if test x
"$enable_offloading" != x
; then
8301 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8305 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8309 if test "x$enable_offload_defaulted" = xyes
; then
8311 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8316 # Check whether --with-multilib-list was given.
8317 if test "${with_multilib_list+set}" = set; then :
8318 withval
=$with_multilib_list; :
8320 with_multilib_list
=default
8325 # Check whether --with-multilib-generator was given.
8326 if test "${with_multilib_generator+set}" = set; then :
8327 withval
=$with_multilib_generator; :
8329 with_multilib_generator
=default
8333 # -------------------------
8334 # Checks for other programs
8335 # -------------------------
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8338 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8340 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8341 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8342 $as_echo_n "(cached) " >&6
8344 cat >conftest.
make <<\_ACEOF
8347 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8349 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8350 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8352 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8354 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8358 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8360 $as_echo "yes" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 SET_MAKE
="MAKE=${MAKE-make}"
8369 # Find some useful tools
8370 for ac_prog
in gawk mawk nawk
awk
8372 # Extract the first word of "$ac_prog", so it can be a program name with args.
8373 set dummy
$ac_prog; ac_word
=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_AWK+:} false
; then :
8377 $as_echo_n "(cached) " >&6
8379 if test -n "$AWK"; then
8380 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8386 test -z "$as_dir" && as_dir
=.
8387 for ac_exec_ext
in '' $ac_executable_extensions; do
8388 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_AWK
="$ac_prog"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 if test -n "$AWK"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8402 $as_echo "$AWK" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8409 test -n "$AWK" && break
8412 # We need awk to create options.cc and options.h.
8413 # Bail out if it's missing.
8415 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8419 $as_echo_n "checking whether ln -s works... " >&6; }
8420 if ${gcc_cv_prog_LN_S+:} false
; then :
8421 $as_echo_n "(cached) " >&6
8423 rm -f conftestdata_t
8424 echo >conftestdata_f
8425 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8427 gcc_cv_prog_LN_S
="ln -s"
8429 if ln conftestdata_f conftestdata_t
2>/dev
/null
8433 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8435 gcc_cv_prog_LN_S
="cp -p"
8441 rm -f conftestdata_f conftestdata_t
8444 LN_S
="$gcc_cv_prog_LN_S"
8445 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8447 $as_echo "yes" >&6; }
8449 if test "$gcc_cv_prog_LN_S" = "ln"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8451 $as_echo "no, using ln" >&6; }
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8454 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8459 $as_echo_n "checking whether ln works... " >&6; }
8460 if ${acx_cv_prog_LN+:} false
; then :
8461 $as_echo_n "(cached) " >&6
8463 rm -f conftestdata_t
8464 echo >conftestdata_f
8465 if ln conftestdata_f conftestdata_t
2>/dev
/null
8471 rm -f conftestdata_f conftestdata_t
8474 if test $acx_cv_prog_LN = no
; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8477 $as_echo "no, using $LN" >&6; }
8479 LN
="$acx_cv_prog_LN"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8481 $as_echo "yes" >&6; }
8484 if test -n "$ac_tool_prefix"; then
8485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8486 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_RANLIB+:} false
; then :
8490 $as_echo_n "(cached) " >&6
8492 if test -n "$RANLIB"; then
8493 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8499 test -z "$as_dir" && as_dir
=.
8500 for ac_exec_ext
in '' $ac_executable_extensions; do
8501 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 RANLIB
=$ac_cv_prog_RANLIB
8513 if test -n "$RANLIB"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8515 $as_echo "$RANLIB" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8523 if test -z "$ac_cv_prog_RANLIB"; then
8524 ac_ct_RANLIB
=$RANLIB
8525 # Extract the first word of "ranlib", so it can be a program name with args.
8526 set dummy ranlib
; ac_word
=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8530 $as_echo_n "(cached) " >&6
8532 if test -n "$ac_ct_RANLIB"; then
8533 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8539 test -z "$as_dir" && as_dir
=.
8540 for ac_exec_ext
in '' $ac_executable_extensions; do
8541 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8542 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8553 if test -n "$ac_ct_RANLIB"; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8555 $as_echo "$ac_ct_RANLIB" >&6; }
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8561 if test "x$ac_ct_RANLIB" = x
; then
8564 case $cross_compiling:$ac_tool_warned in
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8568 ac_tool_warned
=yes ;;
8570 RANLIB
=$ac_ct_RANLIB
8573 RANLIB
="$ac_cv_prog_RANLIB"
8579 # Find a good install program. We prefer a C program (faster),
8580 # so one script is as good as another. But avoid the broken or
8581 # incompatible versions:
8582 # SysV /etc/install, /usr/sbin/install
8583 # SunOS /usr/etc/install
8584 # IRIX /sbin/install
8586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8588 # ./install, which can be erroneously created by make from ./install.sh.
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8590 $as_echo_n "checking for a BSD compatible install... " >&6; }
8591 if test -z "$INSTALL"; then
8592 if ${ac_cv_path_install+:} false
; then :
8593 $as_echo_n "(cached) " >&6
8595 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8596 for ac_dir
in $PATH; do
8597 # Account for people who put trailing slashes in PATH elements.
8599 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8601 # OSF1 and SCO ODT 3.0 have their own names for install.
8602 for ac_prog
in ginstall scoinst
install; do
8603 if test -f $ac_dir/$ac_prog; then
8604 if test $ac_prog = install &&
8605 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8606 # AIX install. It has an incompatible calling convention.
8607 # OSF/1 installbsd also uses dspmsg, but is usable.
8610 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8621 if test "${ac_cv_path_install+set}" = set; then
8622 INSTALL
="$ac_cv_path_install"
8624 # As a last resort, use the slow shell script. We don't cache a
8625 # path for INSTALL within a source directory, because that will
8626 # break other packages using the cache if that directory is
8627 # removed, or if the path is relative.
8628 INSTALL
="$ac_install_sh"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8632 $as_echo "$INSTALL" >&6; }
8634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8635 # It thinks the first close brace ends the variable substitution.
8636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8638 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8641 # See if cmp has --ignore-initial.
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8643 $as_echo_n "checking for cmp's capabilities... " >&6; }
8644 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8645 $as_echo_n "(cached) " >&6
8649 gcc_cv_prog_cmp_skip
=slowcompare
8650 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8651 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8654 gcc_cv_prog_cmp_skip
=gnucompare
8657 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8658 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8659 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8662 gcc_cv_prog_cmp_skip
=fastcompare
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8670 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8671 make_compare_target
=$gcc_cv_prog_cmp_skip
8675 # See if we have the mktemp command.
8676 # Extract the first word of "mktemp", so it can be a program name with args.
8677 set dummy mktemp
; ac_word
=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8681 $as_echo_n "(cached) " >&6
8683 if test -n "$have_mktemp_command"; then
8684 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8690 test -z "$as_dir" && as_dir
=.
8691 for ac_exec_ext
in '' $ac_executable_extensions; do
8692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8693 ac_cv_prog_have_mktemp_command
="yes"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8704 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8705 if test -n "$have_mktemp_command"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8707 $as_echo "$have_mktemp_command" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8715 # See if makeinfo has been installed and is modern enough
8716 # that we can use it.
8718 # Extract the first word of "makeinfo", so it can be a program name with args.
8719 set dummy makeinfo
; ac_word
=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721 $as_echo_n "checking for $ac_word... " >&6; }
8722 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8723 $as_echo_n "(cached) " >&6
8725 if test -n "$MAKEINFO"; then
8726 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8732 test -z "$as_dir" && as_dir
=.
8733 for ac_exec_ext
in '' $ac_executable_extensions; do
8734 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8735 ac_cv_prog_MAKEINFO
="makeinfo"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 MAKEINFO
=$ac_cv_prog_MAKEINFO
8746 if test -n "$MAKEINFO"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8748 $as_echo "$MAKEINFO" >&6; }
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8755 if test -n "$MAKEINFO"; then
8756 # Found it, now check the version.
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8758 $as_echo_n "checking for modern makeinfo... " >&6; }
8759 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8760 $as_echo_n "(cached) " >&6
8762 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8763 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8765 case $ac_prog_version in
8766 '') gcc_cv_prog_makeinfo_modern
=no
;;
8767 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8768 *) gcc_cv_prog_makeinfo_modern
=no
;;
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8773 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8775 gcc_cv_prog_makeinfo_modern
=no
8777 if test $gcc_cv_prog_makeinfo_modern = no
; then
8778 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8781 if test $gcc_cv_prog_makeinfo_modern = no
; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8783 *** Makeinfo is missing or too old.
8784 *** Info documentation will not be built." >&5
8785 $as_echo "$as_me: WARNING:
8786 *** Makeinfo is missing or too old.
8787 *** Info documentation will not be built." >&2;}
8794 # Is pod2man recent enough to regenerate manpages?
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8796 $as_echo_n "checking for recent Pod::Man... " >&6; }
8797 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8799 $as_echo "yes" >&6; }
8800 GENERATED_MANPAGES
=generated-manpages
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8808 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8813 # Extract the first word of "$ac_prog", so it can be a program name with args.
8814 set dummy
$ac_prog; ac_word
=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if ${ac_cv_prog_FLEX+:} false
; then :
8818 $as_echo_n "(cached) " >&6
8820 if test -n "$FLEX"; then
8821 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8827 test -z "$as_dir" && as_dir
=.
8828 for ac_exec_ext
in '' $ac_executable_extensions; do
8829 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_FLEX
="$ac_prog"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840 FLEX
=$ac_cv_prog_FLEX
8841 if test -n "$FLEX"; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8843 $as_echo "$FLEX" >&6; }
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8850 test -n "$FLEX" && break
8852 test -n "$FLEX" || FLEX
="$MISSING flex"
8856 for ac_prog
in bison
8858 # Extract the first word of "$ac_prog", so it can be a program name with args.
8859 set dummy
$ac_prog; ac_word
=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_prog_BISON+:} false
; then :
8863 $as_echo_n "(cached) " >&6
8865 if test -n "$BISON"; then
8866 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8872 test -z "$as_dir" && as_dir
=.
8873 for ac_exec_ext
in '' $ac_executable_extensions; do
8874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_BISON
="$ac_prog"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 BISON
=$ac_cv_prog_BISON
8886 if test -n "$BISON"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8888 $as_echo "$BISON" >&6; }
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8895 test -n "$BISON" && break
8897 test -n "$BISON" || BISON
="$MISSING bison"
8900 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8901 # check for build == host before using them.
8904 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8905 && test -d ..
/binutils
; then
8906 NM
='${objdir}/../binutils/nm-new'
8908 # Extract the first word of "nm", so it can be a program name with args.
8909 set dummy nm
; ac_word
=$2
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911 $as_echo_n "checking for $ac_word... " >&6; }
8912 if ${ac_cv_prog_NM+:} false
; then :
8913 $as_echo_n "(cached) " >&6
8915 if test -n "$NM"; then
8916 ac_cv_prog_NM
="$NM" # Let the user override the test.
8918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8922 test -z "$as_dir" && as_dir
=.
8923 for ac_exec_ext
in '' $ac_executable_extensions; do
8924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8937 if test -n "$NM"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8939 $as_echo "$NM" >&6; }
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8949 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8950 && test -d ..
/binutils
; then
8951 AR
='${objdir}/../binutils/ar'
8953 # Extract the first word of "ar", so it can be a program name with args.
8954 set dummy
ar; ac_word
=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if ${ac_cv_prog_AR+:} false
; then :
8958 $as_echo_n "(cached) " >&6
8960 if test -n "$AR"; then
8961 ac_cv_prog_AR
="$AR" # Let the user override the test.
8963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8967 test -z "$as_dir" && as_dir
=.
8968 for ac_exec_ext
in '' $ac_executable_extensions; do
8969 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8982 if test -n "$AR"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8984 $as_echo "$AR" >&6; }
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8993 # The jit documentation looks better if built with sphinx, but can be
8994 # built with texinfo if sphinx is not available.
8995 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8996 # Extract the first word of "sphinx-build", so it can be a program name with args.
8997 set dummy sphinx-build
; ac_word
=$2
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 $as_echo_n "checking for $ac_word... " >&6; }
9000 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9001 $as_echo_n "(cached) " >&6
9003 if test -n "$doc_build_sys"; then
9004 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9010 test -z "$as_dir" && as_dir
=.
9011 for ac_exec_ext
in '' $ac_executable_extensions; do
9012 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9013 ac_cv_prog_doc_build_sys
="sphinx"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9024 doc_build_sys
=$ac_cv_prog_doc_build_sys
9025 if test -n "$doc_build_sys"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9027 $as_echo "$doc_build_sys" >&6; }
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9035 # --------------------
9036 # Checks for C headers
9037 # --------------------
9039 # Need to reject headers which give warnings, so that the -Werror bootstrap
9040 # works later. *sigh* This needs to come before all header checks.
9042 ac_c_preproc_warn_flag
=yes
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9045 $as_echo_n "checking for ANSI C header files... " >&6; }
9046 if ${ac_cv_header_stdc+:} false
; then :
9047 $as_echo_n "(cached) " >&6
9049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9064 if ac_fn_cxx_try_compile
"$LINENO"; then :
9065 ac_cv_header_stdc
=yes
9067 ac_cv_header_stdc
=no
9069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9071 if test $ac_cv_header_stdc = yes; then
9072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9079 $EGREP "memchr" >/dev
/null
2>&1; then :
9082 ac_cv_header_stdc
=no
9088 if test $ac_cv_header_stdc = yes; then
9089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9096 $EGREP "free" >/dev
/null
2>&1; then :
9099 ac_cv_header_stdc
=no
9105 if test $ac_cv_header_stdc = yes; then
9106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9107 if test "$cross_compiling" = yes; then :
9110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9114 #if ((' ' & 0x0FF) == 0x020)
9115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9118 # define ISLOWER(c) \
9119 (('a' <= (c) && (c) <= 'i') \
9120 || ('j' <= (c) && (c) <= 'r') \
9121 || ('s' <= (c) && (c) <= 'z'))
9122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9130 for (i = 0; i < 256; i++)
9131 if (XOR (islower (i), ISLOWER (i))
9132 || toupper (i) != TOUPPER (i))
9137 if ac_fn_cxx_try_run
"$LINENO"; then :
9140 ac_cv_header_stdc
=no
9142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9143 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9149 $as_echo "$ac_cv_header_stdc" >&6; }
9150 if test $ac_cv_header_stdc = yes; then
9152 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9157 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9158 if ${ac_cv_header_time+:} false
; then :
9159 $as_echo_n "(cached) " >&6
9161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 #include <sys/types.h>
9164 #include <sys/time.h>
9170 if ((struct tm *) 0)
9176 if ac_fn_cxx_try_compile
"$LINENO"; then :
9177 ac_cv_header_time
=yes
9179 ac_cv_header_time
=no
9181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9184 $as_echo "$ac_cv_header_time" >&6; }
9185 if test $ac_cv_header_time = yes; then
9187 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9192 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9193 if ${gcc_cv_header_string+:} false
; then :
9194 $as_echo_n "(cached) " >&6
9196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9199 #include <strings.h>
9208 if ac_fn_cxx_try_compile
"$LINENO"; then :
9209 gcc_cv_header_string
=yes
9211 gcc_cv_header_string
=no
9213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9216 $as_echo "$gcc_cv_header_string" >&6; }
9217 if test $gcc_cv_header_string = yes; then
9219 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9224 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9225 if ${ac_cv_header_sys_wait_h+:} false
; then :
9226 $as_echo_n "(cached) " >&6
9228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #include <sys/types.h>
9231 #include <sys/wait.h>
9233 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9236 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9244 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9249 if ac_fn_cxx_try_compile
"$LINENO"; then :
9250 ac_cv_header_sys_wait_h
=yes
9252 ac_cv_header_sys_wait_h
=no
9254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9257 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9258 if test $ac_cv_header_sys_wait_h = yes; then
9260 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9265 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9266 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9267 $as_echo_n "(cached) " >&6
9269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 #include <sys/types.h>
9272 #include <termios.h>
9278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9279 $EGREP "yes" >/dev
/null
2>&1; then :
9280 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9282 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9288 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9290 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9292 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9293 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9294 $as_echo_n "(cached) " >&6
9296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 #include <sys/types.h>
9299 #include <sys/ioctl.h>
9305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9306 $EGREP "yes" >/dev
/null
2>&1; then :
9307 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9309 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9315 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9317 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9319 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9324 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9325 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9326 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9327 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9329 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9330 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9331 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9332 cat >>confdefs.h
<<_ACEOF
9333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9340 # Check for thread headers.
9341 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9342 if test "x$ac_cv_header_thread_h" = xyes
; then :
9348 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9349 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9356 # These tests can't be done till we know if we have limits.h.
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9358 $as_echo_n "checking for CHAR_BIT... " >&6; }
9359 if ${gcc_cv_decl_char_bit+:} false
; then :
9360 $as_echo_n "(cached) " >&6
9362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 #ifdef HAVE_LIMITS_H
9371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9372 $EGREP "found" >/dev
/null
2>&1; then :
9373 gcc_cv_decl_char_bit
=yes
9375 gcc_cv_decl_char_bit
=no
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9382 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9383 if test $gcc_cv_decl_char_bit = no
; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9385 $as_echo_n "checking number of bits in a byte... " >&6; }
9386 if ${gcc_cv_c_nbby+:} false
; then :
9387 $as_echo_n "(cached) " >&6
9391 while test $i -lt 65; do
9392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9399 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9400 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9406 if ac_fn_cxx_try_compile
"$LINENO"; then :
9407 gcc_cv_c_nbby
=$i; break
9409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9412 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9416 $as_echo "$gcc_cv_c_nbby" >&6; }
9417 if test $gcc_cv_c_nbby = failed
; then
9418 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9421 cat >>confdefs.h
<<_ACEOF
9422 #define CHAR_BIT $gcc_cv_c_nbby
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9428 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9429 if ${ac_cv_c_bigendian+:} false
; then :
9430 $as_echo_n "(cached) " >&6
9432 ac_cv_c_bigendian
=unknown
9433 # See if we're dealing with a universal compiler.
9434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 #ifndef __APPLE_CC__
9437 not a universal capable compiler
9442 if ac_fn_cxx_try_compile
"$LINENO"; then :
9444 # Check for potential -arch flags. It is not universal unless
9445 # there are at least two -arch flags with different values.
9448 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9449 if test -n "$ac_prev"; then
9451 i?
86 | x86_64 | ppc | ppc64
)
9452 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9455 ac_cv_c_bigendian
=universal
9461 elif test "x$ac_word" = "x-arch"; then
9466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9467 if test $ac_cv_c_bigendian = unknown
; then
9468 # See if sys/param.h defines the BYTE_ORDER macro.
9469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 #include <sys/types.h>
9472 #include <sys/param.h>
9477 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9478 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9487 if ac_fn_cxx_try_compile
"$LINENO"; then :
9488 # It does; now see whether it defined to BIG_ENDIAN or not.
9489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491 #include <sys/types.h>
9492 #include <sys/param.h>
9497 #if BYTE_ORDER != BIG_ENDIAN
9505 if ac_fn_cxx_try_compile
"$LINENO"; then :
9506 ac_cv_c_bigendian
=yes
9508 ac_cv_c_bigendian
=no
9510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9514 if test $ac_cv_c_bigendian = unknown
; then
9515 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9523 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9531 if ac_fn_cxx_try_compile
"$LINENO"; then :
9532 # It does; now see whether it defined to _BIG_ENDIAN or not.
9533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9548 if ac_fn_cxx_try_compile
"$LINENO"; then :
9549 ac_cv_c_bigendian
=yes
9551 ac_cv_c_bigendian
=no
9553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9557 if test $ac_cv_c_bigendian = unknown
; then
9558 # Compile a test program.
9559 if test "$cross_compiling" = yes; then :
9560 # Try to guess by grepping values from an object file.
9561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9563 short int ascii_mm[] =
9564 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9565 short int ascii_ii[] =
9566 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9567 int use_ascii (int i) {
9568 return ascii_mm[i] + ascii_ii[i];
9570 short int ebcdic_ii[] =
9571 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9572 short int ebcdic_mm[] =
9573 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9574 int use_ebcdic (int i) {
9575 return ebcdic_mm[i] + ebcdic_ii[i];
9582 return use_ascii (foo) == use_ebcdic (foo);
9587 if ac_fn_cxx_try_compile
"$LINENO"; then :
9588 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9589 ac_cv_c_bigendian
=yes
9591 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9592 if test "$ac_cv_c_bigendian" = unknown
; then
9593 ac_cv_c_bigendian
=no
9595 # finding both strings is unlikely to happen, but who knows?
9596 ac_cv_c_bigendian
=unknown
9600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 $ac_includes_default
9609 /* Are we little or big endian? From Harbison&Steele. */
9613 char c[sizeof (long int)];
9616 return u.c[sizeof (long int) - 1] == 1;
9622 if ac_fn_cxx_try_run
"$LINENO"; then :
9623 ac_cv_c_bigendian
=no
9625 ac_cv_c_bigendian
=yes
9627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9628 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9634 $as_echo "$ac_cv_c_bigendian" >&6; }
9635 case $ac_cv_c_bigendian in #(
9637 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9643 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9647 as_fn_error $?
"unknown endianness
9648 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9652 # ----------------------
9653 # Checks for C++ headers
9654 # ----------------------
9657 ac_cpp
='$CXXCPP $CPPFLAGS'
9658 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9659 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9660 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9662 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9663 if test -z "$CXXCPP"; then
9664 if ${ac_cv_prog_CXXCPP+:} false
; then :
9665 $as_echo_n "(cached) " >&6
9667 # Double quotes because CXXCPP needs to be expanded
9668 for CXXCPP
in "$CXX -E" "/lib/cpp"
9671 for ac_cxx_preproc_warn_flag
in '' yes
9673 # Use a header file that comes with gcc, so configuring glibc
9674 # with a fresh cross-compiler works.
9675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 # <limits.h> exists even on freestanding compilers.
9677 # On the NeXT, cc -E runs the code through the compiler's parser,
9678 # not just through cpp. "Syntax error" is here to catch this case.
9679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9682 # include <limits.h>
9684 # include <assert.h>
9688 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9691 # Broken: fails on valid input.
9694 rm -f conftest.err conftest.i conftest.
$ac_ext
9696 # OK, works on sane cases. Now check whether nonexistent headers
9697 # can be detected and how.
9698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 #include <ac_nonexistent.h>
9702 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9703 # Broken: success on invalid input.
9706 # Passes both tests.
9710 rm -f conftest.err conftest.i conftest.
$ac_ext
9713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9714 rm -f conftest.i conftest.err conftest.
$ac_ext
9715 if $ac_preproc_ok; then :
9720 ac_cv_prog_CXXCPP
=$CXXCPP
9723 CXXCPP
=$ac_cv_prog_CXXCPP
9725 ac_cv_prog_CXXCPP
=$CXXCPP
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9728 $as_echo "$CXXCPP" >&6; }
9730 for ac_cxx_preproc_warn_flag
in '' yes
9732 # Use a header file that comes with gcc, so configuring glibc
9733 # with a fresh cross-compiler works.
9734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9735 # <limits.h> exists even on freestanding compilers.
9736 # On the NeXT, cc -E runs the code through the compiler's parser,
9737 # not just through cpp. "Syntax error" is here to catch this case.
9738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9741 # include <limits.h>
9743 # include <assert.h>
9747 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9750 # Broken: fails on valid input.
9753 rm -f conftest.err conftest.i conftest.
$ac_ext
9755 # OK, works on sane cases. Now check whether nonexistent headers
9756 # can be detected and how.
9757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759 #include <ac_nonexistent.h>
9761 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9762 # Broken: success on invalid input.
9765 # Passes both tests.
9769 rm -f conftest.err conftest.i conftest.
$ac_ext
9772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9773 rm -f conftest.i conftest.err conftest.
$ac_ext
9774 if $ac_preproc_ok; then :
9777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9780 See \`config.log' for more details" >&5
9781 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9782 See \`config.log' for more details" >&2;}; }
9786 ac_cpp
='$CXXCPP $CPPFLAGS'
9787 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9792 for ac_header
in unordered_map
9794 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9795 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9796 cat >>confdefs.h
<<_ACEOF
9797 #define HAVE_UNORDERED_MAP 1
9803 for ac_header
in tr1/unordered_map
9805 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9806 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9807 cat >>confdefs.h
<<_ACEOF
9808 #define HAVE_TR1_UNORDERED_MAP 1
9814 for ac_header
in ext
/hash_map
9816 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9817 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9818 cat >>confdefs.h
<<_ACEOF
9819 #define HAVE_EXT_HASH_MAP 1
9827 # Dependency checking.
9830 rm -rf .tst
2>/dev
/null
9831 mkdir .tst
2>/dev
/null
9832 if test -d .tst
; then
9837 rmdir .tst
2>/dev
/null
9839 DEPDIR
="${am__leading_dot}deps"
9841 ac_config_commands
="$ac_config_commands depdir"
9844 ac_config_commands
="$ac_config_commands gccdepdir"
9847 depcc
="$CXX" am_compiler_list
=
9849 am_depcomp
=$ac_aux_dir/depcomp
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9851 $as_echo_n "checking dependency style of $depcc... " >&6; }
9852 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9853 $as_echo_n "(cached) " >&6
9855 if test -f "$am_depcomp"; then
9856 # We make a subdir and do the tests there. Otherwise we can end up
9857 # making bogus files that we don't know about and never remove. For
9858 # instance it was reported that on HP-UX the gcc test will end up
9859 # making a dummy file named `D' -- because `-MD' means `put the output
9862 # Copy depcomp to subdir because otherwise we won't find it if we're
9863 # using a relative directory.
9864 cp "$am_depcomp" conftest.dir
9866 # We will build objects and dependencies in a subdirectory because
9867 # it helps to detect inapplicable dependency modes. For instance
9868 # both Tru64's cc and ICC support -MD to output dependencies as a
9869 # side effect of compilation, but ICC will put the dependencies in
9870 # the current directory while Tru64 will put them in the object
9874 am_cv_CXX_dependencies_compiler_type
=none
9875 if test "$am_compiler_list" = ""; then
9876 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9878 for depmode
in $am_compiler_list; do
9879 if test $depmode = none
; then break; fi
9881 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9882 # Setup a source with many dependencies, because some compilers
9883 # like to wrap large dependency lists on column 80 (with \), and
9884 # we should not choose a depcomp mode which is confused by this.
9886 # We need to recreate these files for each test, as the compiler may
9887 # overwrite some of them when testing with obscure command lines.
9888 # This happens at least with the AIX C compiler.
9890 for i
in 1 2 3 4 5 6; do
9891 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9892 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9893 # Solaris 8's {/usr,}/bin/sh.
9894 touch sub
/conftst
$i.h
9896 echo "include sub/conftest.Po" > confmf
9898 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9899 # mode. It turns out that the SunPro C++ compiler does not properly
9900 # handle `-M -o', and we need to detect this.
9901 depcmd
="depmode=$depmode \
9902 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9903 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9904 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9905 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9906 if env
$depcmd > conftest.err
2>&1 &&
9907 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9908 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9909 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9910 # icc doesn't choke on unknown options, it will just issue warnings
9911 # or remarks (even with -Werror). So we grep stderr for any message
9912 # that says an option was ignored or not supported.
9913 # When given -MP, icc 7.0 and 7.1 complain thusly:
9914 # icc: Command line warning: ignoring option '-M'; no argument required
9915 # The diagnosis changed in icc 8.0:
9916 # icc: Command line remark: option '-MP' not supported
9917 if (grep 'ignoring option' conftest.err ||
9918 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9919 am_cv_CXX_dependencies_compiler_type
=$depmode
9920 $as_echo "$as_me:$LINENO: success" >&5
9924 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9925 sed -e 's/^/| /' < conftest.err
>&5
9931 am_cv_CXX_dependencies_compiler_type
=none
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9936 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9937 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9938 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9939 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9949 # These libraries may be used by collect2.
9950 # We may need a special search path to get them linked.
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9952 $as_echo_n "checking for collect2 libraries... " >&6; }
9953 if ${gcc_cv_collect2_libs+:} false
; then :
9954 $as_echo_n "(cached) " >&6
9957 for libs
in '' -lld -lmld \
9958 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9959 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9980 if ac_fn_cxx_try_link
"$LINENO"; then :
9981 gcc_cv_collect2_libs
="$libs"; break
9983 rm -f core conftest.err conftest.
$ac_objext \
9984 conftest
$ac_exeext conftest.
$ac_ext
9987 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9990 $as_echo "$gcc_cv_collect2_libs" >&6; }
9991 case $gcc_cv_collect2_libs in
9993 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9997 # When building Ada code on Alpha, we need exc_resume which is usually in
9998 # -lexc. So test for it.
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10002 $as_echo_n "checking for library containing exc_resume... " >&6; }
10003 if ${ac_cv_search_exc_resume+:} false
; then :
10004 $as_echo_n "(cached) " >&6
10006 ac_func_search_save_LIBS
=$LIBS
10007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10010 /* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
10016 char exc_resume ();
10020 return exc_resume ();
10025 for ac_lib
in '' exc
; do
10026 if test -z "$ac_lib"; then
10027 ac_res
="none required"
10030 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10032 if ac_fn_cxx_try_link
"$LINENO"; then :
10033 ac_cv_search_exc_resume
=$ac_res
10035 rm -f core conftest.err conftest.
$ac_objext \
10037 if ${ac_cv_search_exc_resume+:} false
; then :
10041 if ${ac_cv_search_exc_resume+:} false
; then :
10044 ac_cv_search_exc_resume
=no
10046 rm conftest.
$ac_ext
10047 LIBS
=$ac_func_search_save_LIBS
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10050 $as_echo "$ac_cv_search_exc_resume" >&6; }
10051 ac_res
=$ac_cv_search_exc_resume
10052 if test "$ac_res" != no
; then :
10053 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10057 GNAT_LIBEXC
="$LIBS"
10061 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10065 $as_echo_n "checking for library containing kstat_open... " >&6; }
10066 if ${ac_cv_search_kstat_open+:} false
; then :
10067 $as_echo_n "(cached) " >&6
10069 ac_func_search_save_LIBS
=$LIBS
10070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10073 /* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
10079 char kstat_open ();
10083 return kstat_open ();
10088 for ac_lib
in '' kstat
; do
10089 if test -z "$ac_lib"; then
10090 ac_res
="none required"
10093 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10095 if ac_fn_cxx_try_link
"$LINENO"; then :
10096 ac_cv_search_kstat_open
=$ac_res
10098 rm -f core conftest.err conftest.
$ac_objext \
10100 if ${ac_cv_search_kstat_open+:} false
; then :
10104 if ${ac_cv_search_kstat_open+:} false
; then :
10107 ac_cv_search_kstat_open
=no
10109 rm conftest.
$ac_ext
10110 LIBS
=$ac_func_search_save_LIBS
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10113 $as_echo "$ac_cv_search_kstat_open" >&6; }
10114 ac_res
=$ac_cv_search_kstat_open
10115 if test "$ac_res" != no
; then :
10116 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10120 EXTRA_GCC_LIBS
="$LIBS"
10124 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10125 # C++ needs those for libcody.
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10130 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10131 if ${ac_cv_search_gethostbyname+:} false
; then :
10132 $as_echo_n "(cached) " >&6
10134 ac_func_search_save_LIBS
=$LIBS
10135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10138 /* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10144 char gethostbyname ();
10148 return gethostbyname ();
10153 for ac_lib
in '' nsl
; do
10154 if test -z "$ac_lib"; then
10155 ac_res
="none required"
10158 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10160 if ac_fn_cxx_try_link
"$LINENO"; then :
10161 ac_cv_search_gethostbyname
=$ac_res
10163 rm -f core conftest.err conftest.
$ac_objext \
10165 if ${ac_cv_search_gethostbyname+:} false
; then :
10169 if ${ac_cv_search_gethostbyname+:} false
; then :
10172 ac_cv_search_gethostbyname
=no
10174 rm conftest.
$ac_ext
10175 LIBS
=$ac_func_search_save_LIBS
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10178 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10179 ac_res
=$ac_cv_search_gethostbyname
10180 if test "$ac_res" != no
; then :
10181 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10186 $as_echo_n "checking for library containing socket... " >&6; }
10187 if ${ac_cv_search_socket+:} false
; then :
10188 $as_echo_n "(cached) " >&6
10190 ac_func_search_save_LIBS
=$LIBS
10191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10209 for ac_lib
in '' socket
; do
10210 if test -z "$ac_lib"; then
10211 ac_res
="none required"
10214 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10216 if ac_fn_cxx_try_link
"$LINENO"; then :
10217 ac_cv_search_socket
=$ac_res
10219 rm -f core conftest.err conftest.
$ac_objext \
10221 if ${ac_cv_search_socket+:} false
; then :
10225 if ${ac_cv_search_socket+:} false
; then :
10228 ac_cv_search_socket
=no
10230 rm conftest.
$ac_ext
10231 LIBS
=$ac_func_search_save_LIBS
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10234 $as_echo "$ac_cv_search_socket" >&6; }
10235 ac_res
=$ac_cv_search_socket
10236 if test "$ac_res" != no
; then :
10237 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10242 $as_echo_n "checking for socket in -lsocket... " >&6; }
10243 if ${ac_cv_lib_socket_socket+:} false
; then :
10244 $as_echo_n "(cached) " >&6
10246 ac_check_lib_save_LIBS
=$LIBS
10247 LIBS
="-lsocket -lnsl $LIBS"
10248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10251 /* Override any GCC internal prototype to avoid an error.
10252 Use char because int might match the return type of a GCC
10253 builtin and then its argument prototype would still apply. */
10266 if ac_fn_cxx_try_link
"$LINENO"; then :
10267 ac_cv_lib_socket_socket
=yes
10269 ac_cv_lib_socket_socket
=no
10271 rm -f core conftest.err conftest.
$ac_objext \
10272 conftest
$ac_exeext conftest.
$ac_ext
10273 LIBS
=$ac_check_lib_save_LIBS
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10276 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10277 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10278 LIBS
="-lsocket -lnsl $LIBS"
10288 # Some systems put ldexp and frexp in libm instead of libc; assume
10289 # they're both in the same place. jcf-dump needs them.
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10293 $as_echo_n "checking for library containing ldexp... " >&6; }
10294 if ${ac_cv_search_ldexp+:} false
; then :
10295 $as_echo_n "(cached) " >&6
10297 ac_func_search_save_LIBS
=$LIBS
10298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10301 /* Override any GCC internal prototype to avoid an error.
10302 Use char because int might match the return type of a GCC
10303 builtin and then its argument prototype would still apply. */
10316 for ac_lib
in '' m
; do
10317 if test -z "$ac_lib"; then
10318 ac_res
="none required"
10321 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10323 if ac_fn_cxx_try_link
"$LINENO"; then :
10324 ac_cv_search_ldexp
=$ac_res
10326 rm -f core conftest.err conftest.
$ac_objext \
10328 if ${ac_cv_search_ldexp+:} false
; then :
10332 if ${ac_cv_search_ldexp+:} false
; then :
10335 ac_cv_search_ldexp
=no
10337 rm conftest.
$ac_ext
10338 LIBS
=$ac_func_search_save_LIBS
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10341 $as_echo "$ac_cv_search_ldexp" >&6; }
10342 ac_res
=$ac_cv_search_ldexp
10343 if test "$ac_res" != no
; then :
10344 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10352 # Some systems need dlopen
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10356 $as_echo_n "checking for library containing dlopen... " >&6; }
10357 if ${ac_cv_search_dlopen+:} false
; then :
10358 $as_echo_n "(cached) " >&6
10360 ac_func_search_save_LIBS
=$LIBS
10361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10379 for ac_lib
in '' dl
; do
10380 if test -z "$ac_lib"; then
10381 ac_res
="none required"
10384 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10386 if ac_fn_cxx_try_link
"$LINENO"; then :
10387 ac_cv_search_dlopen
=$ac_res
10389 rm -f core conftest.err conftest.
$ac_objext \
10391 if ${ac_cv_search_dlopen+:} false
; then :
10395 if ${ac_cv_search_dlopen+:} false
; then :
10398 ac_cv_search_dlopen
=no
10400 rm conftest.
$ac_ext
10401 LIBS
=$ac_func_search_save_LIBS
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10404 $as_echo "$ac_cv_search_dlopen" >&6; }
10405 ac_res
=$ac_cv_search_dlopen
10406 if test "$ac_res" != no
; then :
10407 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10415 # Use <inttypes.h> only if it exists,
10416 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10419 $as_echo_n "checking for inttypes.h... " >&6; }
10420 if ${gcc_cv_header_inttypes_h+:} false
; then :
10421 $as_echo_n "(cached) " >&6
10423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #define __STDC_FORMAT_MACROS
10426 #include <sys/types.h>
10427 #include <inttypes.h>
10439 if ac_fn_cxx_try_compile
"$LINENO"; then :
10440 gcc_cv_header_inttypes_h
=yes
10442 gcc_cv_header_inttypes_h
=no
10444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10448 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10449 if test $gcc_cv_header_inttypes_h = yes; then
10451 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10455 # Look for the ZSTD package.
10465 # Check whether --with-zstd was given.
10466 if test "${with_zstd+set}" = set; then :
10467 withval
=$with_zstd;
10471 # Check whether --with-zstd-include was given.
10472 if test "${with_zstd_include+set}" = set; then :
10473 withval
=$with_zstd_include;
10477 # Check whether --with-zstd-lib was given.
10478 if test "${with_zstd_lib+set}" = set; then :
10479 withval
=$with_zstd_lib;
10482 case "x$with_zstd" in
10488 *) ZSTD_INCLUDE
=$with_zstd/include
10489 ZSTD_LIB
=$with_zstd/lib
10493 if test "x$with_zstd" != xno
; then
10494 if test "x$with_zstd_include" != x
; then
10495 ZSTD_INCLUDE
=$with_zstd_include
10497 if test "x$with_zstd_lib" != x
; then
10498 ZSTD_LIB
=$with_zstd_lib
10500 if test "x$ZSTD_INCLUDE" != x \
10501 && test "x$ZSTD_INCLUDE" != xno
; then
10502 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10504 if test "x$ZSTD_LIB" != x \
10505 && test "x$ZSTD_LIB" != xno
; then
10506 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10509 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10510 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10513 $as_echo_n "checking for zstd.h... " >&6; }
10514 if ${gcc_cv_header_zstd_h+:} false
; then :
10515 $as_echo_n "(cached) " >&6
10517 # We require version 1.3.0 or later. This is the first version that has
10518 # ZSTD_getFrameContentSize.
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10522 #if ZSTD_VERSION_NUMBER < 10300
10523 #error "need zstd 1.3.0 or better"
10533 if ac_fn_cxx_try_compile
"$LINENO"; then :
10534 gcc_cv_header_zstd_h
=yes
10536 gcc_cv_header_zstd_h
=no
10538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10542 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10543 if test $gcc_cv_header_zstd_h = yes; then
10545 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10547 elif test "x$with_zstd" != x
; then
10548 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10551 # LTO can use zstd compression algorithm
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10555 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10556 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10557 $as_echo_n "(cached) " >&6
10559 ac_func_search_save_LIBS
=$LIBS
10560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10563 /* Override any GCC internal prototype to avoid an error.
10564 Use char because int might match the return type of a GCC
10565 builtin and then its argument prototype would still apply. */
10569 char ZSTD_compress ();
10573 return ZSTD_compress ();
10578 for ac_lib
in '' zstd
; do
10579 if test -z "$ac_lib"; then
10580 ac_res
="none required"
10583 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10585 if ac_fn_cxx_try_link
"$LINENO"; then :
10586 ac_cv_search_ZSTD_compress
=$ac_res
10588 rm -f core conftest.err conftest.
$ac_objext \
10590 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10594 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10597 ac_cv_search_ZSTD_compress
=no
10599 rm conftest.
$ac_ext
10600 LIBS
=$ac_func_search_save_LIBS
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10603 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10604 ac_res
=$ac_cv_search_ZSTD_compress
10605 if test "$ac_res" != no
; then :
10606 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10617 for ac_func
in times clock kill getrlimit setrlimit atoq \
10618 popen sysconf strsignal getrusage nl_langinfo \
10619 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10620 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
10622 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10623 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10624 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10625 cat >>confdefs.h
<<_ACEOF
10626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10633 if test x
$ac_cv_func_mbstowcs = xyes
; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10635 $as_echo_n "checking whether mbstowcs works... " >&6; }
10636 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10637 $as_echo_n "(cached) " >&6
10639 if test "$cross_compiling" = yes; then :
10640 gcc_cv_func_mbstowcs_works
=yes
10642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10644 #include <stdlib.h>
10647 mbstowcs(0, "", 0);
10651 if ac_fn_cxx_try_run
"$LINENO"; then :
10652 gcc_cv_func_mbstowcs_works
=yes
10654 gcc_cv_func_mbstowcs_works
=no
10656 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10657 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10662 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10663 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10665 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10670 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10671 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10675 cat >>confdefs.h
<<_ACEOF
10676 #define ssize_t int
10681 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10682 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10686 cat >>confdefs.h
<<_ACEOF
10687 #define caddr_t char *
10692 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10694 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10696 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10702 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10703 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10704 gcc_header_sys_mman_h
=yes
10706 gcc_header_sys_mman_h
=no
10709 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10710 if test "x$ac_cv_func_mmap" = xyes
; then :
10716 if test "$gcc_header_sys_mman_h" != yes \
10717 ||
test "$gcc_func_mmap" != yes; then
10718 gcc_cv_func_mmap_file
=no
10719 gcc_cv_func_mmap_dev_zero
=no
10720 gcc_cv_func_mmap_anon
=no
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10723 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10724 if ${gcc_cv_func_mmap_file+:} false
; then :
10725 $as_echo_n "(cached) " >&6
10727 # Add a system to this blacklist if
10728 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10729 # memory area containing the same data that you'd get if you applied
10730 # read() to the same fd. The only system known to have a problem here
10731 # is VMS, where text files have record structure.
10734 gcc_cv_func_mmap_file
=no
;;
10736 gcc_cv_func_mmap_file
=yes;;
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10740 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10742 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10743 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10744 $as_echo_n "(cached) " >&6
10746 # Add a system to this blacklist if it has mmap() but /dev/zero
10747 # does not exist, or if mmapping /dev/zero does not give anonymous
10748 # zeroed pages with both the following properties:
10749 # 1. If you map N consecutive pages in with one call, and then
10750 # unmap any subset of those pages, the pages that were not
10751 # explicitly unmapped remain accessible.
10752 # 2. If you map two adjacent blocks of memory and then unmap them
10753 # both at once, they must both go away.
10754 # Systems known to be in this category are Windows (all variants),
10757 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10758 gcc_cv_func_mmap_dev_zero
=no
;;
10760 gcc_cv_func_mmap_dev_zero
=yes;;
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10764 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10766 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10768 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10769 if ${gcc_cv_decl_map_anon+:} false
; then :
10770 $as_echo_n "(cached) " >&6
10772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 #include <sys/types.h>
10775 #include <sys/mman.h>
10776 #include <unistd.h>
10778 #ifndef MAP_ANONYMOUS
10779 #define MAP_ANONYMOUS MAP_ANON
10785 int n = MAP_ANONYMOUS;
10790 if ac_fn_cxx_try_compile
"$LINENO"; then :
10791 gcc_cv_decl_map_anon
=yes
10793 gcc_cv_decl_map_anon
=no
10795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10798 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10800 if test $gcc_cv_decl_map_anon = no
; then
10801 gcc_cv_func_mmap_anon
=no
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10804 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10805 if ${gcc_cv_func_mmap_anon+:} false
; then :
10806 $as_echo_n "(cached) " >&6
10808 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10809 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10810 # doesn't give anonymous zeroed pages with the same properties listed
10811 # above for use of /dev/zero.
10812 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10814 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10815 gcc_cv_func_mmap_anon
=no
;;
10817 gcc_cv_func_mmap_anon
=yes;;
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10821 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10825 if test $gcc_cv_func_mmap_file = yes; then
10827 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10830 if test $gcc_cv_func_mmap_dev_zero = yes; then
10832 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10835 if test $gcc_cv_func_mmap_anon = yes; then
10837 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10844 # Under VMS, vfork works very differently than on Unix. The standard test
10845 # won't work, and it isn't easily adaptable. It makes more sense to
10847 ac_cv_func_vfork_works
=yes
10850 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10851 if test "x$ac_cv_type_pid_t" = xyes
; then :
10855 cat >>confdefs.h
<<_ACEOF
10861 for ac_header
in vfork.h
10863 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10864 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10865 cat >>confdefs.h
<<_ACEOF
10866 #define HAVE_VFORK_H 1
10872 for ac_func
in fork vfork
10874 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10876 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10877 cat >>confdefs.h
<<_ACEOF
10878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10884 if test "x$ac_cv_func_fork" = xyes
; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10886 $as_echo_n "checking for working fork... " >&6; }
10887 if ${ac_cv_func_fork_works+:} false
; then :
10888 $as_echo_n "(cached) " >&6
10890 if test "$cross_compiling" = yes; then :
10891 ac_cv_func_fork_works
=cross
10893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895 $ac_includes_default
10900 /* By Ruediger Kuhlmann. */
10901 return fork () < 0;
10907 if ac_fn_cxx_try_run
"$LINENO"; then :
10908 ac_cv_func_fork_works
=yes
10910 ac_cv_func_fork_works
=no
10912 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10913 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10918 $as_echo "$ac_cv_func_fork_works" >&6; }
10921 ac_cv_func_fork_works
=$ac_cv_func_fork
10923 if test "x$ac_cv_func_fork_works" = xcross
; then
10925 *-*-amigaos* |
*-*-msdosdjgpp*)
10926 # Override, as these systems have only a dummy fork() stub
10927 ac_cv_func_fork_works
=no
10930 ac_cv_func_fork_works
=yes
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10934 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10936 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10937 if test "x$ac_cv_func_vfork" = xyes
; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10939 $as_echo_n "checking for working vfork... " >&6; }
10940 if ${ac_cv_func_vfork_works+:} false
; then :
10941 $as_echo_n "(cached) " >&6
10943 if test "$cross_compiling" = yes; then :
10944 ac_cv_func_vfork_works
=cross
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 /* Thanks to Paul Eggert for this test. */
10949 $ac_includes_default
10950 #include <sys/wait.h>
10951 #ifdef HAVE_VFORK_H
10952 # include <vfork.h>
10954 /* On some sparc systems, changes by the child to local and incoming
10955 argument registers are propagated back to the parent. The compiler
10956 is told about this with #include <vfork.h>, but some compilers
10957 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10958 static variable whose address is put into a register that is
10959 clobbered by the vfork. */
10962 sparc_address_test (int arg)
10964 sparc_address_test (arg) int arg;
10967 static pid_t child;
10985 pid_t parent = getpid ();
10988 sparc_address_test (0);
10993 /* Here is another test for sparc vfork register problems. This
10994 test uses lots of local variables, at least as many local
10995 variables as main has allocated so far including compiler
10996 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10997 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10998 reuse the register of parent for one of the local variables,
10999 since it will think that parent can't possibly be used any more
11000 in this routine. Assigning to the local variable will thus
11001 munge parent in the parent process. */
11003 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11004 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11005 /* Convince the compiler that p..p7 are live; otherwise, it might
11006 use the same hardware register for all 8 local variables. */
11007 if (p != p1 || p != p2 || p != p3 || p != p4
11008 || p != p5 || p != p6 || p != p7)
11011 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11012 from child file descriptors. If the child closes a descriptor
11013 before it execs or exits, this munges the parent's descriptor
11014 as well. Test for this by closing stdout in the child. */
11015 _exit(close(fileno(stdout)) != 0);
11020 while (wait(&status) != child)
11023 /* Was there some problem with vforking? */
11026 /* Did the child fail? (This shouldn't happen.) */
11029 /* Did the vfork/compiler bug occur? */
11030 || parent != getpid()
11032 /* Did the file descriptor bug occur? */
11033 || fstat(fileno(stdout), &st) != 0
11038 if ac_fn_cxx_try_run
"$LINENO"; then :
11039 ac_cv_func_vfork_works
=yes
11041 ac_cv_func_vfork_works
=no
11043 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11044 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11049 $as_echo "$ac_cv_func_vfork_works" >&6; }
11052 if test "x$ac_cv_func_fork_works" = xcross
; then
11053 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11055 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11058 if test "x$ac_cv_func_vfork_works" = xyes
; then
11060 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11064 $as_echo "#define vfork fork" >>confdefs.h
11067 if test "x$ac_cv_func_fork_works" = xyes
; then
11069 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11075 if test "X$prefix" = "XNONE"; then
11076 acl_final_prefix
="$ac_default_prefix"
11078 acl_final_prefix
="$prefix"
11080 if test "X$exec_prefix" = "XNONE"; then
11081 acl_final_exec_prefix
='${prefix}'
11083 acl_final_exec_prefix
="$exec_prefix"
11085 acl_save_prefix
="$prefix"
11086 prefix
="$acl_final_prefix"
11087 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11088 prefix
="$acl_save_prefix"
11091 # Check whether --with-gnu-ld was given.
11092 if test "${with_gnu_ld+set}" = set; then :
11093 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11098 # Prepare PATH_SEPARATOR.
11099 # The user is always right.
11100 if test "${PATH_SEPARATOR+set}" != set; then
11101 echo "#! /bin/sh" >conf$$.sh
11102 echo "exit 0" >>conf$$.sh
11104 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11112 if test "$GCC" = yes; then
11113 # Check if gcc -print-prog-name=ld gives a path.
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11115 $as_echo_n "checking for ld used by GCC... " >&6; }
11118 # gcc leaves a trailing carriage return which upsets mingw
11119 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11121 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11124 # Accept absolute paths.
11125 [\\/]* |
[A-Za-z
]:[\\/]*)
11126 re_direlt
='/[^/][^/]*/\.\./'
11127 # Canonicalize the path of ld
11128 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11129 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11130 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11132 test -z "$LD" && LD
="$ac_prog"
11135 # If it fails, then pretend we aren't using GCC.
11139 # If it is relative, then search for the first ld in PATH.
11140 with_gnu_ld
=unknown
11143 elif test "$with_gnu_ld" = yes; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11145 $as_echo_n "checking for GNU ld... " >&6; }
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11148 $as_echo_n "checking for non-GNU ld... " >&6; }
11150 if ${acl_cv_path_LD+:} false
; then :
11151 $as_echo_n "(cached) " >&6
11153 if test -z "$LD"; then
11154 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11155 for ac_dir
in $PATH; do
11156 test -z "$ac_dir" && ac_dir
=.
11157 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11158 acl_cv_path_LD
="$ac_dir/$ac_prog"
11159 # Check to see if the program is GNU ld. I'd rather use --version,
11160 # but apparently some GNU ld's only accept -v.
11161 # Break only if it was the GNU/non-GNU ld that we prefer.
11162 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11163 test "$with_gnu_ld" != no
&& break
11165 test "$with_gnu_ld" != yes && break
11171 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11175 LD
="$acl_cv_path_LD"
11176 if test -n "$LD"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11178 $as_echo "$LD" >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11183 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11185 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11186 if ${acl_cv_prog_gnu_ld+:} false
; then :
11187 $as_echo_n "(cached) " >&6
11189 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11190 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11191 acl_cv_prog_gnu_ld
=yes
11193 acl_cv_prog_gnu_ld
=no
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11197 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11198 with_gnu_ld
=$acl_cv_prog_gnu_ld
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11203 $as_echo_n "checking for shared library run path origin... " >&6; }
11204 if ${acl_cv_rpath+:} false
; then :
11205 $as_echo_n "(cached) " >&6
11208 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11209 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11211 rm -f .
/conftest.sh
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11216 $as_echo "$acl_cv_rpath" >&6; }
11218 libext
="$acl_cv_libext"
11219 shlibext
="$acl_cv_shlibext"
11220 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11221 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11222 hardcode_direct
="$acl_cv_hardcode_direct"
11223 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11224 # Check whether --enable-rpath was given.
11225 if test "${enable_rpath+set}" = set; then :
11226 enableval
=$enable_rpath; :
11240 acl_save_prefix
="$prefix"
11241 prefix
="$acl_final_prefix"
11242 acl_save_exec_prefix
="$exec_prefix"
11243 exec_prefix
="$acl_final_exec_prefix"
11245 eval additional_includedir
=\"$includedir\"
11246 eval additional_libdir
=\"$libdir\"
11248 exec_prefix
="$acl_save_exec_prefix"
11249 prefix
="$acl_save_prefix"
11252 # Check whether --with-libiconv-prefix was given.
11253 if test "${with_libiconv_prefix+set}" = set; then :
11254 withval
=$with_libiconv_prefix;
11255 if test "X$withval" = "Xno"; then
11258 if test "X$withval" = "X"; then
11260 acl_save_prefix
="$prefix"
11261 prefix
="$acl_final_prefix"
11262 acl_save_exec_prefix
="$exec_prefix"
11263 exec_prefix
="$acl_final_exec_prefix"
11265 eval additional_includedir
=\"$includedir\"
11266 eval additional_libdir
=\"$libdir\"
11268 exec_prefix
="$acl_save_exec_prefix"
11269 prefix
="$acl_save_prefix"
11272 additional_includedir
="$withval/include"
11273 additional_libdir
="$withval/lib"
11280 # Check whether --with-libiconv-type was given.
11281 if test "${with_libiconv_type+set}" = set; then :
11282 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11284 with_libiconv_type
=auto
11287 lib_type
=`eval echo \$with_libiconv_type`
11294 names_already_handled
=
11295 names_next_round
='iconv '
11296 while test -n "$names_next_round"; do
11297 names_this_round
="$names_next_round"
11299 for name
in $names_this_round; do
11301 for n
in $names_already_handled; do
11302 if test "$n" = "$name"; then
11303 already_handled
=yes
11307 if test -z "$already_handled"; then
11308 names_already_handled
="$names_already_handled $name"
11309 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11310 eval value
=\"\
$HAVE_LIB$uppername\"
11311 if test -n "$value"; then
11312 if test "$value" = yes; then
11313 eval value
=\"\
$LIB$uppername\"
11314 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11315 eval value
=\"\
$LTLIB$uppername\"
11316 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11325 if test $use_additional = yes; then
11326 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11327 found_dir
="$additional_libdir"
11328 found_so
="$additional_libdir/lib$name.$shlibext"
11329 if test -f "$additional_libdir/lib$name.la"; then
11330 found_la
="$additional_libdir/lib$name.la"
11332 elif test x
$lib_type != xshared
; then
11333 if test -f "$additional_libdir/lib$name.$libext"; then
11334 found_dir
="$additional_libdir"
11335 found_a
="$additional_libdir/lib$name.$libext"
11336 if test -f "$additional_libdir/lib$name.la"; then
11337 found_la
="$additional_libdir/lib$name.la"
11342 if test "X$found_dir" = "X"; then
11343 for x
in $LDFLAGS $LTLIBICONV; do
11345 acl_save_prefix
="$prefix"
11346 prefix
="$acl_final_prefix"
11347 acl_save_exec_prefix
="$exec_prefix"
11348 exec_prefix
="$acl_final_exec_prefix"
11350 exec_prefix
="$acl_save_exec_prefix"
11351 prefix
="$acl_save_prefix"
11355 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11356 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11358 found_so
="$dir/lib$name.$shlibext"
11359 if test -f "$dir/lib$name.la"; then
11360 found_la
="$dir/lib$name.la"
11362 elif test x
$lib_type != xshared
; then
11363 if test -f "$dir/lib$name.$libext"; then
11365 found_a
="$dir/lib$name.$libext"
11366 if test -f "$dir/lib$name.la"; then
11367 found_la
="$dir/lib$name.la"
11373 if test "X$found_dir" != "X"; then
11378 if test "X$found_dir" != "X"; then
11379 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11380 if test "X$found_so" != "X"; then
11381 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11382 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11385 for x
in $ltrpathdirs; do
11386 if test "X$x" = "X$found_dir"; then
11391 if test -z "$haveit"; then
11392 ltrpathdirs
="$ltrpathdirs $found_dir"
11394 if test "$hardcode_direct" = yes; then
11395 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11397 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11398 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11400 for x
in $rpathdirs; do
11401 if test "X$x" = "X$found_dir"; then
11406 if test -z "$haveit"; then
11407 rpathdirs
="$rpathdirs $found_dir"
11411 for x
in $LDFLAGS $LIBICONV; do
11413 acl_save_prefix
="$prefix"
11414 prefix
="$acl_final_prefix"
11415 acl_save_exec_prefix
="$exec_prefix"
11416 exec_prefix
="$acl_final_exec_prefix"
11418 exec_prefix
="$acl_save_exec_prefix"
11419 prefix
="$acl_save_prefix"
11421 if test "X$x" = "X-L$found_dir"; then
11426 if test -z "$haveit"; then
11427 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11429 if test "$hardcode_minus_L" != no
; then
11430 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11432 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11438 if test "X$found_a" != "X"; then
11439 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11441 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11444 additional_includedir
=
11445 case "$found_dir" in
11447 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11448 additional_includedir
="$basedir/include"
11451 if test "X$additional_includedir" != "X"; then
11452 if test "X$additional_includedir" != "X/usr/include"; then
11454 if test "X$additional_includedir" = "X/usr/local/include"; then
11455 if test -n "$GCC"; then
11457 linux
*) haveit
=yes;;
11461 if test -z "$haveit"; then
11462 for x
in $CPPFLAGS $INCICONV; do
11464 acl_save_prefix
="$prefix"
11465 prefix
="$acl_final_prefix"
11466 acl_save_exec_prefix
="$exec_prefix"
11467 exec_prefix
="$acl_final_exec_prefix"
11469 exec_prefix
="$acl_save_exec_prefix"
11470 prefix
="$acl_save_prefix"
11472 if test "X$x" = "X-I$additional_includedir"; then
11477 if test -z "$haveit"; then
11478 if test -d "$additional_includedir"; then
11479 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11485 if test -n "$found_la"; then
11486 save_libdir
="$libdir"
11487 case "$found_la" in
11488 */* |
*\\*) .
"$found_la" ;;
11489 *) .
"./$found_la" ;;
11491 libdir
="$save_libdir"
11492 for dep
in $dependency_libs; do
11495 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11496 if test "X$additional_libdir" != "X/usr/lib"; then
11498 if test "X$additional_libdir" = "X/usr/local/lib"; then
11499 if test -n "$GCC"; then
11501 linux
*) haveit
=yes;;
11505 if test -z "$haveit"; then
11507 for x
in $LDFLAGS $LIBICONV; 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"
11517 if test "X$x" = "X-L$additional_libdir"; then
11522 if test -z "$haveit"; then
11523 if test -d "$additional_libdir"; then
11524 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11528 for x
in $LDFLAGS $LTLIBICONV; do
11530 acl_save_prefix
="$prefix"
11531 prefix
="$acl_final_prefix"
11532 acl_save_exec_prefix
="$exec_prefix"
11533 exec_prefix
="$acl_final_exec_prefix"
11535 exec_prefix
="$acl_save_exec_prefix"
11536 prefix
="$acl_save_prefix"
11538 if test "X$x" = "X-L$additional_libdir"; then
11543 if test -z "$haveit"; then
11544 if test -d "$additional_libdir"; then
11545 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11552 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11553 if test "$enable_rpath" != no
; then
11555 for x
in $rpathdirs; do
11556 if test "X$x" = "X$dir"; then
11561 if test -z "$haveit"; then
11562 rpathdirs
="$rpathdirs $dir"
11565 for x
in $ltrpathdirs; do
11566 if test "X$x" = "X$dir"; then
11571 if test -z "$haveit"; then
11572 ltrpathdirs
="$ltrpathdirs $dir"
11577 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11580 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11583 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11584 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11590 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11591 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11592 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11594 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11595 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11602 if test "X$rpathdirs" != "X"; then
11603 if test -n "$hardcode_libdir_separator"; then
11605 for found_dir
in $rpathdirs; do
11606 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11608 acl_save_libdir
="$libdir"
11610 eval flag
=\"$hardcode_libdir_flag_spec\"
11611 libdir
="$acl_save_libdir"
11612 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11614 for found_dir
in $rpathdirs; do
11615 acl_save_libdir
="$libdir"
11616 libdir
="$found_dir"
11617 eval flag
=\"$hardcode_libdir_flag_spec\"
11618 libdir
="$acl_save_libdir"
11619 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11623 if test "X$ltrpathdirs" != "X"; then
11624 for found_dir
in $ltrpathdirs; do
11625 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11636 $as_echo_n "checking for iconv... " >&6; }
11637 if ${am_cv_func_iconv+:} false
; then :
11638 $as_echo_n "(cached) " >&6
11641 am_cv_func_iconv
="no, consider installing GNU libiconv"
11643 am_save_CPPFLAGS
="$CPPFLAGS"
11644 CPPFLAGS
="$CPPFLAGS $INCICONV"
11645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 #include <stdlib.h>
11652 iconv_t cd = iconv_open("","");
11653 iconv(cd,NULL,NULL,NULL,NULL);
11659 if ac_fn_cxx_try_link
"$LINENO"; then :
11660 am_cv_func_iconv
=yes
11662 rm -f core conftest.err conftest.
$ac_objext \
11663 conftest
$ac_exeext conftest.
$ac_ext
11664 CPPFLAGS
="$am_save_CPPFLAGS"
11666 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11667 for _libs
in .libs _libs
; do
11668 am_save_CPPFLAGS
="$CPPFLAGS"
11669 am_save_LIBS
="$LIBS"
11670 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11671 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11674 #include <stdlib.h>
11679 iconv_t cd = iconv_open("","");
11680 iconv(cd,NULL,NULL,NULL,NULL);
11686 if ac_fn_cxx_try_link
"$LINENO"; then :
11687 INCICONV
="-I../libiconv/include"
11688 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11689 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11690 am_cv_lib_iconv
=yes
11691 am_cv_func_iconv
=yes
11693 rm -f core conftest.err conftest.
$ac_objext \
11694 conftest
$ac_exeext conftest.
$ac_ext
11695 CPPFLAGS
="$am_save_CPPFLAGS"
11696 LIBS
="$am_save_LIBS"
11697 if test "$am_cv_func_iconv" = "yes"; then
11703 if test "$am_cv_func_iconv" != yes; then
11704 am_save_CPPFLAGS
="$CPPFLAGS"
11705 am_save_LIBS
="$LIBS"
11706 CPPFLAGS
="$CPPFLAGS $INCICONV"
11707 LIBS
="$LIBS $LIBICONV"
11708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710 #include <stdlib.h>
11715 iconv_t cd = iconv_open("","");
11716 iconv(cd,NULL,NULL,NULL,NULL);
11722 if ac_fn_cxx_try_link
"$LINENO"; then :
11723 am_cv_lib_iconv
=yes
11724 am_cv_func_iconv
=yes
11726 rm -f core conftest.err conftest.
$ac_objext \
11727 conftest
$ac_exeext conftest.
$ac_ext
11728 CPPFLAGS
="$am_save_CPPFLAGS"
11729 LIBS
="$am_save_LIBS"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11734 $as_echo "$am_cv_func_iconv" >&6; }
11735 if test "$am_cv_func_iconv" = yes; then
11737 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11740 if test "$am_cv_lib_iconv" = yes; then
11742 for element
in $INCICONV; do
11744 for x
in $CPPFLAGS; do
11746 acl_save_prefix
="$prefix"
11747 prefix
="$acl_final_prefix"
11748 acl_save_exec_prefix
="$exec_prefix"
11749 exec_prefix
="$acl_final_exec_prefix"
11751 exec_prefix
="$acl_save_exec_prefix"
11752 prefix
="$acl_save_prefix"
11754 if test "X$x" = "X$element"; then
11759 if test -z "$haveit"; then
11760 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11765 $as_echo_n "checking how to link with libiconv... " >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11767 $as_echo "$LIBICONV" >&6; }
11775 if test "$am_cv_func_iconv" = yes; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11777 $as_echo_n "checking for iconv declaration... " >&6; }
11778 if ${am_cv_proto_iconv+:} false
; then :
11779 $as_echo_n "(cached) " >&6
11782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11785 #include <stdlib.h>
11791 #if defined(__STDC__) || defined(__cplusplus)
11792 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11805 if ac_fn_cxx_try_compile
"$LINENO"; then :
11806 am_cv_proto_iconv_arg1
=""
11808 am_cv_proto_iconv_arg1
="const"
11810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11811 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);"
11814 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11816 }$am_cv_proto_iconv" >&5
11818 }$am_cv_proto_iconv" >&6; }
11820 cat >>confdefs.h
<<_ACEOF
11821 #define ICONV_CONST $am_cv_proto_iconv_arg1
11827 # Until we have in-tree GNU iconv:
11829 if test -f "$LTLIBICONV"; then
11830 LIBICONV_DEP
=$LTLIBICONV
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11836 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11837 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11838 $as_echo_n "(cached) " >&6
11840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842 #include <locale.h>
11851 if ac_fn_cxx_try_link
"$LINENO"; then :
11852 am_cv_val_LC_MESSAGES
=yes
11854 am_cv_val_LC_MESSAGES
=no
11856 rm -f core conftest.err conftest.
$ac_objext \
11857 conftest
$ac_exeext conftest.
$ac_ext
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11860 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11861 if test $am_cv_val_LC_MESSAGES = yes; then
11863 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11870 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11871 if ${am_cv_langinfo_codeset+:} false
; then :
11872 $as_echo_n "(cached) " >&6
11874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876 #include <langinfo.h>
11880 char* cs = nl_langinfo(CODESET);
11885 if ac_fn_cxx_try_link
"$LINENO"; then :
11886 am_cv_langinfo_codeset
=yes
11888 am_cv_langinfo_codeset
=no
11890 rm -f core conftest.err conftest.
$ac_objext \
11891 conftest
$ac_exeext conftest.
$ac_ext
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11895 $as_echo "$am_cv_langinfo_codeset" >&6; }
11896 if test $am_cv_langinfo_codeset = yes; then
11898 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11903 # We will need to find libiberty.h and ansidecl.h
11904 saved_CFLAGS
="$CFLAGS"
11905 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11906 saved_CXXFLAGS
="$CXXFLAGS"
11907 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11909 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11910 # normal autoconf function for these. But force definition of
11911 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11912 # basename handling in libiberty.h.
11913 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11914 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11915 #undef HAVE_DECL_BASENAME
11916 #define HAVE_DECL_BASENAME 1
11917 #include \"ansidecl.h\"
11918 #include \"system.h\"
11920 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11926 cat >>confdefs.h
<<_ACEOF
11927 #define HAVE_DECL_BASENAME $ac_have_decl
11929 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11930 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11931 #undef HAVE_DECL_BASENAME
11932 #define HAVE_DECL_BASENAME 1
11933 #include \"ansidecl.h\"
11934 #include \"system.h\"
11936 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11942 cat >>confdefs.h
<<_ACEOF
11943 #define HAVE_DECL_STRSTR $ac_have_decl
11947 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11948 madvise stpcpy strnlen strsignal strverscmp \
11949 strtol strtoul strtoll strtoull setenv unsetenv \
11950 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11951 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
11953 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11955 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11956 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11957 $as_echo_n "(cached) " >&6
11959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11962 #define $ac_tr_decl 1
11964 #include "ansidecl.h"
11965 #include "system.h"
11971 char *(*pfn) = (char *(*)) $ac_func ;
11977 if ac_fn_cxx_try_compile
"$LINENO"; then :
11978 eval "gcc_cv_have_decl_$ac_func=yes"
11980 eval "gcc_cv_have_decl_$ac_func=no"
11982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11985 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11988 #define $ac_tr_decl 1
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11994 #define $ac_tr_decl 0
12002 for ac_func
in getrlimit setrlimit getrusage
12004 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12006 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12007 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12008 $as_echo_n "(cached) " >&6
12010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12013 #define $ac_tr_decl 1
12015 #include "ansidecl.h"
12016 #include "system.h"
12017 #ifdef HAVE_SYS_RESOURCE_H
12018 #include <sys/resource.h>
12026 char *(*pfn) = (char *(*)) $ac_func ;
12032 if ac_fn_cxx_try_compile
"$LINENO"; then :
12033 eval "gcc_cv_have_decl_$ac_func=yes"
12035 eval "gcc_cv_have_decl_$ac_func=no"
12037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12040 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12042 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12043 #define $ac_tr_decl 1
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12049 #define $ac_tr_decl 0
12057 for ac_func
in mallinfo mallinfo2
12059 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12061 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12062 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12063 $as_echo_n "(cached) " >&6
12065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12068 #define $ac_tr_decl 1
12070 #include "ansidecl.h"
12071 #include "system.h"
12072 #ifdef HAVE_MALLOC_H
12073 #include <malloc.h>
12081 char *(*pfn) = (char *(*)) $ac_func ;
12087 if ac_fn_cxx_try_compile
"$LINENO"; then :
12088 eval "gcc_cv_have_decl_$ac_func=yes"
12090 eval "gcc_cv_have_decl_$ac_func=no"
12092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12095 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12097 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12098 #define $ac_tr_decl 1
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12104 #define $ac_tr_decl 0
12112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12115 #include "ansidecl.h"
12116 #include "system.h"
12117 #ifdef HAVE_SYS_RESOURCE_H
12118 #include <sys/resource.h>
12129 if ac_fn_cxx_try_compile
"$LINENO"; then :
12133 $as_echo "#define rlim_t long" >>confdefs.h
12136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12138 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12139 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12140 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12141 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12142 for ac_func
in ldgetname
12144 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12146 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12147 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12148 $as_echo_n "(cached) " >&6
12150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12153 #define $ac_tr_decl 1
12155 #include "ansidecl.h"
12156 #include "system.h"
12157 #ifdef HAVE_LDFCN_H
12168 char *(*pfn) = (char *(*)) $ac_func ;
12174 if ac_fn_cxx_try_compile
"$LINENO"; then :
12175 eval "gcc_cv_have_decl_$ac_func=yes"
12177 eval "gcc_cv_have_decl_$ac_func=no"
12179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12182 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12185 #define $ac_tr_decl 1
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12191 #define $ac_tr_decl 0
12199 for ac_func
in times
12201 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12203 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12204 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12205 $as_echo_n "(cached) " >&6
12207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12210 #define $ac_tr_decl 1
12212 #include "ansidecl.h"
12213 #include "system.h"
12214 #ifdef HAVE_SYS_TIMES_H
12215 #include <sys/times.h>
12223 char *(*pfn) = (char *(*)) $ac_func ;
12229 if ac_fn_cxx_try_compile
"$LINENO"; then :
12230 eval "gcc_cv_have_decl_$ac_func=yes"
12232 eval "gcc_cv_have_decl_$ac_func=no"
12234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12237 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12239 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12240 #define $ac_tr_decl 1
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12246 #define $ac_tr_decl 0
12254 for ac_func
in sigaltstack
12256 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12258 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12259 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12260 $as_echo_n "(cached) " >&6
12262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12265 #define $ac_tr_decl 1
12267 #include "ansidecl.h"
12268 #include "system.h"
12269 #include <signal.h>
12276 char *(*pfn) = (char *(*)) $ac_func ;
12282 if ac_fn_cxx_try_compile
"$LINENO"; then :
12283 eval "gcc_cv_have_decl_$ac_func=yes"
12285 eval "gcc_cv_have_decl_$ac_func=no"
12287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12290 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12293 #define $ac_tr_decl 1
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12299 #define $ac_tr_decl 0
12307 # More time-related stuff.
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12309 $as_echo_n "checking for struct tms... " >&6; }
12310 if ${ac_cv_struct_tms+:} false
; then :
12311 $as_echo_n "(cached) " >&6
12314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12317 #include "ansidecl.h"
12318 #include "system.h"
12319 #ifdef HAVE_SYS_TIMES_H
12320 #include <sys/times.h>
12331 if ac_fn_cxx_try_compile
"$LINENO"; then :
12332 ac_cv_struct_tms
=yes
12334 ac_cv_struct_tms
=no
12336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12339 $as_echo "$ac_cv_struct_tms" >&6; }
12340 if test $ac_cv_struct_tms = yes; then
12342 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12346 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12347 # revisit after autoconf 2.50.
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12349 $as_echo_n "checking for clock_t... " >&6; }
12350 if ${gcc_cv_type_clock_t+:} false
; then :
12351 $as_echo_n "(cached) " >&6
12354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12357 #include "ansidecl.h"
12358 #include "system.h"
12368 if ac_fn_cxx_try_compile
"$LINENO"; then :
12369 gcc_cv_type_clock_t
=yes
12371 gcc_cv_type_clock_t
=no
12373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12376 $as_echo "$gcc_cv_type_clock_t" >&6; }
12377 if test $gcc_cv_type_clock_t = yes; then
12379 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12383 # Check if F_SETLKW is supported by fcntl.
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12385 $as_echo_n "checking for F_SETLKW... " >&6; }
12386 if ${ac_cv_f_setlkw+:} false
; then :
12387 $as_echo_n "(cached) " >&6
12390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12403 return fcntl (1, F_SETLKW, &fl);
12408 if ac_fn_cxx_try_compile
"$LINENO"; then :
12413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12416 $as_echo "$ac_cv_f_setlkw" >&6; }
12417 if test $ac_cv_f_setlkw = yes; then
12419 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12423 # Check if O_CLOEXEC is defined by fcntl
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12425 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12426 if ${ac_cv_o_cloexec+:} false
; then :
12427 $as_echo_n "(cached) " >&6
12430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12438 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12443 if ac_fn_cxx_try_compile
"$LINENO"; then :
12444 ac_cv_o_cloexec
=yes
12448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12451 $as_echo "$ac_cv_o_cloexec" >&6; }
12452 if test $ac_cv_o_cloexec = yes; then
12454 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12458 # C++ Modules would like some networking features to provide the mapping
12459 # server. You can still use modules without them though.
12460 # The following network-related checks could probably do with some
12461 # Windows and other non-linux defenses and checking.
12463 # Local socket connectivity wants AF_UNIX networking
12464 # Check for AF_UNIX networking
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12466 $as_echo_n "checking for AF_UNIX... " >&6; }
12467 if ${ac_cv_af_unix+:} false
; then :
12468 $as_echo_n "(cached) " >&6
12471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12474 #include <sys/types.h>
12475 #include <sys/socket.h>
12476 #include <sys/un.h>
12477 #include <netinet/in.h>
12483 un.sun_family = AF_UNSPEC;
12484 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12485 connect (fd, (sockaddr *)&un, sizeof (un));
12490 if ac_fn_cxx_try_compile
"$LINENO"; then :
12495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12498 $as_echo "$ac_cv_af_unix" >&6; }
12499 if test $ac_cv_af_unix = yes; then
12501 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12505 # Remote socket connectivity wants AF_INET6 networking
12506 # Check for AF_INET6 networking
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12508 $as_echo_n "checking for AF_INET6... " >&6; }
12509 if ${ac_cv_af_inet6+:} false
; then :
12510 $as_echo_n "(cached) " >&6
12513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12516 #include <sys/types.h>
12517 #include <sys/socket.h>
12518 #include <netinet/in.h>
12525 in6.sin6_family = AF_UNSPEC;
12526 struct addrinfo *addrs = 0;
12527 struct addrinfo hints;
12528 hints.ai_flags = 0;
12529 hints.ai_family = AF_INET6;
12530 hints.ai_socktype = SOCK_STREAM;
12531 hints.ai_protocol = 0;
12532 hints.ai_canonname = 0;
12535 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12536 const char *str = gai_strerror (e);
12537 freeaddrinfo (addrs);
12538 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12539 connect (fd, (sockaddr *)&in6, sizeof (in6));
12544 if ac_fn_cxx_try_compile
"$LINENO"; then :
12549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12552 $as_echo "$ac_cv_af_inet6" >&6; }
12553 if test $ac_cv_af_inet6 = yes; then
12555 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12559 # Check if _LK_LOCK is supported by _locking
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12561 $as_echo_n "checking for _LK_LOCK... " >&6; }
12562 if ${ac_cv_lk_lock+:} false
; then :
12563 $as_echo_n "(cached) " >&6
12566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12570 #include <sys/locking.h>
12576 return _locking (fd, _LK_LOCK, 0);
12581 if ac_fn_cxx_try_compile
"$LINENO"; then :
12586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12589 $as_echo "$ac_cv_lk_lock" >&6; }
12590 if test $ac_cv_lk_lock = yes; then
12592 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12596 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12597 CFLAGS
="$saved_CFLAGS"
12598 CXXFLAGS
="$saved_CXXFLAGS"
12600 # mkdir takes a single argument on some systems.
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12602 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12603 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12604 $as_echo_n "(cached) " >&6
12606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12609 #include <sys/types.h>
12610 #ifdef HAVE_SYS_STAT_H
12611 # include <sys/stat.h>
12613 #ifdef HAVE_UNISTD_H
12614 # include <unistd.h>
12616 #ifdef HAVE_DIRECT_H
12617 # include <direct.h>
12627 if ac_fn_cxx_try_compile
"$LINENO"; then :
12628 gcc_cv_mkdir_takes_one_arg
=no
12630 gcc_cv_mkdir_takes_one_arg
=yes
12632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12635 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12636 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12638 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12649 # With Setjmp/Longjmp based exception handling.
12650 # Check whether --enable-sjlj-exceptions was given.
12651 if test "${enable_sjlj_exceptions+set}" = set; then :
12652 enableval
=$enable_sjlj_exceptions; case $target in
12654 if test $enableval != yes; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12656 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12661 force_sjlj_exceptions
=yes
12665 force_sjlj_exceptions
=yes
12669 force_sjlj_exceptions
=yes
12673 force_sjlj_exceptions
=no
12678 if test $force_sjlj_exceptions = yes; then
12679 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12681 cat >>confdefs.h
<<_ACEOF
12682 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12687 # --------------------------------------------------------
12688 # Build, host, and target specific configuration fragments
12689 # --------------------------------------------------------
12691 # Collect build-machine-specific information.
12692 .
${srcdir}/config.build ||
exit 1
12694 # Collect host-machine-specific information.
12695 .
${srcdir}/config.
host ||
exit 1
12699 # Collect target-machine-specific information.
12700 .
${srcdir}/config.gcc ||
exit 1
12702 extra_objs
="${host_extra_objs} ${extra_objs}"
12703 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12705 # Default the target-machine variables that were not explicitly set.
12706 if test x
"$tm_file" = x
12707 then tm_file
=$cpu_type/$cpu_type.h
; fi
12709 if test x
"$extra_headers" = x
12710 then extra_headers
=; fi
12712 if test x
$md_file = x
12713 then md_file
=$cpu_type/$cpu_type.md
; fi
12715 if test x
$out_file = x
12716 then out_file
=$cpu_type/$cpu_type.cc
; fi
12718 if test x
"$tmake_file" = x
12719 then tmake_file
=$cpu_type/t-
$cpu_type
12722 # Support --enable-initfini-array.
12723 if test x
$enable_initfini_array != xno
; then
12724 tm_file
="${tm_file} initfini-array.h"
12727 if test x
"$dwarf2" = xyes
12728 then tm_file
="$tm_file tm-dwarf2.h"
12731 # Say what files are being used for the output code and MD file.
12732 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12733 echo "Using \`$srcdir/config/$md_file' as machine description file."
12735 # If any of the xm_file variables contain nonexistent files, warn
12736 # about them and drop them.
12739 for x
in $build_xm_file; do
12740 if test -f $srcdir/config
/$x
12742 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12743 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12746 build_xm_file
="$bx"
12749 for x
in $host_xm_file; do
12750 if test -f $srcdir/config
/$x
12752 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12753 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12759 for x
in $xm_file; do
12760 if test -f $srcdir/config
/$x
12762 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12763 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12769 for f
in $tm_file; do
12772 if test $count = ax
; then
12773 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12775 echo "Using the following target machine macro files:"
12776 for f
in $tm_file; do
12777 echo " $srcdir/config/$f"
12781 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12783 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12787 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12789 cat >>confdefs.h
<<_ACEOF
12790 #define HAVE_GNU_LD $gnu_ld_bool
12794 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12796 cat >>confdefs.h
<<_ACEOF
12797 #define HAVE_GNU_AS $gnu_as_bool
12802 for f
in $host_xm_file; do
12805 if test $count = a
; then
12807 elif test $count = ax
; then
12808 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12810 echo "Using the following host machine macro files:"
12811 for f
in $host_xm_file; do
12812 echo " $srcdir/config/$f"
12815 echo "Using ${out_host_hook_obj} for host machine hooks."
12817 if test "$host_xm_file" != "$build_xm_file"; then
12819 for f
in $build_xm_file; do
12822 if test $count = a
; then
12824 elif test $count = ax
; then
12825 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12827 echo "Using the following build machine macro files:"
12828 for f
in $build_xm_file; do
12829 echo " $srcdir/config/$f"
12834 if test -n "$configured_native_system_header_dir"; then
12835 native_system_header_dir
=$configured_native_system_header_dir
12837 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12841 powerpc
*-*-darwin*)
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12843 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12844 if ${gcc_cv_mcontext_underscores+:} false
; then :
12845 $as_echo_n "(cached) " >&6
12847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12850 #include <sys/cdefs.h>
12851 #include <sys/signal.h>
12852 #include <ucontext.h>
12853 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12856 if ac_fn_cxx_try_compile
"$LINENO"; then :
12857 gcc_cv_mcontext_underscores
=no
12859 gcc_cv_mcontext_underscores
=yes
12861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12864 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12865 if test $gcc_cv_mcontext_underscores = yes; then
12867 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12877 # Check if a valid thread package
12878 case ${enable_threads} in
12881 target_thread_file
='single'
12885 target_thread_file
='single'
12887 aix | dce | lynx | mipssde | posix | rtems | \
12888 single | tpf | vxworks | win32
)
12889 target_thread_file
=${enable_threads}
12892 echo "${enable_threads} is an unknown thread package" 1>&2
12897 if test x
${thread_file} = x
; then
12898 # No thread file set by target-specific clauses in config.gcc,
12899 # so use file chosen by default logic above
12900 thread_file
=${target_thread_file}
12908 if test x
$enable___cxa_atexit = xyes || \
12909 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12910 if test x
$host = x
$target; then
12912 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12913 # keyed to flag_use_cxa_atexit
12921 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12922 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12925 echo "__cxa_atexit can't be enabled on this target"
12931 # We can't check for __cxa_atexit when building a cross, so assume
12935 if test x
$use_cxa_atexit = xyes
; then
12937 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12942 # Look for a file containing extra machine modes.
12943 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12944 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12947 cat >>confdefs.h
<<_ACEOF
12948 #define EXTRA_MODES_FILE "config/$extra_modes"
12953 # Convert extra_options into a form suitable for Makefile use.
12956 for f
in $extra_options; do
12957 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12958 all_opt_files
="$all_opt_files $srcdir/config/$f"
12962 # auto-host.h is the file containing items generated by autoconf and is
12963 # the first file included by config.h.
12964 # If host=build, it is correct to have bconfig include auto-host.h
12965 # as well. If host!=build, we are in error and need to do more
12966 # work to find out the build config parameters.
12967 if test x
$host = x
$build
12969 build_auto
=auto-host.h
12970 HAVE_AUTO_BUILD
='# '
12972 # We create a subdir, then run autoconf in the subdir.
12973 # To prevent recursion we set host and build for the new
12974 # invocation of configure to the build for this invocation
12981 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12982 *) realsrcdir
=..
/${srcdir};;
12984 # Clearing GMPINC is necessary to prevent host headers being
12985 # used by the build compiler. Defining GENERATOR_FILE stops
12986 # system.h from including gmp.h.
12987 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12988 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12989 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12990 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
12991 ${realsrcdir}/configure \
12992 --enable-languages=${enable_languages-all} \
12993 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12994 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12995 --target=$target_alias --host=$build_alias \
12996 --build=$build_alias ||
exit # retaining $tempdir
12998 # We just finished tests for the build machine, so rename
12999 # the file auto-build.h in the gcc directory.
13000 mv auto-host.h ..
/auto-build.h
13003 build_auto
=auto-build.h
13009 tm_file
="${tm_file} defaults.h"
13010 tm_p_file
="${tm_p_file} tm-preds.h"
13011 tm_d_file
="${tm_d_file} defaults.h"
13012 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13013 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13014 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13015 # put this back in temporarily.
13016 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13022 # Compile in configure arguments.
13023 if test -f configargs.h
; then
13024 # Being re-configured.
13025 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13026 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13027 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13028 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13031 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13034 # Double all backslashes and backslash all quotes to turn
13035 # gcc_config_arguments into a C string.
13036 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13037 $gcc_config_arguments
13039 gcc_config_arguments_str
=`cat conftest.out`
13042 cat > configargs.h
<<EOF
13043 /* Generated automatically. */
13044 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13045 static const char thread_model[] = "$thread_file";
13047 static const struct {
13048 const char *name, *value;
13049 } configure_default_options[] = $configure_default_options;
13052 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13053 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13054 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13055 if test -f $srcdir/REVISION
; then
13056 gcc_REVISION
=`cat $srcdir/REVISION`
13060 cat > plugin-version.h
<<EOF
13061 #include "configargs.h"
13063 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13064 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13065 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13066 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13068 static char basever[] = "$gcc_BASEVER";
13069 static char datestamp[] = "$gcc_DATESTAMP";
13070 static char devphase[] = "$gcc_DEVPHASE";
13071 static char revision[] = "$gcc_REVISION";
13073 /* FIXME plugins: We should make the version information more precise.
13074 One way to do is to add a checksum. */
13076 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13077 devphase, revision,
13078 configuration_arguments};
13081 # Determine what GCC version number to use in filesystem paths.
13083 get_gcc_base_ver
="cat"
13085 # Check whether --with-gcc-major-version-only was given.
13086 if test "${with_gcc_major_version_only+set}" = set; then :
13087 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13088 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13096 # Internationalization
13097 # If we haven't got the data from the intl directory,
13098 # assume NLS is disabled.
13107 if test -f ..
/intl
/config.intl
; then
13108 . ..
/intl
/config.intl
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13111 $as_echo_n "checking whether NLS is requested... " >&6; }
13112 if test x
"$USE_NLS" != xyes
; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13117 $as_echo "yes" >&6; }
13119 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13123 $as_echo_n "checking for catalogs to be installed... " >&6; }
13124 # Look for .po and .gmo files in the source directory.
13127 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13128 # If there aren't any .gmo files the shell will give us the
13129 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13131 case "$cat" in *\
**)
13134 # The quadruple backslash is collapsed to a double backslash
13135 # by the backticks, then collapsed again by the double quotes,
13136 # leaving us with one backslash in the sed expression (right
13137 # before the dot that mustn't act as a wildcard).
13138 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13139 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13140 # The user is allowed to set LINGUAS to a list of languages to
13141 # install catalogs for. If it's empty that means "all of them."
13142 if test "x$LINGUAS" = x
; then
13143 CATALOGS
="$CATALOGS $cat"
13144 XLINGUAS
="$XLINGUAS $lang"
13146 case "$LINGUAS" in *$lang*)
13147 CATALOGS
="$CATALOGS $cat"
13148 XLINGUAS
="$XLINGUAS $lang"
13153 LINGUAS
="$XLINGUAS"
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13155 $as_echo "$LINGUAS" >&6; }
13168 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13169 # -liconv on the link line twice.
13170 case "$LIBINTL" in *$LIBICONV*)
13174 # Check whether --enable-secureplt was given.
13175 if test "${enable_secureplt+set}" = set; then :
13176 enableval
=$enable_secureplt;
13180 # Check whether --enable-mingw-wildcard was given.
13181 if test "${enable_mingw_wildcard+set}" = set; then :
13182 enableval
=$enable_mingw_wildcard;
13184 enable_mingw_wildcard
=platform
13187 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13189 cat >>confdefs.h
<<_ACEOF
13190 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13195 # Check whether --enable-large-address-aware was given.
13196 if test "${enable_large_address_aware+set}" = set; then :
13197 enableval
=$enable_large_address_aware;
13200 if test x
"$enable_large_address_aware" = xyes
; then :
13202 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13206 # Check whether --enable-leading-mingw64-underscores was given.
13207 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13208 enableval
=$enable_leading_mingw64_underscores;
13211 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13213 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13217 # Check whether --enable-cld was given.
13218 if test "${enable_cld+set}" = set; then :
13219 enableval
=$enable_cld;
13225 # Check whether --enable-frame-pointer was given.
13226 if test "${enable_frame_pointer+set}" = set; then :
13227 enableval
=$enable_frame_pointer;
13231 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13232 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13233 enable_frame_pointer
=no
13236 enable_frame_pointer
=yes
13244 i
[34567]86-*-* | x86_64-
*-*)
13245 if test "x$enable_cld" = xyes
; then
13246 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13248 if test "x$enable_frame_pointer" = xyes
; then
13249 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13254 # Windows32 Registry support for specifying GCC installation paths.
13255 # Check whether --enable-win32-registry was given.
13256 if test "${enable_win32_registry+set}" = set; then :
13257 enableval
=$enable_win32_registry;
13262 win32 | pe | cygwin
* | mingw32
*)
13263 if test "x$enable_win32_registry" != xno
; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13265 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13266 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13267 $as_echo_n "(cached) " >&6
13269 ac_func_search_save_LIBS
=$LIBS
13270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13273 /* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13279 char RegOpenKeyExA ();
13283 return RegOpenKeyExA ();
13288 for ac_lib
in '' advapi32
; do
13289 if test -z "$ac_lib"; then
13290 ac_res
="none required"
13293 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13295 if ac_fn_cxx_try_link
"$LINENO"; then :
13296 ac_cv_search_RegOpenKeyExA
=$ac_res
13298 rm -f core conftest.err conftest.
$ac_objext \
13300 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13304 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13307 ac_cv_search_RegOpenKeyExA
=no
13309 rm conftest.
$ac_ext
13310 LIBS
=$ac_func_search_save_LIBS
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13313 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13314 ac_res
=$ac_cv_search_RegOpenKeyExA
13315 if test "$ac_res" != no
; then :
13316 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13319 enable_win32_registry
=no
13324 if test "x$enable_win32_registry" != xno
; then
13326 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13329 if test "x$enable_win32_registry" != xyes \
13330 && test "x$enable_win32_registry" != x
; then
13332 cat >>confdefs.h
<<_ACEOF
13333 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13341 # Get an absolute path to the GCC top-level source directory
13342 holddir
=`${PWDCMD-pwd}`
13344 topdir
=`${PWDCMD-pwd}`
13347 # Conditionalize the makefile for this host machine.
13349 for f
in ${host_xmake_file}
13351 if test -f ${srcdir}/config
/$f
13353 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13357 # Conditionalize the makefile for this target machine.
13359 for f
in ${tmake_file}
13361 if test -f ${srcdir}/config
/$f
13363 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13366 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13368 out_object_file
=`basename $out_file .cc`.o
13369 common_out_object_file
=`basename $common_out_file .cc`.o
13371 tm_file_list
="options.h"
13372 tm_include_list
="options.h insn-constants.h"
13373 for f
in $tm_file; do
13376 f
=`echo $f | sed 's/^..//'`
13377 tm_file_list
="${tm_file_list} $f"
13378 tm_include_list
="${tm_include_list} $f"
13381 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13382 tm_include_list
="${tm_include_list} $f"
13385 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13386 tm_include_list
="${tm_include_list} config/$f"
13393 for f
in $tm_p_file; do
13396 tm_p_file_list
="${tm_p_file_list} $f"
13397 tm_p_include_list
="${tm_p_include_list} $f"
13400 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13401 tm_p_include_list
="${tm_p_include_list} config/$f"
13406 tm_d_include_list
="options.h insn-constants.h"
13407 for f
in $tm_d_file; do
13410 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
13411 tm_d_include_list
="${tm_d_include_list} $f"
13414 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13415 tm_d_include_list
="${tm_d_include_list} config/$f"
13422 for f
in $xm_file; do
13425 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13426 xm_include_list
="${xm_include_list} $f"
13429 xm_file_list
="${xm_file_list} $f"
13430 xm_include_list
="${xm_include_list} $f"
13433 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13434 xm_include_list
="${xm_include_list} config/$f"
13440 host_xm_include_list
=
13441 for f
in $host_xm_file; do
13444 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13445 host_xm_include_list
="${host_xm_include_list} $f"
13448 host_xm_file_list
="${host_xm_file_list} $f"
13449 host_xm_include_list
="${host_xm_include_list} $f"
13452 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13453 host_xm_include_list
="${host_xm_include_list} config/$f"
13458 build_xm_file_list
=
13459 for f
in $build_xm_file; do
13462 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13463 build_xm_include_list
="${build_xm_include_list} $f"
13465 auto-build.h | auto-host.h
)
13466 build_xm_file_list
="${build_xm_file_list} $f"
13467 build_xm_include_list
="${build_xm_include_list} $f"
13470 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13471 build_xm_include_list
="${build_xm_include_list} config/$f"
13476 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13477 # cross-compiler which does not use the native headers and libraries.
13478 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13481 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13482 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13484 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13485 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13486 if test "x$with_build_sysroot" != x
; then
13487 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13489 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13492 if test x
$host != x
$target
13494 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13496 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13497 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13498 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13501 if test "x$with_build_sysroot" != "x"; then
13502 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13503 elif test "x$with_sysroot" = x
; then
13504 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13505 elif test "x$with_sysroot" = xyes
; then
13506 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13508 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13511 target_header_dir
=${native_system_header_dir}
13514 # If this is a cross-compiler that does not
13515 # have its own set of headers then define
13518 # If this is using newlib, without having the headers available now,
13519 # then define inhibit_libc in LIBGCC2_CFLAGS.
13520 # This prevents libgcc2 from containing any code which requires libc
13522 : ${inhibit_libc=false}
13523 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13524 test x
$with_newlib = xyes
; } &&
13525 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13530 # When building gcc with a cross-compiler, we need to adjust things so
13531 # that the generator programs are still built with the native compiler.
13532 # Also, we cannot run fixincludes.
13534 # These are the normal (build=host) settings:
13535 CC_FOR_BUILD
='$(CC)'
13536 CXX_FOR_BUILD
='$(CXX)'
13537 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13538 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13539 BUILD_LDFLAGS
='$(LDFLAGS)'
13540 STMP_FIXINC
=stmp-fixinc
13542 # And these apply if build != host, or we are generating coverage data
13543 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13545 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13546 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13547 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13550 # Expand extra_headers to include complete path.
13551 # This substitutes for lots of t-* files.
13552 extra_headers_list
=
13553 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13554 for file in ${extra_headers} ; do
13555 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13558 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13559 if test x
"$use_gcc_tgmath" = xyes
13560 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13563 # Define collect2 in Makefile.
13564 case $host_can_use_collect2 in
13566 *) collect2
='collect2$(exeext)' ;;
13570 # Add a definition of USE_COLLECT2 if system wants one.
13571 case $use_collect2 in
13572 no
) use_collect2
= ;;
13575 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13576 xm_defines
="${xm_defines} USE_COLLECT2"
13577 case $host_can_use_collect2 in
13579 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13586 cat >>confdefs.h
<<_ACEOF
13587 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13591 # ---------------------------
13592 # Assembler & linker features
13593 # ---------------------------
13595 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13596 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13597 # However when ld-new is first executed from the build tree, libtool will
13598 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13599 # to the build tree. While doing this we need to use the previous-stage
13600 # linker, or we have an infinite loop. The presence of a shell script as
13601 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13602 # the gcc/collect-ld script. So we need to know how libtool works, or
13603 # exec-tool will fail.
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13609 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13614 macro_version
='2.2.7a'
13615 macro_revision
='1.3134'
13629 ltmain
="$ac_aux_dir/ltmain.sh"
13631 # Backslashify metacharacters that are still active within
13632 # double-quoted strings.
13633 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13635 # Same as above, but do not quote variable references.
13636 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13638 # Sed substitution to delay expansion of an escaped shell variable in a
13639 # double_quote_subst'ed string.
13640 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13642 # Sed substitution to delay expansion of an escaped single quote.
13643 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13645 # Sed substitution to avoid accidental globbing in evaled expressions
13646 no_glob_subst
='s/\*/\\\*/g'
13648 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13649 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13650 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13653 $as_echo_n "checking how to print strings... " >&6; }
13654 # Test print first, because it will be a builtin if present.
13655 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13656 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13658 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13661 # Use this function as a fallback that always works.
13662 func_fallback_echo ()
13664 eval 'cat <<_LTECHO_EOF
13668 ECHO='func_fallback_echo
'
13671 # func_echo_all arg...
13672 # Invoke $ECHO with all args, space-separated.
13679 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13680 $as_echo "printf" >&6; } ;;
13681 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13682 $as_echo "print -r" >&6; } ;;
13683 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13684 $as_echo "cat" >&6; } ;;
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13701 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13702 if ${ac_cv_path_SED+:} false; then :
13703 $as_echo_n "(cached) " >&6
13705 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13706 for ac_i in 1 2 3 4 5 6 7; do
13707 ac_script="$ac_script$as_nl$ac_script"
13709 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13710 { ac_script=; unset ac_script;}
13711 if test -z "$SED"; then
13712 ac_path_SED_found=false
13713 # Loop through the user's path and
test for each of PROGNAME-LIST
13714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13715 for as_dir
in $PATH
13718 test -z "$as_dir" && as_dir
=.
13719 for ac_prog
in sed gsed
; do
13720 for ac_exec_ext
in '' $ac_executable_extensions; do
13721 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13722 as_fn_executable_p
"$ac_path_SED" ||
continue
13723 # Check for GNU ac_path_SED and select it if it is found.
13724 # Check for GNU $ac_path_SED
13725 case `"$ac_path_SED" --version 2>&1` in
13727 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13730 $as_echo_n 0123456789 >"conftest.in"
13733 cat "conftest.in" "conftest.in" >"conftest.tmp"
13734 mv "conftest.tmp" "conftest.in"
13735 cp "conftest.in" "conftest.nl"
13736 $as_echo '' >> "conftest.nl"
13737 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13738 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13739 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13740 if test $ac_count -gt ${ac_path_SED_max-0}; then
13741 # Best one so far, save it but keep looking for a better one
13742 ac_cv_path_SED
="$ac_path_SED"
13743 ac_path_SED_max
=$ac_count
13745 # 10*(2^10) chars as input seems more than enough
13746 test $ac_count -gt 10 && break
13748 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13751 $ac_path_SED_found && break 3
13756 if test -z "$ac_cv_path_SED"; then
13757 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13760 ac_cv_path_SED
=$SED
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13765 $as_echo "$ac_cv_path_SED" >&6; }
13766 SED
="$ac_cv_path_SED"
13769 test -z "$SED" && SED
=sed
13770 Xsed
="$SED -e 1s/^X//"
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13783 $as_echo_n "checking for fgrep... " >&6; }
13784 if ${ac_cv_path_FGREP+:} false
; then :
13785 $as_echo_n "(cached) " >&6
13787 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13788 then ac_cv_path_FGREP
="$GREP -F"
13790 if test -z "$FGREP"; then
13791 ac_path_FGREP_found
=false
13792 # Loop through the user's path and test for each of PROGNAME-LIST
13793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13794 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13797 test -z "$as_dir" && as_dir
=.
13798 for ac_prog
in fgrep
; do
13799 for ac_exec_ext
in '' $ac_executable_extensions; do
13800 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13801 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13802 # Check for GNU ac_path_FGREP and select it if it is found.
13803 # Check for GNU $ac_path_FGREP
13804 case `"$ac_path_FGREP" --version 2>&1` in
13806 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13809 $as_echo_n 0123456789 >"conftest.in"
13812 cat "conftest.in" "conftest.in" >"conftest.tmp"
13813 mv "conftest.tmp" "conftest.in"
13814 cp "conftest.in" "conftest.nl"
13815 $as_echo 'FGREP' >> "conftest.nl"
13816 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13817 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13818 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13819 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13820 # Best one so far, save it but keep looking for a better one
13821 ac_cv_path_FGREP
="$ac_path_FGREP"
13822 ac_path_FGREP_max
=$ac_count
13824 # 10*(2^10) chars as input seems more than enough
13825 test $ac_count -gt 10 && break
13827 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13830 $ac_path_FGREP_found && break 3
13835 if test -z "$ac_cv_path_FGREP"; then
13836 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13839 ac_cv_path_FGREP
=$FGREP
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13845 $as_echo "$ac_cv_path_FGREP" >&6; }
13846 FGREP
="$ac_cv_path_FGREP"
13849 test -z "$GREP" && GREP
=grep
13869 # Check whether --with-gnu-ld was given.
13870 if test "${with_gnu_ld+set}" = set; then :
13871 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13877 if test "$GCC" = yes; then
13878 # Check if gcc -print-prog-name=ld gives a path.
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13880 $as_echo_n "checking for ld used by $CC... " >&6; }
13883 # gcc leaves a trailing carriage return which upsets mingw
13884 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13886 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13889 # Accept absolute paths.
13891 re_direlt
='/[^/][^/]*/\.\./'
13892 # Canonicalize the pathname of ld
13893 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13894 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13895 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13897 test -z "$LD" && LD
="$ac_prog"
13900 # If it fails, then pretend we aren't using GCC.
13904 # If it is relative, then search for the first ld in PATH.
13905 with_gnu_ld
=unknown
13908 elif test "$with_gnu_ld" = yes; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13910 $as_echo_n "checking for GNU ld... " >&6; }
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13913 $as_echo_n "checking for non-GNU ld... " >&6; }
13915 if ${lt_cv_path_LD+:} false
; then :
13916 $as_echo_n "(cached) " >&6
13918 if test -z "$LD"; then
13919 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13920 for ac_dir
in $PATH; do
13922 test -z "$ac_dir" && ac_dir
=.
13923 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13924 lt_cv_path_LD
="$ac_dir/$ac_prog"
13925 # Check to see if the program is GNU ld. I'd rather use --version,
13926 # but apparently some variants of GNU ld only accept -v.
13927 # Break only if it was the GNU/non-GNU ld that we prefer.
13928 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13929 *GNU
* |
*'with BFD'*)
13930 test "$with_gnu_ld" != no
&& break
13933 test "$with_gnu_ld" != yes && break
13940 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13944 LD
="$lt_cv_path_LD"
13945 if test -n "$LD"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13947 $as_echo "$LD" >&6; }
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13952 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13954 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13955 if ${lt_cv_prog_gnu_ld+:} false
; then :
13956 $as_echo_n "(cached) " >&6
13958 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13959 case `$LD -v 2>&1 </dev/null` in
13960 *GNU
* |
*'with BFD'*)
13961 lt_cv_prog_gnu_ld
=yes
13964 lt_cv_prog_gnu_ld
=no
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13969 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13970 with_gnu_ld
=$lt_cv_prog_gnu_ld
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13981 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13982 if ${lt_cv_path_NM+:} false
; then :
13983 $as_echo_n "(cached) " >&6
13985 if test -n "$NM"; then
13986 # Let the user override the test.
13987 lt_cv_path_NM
="$NM"
13989 lt_nm_to_check
="${ac_tool_prefix}nm"
13990 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13991 lt_nm_to_check
="$lt_nm_to_check nm"
13993 for lt_tmp_nm
in $lt_nm_to_check; do
13994 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13995 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13997 test -z "$ac_dir" && ac_dir
=.
13998 tmp_nm
="$ac_dir/$lt_tmp_nm"
13999 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14000 # Check to see if the nm accepts a BSD-compat flag.
14001 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14002 # nm: unknown option "B" ignored
14003 # Tru64's nm complains that /dev/null is an invalid object file
14004 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14005 */dev
/null
* |
*'Invalid file or object type'*)
14006 lt_cv_path_NM
="$tmp_nm -B"
14010 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14012 lt_cv_path_NM
="$tmp_nm -p"
14016 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14017 continue # so that we can try to find one that supports BSD flags
14026 : ${lt_cv_path_NM=no}
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14030 $as_echo "$lt_cv_path_NM" >&6; }
14031 if test "$lt_cv_path_NM" != "no"; then
14032 NM
="$lt_cv_path_NM"
14034 # Didn't find any BSD compatible name lister, look for dumpbin.
14035 if test -n "$DUMPBIN"; then :
14036 # Let the user override the test.
14038 if test -n "$ac_tool_prefix"; then
14039 for ac_prog
in dumpbin
"link -dump"
14041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14042 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044 $as_echo_n "checking for $ac_word... " >&6; }
14045 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14046 $as_echo_n "(cached) " >&6
14048 if test -n "$DUMPBIN"; then
14049 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14052 for as_dir
in $PATH
14055 test -z "$as_dir" && as_dir
=.
14056 for ac_exec_ext
in '' $ac_executable_extensions; do
14057 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14058 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068 DUMPBIN
=$ac_cv_prog_DUMPBIN
14069 if test -n "$DUMPBIN"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14071 $as_echo "$DUMPBIN" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074 $as_echo "no" >&6; }
14078 test -n "$DUMPBIN" && break
14081 if test -z "$DUMPBIN"; then
14082 ac_ct_DUMPBIN
=$DUMPBIN
14083 for ac_prog
in dumpbin
"link -dump"
14085 # Extract the first word of "$ac_prog", so it can be a program name with args.
14086 set dummy
$ac_prog; ac_word
=$2
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14088 $as_echo_n "checking for $ac_word... " >&6; }
14089 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14090 $as_echo_n "(cached) " >&6
14092 if test -n "$ac_ct_DUMPBIN"; then
14093 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14096 for as_dir
in $PATH
14099 test -z "$as_dir" && as_dir
=.
14100 for ac_exec_ext
in '' $ac_executable_extensions; do
14101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14102 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14113 if test -n "$ac_ct_DUMPBIN"; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14115 $as_echo "$ac_ct_DUMPBIN" >&6; }
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 $as_echo "no" >&6; }
14122 test -n "$ac_ct_DUMPBIN" && break
14125 if test "x$ac_ct_DUMPBIN" = x
; then
14128 case $cross_compiling:$ac_tool_warned in
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14132 ac_tool_warned
=yes ;;
14134 DUMPBIN
=$ac_ct_DUMPBIN
14138 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14140 DUMPBIN
="$DUMPBIN -symbols"
14148 if test "$DUMPBIN" != ":"; then
14152 test -z "$NM" && NM
=nm
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14160 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14161 if ${lt_cv_nm_interface+:} false
; then :
14162 $as_echo_n "(cached) " >&6
14164 lt_cv_nm_interface
="BSD nm"
14165 echo "int some_variable = 0;" > conftest.
$ac_ext
14166 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14167 (eval "$ac_compile" 2>conftest.err
)
14168 cat conftest.err
>&5
14169 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14170 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14171 cat conftest.err
>&5
14172 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14173 cat conftest.out
>&5
14174 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14175 lt_cv_nm_interface
="MS dumpbin"
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14180 $as_echo "$lt_cv_nm_interface" >&6; }
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14183 $as_echo_n "checking whether ln -s works... " >&6; }
14185 if test "$LN_S" = "ln -s"; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14187 $as_echo "yes" >&6; }
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14190 $as_echo "no, using $LN_S" >&6; }
14193 # find the maximum length of command line arguments
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14195 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14196 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14197 $as_echo_n "(cached) " >&6
14204 # On DJGPP, this test can blow up pretty badly due to problems in libc
14205 # (any single argument exceeding 2000 bytes causes a buffer overrun
14206 # during glob expansion). Even if it were fixed, the result of this
14207 # check would be larger than it should be.
14208 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14212 # Under GNU Hurd, this test is not required because there is
14213 # no limit to the length of command line arguments.
14214 # Libtool will interpret -1 as no limit whatsoever
14215 lt_cv_sys_max_cmd_len
=-1;
14218 cygwin
* | mingw
* | cegcc
*)
14219 # On Win9x/ME, this test blows up -- it succeeds, but takes
14220 # about 5 minutes as the teststring grows exponentially.
14221 # Worse, since 9x/ME are not pre-emptively multitasking,
14222 # you end up with a "frozen" computer, even though with patience
14223 # the test eventually succeeds (with a max line length of 256k).
14224 # Instead, let's just punt: use the minimum linelength reported by
14225 # all of the supported platforms: 8192 (on NT/2K/XP).
14226 lt_cv_sys_max_cmd_len
=8192;
14230 # On MiNT this can take a long time and run out of memory.
14231 lt_cv_sys_max_cmd_len
=8192;
14235 # On AmigaOS with pdksh, this test takes hours, literally.
14236 # So we just punt and use a minimum line length of 8192.
14237 lt_cv_sys_max_cmd_len
=8192;
14240 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14241 # This has been around since 386BSD, at least. Likely further.
14242 if test -x /sbin
/sysctl
; then
14243 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14244 elif test -x /usr
/sbin
/sysctl
; then
14245 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14247 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14249 # And add a safety zone
14250 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14251 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14255 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14256 lt_cv_sys_max_cmd_len
=196608
14260 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14261 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14262 # nice to cause kernel panics so lets avoid the loop below.
14263 # First set a reasonable default.
14264 lt_cv_sys_max_cmd_len
=16384
14266 if test -x /sbin
/sysconfig
; then
14267 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14268 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14273 lt_cv_sys_max_cmd_len
=102400
14275 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14276 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14277 if test -n "$kargmax"; then
14278 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14280 lt_cv_sys_max_cmd_len
=32768
14284 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14285 if test -n "$lt_cv_sys_max_cmd_len"; then
14286 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14287 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14289 # Make teststring a little bigger before we do anything with it.
14290 # a 1K string should be a reasonable start.
14291 for i
in 1 2 3 4 5 6 7 8 ; do
14292 teststring
=$teststring$teststring
14294 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14295 # If test is not a shell built-in, we'll probably end up computing a
14296 # maximum length that is only half of the actual maximum length, but
14298 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14299 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14300 test $i != 17 # 1/2 MB should be enough
14303 teststring
=$teststring$teststring
14305 # Only check the string length outside the loop.
14306 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14308 # Add a significant safety factor because C++ compilers can tack on
14309 # massive amounts of additional arguments before passing them to the
14310 # linker. It appears as though 1/2 is a usable value.
14311 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14318 if test -n $lt_cv_sys_max_cmd_len ; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14320 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14323 $as_echo "none" >&6; }
14325 max_cmd_len
=$lt_cv_sys_max_cmd_len
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14337 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14338 # Try some XSI features
14340 ( _lt_dummy
="a/b/c"
14341 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14343 && eval 'test $(( 1 + 1 )) -eq 2 \
14344 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14347 $as_echo "$xsi_shell" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14351 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14353 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14355 && lt_shell_append=yes
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14357 $as_echo "$lt_shell_append" >&6; }
14360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14370 # test EBCDIC or ASCII
14371 case `echo X|tr X '\101'` in
14372 A) # ASCII based system
14373 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14374 lt_SP2NL='tr \040 \012'
14375 lt_NL2SP='tr \015\012 \040\040'
14377 *) # EBCDIC based system
14378 lt_SP2NL='tr \100 \n'
14379 lt_NL2SP='tr \r\n \100\100'
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14392 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14393 if ${lt_cv_ld_reload_flag+:} false; then :
14394 $as_echo_n "(cached
) " >&6
14396 lt_cv_ld_reload_flag='-r'
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14399 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14400 reload_flag=$lt_cv_ld_reload_flag
14401 case $reload_flag in
14403 *) reload_flag=" $reload_flag" ;;
14405 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14408 if test "$GCC" = yes; then
14409 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14424 if test -n "$ac_tool_prefix"; then
14425 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14426 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14428 $as_echo_n "checking
for $ac_word...
" >&6; }
14429 if ${ac_cv_prog_OBJDUMP+:} false; then :
14430 $as_echo_n "(cached
) " >&6
14432 if test -n "$OBJDUMP"; then
14433 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14436 for as_dir in $PATH
14439 test -z "$as_dir" && as_dir=.
14440 for ac_exec_ext in '' $ac_executable_extensions; do
14441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14442 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14443 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14452 OBJDUMP=$ac_cv_prog_OBJDUMP
14453 if test -n "$OBJDUMP"; then
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14455 $as_echo "$OBJDUMP" >&6; }
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14458 $as_echo "no
" >&6; }
14463 if test -z "$ac_cv_prog_OBJDUMP"; then
14464 ac_ct_OBJDUMP=$OBJDUMP
14465 # Extract the first word of "objdump
", so it can be a program name with args.
14466 set dummy objdump; ac_word=$2
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14468 $as_echo_n "checking
for $ac_word...
" >&6; }
14469 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14470 $as_echo_n "(cached
) " >&6
14472 if test -n "$ac_ct_OBJDUMP"; then
14473 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14476 for as_dir in $PATH
14479 test -z "$as_dir" && as_dir=.
14480 for ac_exec_ext in '' $ac_executable_extensions; do
14481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14482 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14483 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14492 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14493 if test -n "$ac_ct_OBJDUMP"; then
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14495 $as_echo "$ac_ct_OBJDUMP" >&6; }
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14498 $as_echo "no
" >&6; }
14501 if test "x
$ac_ct_OBJDUMP" = x; then
14504 case $cross_compiling:$ac_tool_warned in
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14507 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14508 ac_tool_warned=yes ;;
14510 OBJDUMP=$ac_ct_OBJDUMP
14513 OBJDUMP="$ac_cv_prog_OBJDUMP"
14516 test -z "$OBJDUMP" && OBJDUMP=objdump
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14527 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14528 if ${lt_cv_deplibs_check_method+:} false; then :
14529 $as_echo_n "(cached
) " >&6
14531 lt_cv_file_magic_cmd='$MAGIC_CMD'
14532 lt_cv_file_magic_test_file=
14533 lt_cv_deplibs_check_method='unknown'
14534 # Need to set the preceding variable on all platforms that support
14535 # interlibrary dependencies.
14536 # 'none' -- dependencies not supported.
14537 # `unknown' -- same as none, but documents that we really don't know.
14538 # 'pass_all' -- all dependencies passed with no checks.
14539 # 'test_compile' -- check by making test program.
14540 # 'file_magic [[regex]]' -- check by looking for files in library path
14541 # which responds to the $file_magic_cmd with a given extended regex.
14542 # If you have `file' or equivalent on your system and you're not sure
14543 # whether `pass_all' will *always* work, you probably want this one.
14547 lt_cv_deplibs_check_method=pass_all
14551 lt_cv_deplibs_check_method=pass_all
14555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14556 lt_cv_file_magic_cmd='/usr/bin/file -L'
14557 lt_cv_file_magic_test_file=/shlib/libc.so
14561 # func_win32_libid is a shell function defined in ltmain.sh
14562 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14563 lt_cv_file_magic_cmd='func_win32_libid'
14567 # Base MSYS/MinGW do not provide the 'file' command needed by
14568 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14569 # unless we find 'file', for example because we are cross-compiling.
14570 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14571 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14573 lt_cv_file_magic_cmd='func_win32_libid'
14575 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14576 lt_cv_file_magic_cmd='$OBJDUMP -f'
14581 # use the weaker test based on 'objdump'. See mingw*.
14582 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14583 lt_cv_file_magic_cmd='$OBJDUMP -f'
14586 darwin* | rhapsody*)
14587 lt_cv_deplibs_check_method=pass_all
14590 freebsd* | dragonfly*)
14591 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14594 # Not sure whether the presence of OpenBSD here was a mistake.
14595 # Let's accept both of them until this is cleared up.
14596 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14597 lt_cv_file_magic_cmd=/usr/bin/file
14598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14602 lt_cv_deplibs_check_method=pass_all
14607 lt_cv_deplibs_check_method=pass_all
14611 lt_cv_deplibs_check_method=pass_all
14614 hpux10.20* | hpux11*)
14615 lt_cv_file_magic_cmd=/usr/bin/file
14618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14619 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14622 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]'
14623 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14627 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14633 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14637 irix5* | irix6* | nonstopux*)
14639 *-32|*"-32 ") libmagic=32-bit;;
14640 *-n32|*"-n32 ") libmagic=N32;;
14641 *-64|*"-64 ") libmagic=64-bit;;
14642 *) libmagic=never-match;;
14644 lt_cv_deplibs_check_method=pass_all
14647 # This must be Linux ELF.
14648 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14649 lt_cv_deplibs_check_method=pass_all
14653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14662 lt_cv_file_magic_cmd=/usr/bin/file
14663 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14667 lt_cv_deplibs_check_method=pass_all
14671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14678 osf3* | osf4* | osf5*)
14679 lt_cv_deplibs_check_method=pass_all
14683 lt_cv_deplibs_check_method=pass_all
14687 lt_cv_deplibs_check_method=pass_all
14690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14691 lt_cv_deplibs_check_method=pass_all
14695 case $host_vendor in
14697 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]'
14698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14701 lt_cv_deplibs_check_method=pass_all
14704 lt_cv_file_magic_cmd='/bin/file'
14705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14708 lt_cv_file_magic_cmd='/bin/file'
14709 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14710 lt_cv_file_magic_test_file=/lib/libc.so
14713 lt_cv_deplibs_check_method=pass_all
14716 lt_cv_deplibs_check_method=pass_all
14722 lt_cv_deplibs_check_method=pass_all
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14728 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14729 file_magic_cmd=$lt_cv_file_magic_cmd
14730 deplibs_check_method=$lt_cv_deplibs_check_method
14731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14744 if test -n "$ac_tool_prefix"; then
14745 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14746 set dummy ${ac_tool_prefix}ar; ac_word=$2
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14748 $as_echo_n "checking
for $ac_word...
" >&6; }
14749 if ${ac_cv_prog_AR+:} false; then :
14750 $as_echo_n "(cached
) " >&6
14752 if test -n "$AR"; then
14753 ac_cv_prog_AR="$AR" # Let the user override the test.
14755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14759 test -z "$as_dir" && as_dir=.
14760 for ac_exec_ext in '' $ac_executable_extensions; do
14761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14762 ac_cv_prog_AR="${ac_tool_prefix}ar"
14763 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14773 if test -n "$AR"; then
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14775 $as_echo "$AR" >&6; }
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14778 $as_echo "no
" >&6; }
14783 if test -z "$ac_cv_prog_AR"; then
14785 # Extract the first word of "ar", so it can be a program name with args.
14786 set dummy ar; ac_word=$2
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14788 $as_echo_n "checking
for $ac_word...
" >&6; }
14789 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14790 $as_echo_n "(cached
) " >&6
14792 if test -n "$ac_ct_AR"; then
14793 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $PATH
14799 test -z "$as_dir" && as_dir=.
14800 for ac_exec_ext in '' $ac_executable_extensions; do
14801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14802 ac_cv_prog_ac_ct_AR="ar"
14803 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14813 if test -n "$ac_ct_AR"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14815 $as_echo "$ac_ct_AR" >&6; }
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14818 $as_echo "no
" >&6; }
14821 if test "x
$ac_ct_AR" = x; then
14824 case $cross_compiling:$ac_tool_warned in
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14827 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14828 ac_tool_warned=yes ;;
14833 AR="$ac_cv_prog_AR"
14836 test -z "$AR" && AR=ar
14837 test -z "$AR_FLAGS" && AR_FLAGS=cru
14849 if test -n "$ac_tool_prefix"; then
14850 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14851 set dummy ${ac_tool_prefix}strip; ac_word=$2
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14853 $as_echo_n "checking
for $ac_word...
" >&6; }
14854 if ${ac_cv_prog_STRIP+:} false; then :
14855 $as_echo_n "(cached
) " >&6
14857 if test -n "$STRIP"; then
14858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14861 for as_dir in $PATH
14864 test -z "$as_dir" && as_dir=.
14865 for ac_exec_ext in '' $ac_executable_extensions; do
14866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14867 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14868 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14877 STRIP=$ac_cv_prog_STRIP
14878 if test -n "$STRIP"; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14880 $as_echo "$STRIP" >&6; }
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14883 $as_echo "no
" >&6; }
14888 if test -z "$ac_cv_prog_STRIP"; then
14890 # Extract the first word of "strip
", so it can be a program name with args.
14891 set dummy strip; ac_word=$2
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14893 $as_echo_n "checking
for $ac_word...
" >&6; }
14894 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14895 $as_echo_n "(cached
) " >&6
14897 if test -n "$ac_ct_STRIP"; then
14898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14901 for as_dir in $PATH
14904 test -z "$as_dir" && as_dir=.
14905 for ac_exec_ext in '' $ac_executable_extensions; do
14906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14907 ac_cv_prog_ac_ct_STRIP="strip
"
14908 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14918 if test -n "$ac_ct_STRIP"; then
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14920 $as_echo "$ac_ct_STRIP" >&6; }
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14923 $as_echo "no
" >&6; }
14926 if test "x
$ac_ct_STRIP" = x; then
14929 case $cross_compiling:$ac_tool_warned in
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14932 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14933 ac_tool_warned=yes ;;
14938 STRIP="$ac_cv_prog_STRIP"
14941 test -z "$STRIP" && STRIP=:
14948 if test -n "$ac_tool_prefix"; then
14949 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14952 $as_echo_n "checking
for $ac_word...
" >&6; }
14953 if ${ac_cv_prog_RANLIB+:} false; then :
14954 $as_echo_n "(cached
) " >&6
14956 if test -n "$RANLIB"; then
14957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960 for as_dir in $PATH
14963 test -z "$as_dir" && as_dir=.
14964 for ac_exec_ext in '' $ac_executable_extensions; do
14965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14967 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14976 RANLIB=$ac_cv_prog_RANLIB
14977 if test -n "$RANLIB"; then
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14979 $as_echo "$RANLIB" >&6; }
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14982 $as_echo "no
" >&6; }
14987 if test -z "$ac_cv_prog_RANLIB"; then
14988 ac_ct_RANLIB=$RANLIB
14989 # Extract the first word of "ranlib
", so it can be a program name with args.
14990 set dummy ranlib; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14992 $as_echo_n "checking
for $ac_word...
" >&6; }
14993 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14994 $as_echo_n "(cached
) " >&6
14996 if test -n "$ac_ct_RANLIB"; then
14997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15003 test -z "$as_dir" && as_dir=.
15004 for ac_exec_ext in '' $ac_executable_extensions; do
15005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15006 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15007 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15017 if test -n "$ac_ct_RANLIB"; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15019 $as_echo "$ac_ct_RANLIB" >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15022 $as_echo "no
" >&6; }
15025 if test "x
$ac_ct_RANLIB" = x; then
15028 case $cross_compiling:$ac_tool_warned in
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15031 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15032 ac_tool_warned=yes ;;
15034 RANLIB=$ac_ct_RANLIB
15037 RANLIB="$ac_cv_prog_RANLIB"
15040 test -z "$RANLIB" && RANLIB=:
15047 # Determine commands to create old-style static archives.
15048 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15049 old_postinstall_cmds='chmod 644 $oldlib'
15050 old_postuninstall_cmds=
15052 if test -n "$RANLIB"; then
15055 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15058 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15061 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15066 lock_old_archive_extraction=yes ;;
15068 lock_old_archive_extraction=no ;;
15109 # If no C compiler was specified, use CC.
15112 # If no C compiler flags were specified, use CFLAGS.
15113 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15115 # Allow CC to be a program name with arguments.
15119 # Check for command to grab the raw symbol name followed by C symbol from nm.
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15121 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15122 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15123 $as_echo_n "(cached
) " >&6
15126 # These are sane defaults that work on at least a few old systems.
15127 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15129 # Character class describing NM global symbol codes.
15130 symcode='[BCDEGRST]'
15132 # Regexp to match symbols that can be accessed directly from C.
15133 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15135 # Define system-specific variables.
15140 cygwin* | mingw* | pw32* | cegcc*)
15141 symcode='[ABCDGISTW]'
15144 if test "$host_cpu" = ia64; then
15145 symcode='[ABCDEGRST]'
15148 irix* | nonstopux*)
15149 symcode='[BCDEGRST]'
15152 symcode='[BCDEGQRST]'
15163 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15171 # If we're using GNU nm, then use its standard symbol codes.
15172 case `$NM -V 2>&1` in
15173 *GNU* | *'with BFD'*)
15174 symcode='[ABCDGIRSTW]' ;;
15177 # Transform an extracted symbol line into a proper C declaration.
15178 # Some systems (esp. on ia64) link data and code symbols differently,
15179 # so use this general approach.
15180 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15182 # Transform an extracted symbol line into symbol name and symbol address
15183 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15184 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'"
15186 # Handle CRLF in mingw tool chain
15190 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15194 # Try without a prefix underscore, then with it.
15195 for ac_symprfx in "" "_
"; do
15197 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15198 symxfrm="\\1 $ac_symprfx\\2 \\2"
15200 # Write the raw and C identifiers.
15201 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15202 # Fake it for dumpbin and say T for any non-static function
15203 # and D for any global variable.
15204 # Also find C++ and __fastcall symbols from MSVC++,
15205 # which start with @ or ?.
15206 lt_cv_sys_global_symbol_pipe="$AWK '"\
15207 " {last_section=section; section=\$ 3};"\
15208 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15209 " \$ 0!~/External *\|/{next};"\
15210 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15211 " {if(hide[section]) next};"\
15212 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15213 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15214 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15215 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15216 " ' prfx
=^
$ac_symprfx"
15218 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15221 # Check to see that the pipe works correctly.
15225 cat > conftest.$ac_ext <<_LT_EOF
15230 void nm_test_func(void);
15231 void nm_test_func(void){}
15235 int main(){nm_test_var='a';nm_test_func();return(0);}
15238 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15239 (eval $ac_compile) 2>&5
15241 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15242 test $ac_status = 0; }; then
15243 # Now try to grab the symbols.
15245 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15246 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15248 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15249 test $ac_status = 0; } && test -s "$nlist"; then
15250 # Try sorting and uniquifying the output.
15251 if sort "$nlist" | uniq > "$nlist"T; then
15252 mv -f "$nlist"T "$nlist"
15257 # Make sure that we snagged all the symbols we need.
15258 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15259 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15260 cat <<_LT_EOF > conftest.$ac_ext
15266 # Now generate the symbol file.
15267 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15269 cat <<_LT_EOF >> conftest.$ac_ext
15271 /* The mapping between symbol names and symbols. */
15276 lt__PROGRAM__LTX_preloaded_symbols[] =
15278 { "@PROGRAM@
", (void *) 0 },
15280 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15281 cat <<\_LT_EOF >> conftest.$ac_ext
15285 /* This works around a problem in FreeBSD linker */
15286 #ifdef FREEBSD_WORKAROUND
15287 static const void *lt_preloaded_setup() {
15288 return lt__PROGRAM__LTX_preloaded_symbols;
15296 # Now try linking the two files.
15297 mv conftest.$ac_objext conftstm.$ac_objext
15298 lt_save_LIBS="$LIBS"
15299 lt_save_CFLAGS="$CFLAGS"
15300 LIBS="conftstm.
$ac_objext"
15301 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15302 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15303 (eval $ac_link) 2>&5
15305 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15306 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15309 LIBS="$lt_save_LIBS"
15310 CFLAGS="$lt_save_CFLAGS"
15312 echo "cannot
find nm_test_func
in $nlist" >&5
15315 echo "cannot
find nm_test_var
in $nlist" >&5
15318 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15321 echo "$progname: failed program was
:" >&5
15322 cat conftest.$ac_ext >&5
15324 rm -rf conftest* conftst*
15326 # Do not use the global_symbol_pipe unless it works.
15327 if test "$pipe_works" = yes; then
15330 lt_cv_sys_global_symbol_pipe=
15336 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15337 lt_cv_sys_global_symbol_to_cdecl=
15339 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15341 $as_echo "failed
" >&6; }
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15344 $as_echo "ok
" >&6; }
15368 # Check whether --enable-libtool-lock was given.
15369 if test "${enable_libtool_lock+set}" = set; then :
15370 enableval=$enable_libtool_lock;
15373 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15375 # Some flags need to be propagated to the compiler or linker for good
15379 # Find out which ABI we are using.
15380 echo 'int i;' > conftest.$ac_ext
15381 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15382 (eval $ac_compile) 2>&5
15384 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15385 test $ac_status = 0; }; then
15386 case `/usr/bin/file conftest.$ac_objext` in
15388 HPUX_IA64_MODE="32"
15391 HPUX_IA64_MODE="64"
15398 # Find out which ABI we are using.
15399 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15400 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15401 (eval $ac_compile) 2>&5
15403 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15404 test $ac_status = 0; }; then
15405 if test "$lt_cv_prog_gnu_ld" = yes; then
15406 case `/usr/bin/file conftest.$ac_objext` in
15408 LD="${LD-ld} -melf32bsmip"
15411 LD="${LD-ld} -melf32bmipn32"
15414 LD="${LD-ld} -melf64bmip"
15418 case `/usr/bin/file conftest.$ac_objext` in
15434 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15435 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15436 # Find out which ABI we are using.
15437 echo 'int i;' > conftest.$ac_ext
15438 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15439 (eval $ac_compile) 2>&5
15441 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15442 test $ac_status = 0; }; then
15443 case `/usr/bin/file conftest.o` in
15446 x86_64-*kfreebsd*-gnu)
15447 LD="${LD-ld} -m elf_i386_fbsd
"
15450 case `/usr/bin/file conftest.o` in
15452 LD="${LD-ld} -m elf32_x86_64
"
15455 LD="${LD-ld} -m elf_i386
"
15459 powerpc64le-*linux*)
15460 LD="${LD-ld} -m elf32lppclinux
"
15463 LD="${LD-ld} -m elf32ppclinux
"
15466 LD="${LD-ld} -m elf_s390
"
15469 LD="${LD-ld} -m elf32_sparc
"
15475 x86_64-*kfreebsd*-gnu)
15476 LD="${LD-ld} -m elf_x86_64_fbsd
"
15479 LD="${LD-ld} -m elf_x86_64
"
15482 LD="${LD-ld} -m elf64lppc
"
15485 LD="${LD-ld} -m elf64ppc
"
15487 s390*-*linux*|s390*-*tpf*)
15488 LD="${LD-ld} -m elf64_s390
"
15491 LD="${LD-ld} -m elf64_sparc
"
15501 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15502 SAVE_CFLAGS="$CFLAGS"
15503 CFLAGS="$CFLAGS -belf"
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15505 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15506 if ${lt_cv_cc_needs_belf+:} false; then :
15507 $as_echo_n "(cached
) " >&6
15510 ac_cpp='$CPP $CPPFLAGS'
15511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15526 if ac_fn_c_try_link "$LINENO"; then :
15527 lt_cv_cc_needs_belf=yes
15529 lt_cv_cc_needs_belf=no
15531 rm -f core conftest.err conftest.$ac_objext \
15532 conftest$ac_exeext conftest.$ac_ext
15534 ac_cpp='$CPP $CPPFLAGS'
15535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15541 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15542 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15543 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15544 CFLAGS="$SAVE_CFLAGS"
15548 # Find out which ABI we are using.
15549 echo 'int i;' > conftest.$ac_ext
15550 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15551 (eval $ac_compile) 2>&5
15553 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15554 test $ac_status = 0; }; then
15555 case `/usr/bin/file conftest.o` in
15557 case $lt_cv_prog_gnu_ld in
15558 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15560 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15572 need_locks="$enable_libtool_lock"
15576 rhapsody* | darwin*)
15577 if test -n "$ac_tool_prefix"; then
15578 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15579 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15581 $as_echo_n "checking
for $ac_word...
" >&6; }
15582 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15583 $as_echo_n "(cached
) " >&6
15585 if test -n "$DSYMUTIL"; then
15586 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15589 for as_dir in $PATH
15592 test -z "$as_dir" && as_dir=.
15593 for ac_exec_ext in '' $ac_executable_extensions; do
15594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15595 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15596 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15605 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15606 if test -n "$DSYMUTIL"; then
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15608 $as_echo "$DSYMUTIL" >&6; }
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15611 $as_echo "no
" >&6; }
15616 if test -z "$ac_cv_prog_DSYMUTIL"; then
15617 ac_ct_DSYMUTIL=$DSYMUTIL
15618 # Extract the first word of "dsymutil
", so it can be a program name with args.
15619 set dummy dsymutil; ac_word=$2
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15621 $as_echo_n "checking
for $ac_word...
" >&6; }
15622 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15623 $as_echo_n "(cached
) " >&6
15625 if test -n "$ac_ct_DSYMUTIL"; then
15626 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15629 for as_dir in $PATH
15632 test -z "$as_dir" && as_dir=.
15633 for ac_exec_ext in '' $ac_executable_extensions; do
15634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15635 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15636 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15645 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15646 if test -n "$ac_ct_DSYMUTIL"; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15648 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15651 $as_echo "no
" >&6; }
15654 if test "x
$ac_ct_DSYMUTIL" = x; then
15657 case $cross_compiling:$ac_tool_warned in
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15660 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15661 ac_tool_warned=yes ;;
15663 DSYMUTIL=$ac_ct_DSYMUTIL
15666 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15669 if test -n "$ac_tool_prefix"; then
15670 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15671 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15673 $as_echo_n "checking
for $ac_word...
" >&6; }
15674 if ${ac_cv_prog_NMEDIT+:} false; then :
15675 $as_echo_n "(cached
) " >&6
15677 if test -n "$NMEDIT"; then
15678 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15681 for as_dir in $PATH
15684 test -z "$as_dir" && as_dir=.
15685 for ac_exec_ext in '' $ac_executable_extensions; do
15686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15687 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15688 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15697 NMEDIT=$ac_cv_prog_NMEDIT
15698 if test -n "$NMEDIT"; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15700 $as_echo "$NMEDIT" >&6; }
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15703 $as_echo "no
" >&6; }
15708 if test -z "$ac_cv_prog_NMEDIT"; then
15709 ac_ct_NMEDIT=$NMEDIT
15710 # Extract the first word of "nmedit
", so it can be a program name with args.
15711 set dummy nmedit; ac_word=$2
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15713 $as_echo_n "checking
for $ac_word...
" >&6; }
15714 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15715 $as_echo_n "(cached
) " >&6
15717 if test -n "$ac_ct_NMEDIT"; then
15718 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15721 for as_dir in $PATH
15724 test -z "$as_dir" && as_dir=.
15725 for ac_exec_ext in '' $ac_executable_extensions; do
15726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15727 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15728 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15737 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15738 if test -n "$ac_ct_NMEDIT"; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15740 $as_echo "$ac_ct_NMEDIT" >&6; }
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15743 $as_echo "no
" >&6; }
15746 if test "x
$ac_ct_NMEDIT" = x; then
15749 case $cross_compiling:$ac_tool_warned in
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15752 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15753 ac_tool_warned=yes ;;
15755 NMEDIT=$ac_ct_NMEDIT
15758 NMEDIT="$ac_cv_prog_NMEDIT"
15761 if test -n "$ac_tool_prefix"; then
15762 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15763 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15765 $as_echo_n "checking
for $ac_word...
" >&6; }
15766 if ${ac_cv_prog_LIPO+:} false; then :
15767 $as_echo_n "(cached
) " >&6
15769 if test -n "$LIPO"; then
15770 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15773 for as_dir in $PATH
15776 test -z "$as_dir" && as_dir=.
15777 for ac_exec_ext in '' $ac_executable_extensions; do
15778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15779 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15780 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15789 LIPO=$ac_cv_prog_LIPO
15790 if test -n "$LIPO"; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15792 $as_echo "$LIPO" >&6; }
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15795 $as_echo "no
" >&6; }
15800 if test -z "$ac_cv_prog_LIPO"; then
15802 # Extract the first word of "lipo
", so it can be a program name with args.
15803 set dummy lipo; ac_word=$2
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15805 $as_echo_n "checking
for $ac_word...
" >&6; }
15806 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15807 $as_echo_n "(cached
) " >&6
15809 if test -n "$ac_ct_LIPO"; then
15810 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15813 for as_dir in $PATH
15816 test -z "$as_dir" && as_dir=.
15817 for ac_exec_ext in '' $ac_executable_extensions; do
15818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15819 ac_cv_prog_ac_ct_LIPO="lipo
"
15820 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15829 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15830 if test -n "$ac_ct_LIPO"; then
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15832 $as_echo "$ac_ct_LIPO" >&6; }
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15835 $as_echo "no
" >&6; }
15838 if test "x
$ac_ct_LIPO" = x; then
15841 case $cross_compiling:$ac_tool_warned in
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15844 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15845 ac_tool_warned=yes ;;
15850 LIPO="$ac_cv_prog_LIPO"
15853 if test -n "$ac_tool_prefix"; then
15854 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15855 set dummy ${ac_tool_prefix}otool; ac_word=$2
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15857 $as_echo_n "checking
for $ac_word...
" >&6; }
15858 if ${ac_cv_prog_OTOOL+:} false; then :
15859 $as_echo_n "(cached
) " >&6
15861 if test -n "$OTOOL"; then
15862 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15865 for as_dir in $PATH
15868 test -z "$as_dir" && as_dir=.
15869 for ac_exec_ext in '' $ac_executable_extensions; do
15870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15871 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15881 OTOOL=$ac_cv_prog_OTOOL
15882 if test -n "$OTOOL"; then
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15884 $as_echo "$OTOOL" >&6; }
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15887 $as_echo "no
" >&6; }
15892 if test -z "$ac_cv_prog_OTOOL"; then
15894 # Extract the first word of "otool
", so it can be a program name with args.
15895 set dummy otool; ac_word=$2
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15897 $as_echo_n "checking
for $ac_word...
" >&6; }
15898 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15899 $as_echo_n "(cached
) " >&6
15901 if test -n "$ac_ct_OTOOL"; then
15902 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15905 for as_dir in $PATH
15908 test -z "$as_dir" && as_dir=.
15909 for ac_exec_ext in '' $ac_executable_extensions; do
15910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15911 ac_cv_prog_ac_ct_OTOOL="otool
"
15912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15921 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15922 if test -n "$ac_ct_OTOOL"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15924 $as_echo "$ac_ct_OTOOL" >&6; }
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15927 $as_echo "no
" >&6; }
15930 if test "x
$ac_ct_OTOOL" = x; then
15933 case $cross_compiling:$ac_tool_warned in
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15936 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15937 ac_tool_warned=yes ;;
15942 OTOOL="$ac_cv_prog_OTOOL"
15945 if test -n "$ac_tool_prefix"; then
15946 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15947 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15949 $as_echo_n "checking
for $ac_word...
" >&6; }
15950 if ${ac_cv_prog_OTOOL64+:} false; then :
15951 $as_echo_n "(cached
) " >&6
15953 if test -n "$OTOOL64"; then
15954 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15957 for as_dir in $PATH
15960 test -z "$as_dir" && as_dir=.
15961 for ac_exec_ext in '' $ac_executable_extensions; do
15962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15963 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15973 OTOOL64=$ac_cv_prog_OTOOL64
15974 if test -n "$OTOOL64"; then
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15976 $as_echo "$OTOOL64" >&6; }
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15979 $as_echo "no
" >&6; }
15984 if test -z "$ac_cv_prog_OTOOL64"; then
15985 ac_ct_OTOOL64=$OTOOL64
15986 # Extract the first word of "otool64
", so it can be a program name with args.
15987 set dummy otool64; ac_word=$2
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15989 $as_echo_n "checking
for $ac_word...
" >&6; }
15990 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15991 $as_echo_n "(cached
) " >&6
15993 if test -n "$ac_ct_OTOOL64"; then
15994 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15997 for as_dir in $PATH
16000 test -z "$as_dir" && as_dir=.
16001 for ac_exec_ext in '' $ac_executable_extensions; do
16002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16003 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16004 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16013 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16014 if test -n "$ac_ct_OTOOL64"; then
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16016 $as_echo "$ac_ct_OTOOL64" >&6; }
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16019 $as_echo "no
" >&6; }
16022 if test "x
$ac_ct_OTOOL64" = x; then
16025 case $cross_compiling:$ac_tool_warned in
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16028 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16029 ac_tool_warned=yes ;;
16031 OTOOL64=$ac_ct_OTOOL64
16034 OTOOL64="$ac_cv_prog_OTOOL64"
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16064 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16065 if ${lt_cv_apple_cc_single_mod+:} false; then :
16066 $as_echo_n "(cached
) " >&6
16068 lt_cv_apple_cc_single_mod=no
16069 if test -z "${LT_MULTI_MODULE}"; then
16070 # By default we will add the -single_module flag. You can override
16071 # by either setting the environment variable LT_MULTI_MODULE
16072 # non-empty at configure time, or by adding -multi_module to the
16074 rm -rf libconftest.dylib*
16075 echo "int foo
(void
){return 1;}" > conftest.c
16076 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16077 -dynamiclib -Wl,-single_module conftest.c
" >&5
16078 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16079 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16081 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16082 lt_cv_apple_cc_single_mod=yes
16084 cat conftest.err >&5
16086 rm -rf libconftest.dylib*
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16091 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16093 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16094 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16095 $as_echo_n "(cached
) " >&6
16097 lt_cv_ld_exported_symbols_list=no
16098 save_LDFLAGS=$LDFLAGS
16099 echo "_main
" > conftest.sym
16100 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16112 if ac_fn_c_try_link "$LINENO"; then :
16113 lt_cv_ld_exported_symbols_list=yes
16115 lt_cv_ld_exported_symbols_list=no
16117 rm -f core conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16119 LDFLAGS="$save_LDFLAGS"
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16123 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16125 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16126 if ${lt_cv_ld_force_load+:} false; then :
16127 $as_echo_n "(cached
) " >&6
16129 lt_cv_ld_force_load=no
16130 cat > conftest.c << _LT_EOF
16131 int forced_loaded() { return 2;}
16133 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16134 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16135 echo "$AR cru libconftest.a conftest.o
" >&5
16136 $AR cru libconftest.a conftest.o 2>&5
16137 cat > conftest.c << _LT_EOF
16138 int main() { return 0;}
16140 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16141 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16143 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16144 lt_cv_ld_force_load=yes
16146 cat conftest.err >&5
16148 rm -f conftest.err libconftest.a conftest conftest.c
16149 rm -rf conftest.dSYM
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16153 $as_echo "$lt_cv_ld_force_load" >&6; }
16154 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16155 # build without first building modern cctools / linker.
16156 case $host_cpu-$host_os in
16157 *-rhapsody* | *-darwin1.[012])
16158 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16160 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16162 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16163 # deployment target is forced to an earlier version.
16164 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16165 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16168 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16175 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16176 _lt_dar_single_mod='$single_module'
16178 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16179 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16181 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16183 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16184 _lt_dsymutil='~$DSYMUTIL $lib || :'
16192 for ac_header in dlfcn.h
16194 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16195 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16196 cat >>confdefs.h <<_ACEOF
16197 #define HAVE_DLFCN_H 1
16214 enable_win32_dll=no
16217 # Check whether --enable-shared was given.
16218 if test "${enable_shared+set}" = set; then :
16219 enableval=$enable_shared; p=${PACKAGE-default}
16221 yes) enable_shared=yes ;;
16222 no) enable_shared=no ;;
16225 # Look at the argument we got. We use all the common list separators.
16226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16227 for pkg in $enableval; do
16229 if test "X
$pkg" = "X
$p"; then
16248 # Check whether --enable-static was given.
16249 if test "${enable_static+set}" = set; then :
16250 enableval=$enable_static; p=${PACKAGE-default}
16252 yes) enable_static=yes ;;
16253 no) enable_static=no ;;
16256 # Look at the argument we got. We use all the common list separators.
16257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16258 for pkg in $enableval; do
16260 if test "X
$pkg" = "X
$p"; then
16280 # Check whether --with-pic was given.
16281 if test "${with_pic+set}" = set; then :
16282 withval=$with_pic; pic_mode="$withval"
16288 test -z "$pic_mode" && pic_mode=default
16296 # Check whether --enable-fast-install was given.
16297 if test "${enable_fast_install+set}" = set; then :
16298 enableval=$enable_fast_install; p=${PACKAGE-default}
16300 yes) enable_fast_install=yes ;;
16301 no) enable_fast_install=no ;;
16303 enable_fast_install=no
16304 # Look at the argument we got. We use all the common list separators.
16305 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16306 for pkg in $enableval; do
16308 if test "X
$pkg" = "X
$p"; then
16309 enable_fast_install=yes
16316 enable_fast_install=yes
16329 # This can be used to rebuild libtool when needed
16330 LIBTOOL_DEPS="$ltmain"
16332 # Always use our own libtool.
16333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16360 test -z "$LN_S" && LN_S="ln -s"
16375 if test -n "${ZSH_VERSION+set}" ; then
16376 setopt NO_GLOB_SUBST
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16380 $as_echo_n "checking
for objdir...
" >&6; }
16381 if ${lt_cv_objdir+:} false; then :
16382 $as_echo_n "(cached
) " >&6
16384 rm -f .libs 2>/dev/null
16385 mkdir .libs 2>/dev/null
16386 if test -d .libs; then
16389 # MS-DOS does not allow filenames that begin with a dot.
16392 rmdir .libs 2>/dev/null
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16395 $as_echo "$lt_cv_objdir" >&6; }
16396 objdir=$lt_cv_objdir
16402 cat >>confdefs.h <<_ACEOF
16403 #define LT_OBJDIR "$lt_cv_objdir/"
16411 # AIX sometimes has problems with the GCC collect2 program. For some
16412 # reason, if we set the COLLECT_NAMES environment variable, the problems
16413 # vanish in a puff of smoke.
16414 if test "X
${COLLECT_NAMES+set}" != Xset; then
16416 export COLLECT_NAMES
16421 # Global variables:
16423 can_build_shared=yes
16425 # All known linkers require a `.a' archive for static linking (except MSVC,
16426 # which needs '.lib').
16429 with_gnu_ld="$lt_cv_prog_gnu_ld"
16432 old_CFLAGS="$CFLAGS"
16434 # Set sane defaults for various variables
16435 test -z "$CC" && CC=cc
16436 test -z "$LTCC" && LTCC=$CC
16437 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16438 test -z "$LD" && LD=ld
16439 test -z "$ac_objext" && ac_objext=o
16441 for cc_temp in $compiler""; do
16443 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16444 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16449 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16452 # Only perform the check for file, if the check method requires it
16453 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16454 case $deplibs_check_method in
16456 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16458 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16459 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16460 $as_echo_n "(cached
) " >&6
16464 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16467 lt_save_MAGIC_CMD="$MAGIC_CMD"
16468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16469 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16470 for ac_dir in $ac_dummy; do
16472 test -z "$ac_dir" && ac_dir=.
16473 if test -f $ac_dir/${ac_tool_prefix}file; then
16474 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16475 if test -n "$file_magic_test_file"; then
16476 case $deplibs_check_method in
16478 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16480 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16481 $EGREP "$file_magic_regex" > /dev/null; then
16486 *** Warning: the command libtool uses to detect shared libraries,
16487 *** $file_magic_cmd, produces output that libtool cannot recognize.
16488 *** The result is that libtool may fail to recognize shared libraries
16489 *** as such. This will affect the creation of libtool libraries that
16490 *** depend on shared libraries, but programs linked with such libtool
16491 *** libraries will work regardless of this problem. Nevertheless, you
16492 *** may want to report the problem to your system manager and/or to
16493 *** bug-libtool@gnu.org
16503 MAGIC_CMD="$lt_save_MAGIC_CMD"
16508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16509 if test -n "$MAGIC_CMD"; then
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16511 $as_echo "$MAGIC_CMD" >&6; }
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16514 $as_echo "no
" >&6; }
16521 if test -z "$lt_cv_path_MAGIC_CMD"; then
16522 if test -n "$ac_tool_prefix"; then
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16524 $as_echo_n "checking
for file...
" >&6; }
16525 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16526 $as_echo_n "(cached
) " >&6
16530 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16533 lt_save_MAGIC_CMD="$MAGIC_CMD"
16534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16535 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16536 for ac_dir in $ac_dummy; do
16538 test -z "$ac_dir" && ac_dir=.
16539 if test -f $ac_dir/file; then
16540 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16541 if test -n "$file_magic_test_file"; then
16542 case $deplibs_check_method in
16544 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16546 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16547 $EGREP "$file_magic_regex" > /dev/null; then
16552 *** Warning: the command libtool uses to detect shared libraries,
16553 *** $file_magic_cmd, produces output that libtool cannot recognize.
16554 *** The result is that libtool may fail to recognize shared libraries
16555 *** as such. This will affect the creation of libtool libraries that
16556 *** depend on shared libraries, but programs linked with such libtool
16557 *** libraries will work regardless of this problem. Nevertheless, you
16558 *** may want to report the problem to your system manager and/or to
16559 *** bug-libtool@gnu.org
16569 MAGIC_CMD="$lt_save_MAGIC_CMD"
16574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16575 if test -n "$MAGIC_CMD"; then
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16577 $as_echo "$MAGIC_CMD" >&6; }
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16580 $as_echo "no
" >&6; }
16593 # Use C for the default configuration in the libtool script
16597 ac_cpp='$CPP $CPPFLAGS'
16598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16603 # Source file extension for C test sources.
16606 # Object file extension for compiled C test sources.
16610 # Code to be used in simple compile tests
16611 lt_simple_compile_test_code="int some_variable
= 0;"
16613 # Code to be used in simple link tests
16614 lt_simple_link_test_code='int main(){return(0);}'
16622 # If no C compiler was specified, use CC.
16625 # If no C compiler flags were specified, use CFLAGS.
16626 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16628 # Allow CC to be a program name with arguments.
16631 # Save the default compiler, since it gets overwritten when the other
16632 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16633 compiler_DEFAULT=$CC
16635 # save warnings/boilerplate of simple test code
16636 ac_outfile=conftest.$ac_objext
16637 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16638 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16639 _lt_compiler_boilerplate=`cat conftest.err`
16642 ac_outfile=conftest.$ac_objext
16643 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16644 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16645 _lt_linker_boilerplate=`cat conftest.err`
16650 ## There is no encapsulation within the following macros, do not change
16651 ## the running order or otherwise move them around unless you know exactly
16652 ## what you are doing...
16653 if test -n "$compiler"; then
16655 lt_prog_compiler_no_builtin_flag=
16657 if test "$GCC" = yes; then
16658 case $cc_basename in
16660 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16662 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16666 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16667 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16668 $as_echo_n "(cached
) " >&6
16670 lt_cv_prog_compiler_rtti_exceptions=no
16671 ac_outfile=conftest.$ac_objext
16672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16673 lt_compiler_flag="-fno-rtti -fno-exceptions"
16674 # Insert the option either (1) after the last *FLAGS variable, or
16675 # (2) before a word containing "conftest.
", or (3) at the end.
16676 # Note that $ac_compile itself does not contain backslashes and begins
16677 # with a dollar sign (not a hyphen), so the echo should work correctly.
16678 # The option is referenced via a variable to avoid confusing sed.
16679 lt_compile=`echo "$ac_compile" | $SED \
16680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16682 -e 's:$: $lt_compiler_flag:'`
16683 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16684 (eval "$lt_compile" 2>conftest.err)
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16688 if (exit $ac_status) && test -s "$ac_outfile"; then
16689 # The compiler can only warn and ignore the option if not recognized
16690 # So say no if there are warnings other than the usual output.
16691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16694 lt_cv_prog_compiler_rtti_exceptions=yes
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16701 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16703 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16704 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16716 lt_prog_compiler_wl=
16717 lt_prog_compiler_pic=
16718 lt_prog_compiler_static=
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16721 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16723 if test "$GCC" = yes; then
16724 lt_prog_compiler_wl='-Wl,'
16725 lt_prog_compiler_static='-static'
16729 # All AIX code is PIC.
16730 if test "$host_cpu" = ia64; then
16731 # AIX 5 now supports IA64 processor
16732 lt_prog_compiler_static='-Bstatic'
16734 lt_prog_compiler_pic='-fPIC'
16740 # see comment about AmigaOS4 .so support
16741 lt_prog_compiler_pic='-fPIC'
16744 # FIXME: we need at least 68020 code to build shared libraries, but
16745 # adding the `-m68020' flag to GCC prevents building anything better,
16747 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16752 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16753 # PIC is the default for these OSes.
16756 mingw* | cygwin* | pw32* | os2* | cegcc*)
16757 # This hack is so that the source file can tell whether it is being
16758 # built for inclusion in a dll (and should export symbols for example).
16759 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16760 # (--disable-auto-import) libraries
16761 lt_prog_compiler_pic='-DDLL_EXPORT'
16764 darwin* | rhapsody*)
16765 # PIC is the default on this platform
16766 # Common symbols not allowed in MH_DYLIB files
16767 lt_prog_compiler_pic='-fno-common'
16771 # PIC is the default for Haiku.
16772 # The "-static" flag exists, but is broken.
16773 lt_prog_compiler_static=
16777 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16778 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16779 # sets the default TLS model and affects inlining.
16785 lt_prog_compiler_pic='-fPIC'
16791 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16792 # Instead, we relocate shared libraries at runtime.
16796 # Just because we use GCC doesn't mean we suddenly get shared libraries
16797 # on systems that don't support them.
16798 lt_prog_compiler_can_build_shared=no
16803 # QNX uses GNU C++, but need to define -shared option too, otherwise
16804 # it will coredump.
16805 lt_prog_compiler_pic='-fPIC -shared'
16809 if test -d /usr/nec; then
16810 lt_prog_compiler_pic=-Kconform_pic
16815 lt_prog_compiler_pic='-fPIC'
16819 case $cc_basename in
16820 nvcc*) # Cuda Compiler Driver 2.2
16821 lt_prog_compiler_wl='-Xlinker '
16822 lt_prog_compiler_pic='-Xcompiler -fPIC'
16826 # PORTME Check for flag to pass linker flags through the system compiler.
16829 lt_prog_compiler_wl='-Wl,'
16830 if test "$host_cpu" = ia64; then
16831 # AIX 5 now supports IA64 processor
16832 lt_prog_compiler_static='-Bstatic'
16834 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16838 mingw* | cygwin* | pw32* | os2* | cegcc*)
16839 # This hack is so that the source file can tell whether it is being
16840 # built for inclusion in a dll (and should export symbols for example).
16841 lt_prog_compiler_pic='-DDLL_EXPORT'
16844 hpux9* | hpux10* | hpux11*)
16845 lt_prog_compiler_wl='-Wl,'
16846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16847 # not for PA HP-UX.
16853 lt_prog_compiler_pic='+Z'
16856 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16857 lt_prog_compiler_static='${wl}-a ${wl}archive'
16860 irix5* | irix6* | nonstopux*)
16861 lt_prog_compiler_wl='-Wl,'
16862 # PIC (with -KPIC) is the default.
16863 lt_prog_compiler_static='-non_shared'
16866 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16867 case $cc_basename in
16868 # old Intel for x86_64 which still supported -KPIC.
16870 lt_prog_compiler_wl='-Wl,'
16871 lt_prog_compiler_pic='-KPIC'
16872 lt_prog_compiler_static='-static'
16874 # icc used to be incompatible with GCC.
16875 # ICC 10 doesn't accept -KPIC any more.
16877 lt_prog_compiler_wl='-Wl,'
16878 lt_prog_compiler_pic='-fPIC'
16879 lt_prog_compiler_static='-static'
16881 # Lahey Fortran 8.1.
16883 lt_prog_compiler_wl='-Wl,'
16884 lt_prog_compiler_pic='--shared'
16885 lt_prog_compiler_static='--static'
16887 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16888 # Portland Group compilers (*not* the Pentium gcc compiler,
16889 # which looks to be a dead project)
16890 lt_prog_compiler_wl='-Wl,'
16891 lt_prog_compiler_pic='-fpic'
16892 lt_prog_compiler_static='-Bstatic'
16895 lt_prog_compiler_wl='-Wl,'
16896 # All Alpha code is PIC.
16897 lt_prog_compiler_static='-non_shared'
16899 xl* | bgxl* | bgf* | mpixl*)
16900 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16901 lt_prog_compiler_wl='-Wl,'
16902 lt_prog_compiler_pic='-qpic'
16903 lt_prog_compiler_static='-qstaticlink'
16906 case `$CC -V 2>&1 | sed 5q` in
16907 *Sun\ F* | *Sun*Fortran*)
16908 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16909 lt_prog_compiler_pic='-KPIC'
16910 lt_prog_compiler_static='-Bstatic'
16911 lt_prog_compiler_wl=''
16915 lt_prog_compiler_pic='-KPIC'
16916 lt_prog_compiler_static='-Bstatic'
16917 lt_prog_compiler_wl='-Wl,'
16925 lt_prog_compiler_pic='-KPIC'
16926 lt_prog_compiler_static='-Bstatic'
16930 # QNX uses GNU C++, but need to define -shared option too, otherwise
16931 # it will coredump.
16932 lt_prog_compiler_pic='-fPIC -shared'
16935 osf3* | osf4* | osf5*)
16936 lt_prog_compiler_wl='-Wl,'
16937 # All OSF/1 code is PIC.
16938 lt_prog_compiler_static='-non_shared'
16942 lt_prog_compiler_static='-non_shared'
16946 lt_prog_compiler_pic='-KPIC'
16947 lt_prog_compiler_static='-Bstatic'
16948 case $cc_basename in
16949 f77* | f90* | f95*)
16950 lt_prog_compiler_wl='-Qoption ld ';;
16952 lt_prog_compiler_wl='-Wl,';;
16957 lt_prog_compiler_wl='-Qoption ld '
16958 lt_prog_compiler_pic='-PIC'
16959 lt_prog_compiler_static='-Bstatic'
16962 sysv4 | sysv4.2uw2* | sysv4.3*)
16963 lt_prog_compiler_wl='-Wl,'
16964 lt_prog_compiler_pic='-KPIC'
16965 lt_prog_compiler_static='-Bstatic'
16969 if test -d /usr/nec ;then
16970 lt_prog_compiler_pic='-Kconform_pic'
16971 lt_prog_compiler_static='-Bstatic'
16975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16976 lt_prog_compiler_wl='-Wl,'
16977 lt_prog_compiler_pic='-KPIC'
16978 lt_prog_compiler_static='-Bstatic'
16982 lt_prog_compiler_wl='-Wl,'
16983 lt_prog_compiler_can_build_shared=no
16987 lt_prog_compiler_pic='-pic'
16988 lt_prog_compiler_static='-Bstatic'
16992 lt_prog_compiler_can_build_shared=no
16998 # For platforms which do not support PIC, -DPIC is meaningless:
17000 lt_prog_compiler_pic=
17003 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17007 $as_echo "$lt_prog_compiler_pic" >&6; }
17015 # Check to make sure the PIC flag actually works.
17017 if test -n "$lt_prog_compiler_pic"; then
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17019 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17020 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17021 $as_echo_n "(cached
) " >&6
17023 lt_cv_prog_compiler_pic_works=no
17024 ac_outfile=conftest.$ac_objext
17025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17026 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17027 # Insert the option either (1) after the last *FLAGS variable, or
17028 # (2) before a word containing "conftest.
", or (3) at the end.
17029 # Note that $ac_compile itself does not contain backslashes and begins
17030 # with a dollar sign (not a hyphen), so the echo should work correctly.
17031 # The option is referenced via a variable to avoid confusing sed.
17032 lt_compile=`echo "$ac_compile" | $SED \
17033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17035 -e 's:$: $lt_compiler_flag:'`
17036 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17037 (eval "$lt_compile" 2>conftest.err)
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17041 if (exit $ac_status) && test -s "$ac_outfile"; then
17042 # The compiler can only warn and ignore the option if not recognized
17043 # So say no if there are warnings other than the usual output.
17044 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17046 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17047 lt_cv_prog_compiler_pic_works=yes
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17054 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17056 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17057 case $lt_prog_compiler_pic in
17059 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17062 lt_prog_compiler_pic=
17063 lt_prog_compiler_can_build_shared=no
17074 # Check to make sure the static flag actually works.
17076 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17078 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17079 if ${lt_cv_prog_compiler_static_works+:} false; then :
17080 $as_echo_n "(cached
) " >&6
17082 lt_cv_prog_compiler_static_works=no
17083 save_LDFLAGS="$LDFLAGS"
17084 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17085 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17087 # The linker can only warn and ignore the option if not recognized
17088 # So say no if there are warnings
17089 if test -s conftest.err; then
17090 # Append any errors to the config.log.
17091 cat conftest.err 1>&5
17092 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17094 if diff conftest.exp conftest.er2 >/dev/null; then
17095 lt_cv_prog_compiler_static_works=yes
17098 lt_cv_prog_compiler_static_works=yes
17102 LDFLAGS="$save_LDFLAGS"
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17106 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17108 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17111 lt_prog_compiler_static=
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17121 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17122 if ${lt_cv_prog_compiler_c_o+:} false; then :
17123 $as_echo_n "(cached
) " >&6
17125 lt_cv_prog_compiler_c_o=no
17126 $RM -r conftest 2>/dev/null
17130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17132 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17133 # Insert the option either (1) after the last *FLAGS variable, or
17134 # (2) before a word containing "conftest.
", or (3) at the end.
17135 # Note that $ac_compile itself does not contain backslashes and begins
17136 # with a dollar sign (not a hyphen), so the echo should work correctly.
17137 lt_compile=`echo "$ac_compile" | $SED \
17138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17140 -e 's:$: $lt_compiler_flag:'`
17141 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17142 (eval "$lt_compile" 2>out/conftest.err)
17144 cat out/conftest.err >&5
17145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17148 # The compiler can only warn and ignore the option if not recognized
17149 # So say no if there are warnings
17150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17153 lt_cv_prog_compiler_c_o=yes
17158 # SGI C++ compiler will create directory out/ii_files/ for
17159 # template instantiation
17160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17161 $RM out/* && rmdir out
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17176 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17177 if ${lt_cv_prog_compiler_c_o+:} false; then :
17178 $as_echo_n "(cached
) " >&6
17180 lt_cv_prog_compiler_c_o=no
17181 $RM -r conftest 2>/dev/null
17185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17187 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17188 # Insert the option either (1) after the last *FLAGS variable, or
17189 # (2) before a word containing "conftest.
", or (3) at the end.
17190 # Note that $ac_compile itself does not contain backslashes and begins
17191 # with a dollar sign (not a hyphen), so the echo should work correctly.
17192 lt_compile=`echo "$ac_compile" | $SED \
17193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17195 -e 's:$: $lt_compiler_flag:'`
17196 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17197 (eval "$lt_compile" 2>out/conftest.err)
17199 cat out/conftest.err >&5
17200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17203 # The compiler can only warn and ignore the option if not recognized
17204 # So say no if there are warnings
17205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17208 lt_cv_prog_compiler_c_o=yes
17213 # SGI C++ compiler will create directory out/ii_files/ for
17214 # template instantiation
17215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17216 $RM out/* && rmdir out
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17223 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17228 hard_links="nottested
"
17229 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17230 # do not overwrite the value of need_locks provided by the user
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17232 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17237 ln conftest.a conftest.b 2>&5 || hard_links=no
17238 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17240 $as_echo "$hard_links" >&6; }
17241 if test "$hard_links" = no; then
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17243 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17256 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17259 allow_undefined_flag=
17260 always_export_symbols=no
17262 archive_expsym_cmds=
17263 compiler_needs_object=no
17264 enable_shared_with_static_runtimes=no
17265 export_dynamic_flag_spec=
17266 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17267 hardcode_automatic=no
17269 hardcode_direct_absolute=no
17270 hardcode_libdir_flag_spec=
17271 hardcode_libdir_flag_spec_ld=
17272 hardcode_libdir_separator=
17273 hardcode_minus_L=no
17274 hardcode_shlibpath_var=unsupported
17276 link_all_deplibs=unknown
17278 module_expsym_cmds=
17279 old_archive_from_new_cmds=
17280 old_archive_from_expsyms_cmds=
17281 thread_safe_flag_spec=
17282 whole_archive_flag_spec=
17283 # include_expsyms should be a list of space-separated symbols to be *always*
17284 # included in the symbol list
17286 # exclude_expsyms can be an extended regexp of symbols to exclude
17287 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17288 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17289 # as well as any symbol that contains `d'.
17290 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17291 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17292 # platforms (ab)use it in PIC code, but their linkers get confused if
17293 # the symbol is explicitly referenced. Since portable code cannot
17294 # rely on this symbol name, it's probably fine to never include it in
17295 # preloaded symbol tables.
17296 # Exclude shared library initialization/finalization symbols.
17297 extract_expsyms_cmds=
17300 cygwin* | mingw* | pw32* | cegcc*)
17301 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17302 # When not using gcc, we currently assume that we are using
17303 # Microsoft Visual C++.
17304 if test "$GCC" != yes; then
17309 # we just hope/assume this is gcc and not c89 (= MSVC++)
17319 # On some targets, GNU ld is compatible enough with the native linker
17320 # that we're better off using the native interface for both.
17321 lt_use_gnu_ld_interface=no
17322 if test "$with_gnu_ld" = yes; then
17325 # The AIX port of GNU ld has always aspired to compatibility
17326 # with the native linker. However, as the warning in the GNU ld
17327 # block says, versions before 2.19.5* couldn't really create working
17328 # shared libraries, regardless of the interface used.
17329 case `$LD -v 2>&1` in
17330 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17331 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17332 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17334 lt_use_gnu_ld_interface=yes
17339 lt_use_gnu_ld_interface=yes
17344 if test "$lt_use_gnu_ld_interface" = yes; then
17345 # If archive_cmds runs LD, not CC, wlarc should be empty
17348 # Set some defaults for GNU ld with shared library support. These
17349 # are reset later if shared libraries are not supported. Putting them
17350 # here allows them to be overridden if necessary.
17351 runpath_var=LD_RUN_PATH
17352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17353 export_dynamic_flag_spec='${wl}--export-dynamic'
17354 # ancient GNU ld didn't support --whole-archive et. al.
17355 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17356 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17358 whole_archive_flag_spec=
17360 supports_anon_versioning=no
17361 case `$LD -v 2>&1` in
17362 *GNU\ gold*) supports_anon_versioning=yes ;;
17363 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17364 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17365 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17366 *\ 2.11.*) ;; # other 2.11 versions
17367 *) supports_anon_versioning=yes ;;
17370 # See if GNU ld supports shared libraries.
17373 # On AIX/PPC, the GNU linker is very broken
17374 if test "$host_cpu" != ia64; then
17378 *** Warning: the GNU linker, at least up to release 2.19, is reported
17379 *** to be unable to reliably create shared libraries on AIX.
17380 *** Therefore, libtool is disabling shared libraries support. If you
17381 *** really care for shared libraries, you may want to install binutils
17382 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17383 *** You will then need to restart the configuration process.
17392 # see comment about AmigaOS4 .so support
17393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17394 archive_expsym_cmds=''
17397 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)'
17398 hardcode_libdir_flag_spec
='-L$libdir'
17399 hardcode_minus_L
=yes
17405 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17406 allow_undefined_flag
=unsupported
17407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17408 # support --undefined. This deserves some investigation. FIXME
17409 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17415 cygwin
* | mingw
* | pw32
* | cegcc
*)
17416 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17417 # as there is no search path for DLLs.
17418 hardcode_libdir_flag_spec
='-L$libdir'
17419 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17420 allow_undefined_flag
=unsupported
17421 always_export_symbols
=no
17422 enable_shared_with_static_runtimes
=yes
17423 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17425 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17426 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17427 # If the export-symbols file already is a .def file (1st line
17428 # is EXPORTS), use it as is; otherwise, prepend...
17429 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17430 cp $export_symbols $output_objdir/$soname.def;
17432 echo EXPORTS > $output_objdir/$soname.def;
17433 cat $export_symbols >> $output_objdir/$soname.def;
17435 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17442 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17443 link_all_deplibs
=yes
17448 hardcode_shlibpath_var
=no
17449 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17450 export_dynamic_flag_spec
='${wl}-E'
17451 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17452 # Instead, shared libraries are loaded at an image base (0x10000000 by
17453 # default) and relocated if they conflict, which is a slow very memory
17454 # consuming and fragmenting process. To avoid this, we pick a random,
17455 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17456 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17457 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17458 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'
17461 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17463 if test "$host_os" = linux-dietlibc
; then
17464 case $cc_basename in
17465 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17468 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17469 && test "$tmp_diet" = no
17471 tmp_addflag
=' $pic_flag'
17472 tmp_sharedflag
='-shared'
17473 case $cc_basename,$host_cpu in
17474 pgcc
*) # Portland Group C compiler
17475 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'
17476 tmp_addflag
=' $pic_flag'
17478 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17479 # Portland Group f77 and f90 compilers
17480 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'
17481 tmp_addflag
=' $pic_flag -Mnomain' ;;
17482 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17483 tmp_addflag
=' -i_dynamic' ;;
17484 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17485 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17486 ifc
* | ifort
*) # Intel Fortran compiler
17487 tmp_addflag
=' -nofor_main' ;;
17488 lf95
*) # Lahey Fortran 8.1
17489 whole_archive_flag_spec
=
17490 tmp_sharedflag
='--shared' ;;
17491 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17492 tmp_sharedflag
='-qmkshrobj'
17494 nvcc
*) # Cuda Compiler Driver 2.2
17495 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'
17496 compiler_needs_object
=yes
17499 case `$CC -V 2>&1 | sed 5q` in
17500 *Sun\ C
*) # Sun C 5.9
17501 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'
17502 compiler_needs_object
=yes
17503 tmp_sharedflag
='-G' ;;
17504 *Sun\ F
*) # Sun Fortran 8.3
17505 tmp_sharedflag
='-G' ;;
17507 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17509 if test "x$supports_anon_versioning" = xyes
; then
17510 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17512 echo "local: *; };" >> $output_objdir/$libname.ver~
17513 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17516 case $cc_basename in
17517 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17518 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17519 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17520 hardcode_libdir_flag_spec
=
17521 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17522 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17523 if test "x$supports_anon_versioning" = xyes
; then
17524 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17525 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17526 echo "local: *; };" >> $output_objdir/$libname.ver~
17527 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17537 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17538 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17541 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17542 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17547 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17551 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17552 *** create shared libraries on Solaris systems. Therefore, libtool
17553 *** is disabling shared libraries support. We urge you to upgrade GNU
17554 *** binutils to release 2.9.1 or newer. Another option is to modify
17555 *** your PATH or compiler configuration so that the native linker is
17556 *** used, and then restart.
17559 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17560 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17561 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17567 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17568 case `$LD -v 2>&1` in
17569 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17573 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17574 *** reliably create shared libraries on SCO systems. Therefore, libtool
17575 *** is disabling shared libraries support. We urge you to upgrade GNU
17576 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17577 *** your PATH or compiler configuration so that the native linker is
17578 *** used, and then restart.
17583 # For security reasons, it is highly recommended that you always
17584 # use absolute paths for naming shared libraries, and exclude the
17585 # DT_RUNPATH tag from executables and libraries. But doing so
17586 # requires that you compile everything twice, which is a pain.
17587 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17588 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17589 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17590 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17599 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17601 hardcode_direct
=yes
17602 hardcode_shlibpath_var
=no
17606 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17607 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17608 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17615 if test "$ld_shlibs" = no
; then
17617 hardcode_libdir_flag_spec
=
17618 export_dynamic_flag_spec
=
17619 whole_archive_flag_spec
=
17622 # PORTME fill in a description of your system's linker (not GNU ld)
17625 allow_undefined_flag
=unsupported
17626 always_export_symbols
=yes
17627 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'
17628 # Note: this linker hardcodes the directories in LIBPATH if there
17629 # are no directories specified by -L.
17630 hardcode_minus_L
=yes
17631 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17632 # Neither direct hardcoding nor static linking is supported with a
17634 hardcode_direct
=unsupported
17639 if test "$host_cpu" = ia64
; then
17640 # On IA64, the linker does run time linking by default, so we don't
17641 # have to do anything special.
17642 aix_use_runtimelinking
=no
17643 exp_sym_flag
='-Bexport'
17646 # If we're using GNU nm, then we don't want the "-C" option.
17647 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17648 # Also, AIX nm treats weak defined symbols like other global
17649 # defined symbols, whereas GNU nm marks them as "W".
17650 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17651 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'
17653 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'
17655 aix_use_runtimelinking
=no
17657 # Test if we are trying to use run time linking or normal
17658 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17659 # need to do runtime linking.
17660 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17661 for ld_flag
in $LDFLAGS; do
17662 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17663 aix_use_runtimelinking
=yes
17670 exp_sym_flag
='-bexport'
17671 no_entry_flag
='-bnoentry'
17674 # When large executables or shared objects are built, AIX ld can
17675 # have problems creating the table of contents. If linking a library
17676 # or program results in "error TOC overflow" add -mminimal-toc to
17677 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17678 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17681 hardcode_direct
=yes
17682 hardcode_direct_absolute
=yes
17683 hardcode_libdir_separator
=':'
17684 link_all_deplibs
=yes
17685 file_list_spec
='${wl}-f,'
17687 if test "$GCC" = yes; then
17688 case $host_os in aix4.
[012]|aix4.
[012].
*)
17689 # We only want to do this on AIX 4.2 and lower, the check
17690 # below for broken collect2 doesn't work under 4.3+
17691 collect2name
=`${CC} -print-prog-name=collect2`
17692 if test -f "$collect2name" &&
17693 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17695 # We have reworked collect2
17698 # We have old collect2
17699 hardcode_direct
=unsupported
17700 # It fails to find uninstalled libraries when the uninstalled
17701 # path is not listed in the libpath. Setting hardcode_minus_L
17702 # to unsupported forces relinking
17703 hardcode_minus_L
=yes
17704 hardcode_libdir_flag_spec
='-L$libdir'
17705 hardcode_libdir_separator
=
17709 shared_flag
='-shared'
17710 if test "$aix_use_runtimelinking" = yes; then
17711 shared_flag
="$shared_flag "'${wl}-G'
17715 if test "$host_cpu" = ia64
; then
17716 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17717 # chokes on -Wl,-G. The following line is correct:
17720 if test "$aix_use_runtimelinking" = yes; then
17721 shared_flag
='${wl}-G'
17723 shared_flag
='${wl}-bM:SRE'
17728 export_dynamic_flag_spec
='${wl}-bexpall'
17729 # It seems that -bexpall does not export symbols beginning with
17730 # underscore (_), so it is better to generate a list of symbols to export.
17731 always_export_symbols
=yes
17732 if test "$aix_use_runtimelinking" = yes; then
17733 # Warning - without using the other runtime loading flags (-brtl),
17734 # -berok will link without error, but may produce a broken library.
17735 allow_undefined_flag
='-berok'
17736 # Determine the default libpath from the value encoded in an
17737 # empty executable.
17738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17749 if ac_fn_c_try_link
"$LINENO"; then :
17751 lt_aix_libpath_sed
='
17752 /Import File Strings/,/^$/ {
17758 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17759 # Check for a 64-bit object if we didn't find anything.
17760 if test -z "$aix_libpath"; then
17761 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17764 rm -f core conftest.err conftest.
$ac_objext \
17765 conftest
$ac_exeext conftest.
$ac_ext
17766 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17768 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17769 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"
17771 if test "$host_cpu" = ia64
; then
17772 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17773 allow_undefined_flag
="-z nodefs"
17774 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"
17776 # Determine the default libpath from the value encoded in an
17777 # empty executable.
17778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17779 /* end confdefs.h. */
17789 if ac_fn_c_try_link
"$LINENO"; then :
17791 lt_aix_libpath_sed
='
17792 /Import File Strings/,/^$/ {
17798 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17799 # Check for a 64-bit object if we didn't find anything.
17800 if test -z "$aix_libpath"; then
17801 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17804 rm -f core conftest.err conftest.
$ac_objext \
17805 conftest
$ac_exeext conftest.
$ac_ext
17806 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17808 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17809 # Warning - without using the other run time loading flags,
17810 # -berok will link without error, but may produce a broken library.
17811 no_undefined_flag
=' ${wl}-bernotok'
17812 allow_undefined_flag
=' ${wl}-berok'
17813 if test "$with_gnu_ld" = yes; then
17814 # We only use this code for GNU lds that support --whole-archive.
17815 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17817 # Exported symbols can be pulled into shared objects from archives
17818 whole_archive_flag_spec
='$convenience'
17820 archive_cmds_need_lc
=yes
17821 # This is similar to how AIX traditionally builds its shared libraries.
17822 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'
17830 # see comment about AmigaOS4 .so support
17831 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17832 archive_expsym_cmds
=''
17835 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)'
17836 hardcode_libdir_flag_spec
='-L$libdir'
17837 hardcode_minus_L
=yes
17843 export_dynamic_flag_spec
=-rdynamic
17846 cygwin
* | mingw
* | pw32
* | cegcc
*)
17847 # When not using gcc, we currently assume that we are using
17848 # Microsoft Visual C++.
17849 # hardcode_libdir_flag_spec is actually meaningless, as there is
17850 # no search path for DLLs.
17851 hardcode_libdir_flag_spec
=' '
17852 allow_undefined_flag
=unsupported
17853 # Tell ltmain to make .lib files, not .a files.
17855 # Tell ltmain to make .dll files, not .so files.
17857 # FIXME: Setting linknames here is a bad hack.
17858 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17859 # The linker will automatically build a .lib file if we build a DLL.
17860 old_archive_from_new_cmds
='true'
17861 # FIXME: Should let the user specify the lib program.
17862 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17863 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17864 enable_shared_with_static_runtimes
=yes
17867 darwin
* | rhapsody
*)
17870 archive_cmds_need_lc
=no
17872 hardcode_automatic
=yes
17873 hardcode_shlibpath_var
=unsupported
17874 if test "$lt_cv_ld_force_load" = "yes"; then
17875 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\"`'
17877 whole_archive_flag_spec
=''
17879 link_all_deplibs
=yes
17880 allow_undefined_flag
="$_lt_dar_allow_undefined"
17881 case $cc_basename in
17882 ifort
*) _lt_dar_can_shared
=yes ;;
17883 *) _lt_dar_can_shared
=$GCC ;;
17885 if test "$_lt_dar_can_shared" = "yes"; then
17886 output_verbose_link_cmd
=func_echo_all
17887 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17888 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17889 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}"
17890 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}"
17899 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17900 hardcode_libdir_flag_spec
='-L$libdir'
17901 hardcode_shlibpath_var
=no
17904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17905 # support. Future versions do this automatically, but an explicit c++rt0.o
17906 # does not break anything, and helps significantly (at the cost of a little
17909 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17910 hardcode_libdir_flag_spec
='-R$libdir'
17911 hardcode_direct
=yes
17912 hardcode_shlibpath_var
=no
17915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17917 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17918 hardcode_direct
=yes
17919 hardcode_minus_L
=yes
17920 hardcode_shlibpath_var
=no
17923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17924 freebsd
* | dragonfly
*)
17925 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17926 hardcode_libdir_flag_spec
='-R$libdir'
17927 hardcode_direct
=yes
17928 hardcode_shlibpath_var
=no
17932 if test "$GCC" = yes; then
17933 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'
17935 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'
17937 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17938 hardcode_libdir_separator
=:
17939 hardcode_direct
=yes
17941 # hardcode_minus_L: Not really in the search PATH,
17942 # but as the default location of the library.
17943 hardcode_minus_L
=yes
17944 export_dynamic_flag_spec
='${wl}-E'
17948 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17949 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17951 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17953 if test "$with_gnu_ld" = no
; then
17954 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17955 hardcode_libdir_flag_spec_ld
='+b $libdir'
17956 hardcode_libdir_separator
=:
17957 hardcode_direct
=yes
17958 hardcode_direct_absolute
=yes
17959 export_dynamic_flag_spec
='${wl}-E'
17960 # hardcode_minus_L: Not really in the search PATH,
17961 # but as the default location of the library.
17962 hardcode_minus_L
=yes
17967 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17970 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17973 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17976 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17982 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17985 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17989 # Older versions of the 11.00 compiler do not understand -b yet
17990 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17992 $as_echo_n "checking if $CC understands -b... " >&6; }
17993 if ${lt_cv_prog_compiler__b+:} false
; then :
17994 $as_echo_n "(cached) " >&6
17996 lt_cv_prog_compiler__b
=no
17997 save_LDFLAGS
="$LDFLAGS"
17998 LDFLAGS
="$LDFLAGS -b"
17999 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18000 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18001 # The linker can only warn and ignore the option if not recognized
18002 # So say no if there are warnings
18003 if test -s conftest.err
; then
18004 # Append any errors to the config.log.
18005 cat conftest.err
1>&5
18006 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18007 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18008 if diff conftest.exp conftest.er2
>/dev
/null
; then
18009 lt_cv_prog_compiler__b
=yes
18012 lt_cv_prog_compiler__b
=yes
18016 LDFLAGS
="$save_LDFLAGS"
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18020 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18022 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18023 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18025 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18031 if test "$with_gnu_ld" = no
; then
18032 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18033 hardcode_libdir_separator
=:
18038 hardcode_shlibpath_var
=no
18041 hardcode_direct
=yes
18042 hardcode_direct_absolute
=yes
18043 export_dynamic_flag_spec
='${wl}-E'
18045 # hardcode_minus_L: Not really in the search PATH,
18046 # but as the default location of the library.
18047 hardcode_minus_L
=yes
18053 irix5
* | irix6
* | nonstopux
*)
18054 if test "$GCC" = yes; then
18055 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'
18056 # Try to use the -exported_symbol ld option, if it does not
18057 # work, assume that -exports_file does not work either and
18058 # implicitly export all symbols.
18059 save_LDFLAGS
="$LDFLAGS"
18060 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18065 if ac_fn_c_try_link
"$LINENO"; then :
18066 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'
18069 rm -f core conftest.err conftest.
$ac_objext \
18070 conftest
$ac_exeext conftest.
$ac_ext
18071 LDFLAGS
="$save_LDFLAGS"
18073 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'
18074 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'
18076 archive_cmds_need_lc
='no'
18077 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18078 hardcode_libdir_separator
=:
18080 link_all_deplibs
=yes
18084 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18085 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18087 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18089 hardcode_libdir_flag_spec
='-R$libdir'
18090 hardcode_direct
=yes
18091 hardcode_shlibpath_var
=no
18095 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18096 hardcode_direct
=yes
18097 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18098 hardcode_libdir_separator
=:
18099 hardcode_shlibpath_var
=no
18106 if test -f /usr
/libexec
/ld.so
; then
18107 hardcode_direct
=yes
18108 hardcode_shlibpath_var
=no
18109 hardcode_direct_absolute
=yes
18110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18111 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18112 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18113 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18114 export_dynamic_flag_spec
='${wl}-E'
18117 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18118 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18119 hardcode_libdir_flag_spec
='-R$libdir'
18122 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18123 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18133 hardcode_libdir_flag_spec
='-L$libdir'
18134 hardcode_minus_L
=yes
18135 allow_undefined_flag
=unsupported
18136 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'
18137 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18141 if test "$GCC" = yes; then
18142 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18143 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'
18145 allow_undefined_flag
=' -expect_unresolved \*'
18146 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'
18148 archive_cmds_need_lc
='no'
18149 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18150 hardcode_libdir_separator
=:
18153 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18154 if test "$GCC" = yes; then
18155 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18156 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'
18157 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18159 allow_undefined_flag
=' -expect_unresolved \*'
18160 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'
18161 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~
18162 $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'
18164 # Both c and cxx compiler support -rpath directly
18165 hardcode_libdir_flag_spec
='-rpath $libdir'
18167 archive_cmds_need_lc
='no'
18168 hardcode_libdir_separator
=:
18172 no_undefined_flag
=' -z defs'
18173 if test "$GCC" = yes; then
18175 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18176 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18177 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18179 case `$CC -V 2>&1` in
18182 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18183 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18184 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18188 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18189 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18190 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18194 hardcode_libdir_flag_spec
='-R$libdir'
18195 hardcode_shlibpath_var
=no
18197 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18199 # The compiler driver will combine and reorder linker options,
18200 # but understands `-z linker_flag'. GCC discards it without `$wl',
18201 # but is careful enough not to reorder.
18202 # Supported since Solaris 2.6 (maybe 2.5.1?)
18203 if test "$GCC" = yes; then
18204 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18206 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18210 link_all_deplibs
=yes
18214 if test "x$host_vendor" = xsequent
; then
18215 # Use $CC to link under sequent, because it throws in some extra .o
18216 # files that make .init and .fini sections work.
18217 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18219 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18221 hardcode_libdir_flag_spec
='-L$libdir'
18222 hardcode_direct
=yes
18223 hardcode_minus_L
=yes
18224 hardcode_shlibpath_var
=no
18228 case $host_vendor in
18230 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18231 hardcode_direct
=yes # is this really true???
18234 ## LD is ld it makes a PLAMLIB
18235 ## CC just makes a GrossModule.
18236 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18237 reload_cmds
='$CC -r -o $output$reload_objs'
18241 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18242 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18245 runpath_var
='LD_RUN_PATH'
18246 hardcode_shlibpath_var
=no
18250 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18251 hardcode_shlibpath_var
=no
18252 export_dynamic_flag_spec
='-Bexport'
18256 if test -d /usr
/nec
; then
18257 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18258 hardcode_shlibpath_var
=no
18259 runpath_var
=LD_RUN_PATH
18260 hardcode_runpath_var
=yes
18265 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18266 no_undefined_flag
='${wl}-z,text'
18267 archive_cmds_need_lc
=no
18268 hardcode_shlibpath_var
=no
18269 runpath_var
='LD_RUN_PATH'
18271 if test "$GCC" = yes; then
18272 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18273 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18275 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18280 sysv5
* | sco3.2v5
* | sco5v6
*)
18281 # Note: We can NOT use -z defs as we might desire, because we do not
18282 # link with -lc, and that would cause any symbols used from libc to
18283 # always be unresolved, which means just about no library would
18284 # ever link correctly. If we're not using GNU ld we use -z text
18285 # though, which does catch some bad symbols but isn't as heavy-handed
18287 no_undefined_flag
='${wl}-z,text'
18288 allow_undefined_flag
='${wl}-z,nodefs'
18289 archive_cmds_need_lc
=no
18290 hardcode_shlibpath_var
=no
18291 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18292 hardcode_libdir_separator
=':'
18293 link_all_deplibs
=yes
18294 export_dynamic_flag_spec
='${wl}-Bexport'
18295 runpath_var
='LD_RUN_PATH'
18297 if test "$GCC" = yes; then
18298 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18299 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18301 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18302 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18308 hardcode_libdir_flag_spec
='-L$libdir'
18309 hardcode_shlibpath_var
=no
18317 if test x
$host_vendor = xsni
; then
18319 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18320 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18327 $as_echo "$ld_shlibs" >&6; }
18328 test "$ld_shlibs" = no
&& can_build_shared
=no
18330 with_gnu_ld
=$with_gnu_ld
18347 # Do we need to explicitly link libc?
18349 case "x$archive_cmds_need_lc" in
18351 # Assume -lc should be added
18352 archive_cmds_need_lc
=yes
18354 if test "$enable_shared" = yes && test "$GCC" = yes; then
18355 case $archive_cmds in
18357 # FIXME: we may have to deal with multi-command sequences.
18360 # Test whether the compiler implicitly links with -lc since on some
18361 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18362 # to ld, don't add -lc before -lgcc.
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18364 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18365 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18366 $as_echo_n "(cached) " >&6
18369 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18372 (eval $ac_compile) 2>&5
18374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18375 test $ac_status = 0; } 2>conftest.err
; then
18378 libobjs
=conftest.
$ac_objext
18380 wl
=$lt_prog_compiler_wl
18381 pic_flag
=$lt_prog_compiler_pic
18387 lt_save_allow_undefined_flag
=$allow_undefined_flag
18388 allow_undefined_flag
=
18389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18390 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18393 test $ac_status = 0; }
18395 lt_cv_archive_cmds_need_lc
=no
18397 lt_cv_archive_cmds_need_lc
=yes
18399 allow_undefined_flag
=$lt_save_allow_undefined_flag
18401 cat conftest.err
1>&5
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18407 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18408 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18572 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18574 if test "$GCC" = yes; then
18576 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18577 *) lt_awk_arg
="/^libraries:/" ;;
18580 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18581 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18583 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18584 case $lt_search_path_spec in
18586 # if the path contains ";" then we assume it to be the separator
18587 # otherwise default to the standard path separator (i.e. ":") - it is
18588 # assumed that no part of a normal pathname contains ";" but that should
18589 # okay in the real world where ";" in dirpaths is itself problematic.
18590 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18593 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18596 # Ok, now we have the path, separated by spaces, we can step through it
18597 # and add multilib dir if necessary.
18598 lt_tmp_lt_search_path_spec
=
18599 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18600 for lt_sys_path
in $lt_search_path_spec; do
18601 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18602 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18604 test -d "$lt_sys_path" && \
18605 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18608 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18609 BEGIN {RS=" "; FS="/|\n";} {
18612 for (lt_i = NF; lt_i > 0; lt_i--) {
18613 if ($lt_i != "" && $lt_i != ".") {
18614 if ($lt_i == "..") {
18617 if (lt_count == 0) {
18618 lt_foo="/" $lt_i lt_foo;
18625 if (lt_foo != "") { lt_freq[lt_foo]++; }
18626 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18628 # AWK program above erroneously prepends '/' to C:/dos/paths
18631 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18632 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18634 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18636 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18638 library_names_spec
=
18639 libname_spec
='lib$name'
18643 postuninstall_cmds
=
18647 shlibpath_overrides_runpath
=unknown
18649 dynamic_linker
="$host_os ld.so"
18650 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18651 need_lib_prefix
=unknown
18652 hardcode_into_libs
=no
18654 # when you set need_version to no, make sure it does not cause -set_version
18655 # flags to be left without arguments
18656 need_version
=unknown
18661 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18662 shlibpath_var
=LIBPATH
18664 # AIX 3 has no versioning support, so we append a major version to the name.
18665 soname_spec
='${libname}${release}${shared_ext}$major'
18672 hardcode_into_libs
=yes
18673 if test "$host_cpu" = ia64
; then
18674 # AIX 5 supports IA64
18675 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18676 shlibpath_var
=LD_LIBRARY_PATH
18678 # With GCC up to 2.95.x, collect2 would create an import file
18679 # for dependence libraries. The import file would start with
18680 # the line `#! .'. This would cause the generated library to
18681 # depend on `.', always an invalid library. This was fixed in
18682 # development snapshots of GCC prior to 3.0.
18684 aix4 | aix4.
[01] | aix4.
[01].
*)
18685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18687 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18690 can_build_shared
=no
18694 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18695 # soname into executable. Probably we can add versioning support to
18696 # collect2, so additional links can be useful in future.
18697 if test "$aix_use_runtimelinking" = yes; then
18698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18699 # instead of lib<name>.a to let people know that these are not
18700 # typical AIX shared libraries.
18701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18703 # We preserve .a as extension for shared libraries through AIX4.2
18704 # and later when we are not doing run time linking.
18705 library_names_spec
='${libname}${release}.a $libname.a'
18706 soname_spec
='${libname}${release}${shared_ext}$major'
18708 shlibpath_var
=LIBPATH
18715 # Since July 2007 AmigaOS4 officially supports .so libraries.
18716 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18720 library_names_spec
='$libname.ixlibrary $libname.a'
18721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18722 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'
18728 library_names_spec
='${libname}${shared_ext}'
18729 dynamic_linker
="$host_os ld.so"
18730 shlibpath_var
=LIBRARY_PATH
18736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737 soname_spec
='${libname}${release}${shared_ext}$major'
18738 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18739 shlibpath_var
=LD_LIBRARY_PATH
18740 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18741 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18742 # the default ld.so.conf also contains /usr/contrib/lib and
18743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18744 # libtool to hard-code these into programs
18747 cygwin
* | mingw
* | pw32
* | cegcc
*)
18748 version_type
=windows
18753 case $GCC,$host_os in
18754 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18755 library_names_spec
='$libname.dll.a'
18756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18757 postinstall_cmds
='base_file=`basename \${file}`~
18758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18759 dldir=$destdir/`dirname \$dlpath`~
18760 test -d \$dldir || mkdir -p \$dldir~
18761 $install_prog $dir/$dlname \$dldir/$dlname~
18762 chmod a+x \$dldir/$dlname~
18763 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18764 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18766 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18767 dlpath=$dir/\$dldll~
18769 shlibpath_overrides_runpath
=yes
18773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18774 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18776 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18779 # MinGW DLLs use traditional 'lib' prefix
18780 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18783 # pw32 DLLs use 'pw' prefix rather than 'lib'
18784 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18790 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18793 dynamic_linker
='Win32 ld.exe'
18794 # FIXME: first we should search . and the directory the executable is in
18798 darwin
* | rhapsody
*)
18799 dynamic_linker
="$host_os dyld"
18800 version_type
=darwin
18803 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18804 soname_spec
='${libname}${release}${major}$shared_ext'
18805 shlibpath_overrides_runpath
=yes
18806 shlibpath_var
=DYLD_LIBRARY_PATH
18807 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18809 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18810 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18818 soname_spec
='${libname}${release}${shared_ext}$major'
18819 shlibpath_var
=LD_LIBRARY_PATH
18822 freebsd
* | dragonfly
*)
18823 # DragonFly does not have aout. When/if they implement a new
18824 # versioning mechanism, adjust this.
18825 if test -x /usr
/bin
/objformat
; then
18826 objformat
=`/usr/bin/objformat`
18829 freebsd
[23].
*) objformat
=aout
;;
18830 *) objformat
=elf
;;
18833 version_type
=freebsd-
$objformat
18834 case $version_type in
18836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18841 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18845 shlibpath_var
=LD_LIBRARY_PATH
18848 shlibpath_overrides_runpath
=yes
18850 freebsd3.
[01]* | freebsdelf3.
[01]*)
18851 shlibpath_overrides_runpath
=yes
18852 hardcode_into_libs
=yes
18854 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18855 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18856 shlibpath_overrides_runpath
=no
18857 hardcode_into_libs
=yes
18859 *) # from 4.6 on, and DragonFly
18860 shlibpath_overrides_runpath
=yes
18861 hardcode_into_libs
=yes
18870 dynamic_linker
="$host_os runtime_loader"
18871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18872 soname_spec
='${libname}${release}${shared_ext}$major'
18873 shlibpath_var
=LIBRARY_PATH
18874 shlibpath_overrides_runpath
=yes
18875 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18876 hardcode_into_libs
=yes
18879 hpux9
* | hpux10
* | hpux11
*)
18880 # Give a soname corresponding to the major version so that dld.sl refuses to
18881 # link against other versions.
18888 hardcode_into_libs
=yes
18889 dynamic_linker
="$host_os dld.so"
18890 shlibpath_var
=LD_LIBRARY_PATH
18891 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18893 soname_spec
='${libname}${release}${shared_ext}$major'
18894 if test "X$HPUX_IA64_MODE" = X32
; then
18895 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18897 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18899 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18903 hardcode_into_libs
=yes
18904 dynamic_linker
="$host_os dld.sl"
18905 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18906 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18908 soname_spec
='${libname}${release}${shared_ext}$major'
18909 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18910 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18914 dynamic_linker
="$host_os dld.sl"
18915 shlibpath_var
=SHLIB_PATH
18916 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18918 soname_spec
='${libname}${release}${shared_ext}$major'
18921 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18922 postinstall_cmds
='chmod 555 $lib'
18923 # or fails outright, so override atomically:
18924 install_override_mode
=555
18931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18932 soname_spec
='${libname}${release}${shared_ext}$major'
18933 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18934 shlibpath_var
=LD_LIBRARY_PATH
18935 shlibpath_overrides_runpath
=no
18936 hardcode_into_libs
=yes
18939 irix5
* | irix6
* | nonstopux
*)
18941 nonstopux
*) version_type
=nonstopux
;;
18943 if test "$lt_cv_prog_gnu_ld" = yes; then
18951 soname_spec
='${libname}${release}${shared_ext}$major'
18952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18954 irix5
* | nonstopux
*)
18955 libsuff
= shlibsuff
=
18958 case $LD in # libtool.m4 will add one of these switches to LD
18959 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18960 libsuff
= shlibsuff
= libmagic
=32-bit;;
18961 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18962 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18963 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18964 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18965 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18969 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18970 shlibpath_overrides_runpath
=no
18971 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18972 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18973 hardcode_into_libs
=yes
18976 # No shared lib support for Linux oldld, aout, or coff.
18977 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18981 # This must be Linux ELF.
18983 # uclinux* changes (here and below) have been submitted to the libtool
18984 # project, but have not yet been accepted: they are GCC-local changes
18985 # for the time being. (See
18986 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18987 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
18991 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18992 soname_spec
='${libname}${release}${shared_ext}$major'
18993 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18994 shlibpath_var
=LD_LIBRARY_PATH
18995 shlibpath_overrides_runpath
=no
18997 # Some binutils ld are patched to set DT_RUNPATH
18998 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18999 $as_echo_n "(cached) " >&6
19001 lt_cv_shlibpath_overrides_runpath
=no
19002 save_LDFLAGS
=$LDFLAGS
19003 save_libdir
=$libdir
19004 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19005 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19007 /* end confdefs.h. */
19017 if ac_fn_c_try_link
"$LINENO"; then :
19018 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19019 lt_cv_shlibpath_overrides_runpath
=yes
19022 rm -f core conftest.err conftest.
$ac_objext \
19023 conftest
$ac_exeext conftest.
$ac_ext
19024 LDFLAGS
=$save_LDFLAGS
19025 libdir
=$save_libdir
19029 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19031 # This implies no fast_install, which is unacceptable.
19032 # Some rework will be needed to allow for fast_install
19033 # before this can be enabled.
19034 hardcode_into_libs
=yes
19036 # Append ld.so.conf contents to the search path
19037 if test -f /etc
/ld.so.conf
; then
19038 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' ' '`
19039 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19042 # We used to test for /lib/ld.so.1 and disable shared libraries on
19043 # powerpc, because MkLinux only supported shared libraries with the
19044 # GNU dynamic linker. Since this was broken with cross compilers,
19045 # most powerpc-linux boxes support dynamic linking these days and
19046 # people can always --disable-shared, the test was removed, and we
19047 # assume the GNU/Linux dynamic linker is in use.
19048 dynamic_linker
='GNU/Linux ld.so'
19055 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19057 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19058 dynamic_linker
='NetBSD (a.out) ld.so'
19060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19061 soname_spec
='${libname}${release}${shared_ext}$major'
19062 dynamic_linker
='NetBSD ld.elf_so'
19064 shlibpath_var
=LD_LIBRARY_PATH
19065 shlibpath_overrides_runpath
=yes
19066 hardcode_into_libs
=yes
19071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19072 shlibpath_var
=LD_LIBRARY_PATH
19073 shlibpath_overrides_runpath
=yes
19080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19081 soname_spec
='${libname}${release}${shared_ext}$major'
19082 shlibpath_var
=LD_LIBRARY_PATH
19083 shlibpath_overrides_runpath
=no
19084 hardcode_into_libs
=yes
19085 dynamic_linker
='ldqnx.so'
19090 sys_lib_dlsearch_path_spec
="/usr/lib"
19092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19094 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19095 *) need_version
=no
;;
19097 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19098 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19099 shlibpath_var
=LD_LIBRARY_PATH
19100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19102 openbsd2.
[89] | openbsd2.
[89].
*)
19103 shlibpath_overrides_runpath
=no
19106 shlibpath_overrides_runpath
=yes
19110 shlibpath_overrides_runpath
=yes
19115 libname_spec
='$name'
19118 library_names_spec
='$libname${shared_ext} $libname.a'
19119 dynamic_linker
='OS/2 ld.exe'
19120 shlibpath_var
=LIBPATH
19123 osf3
* | osf4
* | osf5
*)
19127 soname_spec
='${libname}${release}${shared_ext}$major'
19128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19129 shlibpath_var
=LD_LIBRARY_PATH
19130 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19131 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19143 soname_spec
='${libname}${release}${shared_ext}$major'
19144 shlibpath_var
=LD_LIBRARY_PATH
19145 shlibpath_overrides_runpath
=yes
19146 hardcode_into_libs
=yes
19147 # ldd complains unless libraries are executable
19148 postinstall_cmds
='chmod +x $lib'
19153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19154 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19155 shlibpath_var
=LD_LIBRARY_PATH
19156 shlibpath_overrides_runpath
=yes
19157 if test "$with_gnu_ld" = yes; then
19165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19166 soname_spec
='${libname}${release}${shared_ext}$major'
19167 shlibpath_var
=LD_LIBRARY_PATH
19168 case $host_vendor in
19170 shlibpath_overrides_runpath
=no
19172 runpath_var
=LD_RUN_PATH
19180 shlibpath_overrides_runpath
=no
19181 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19187 if test -d /usr
/nec
;then
19189 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19190 soname_spec
='$libname${shared_ext}.$major'
19191 shlibpath_var
=LD_LIBRARY_PATH
19195 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19196 version_type
=freebsd-elf
19199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19200 soname_spec
='${libname}${release}${shared_ext}$major'
19201 shlibpath_var
=LD_LIBRARY_PATH
19202 shlibpath_overrides_runpath
=yes
19203 hardcode_into_libs
=yes
19204 if test "$with_gnu_ld" = yes; then
19205 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19207 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19210 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19214 sys_lib_dlsearch_path_spec
='/usr/lib'
19218 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19223 shlibpath_var
=LD_LIBRARY_PATH
19224 shlibpath_overrides_runpath
=no
19225 hardcode_into_libs
=yes
19230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19231 soname_spec
='${libname}${release}${shared_ext}$major'
19232 shlibpath_var
=LD_LIBRARY_PATH
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19240 $as_echo "$dynamic_linker" >&6; }
19241 test "$dynamic_linker" = no
&& can_build_shared
=no
19243 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19244 if test "$GCC" = yes; then
19245 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19248 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19249 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19251 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19252 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19347 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19349 if test -n "$hardcode_libdir_flag_spec" ||
19350 test -n "$runpath_var" ||
19351 test "X$hardcode_automatic" = "Xyes" ; then
19353 # We can hardcode non-existent directories.
19354 if test "$hardcode_direct" != no
&&
19355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19356 # have to relink, otherwise we might link with an installed library
19357 # when we should be linking with a yet-to-be-installed one
19358 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19359 test "$hardcode_minus_L" != no
; then
19360 # Linking always hardcodes the temporary library directory.
19361 hardcode_action
=relink
19363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19364 hardcode_action
=immediate
19367 # We cannot hardcode anything, or else we can only hardcode existing
19369 hardcode_action
=unsupported
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19372 $as_echo "$hardcode_action" >&6; }
19374 if test "$hardcode_action" = relink ||
19375 test "$inherit_rpath" = yes; then
19376 # Fast installation is not supported
19377 enable_fast_install
=no
19378 elif test "$shlibpath_overrides_runpath" = yes ||
19379 test "$enable_shared" = no
; then
19380 # Fast installation is not necessary
19381 enable_fast_install
=needless
19389 if test "x$enable_dlopen" != xyes
; then
19390 enable_dlopen
=unknown
19391 enable_dlopen_self
=unknown
19392 enable_dlopen_self_static
=unknown
19399 lt_cv_dlopen
="load_add_on"
19401 lt_cv_dlopen_self
=yes
19404 mingw
* | pw32
* | cegcc
*)
19405 lt_cv_dlopen
="LoadLibrary"
19410 lt_cv_dlopen
="dlopen"
19415 # if libdl is installed we need to link against it
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19417 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19418 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19419 $as_echo_n "(cached) " >&6
19421 ac_check_lib_save_LIBS
=$LIBS
19423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h. */
19426 /* Override any GCC internal prototype to avoid an error.
19427 Use char because int might match the return type of a GCC
19428 builtin and then its argument prototype would still apply. */
19441 if ac_fn_c_try_link
"$LINENO"; then :
19442 ac_cv_lib_dl_dlopen
=yes
19444 ac_cv_lib_dl_dlopen
=no
19446 rm -f core conftest.err conftest.
$ac_objext \
19447 conftest
$ac_exeext conftest.
$ac_ext
19448 LIBS
=$ac_check_lib_save_LIBS
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19451 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19452 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19453 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19456 lt_cv_dlopen
="dyld"
19458 lt_cv_dlopen_self
=yes
19465 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19466 if test "x$ac_cv_func_shl_load" = xyes
; then :
19467 lt_cv_dlopen
="shl_load"
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19470 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19471 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19472 $as_echo_n "(cached) " >&6
19474 ac_check_lib_save_LIBS
=$LIBS
19476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h. */
19479 /* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19489 return shl_load ();
19494 if ac_fn_c_try_link
"$LINENO"; then :
19495 ac_cv_lib_dld_shl_load
=yes
19497 ac_cv_lib_dld_shl_load
=no
19499 rm -f core conftest.err conftest.
$ac_objext \
19500 conftest
$ac_exeext conftest.
$ac_ext
19501 LIBS
=$ac_check_lib_save_LIBS
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19504 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19505 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19506 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19508 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19509 if test "x$ac_cv_func_dlopen" = xyes
; then :
19510 lt_cv_dlopen
="dlopen"
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19513 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19514 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19515 $as_echo_n "(cached) " >&6
19517 ac_check_lib_save_LIBS
=$LIBS
19519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19520 /* end confdefs.h. */
19522 /* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19537 if ac_fn_c_try_link
"$LINENO"; then :
19538 ac_cv_lib_dl_dlopen
=yes
19540 ac_cv_lib_dl_dlopen
=no
19542 rm -f core conftest.err conftest.
$ac_objext \
19543 conftest
$ac_exeext conftest.
$ac_ext
19544 LIBS
=$ac_check_lib_save_LIBS
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19547 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19548 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19549 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19552 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19553 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19554 $as_echo_n "(cached) " >&6
19556 ac_check_lib_save_LIBS
=$LIBS
19557 LIBS
="-lsvld $LIBS"
19558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19559 /* end confdefs.h. */
19561 /* Override any GCC internal prototype to avoid an error.
19562 Use char because int might match the return type of a GCC
19563 builtin and then its argument prototype would still apply. */
19576 if ac_fn_c_try_link
"$LINENO"; then :
19577 ac_cv_lib_svld_dlopen
=yes
19579 ac_cv_lib_svld_dlopen
=no
19581 rm -f core conftest.err conftest.
$ac_objext \
19582 conftest
$ac_exeext conftest.
$ac_ext
19583 LIBS
=$ac_check_lib_save_LIBS
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19586 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19587 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19588 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19591 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19592 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19593 $as_echo_n "(cached) " >&6
19595 ac_check_lib_save_LIBS
=$LIBS
19597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19598 /* end confdefs.h. */
19600 /* Override any GCC internal prototype to avoid an error.
19601 Use char because int might match the return type of a GCC
19602 builtin and then its argument prototype would still apply. */
19610 return dld_link ();
19615 if ac_fn_c_try_link
"$LINENO"; then :
19616 ac_cv_lib_dld_dld_link
=yes
19618 ac_cv_lib_dld_dld_link
=no
19620 rm -f core conftest.err conftest.
$ac_objext \
19621 conftest
$ac_exeext conftest.
$ac_ext
19622 LIBS
=$ac_check_lib_save_LIBS
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19625 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19626 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19627 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19648 if test "x$lt_cv_dlopen" != xno
; then
19654 case $lt_cv_dlopen in
19656 save_CPPFLAGS
="$CPPFLAGS"
19657 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19659 save_LDFLAGS
="$LDFLAGS"
19660 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19663 LIBS
="$lt_cv_dlopen_libs $LIBS"
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19666 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19667 if ${lt_cv_dlopen_self+:} false
; then :
19668 $as_echo_n "(cached) " >&6
19670 if test "$cross_compiling" = yes; then :
19671 lt_cv_dlopen_self
=cross
19673 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19674 lt_status
=$lt_dlunknown
19675 cat > conftest.
$ac_ext <<_LT_EOF
19676 #line 19676 "configure"
19677 #include "confdefs.h"
19686 # define LT_DLGLOBAL RTLD_GLOBAL
19689 # define LT_DLGLOBAL DL_GLOBAL
19691 # define LT_DLGLOBAL 0
19695 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19696 find out it does not work in some platform. */
19697 #ifndef LT_DLLAZY_OR_NOW
19699 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19702 # define LT_DLLAZY_OR_NOW DL_LAZY
19705 # define LT_DLLAZY_OR_NOW RTLD_NOW
19708 # define LT_DLLAZY_OR_NOW DL_NOW
19710 # define LT_DLLAZY_OR_NOW 0
19717 /* When -fvisbility=hidden is used, assume the code has been annotated
19718 correspondingly for the symbols needed. */
19719 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19720 void fnord () __attribute__((visibility("default")));
19723 void fnord () { int i=42; }
19726 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19727 int status = $lt_dlunknown;
19731 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19734 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19735 else puts (dlerror ());
19737 /* dlclose (self); */
19745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19746 (eval $ac_link) 2>&5
19748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19749 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19750 (.
/conftest
; exit; ) >&5 2>/dev
/null
19752 case x
$lt_status in
19753 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19754 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19755 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19758 # compilation failed
19759 lt_cv_dlopen_self
=no
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19767 $as_echo "$lt_cv_dlopen_self" >&6; }
19769 if test "x$lt_cv_dlopen_self" = xyes
; then
19770 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19772 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19773 if ${lt_cv_dlopen_self_static+:} false
; then :
19774 $as_echo_n "(cached) " >&6
19776 if test "$cross_compiling" = yes; then :
19777 lt_cv_dlopen_self_static
=cross
19779 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19780 lt_status
=$lt_dlunknown
19781 cat > conftest.
$ac_ext <<_LT_EOF
19782 #line 19782 "configure"
19783 #include "confdefs.h"
19792 # define LT_DLGLOBAL RTLD_GLOBAL
19795 # define LT_DLGLOBAL DL_GLOBAL
19797 # define LT_DLGLOBAL 0
19801 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19802 find out it does not work in some platform. */
19803 #ifndef LT_DLLAZY_OR_NOW
19805 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19808 # define LT_DLLAZY_OR_NOW DL_LAZY
19811 # define LT_DLLAZY_OR_NOW RTLD_NOW
19814 # define LT_DLLAZY_OR_NOW DL_NOW
19816 # define LT_DLLAZY_OR_NOW 0
19823 /* When -fvisbility=hidden is used, assume the code has been annotated
19824 correspondingly for the symbols needed. */
19825 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19826 void fnord () __attribute__((visibility("default")));
19829 void fnord () { int i=42; }
19832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19833 int status = $lt_dlunknown;
19837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19840 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19841 else puts (dlerror ());
19843 /* dlclose (self); */
19851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19852 (eval $ac_link) 2>&5
19854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19855 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19856 (.
/conftest
; exit; ) >&5 2>/dev
/null
19858 case x
$lt_status in
19859 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19860 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19861 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19864 # compilation failed
19865 lt_cv_dlopen_self_static
=no
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19873 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19876 CPPFLAGS
="$save_CPPFLAGS"
19877 LDFLAGS
="$save_LDFLAGS"
19882 case $lt_cv_dlopen_self in
19883 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19884 *) enable_dlopen_self
=unknown
;;
19887 case $lt_cv_dlopen_self_static in
19888 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19889 *) enable_dlopen_self_static
=unknown
;;
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19912 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19913 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19914 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19915 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19917 $as_echo "yes" >&6; }
19919 # FIXME - insert some real tests, host_os isn't really good enough
19922 if test -n "$STRIP" ; then
19923 striplib
="$STRIP -x"
19924 old_striplib
="$STRIP -S"
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19926 $as_echo "yes" >&6; }
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19929 $as_echo "no" >&6; }
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19934 $as_echo "no" >&6; }
19950 # Report which library types will actually be built
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19952 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19954 $as_echo "$can_build_shared" >&6; }
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19957 $as_echo_n "checking whether to build shared libraries... " >&6; }
19958 test "$can_build_shared" = "no" && enable_shared
=no
19960 # On AIX, shared libraries and static libraries use the same namespace, and
19961 # are all built from PIC.
19964 test "$enable_shared" = yes && enable_static
=no
19965 if test -n "$RANLIB"; then
19966 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19967 postinstall_cmds
='$RANLIB $lib'
19972 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19973 test "$enable_shared" = yes && enable_static
=no
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19978 $as_echo "$enable_shared" >&6; }
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19981 $as_echo_n "checking whether to build static libraries... " >&6; }
19982 # Make sure either enable_shared or enable_static is yes.
19983 test "$enable_shared" = yes || enable_static
=yes
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19985 $as_echo "$enable_static" >&6; }
19992 ac_cpp
='$CXXCPP $CPPFLAGS'
19993 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19994 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19995 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19999 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20000 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20001 (test "X$CXX" != "Xg++"))) ; then
20003 ac_cpp
='$CXXCPP $CPPFLAGS'
20004 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20005 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20006 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20008 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20009 if test -z "$CXXCPP"; then
20010 if ${ac_cv_prog_CXXCPP+:} false
; then :
20011 $as_echo_n "(cached) " >&6
20013 # Double quotes because CXXCPP needs to be expanded
20014 for CXXCPP
in "$CXX -E" "/lib/cpp"
20016 ac_preproc_ok
=false
20017 for ac_cxx_preproc_warn_flag
in '' yes
20019 # Use a header file that comes with gcc, so configuring glibc
20020 # with a fresh cross-compiler works.
20021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20022 # <limits.h> exists even on freestanding compilers.
20023 # On the NeXT, cc -E runs the code through the compiler's parser,
20024 # not just through cpp. "Syntax error" is here to catch this case.
20025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20026 /* end confdefs.h. */
20028 # include <limits.h>
20030 # include <assert.h>
20034 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20037 # Broken: fails on valid input.
20040 rm -f conftest.err conftest.i conftest.
$ac_ext
20042 # OK, works on sane cases. Now check whether nonexistent headers
20043 # can be detected and how.
20044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20045 /* end confdefs.h. */
20046 #include <ac_nonexistent.h>
20048 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20049 # Broken: success on invalid input.
20052 # Passes both tests.
20056 rm -f conftest.err conftest.i conftest.
$ac_ext
20059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20060 rm -f conftest.i conftest.err conftest.
$ac_ext
20061 if $ac_preproc_ok; then :
20066 ac_cv_prog_CXXCPP
=$CXXCPP
20069 CXXCPP
=$ac_cv_prog_CXXCPP
20071 ac_cv_prog_CXXCPP
=$CXXCPP
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20074 $as_echo "$CXXCPP" >&6; }
20075 ac_preproc_ok
=false
20076 for ac_cxx_preproc_warn_flag
in '' yes
20078 # Use a header file that comes with gcc, so configuring glibc
20079 # with a fresh cross-compiler works.
20080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20081 # <limits.h> exists even on freestanding compilers.
20082 # On the NeXT, cc -E runs the code through the compiler's parser,
20083 # not just through cpp. "Syntax error" is here to catch this case.
20084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20085 /* end confdefs.h. */
20087 # include <limits.h>
20089 # include <assert.h>
20093 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20096 # Broken: fails on valid input.
20099 rm -f conftest.err conftest.i conftest.
$ac_ext
20101 # OK, works on sane cases. Now check whether nonexistent headers
20102 # can be detected and how.
20103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h. */
20105 #include <ac_nonexistent.h>
20107 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20108 # Broken: success on invalid input.
20111 # Passes both tests.
20115 rm -f conftest.err conftest.i conftest.
$ac_ext
20118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20119 rm -f conftest.i conftest.err conftest.
$ac_ext
20120 if $ac_preproc_ok; then :
20123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20125 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20126 See \`config.log' for more details" "$LINENO" 5; }
20130 ac_cpp
='$CXXCPP $CPPFLAGS'
20131 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20132 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20133 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20136 _lt_caught_CXX_error
=yes
20140 ac_cpp
='$CXXCPP $CPPFLAGS'
20141 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20142 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20143 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20145 archive_cmds_need_lc_CXX
=no
20146 allow_undefined_flag_CXX
=
20147 always_export_symbols_CXX
=no
20148 archive_expsym_cmds_CXX
=
20149 compiler_needs_object_CXX
=no
20150 export_dynamic_flag_spec_CXX
=
20151 hardcode_direct_CXX
=no
20152 hardcode_direct_absolute_CXX
=no
20153 hardcode_libdir_flag_spec_CXX
=
20154 hardcode_libdir_flag_spec_ld_CXX
=
20155 hardcode_libdir_separator_CXX
=
20156 hardcode_minus_L_CXX
=no
20157 hardcode_shlibpath_var_CXX
=unsupported
20158 hardcode_automatic_CXX
=no
20159 inherit_rpath_CXX
=no
20161 module_expsym_cmds_CXX
=
20162 link_all_deplibs_CXX
=unknown
20163 old_archive_cmds_CXX
=$old_archive_cmds
20164 reload_flag_CXX
=$reload_flag
20165 reload_cmds_CXX
=$reload_cmds
20166 no_undefined_flag_CXX
=
20167 whole_archive_flag_spec_CXX
=
20168 enable_shared_with_static_runtimes_CXX
=no
20170 # Source file extension for C++ test sources.
20173 # Object file extension for compiled C++ test sources.
20177 # No sense in running all these tests if we already determined that
20178 # the CXX compiler isn't working. Some variables (like enable_shared)
20179 # are currently assumed to apply to all compilers on this platform,
20180 # and will be corrupted by setting them based on a non-working compiler.
20181 if test "$_lt_caught_CXX_error" != yes; then
20182 # Code to be used in simple compile tests
20183 lt_simple_compile_test_code
="int some_variable = 0;"
20185 # Code to be used in simple link tests
20186 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20188 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20195 # If no C compiler was specified, use CC.
20198 # If no C compiler flags were specified, use CFLAGS.
20199 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20201 # Allow CC to be a program name with arguments.
20205 # save warnings/boilerplate of simple test code
20206 ac_outfile
=conftest.
$ac_objext
20207 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20208 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20209 _lt_compiler_boilerplate
=`cat conftest.err`
20212 ac_outfile
=conftest.
$ac_objext
20213 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20214 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20215 _lt_linker_boilerplate
=`cat conftest.err`
20219 # Allow CC to be a program name with arguments.
20224 lt_save_with_gnu_ld
=$with_gnu_ld
20225 lt_save_path_LD
=$lt_cv_path_LD
20226 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20227 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20229 $as_unset lt_cv_prog_gnu_ld
20231 if test -n "${lt_cv_path_LDCXX+set}"; then
20232 lt_cv_path_LD
=$lt_cv_path_LDCXX
20234 $as_unset lt_cv_path_LD
20236 test -z "${LDCXX+set}" || LD
=$LDCXX
20240 for cc_temp
in $compiler""; do
20242 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20243 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20248 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20251 if test -n "$compiler"; then
20252 # We don't want -fno-exception when compiling C++ code, so set the
20253 # no_builtin_flag separately
20254 if test "$GXX" = yes; then
20255 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20257 lt_prog_compiler_no_builtin_flag_CXX
=
20260 if test "$GXX" = yes; then
20261 # Set up default GNU C++ configuration
20265 # Check whether --with-gnu-ld was given.
20266 if test "${with_gnu_ld+set}" = set; then :
20267 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20273 if test "$GCC" = yes; then
20274 # Check if gcc -print-prog-name=ld gives a path.
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20276 $as_echo_n "checking for ld used by $CC... " >&6; }
20279 # gcc leaves a trailing carriage return which upsets mingw
20280 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20282 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20285 # Accept absolute paths.
20287 re_direlt
='/[^/][^/]*/\.\./'
20288 # Canonicalize the pathname of ld
20289 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20290 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20291 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20293 test -z "$LD" && LD
="$ac_prog"
20296 # If it fails, then pretend we aren't using GCC.
20300 # If it is relative, then search for the first ld in PATH.
20301 with_gnu_ld
=unknown
20304 elif test "$with_gnu_ld" = yes; then
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20306 $as_echo_n "checking for GNU ld... " >&6; }
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20309 $as_echo_n "checking for non-GNU ld... " >&6; }
20311 if ${lt_cv_path_LD+:} false
; then :
20312 $as_echo_n "(cached) " >&6
20314 if test -z "$LD"; then
20315 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20316 for ac_dir
in $PATH; do
20318 test -z "$ac_dir" && ac_dir
=.
20319 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20320 lt_cv_path_LD
="$ac_dir/$ac_prog"
20321 # Check to see if the program is GNU ld. I'd rather use --version,
20322 # but apparently some variants of GNU ld only accept -v.
20323 # Break only if it was the GNU/non-GNU ld that we prefer.
20324 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20325 *GNU
* |
*'with BFD'*)
20326 test "$with_gnu_ld" != no
&& break
20329 test "$with_gnu_ld" != yes && break
20336 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20340 LD
="$lt_cv_path_LD"
20341 if test -n "$LD"; then
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20343 $as_echo "$LD" >&6; }
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20346 $as_echo "no" >&6; }
20348 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20350 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20351 if ${lt_cv_prog_gnu_ld+:} false
; then :
20352 $as_echo_n "(cached) " >&6
20354 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20355 case `$LD -v 2>&1 </dev/null` in
20356 *GNU
* |
*'with BFD'*)
20357 lt_cv_prog_gnu_ld
=yes
20360 lt_cv_prog_gnu_ld
=no
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20365 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20366 with_gnu_ld
=$lt_cv_prog_gnu_ld
20374 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20375 # archiving commands below assume that GNU ld is being used.
20376 if test "$with_gnu_ld" = yes; then
20377 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20378 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'
20380 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20381 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20383 # If archive_cmds runs LD, not CC, wlarc should be empty
20384 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20385 # investigate it a little bit more. (MM)
20388 # ancient GNU ld didn't support --whole-archive et. al.
20389 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20390 $GREP 'no-whole-archive' > /dev
/null
; then
20391 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20393 whole_archive_flag_spec_CXX
=
20399 # A generic and very simple default shared library creation
20400 # command for GNU C++ for the case where it uses the native
20401 # linker, instead of GNU ld. If possible, this setting should
20402 # overridden to take advantage of the native linker features on
20403 # the platform it is being used on.
20404 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20407 # Commands to make compiler produce verbose output that lists
20408 # what "hidden" libraries, object files and flags are used when
20409 # linking a shared library.
20410 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20418 # PORTME: fill in a description of your system's C++ link characteristics
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20424 # FIXME: insert proper C++ library support
20428 if test "$host_cpu" = ia64
; then
20429 # On IA64, the linker does run time linking by default, so we don't
20430 # have to do anything special.
20431 aix_use_runtimelinking
=no
20432 exp_sym_flag
='-Bexport'
20435 aix_use_runtimelinking
=no
20437 # Test if we are trying to use run time linking or normal
20438 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20439 # need to do runtime linking.
20440 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20441 for ld_flag
in $LDFLAGS; do
20444 aix_use_runtimelinking
=yes
20452 exp_sym_flag
='-bexport'
20453 no_entry_flag
='-bnoentry'
20456 # When large executables or shared objects are built, AIX ld can
20457 # have problems creating the table of contents. If linking a library
20458 # or program results in "error TOC overflow" add -mminimal-toc to
20459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20462 archive_cmds_CXX
=''
20463 hardcode_direct_CXX
=yes
20464 hardcode_direct_absolute_CXX
=yes
20465 hardcode_libdir_separator_CXX
=':'
20466 link_all_deplibs_CXX
=yes
20467 file_list_spec_CXX
='${wl}-f,'
20469 if test "$GXX" = yes; then
20470 case $host_os in aix4.
[012]|aix4.
[012].
*)
20471 # We only want to do this on AIX 4.2 and lower, the check
20472 # below for broken collect2 doesn't work under 4.3+
20473 collect2name
=`${CC} -print-prog-name=collect2`
20474 if test -f "$collect2name" &&
20475 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20477 # We have reworked collect2
20480 # We have old collect2
20481 hardcode_direct_CXX
=unsupported
20482 # It fails to find uninstalled libraries when the uninstalled
20483 # path is not listed in the libpath. Setting hardcode_minus_L
20484 # to unsupported forces relinking
20485 hardcode_minus_L_CXX
=yes
20486 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20487 hardcode_libdir_separator_CXX
=
20490 shared_flag
='-shared'
20491 if test "$aix_use_runtimelinking" = yes; then
20492 shared_flag
="$shared_flag "'${wl}-G'
20496 if test "$host_cpu" = ia64
; then
20497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20498 # chokes on -Wl,-G. The following line is correct:
20501 if test "$aix_use_runtimelinking" = yes; then
20502 shared_flag
='${wl}-G'
20504 shared_flag
='${wl}-bM:SRE'
20509 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20510 # It seems that -bexpall does not export symbols beginning with
20511 # underscore (_), so it is better to generate a list of symbols to
20513 always_export_symbols_CXX
=yes
20514 if test "$aix_use_runtimelinking" = yes; then
20515 # Warning - without using the other runtime loading flags (-brtl),
20516 # -berok will link without error, but may produce a broken library.
20517 allow_undefined_flag_CXX
='-berok'
20518 # Determine the default libpath from the value encoded in an empty
20520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20521 /* end confdefs.h. */
20531 if ac_fn_cxx_try_link
"$LINENO"; then :
20533 lt_aix_libpath_sed
='
20534 /Import File Strings/,/^$/ {
20540 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20541 # Check for a 64-bit object if we didn't find anything.
20542 if test -z "$aix_libpath"; then
20543 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20546 rm -f core conftest.err conftest.
$ac_objext \
20547 conftest
$ac_exeext conftest.
$ac_ext
20548 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20550 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20552 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"
20554 if test "$host_cpu" = ia64
; then
20555 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20556 allow_undefined_flag_CXX
="-z nodefs"
20557 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"
20559 # Determine the default libpath from the value encoded in an
20560 # empty executable.
20561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20562 /* end confdefs.h. */
20572 if ac_fn_cxx_try_link
"$LINENO"; then :
20574 lt_aix_libpath_sed
='
20575 /Import File Strings/,/^$/ {
20581 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20582 # Check for a 64-bit object if we didn't find anything.
20583 if test -z "$aix_libpath"; then
20584 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20587 rm -f core conftest.err conftest.
$ac_objext \
20588 conftest
$ac_exeext conftest.
$ac_ext
20589 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20591 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20592 # Warning - without using the other run time loading flags,
20593 # -berok will link without error, but may produce a broken library.
20594 no_undefined_flag_CXX
=' ${wl}-bernotok'
20595 allow_undefined_flag_CXX
=' ${wl}-berok'
20596 if test "$with_gnu_ld" = yes; then
20597 # We only use this code for GNU lds that support --whole-archive.
20598 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20600 # Exported symbols can be pulled into shared objects from archives
20601 whole_archive_flag_spec_CXX
='$convenience'
20603 archive_cmds_need_lc_CXX
=yes
20604 # This is similar to how AIX traditionally builds its shared
20606 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'
20612 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20613 allow_undefined_flag_CXX
=unsupported
20614 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20615 # support --undefined. This deserves some investigation. FIXME
20616 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20623 case $cc_basename in
20625 # FIXME: insert proper C++ library support
20631 cygwin
* | mingw
* | pw32
* | cegcc
*)
20632 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20633 # as there is no search path for DLLs.
20634 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20635 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20636 allow_undefined_flag_CXX
=unsupported
20637 always_export_symbols_CXX
=no
20638 enable_shared_with_static_runtimes_CXX
=yes
20640 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20641 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'
20642 # If the export-symbols file already is a .def file (1st line
20643 # is EXPORTS), use it as is; otherwise, prepend...
20644 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20645 cp $export_symbols $output_objdir/$soname.def;
20647 echo EXPORTS > $output_objdir/$soname.def;
20648 cat $export_symbols >> $output_objdir/$soname.def;
20650 $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'
20655 darwin
* | rhapsody
*)
20658 archive_cmds_need_lc_CXX
=no
20659 hardcode_direct_CXX
=no
20660 hardcode_automatic_CXX
=yes
20661 hardcode_shlibpath_var_CXX
=unsupported
20662 if test "$lt_cv_ld_force_load" = "yes"; then
20663 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\"`'
20665 whole_archive_flag_spec_CXX
=''
20667 link_all_deplibs_CXX
=yes
20668 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20669 case $cc_basename in
20670 ifort
*) _lt_dar_can_shared
=yes ;;
20671 *) _lt_dar_can_shared
=$GCC ;;
20673 if test "$_lt_dar_can_shared" = "yes"; then
20674 output_verbose_link_cmd
=func_echo_all
20675 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}"
20676 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20677 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}"
20678 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}"
20679 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20680 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}"
20681 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}"
20691 case $cc_basename in
20693 # FIXME: insert proper C++ library support
20697 # Green Hills C++ Compiler
20698 # FIXME: insert proper C++ library support
20702 # FIXME: insert proper C++ library support
20709 # C++ shared libraries reported to be fairly broken before
20715 archive_cmds_need_lc_CXX
=no
20718 freebsd
* | dragonfly
*)
20719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20728 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20729 link_all_deplibs_CXX
=yes
20733 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20734 hardcode_libdir_separator_CXX
=:
20735 export_dynamic_flag_spec_CXX
='${wl}-E'
20736 hardcode_direct_CXX
=yes
20737 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20738 # but as the default
20739 # location of the library.
20741 case $cc_basename in
20743 # FIXME: insert proper C++ library support
20747 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'
20748 # Commands to make compiler produce verbose output that lists
20749 # what "hidden" libraries, object files and flags are used when
20750 # linking a shared library.
20752 # There doesn't appear to be a way to prevent this compiler from
20753 # explicitly linking system object files so we need to strip them
20754 # from the output so that they don't get included in the library
20756 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"'
20759 if test "$GXX" = yes; then
20760 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'
20762 # FIXME: insert proper C++ library support
20770 if test $with_gnu_ld = no
; then
20771 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20772 hardcode_libdir_separator_CXX
=:
20778 export_dynamic_flag_spec_CXX
='${wl}-E'
20784 hardcode_direct_CXX
=no
20785 hardcode_shlibpath_var_CXX
=no
20788 hardcode_direct_CXX
=yes
20789 hardcode_direct_absolute_CXX
=yes
20790 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20791 # but as the default
20792 # location of the library.
20796 case $cc_basename in
20798 # FIXME: insert proper C++ library support
20804 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20807 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20810 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20813 # Commands to make compiler produce verbose output that lists
20814 # what "hidden" libraries, object files and flags are used when
20815 # linking a shared library.
20817 # There doesn't appear to be a way to prevent this compiler from
20818 # explicitly linking system object files so we need to strip them
20819 # from the output so that they don't get included in the library
20821 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"'
20824 if test "$GXX" = yes; then
20825 if test $with_gnu_ld = no
; then
20828 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20831 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20834 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'
20839 # FIXME: insert proper C++ library support
20847 hardcode_direct_CXX
=no
20848 hardcode_shlibpath_var_CXX
=no
20849 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20850 export_dynamic_flag_spec_CXX
='${wl}-E'
20851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20852 # Instead, shared libraries are loaded at an image base (0x10000000 by
20853 # default) and relocated if they conflict, which is a slow very memory
20854 # consuming and fragmenting process. To avoid this, we pick a random,
20855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20857 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'
20858 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'
20861 case $cc_basename in
20864 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'
20866 # Archives containing C++ object files must be created using
20867 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20868 # necessary to make sure instantiated templates are included
20870 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20873 if test "$GXX" = yes; then
20874 if test "$with_gnu_ld" = no
; then
20875 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'
20877 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'
20880 link_all_deplibs_CXX
=yes
20883 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20884 hardcode_libdir_separator_CXX
=:
20885 inherit_rpath_CXX
=yes
20888 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20889 case $cc_basename in
20891 # Kuck and Associates, Inc. (KAI) C++ Compiler
20893 # KCC will only create a shared library if the output file
20894 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20895 # to its proper name (with version) after linking.
20896 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'
20897 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'
20898 # Commands to make compiler produce verbose output that lists
20899 # what "hidden" libraries, object files and flags are used when
20900 # linking a shared library.
20902 # There doesn't appear to be a way to prevent this compiler from
20903 # explicitly linking system object files so we need to strip them
20904 # from the output so that they don't get included in the library
20906 output_verbose_link_cmd
='templist=`$CC $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"'
20908 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20909 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20911 # Archives containing C++ object files must be created using
20912 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20913 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20918 # version 8.0 and above of icpc choke on multiply defined symbols
20919 # if we add $predep_objects and $postdep_objects, however 7.1 and
20920 # earlier do not add the objects themselves.
20921 case `$CC -V 2>&1` in
20923 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20924 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'
20926 *) # Version 8.0 or newer
20929 ia64
*) tmp_idyn
=' -i_dynamic';;
20931 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20932 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'
20935 archive_cmds_need_lc_CXX
=no
20936 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20937 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20938 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20941 # Portland Group C++ compiler
20943 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20944 prelink_cmds_CXX
='tpldir=Template.dir~
20946 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20947 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20948 old_archive_cmds_CXX
='tpldir=Template.dir~
20950 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20951 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20953 archive_cmds_CXX
='tpldir=Template.dir~
20955 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20956 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20957 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20959 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20960 $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'
20962 *) # Version 6 and above use weak symbols
20963 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20964 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'
20968 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20969 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20970 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'
20974 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20975 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'
20977 runpath_var
=LD_RUN_PATH
20978 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20979 hardcode_libdir_separator_CXX
=:
20981 # Commands to make compiler produce verbose output that lists
20982 # what "hidden" libraries, object files and flags are used when
20983 # linking a shared library.
20985 # There doesn't appear to be a way to prevent this compiler from
20986 # explicitly linking system object files so we need to strip them
20987 # from the output so that they don't get included in the library
20989 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'
20991 xl
* | mpixl
* | bgxl
*)
20992 # IBM XL 8.0 on PPC, with GNU ld
20993 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20994 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20995 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20996 if test "x$supports_anon_versioning" = xyes
; then
20997 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20999 echo "local: *; };" >> $output_objdir/$libname.ver~
21000 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21004 case `$CC -V 2>&1 | sed 5q` in
21007 no_undefined_flag_CXX
=' -zdefs'
21008 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21009 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'
21010 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21011 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'
21012 compiler_needs_object_CXX
=yes
21014 # Not sure whether something based on
21015 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21017 output_verbose_link_cmd
='func_echo_all'
21019 # Archives containing C++ object files must be created using
21020 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21021 # necessary to make sure instantiated templates are included
21023 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21031 # FIXME: insert proper C++ library support
21036 # FIXME: insert proper C++ library support
21041 case $cc_basename in
21043 # FIXME: insert proper C++ library support
21047 # FIXME: insert proper C++ library support
21054 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21055 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21057 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21058 hardcode_direct_CXX
=yes
21059 hardcode_shlibpath_var_CXX
=no
21061 # Workaround some broken pre-1.5 toolchains
21062 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21070 # C++ shared libraries are fairly broken
21075 if test -f /usr
/libexec
/ld.so
; then
21076 hardcode_direct_CXX
=yes
21077 hardcode_shlibpath_var_CXX
=no
21078 hardcode_direct_absolute_CXX
=yes
21079 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21080 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21082 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21083 export_dynamic_flag_spec_CXX
='${wl}-E'
21084 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21086 output_verbose_link_cmd
=func_echo_all
21092 osf3
* | osf4
* | osf5
*)
21093 case $cc_basename in
21095 # Kuck and Associates, Inc. (KAI) C++ Compiler
21097 # KCC will only create a shared library if the output file
21098 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21099 # to its proper name (with version) after linking.
21100 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'
21102 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21103 hardcode_libdir_separator_CXX
=:
21105 # Archives containing C++ object files must be created using
21106 # the KAI C++ compiler.
21108 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21109 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21113 # Rational C++ 2.4.1
21114 # FIXME: insert proper C++ library support
21120 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21121 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'
21122 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21125 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21126 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'
21127 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21128 echo "-hidden">> $lib.exp~
21129 $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~
21131 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21135 hardcode_libdir_separator_CXX
=:
21137 # Commands to make compiler produce verbose output that lists
21138 # what "hidden" libraries, object files and flags are used when
21139 # linking a shared library.
21141 # There doesn't appear to be a way to prevent this compiler from
21142 # explicitly linking system object files so we need to strip them
21143 # from the output so that they don't get included in the library
21145 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"'
21148 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21149 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21152 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'
21155 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'
21159 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21160 hardcode_libdir_separator_CXX
=:
21162 # Commands to make compiler produce verbose output that lists
21163 # what "hidden" libraries, object files and flags are used when
21164 # linking a shared library.
21165 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21168 # FIXME: insert proper C++ library support
21176 # FIXME: insert proper C++ library support
21181 case $cc_basename in
21184 # FIXME: insert proper C++ library support
21189 # FIXME: insert proper C++ library support
21193 # FIXME: insert proper C++ library support
21200 case $cc_basename in
21202 # Sun C++ 4.2, 5.x and Centerline C++
21203 archive_cmds_need_lc_CXX
=yes
21204 no_undefined_flag_CXX
=' -zdefs'
21205 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21206 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21207 $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'
21209 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21210 hardcode_shlibpath_var_CXX
=no
21212 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21214 # The compiler driver will combine and reorder linker options,
21215 # but understands `-z linker_flag'.
21216 # Supported since Solaris 2.6 (maybe 2.5.1?)
21217 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21220 link_all_deplibs_CXX
=yes
21222 output_verbose_link_cmd
='func_echo_all'
21224 # Archives containing C++ object files must be created using
21225 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21226 # necessary to make sure instantiated templates are included
21228 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21231 # Green Hills C++ Compiler
21232 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21234 # The C++ compiler must be used to create the archive.
21235 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21238 # GNU C++ compiler with Solaris linker
21239 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21240 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21241 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21242 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21243 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21244 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21246 # Commands to make compiler produce verbose output that lists
21247 # what "hidden" libraries, object files and flags are used when
21248 # linking a shared library.
21249 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21251 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21253 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21254 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21255 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21257 # Commands to make compiler produce verbose output that lists
21258 # what "hidden" libraries, object files and flags are used when
21259 # linking a shared library.
21260 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21263 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21265 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21267 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21275 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21276 no_undefined_flag_CXX
='${wl}-z,text'
21277 archive_cmds_need_lc_CXX
=no
21278 hardcode_shlibpath_var_CXX
=no
21279 runpath_var
='LD_RUN_PATH'
21281 case $cc_basename in
21283 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21284 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21287 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21288 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21293 sysv5
* | sco3.2v5
* | sco5v6
*)
21294 # Note: We can NOT use -z defs as we might desire, because we do not
21295 # link with -lc, and that would cause any symbols used from libc to
21296 # always be unresolved, which means just about no library would
21297 # ever link correctly. If we're not using GNU ld we use -z text
21298 # though, which does catch some bad symbols but isn't as heavy-handed
21300 no_undefined_flag_CXX
='${wl}-z,text'
21301 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21302 archive_cmds_need_lc_CXX
=no
21303 hardcode_shlibpath_var_CXX
=no
21304 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21305 hardcode_libdir_separator_CXX
=':'
21306 link_all_deplibs_CXX
=yes
21307 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21308 runpath_var
='LD_RUN_PATH'
21310 case $cc_basename in
21312 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21313 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21314 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21315 '"$old_archive_cmds_CXX"
21316 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21317 '"$reload_cmds_CXX"
21320 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21321 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21327 case $cc_basename in
21329 # NonStop-UX NCC 3.20
21330 # FIXME: insert proper C++ library support
21334 # FIXME: insert proper C++ library support
21341 # FIXME: insert proper C++ library support
21346 # FIXME: insert proper C++ library support
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21352 $as_echo "$ld_shlibs_CXX" >&6; }
21353 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21359 ## There is no encapsulation within the following macros, do not change
21360 ## the running order or otherwise move them around unless you know exactly
21361 ## what you are doing...
21362 # Dependencies to place before and after the object being linked:
21363 predep_objects_CXX
=
21364 postdep_objects_CXX
=
21367 compiler_lib_search_path_CXX
=
21369 cat > conftest.
$ac_ext <<_LT_EOF
21373 Foo (void) { a = 0; }
21379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21380 (eval $ac_compile) 2>&5
21382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21383 test $ac_status = 0; }; then
21384 # Parse the compiler output and extract the necessary
21385 # objects, libraries and library flags.
21387 # Sentinel used to keep track of whether or not we are before
21388 # the conftest object file.
21389 pre_test_object_deps_done
=no
21391 for p
in `eval "$output_verbose_link_cmd"`; do
21395 # Some compilers place space between "-{L,R}" and the path.
21396 # Remove the space.
21397 if test $p = "-L" ||
21398 test $p = "-R"; then
21405 if test "$pre_test_object_deps_done" = no
; then
21408 # Internal compiler library paths should come after those
21409 # provided the user. The postdeps already come after the
21410 # user supplied libs so there is no need to process them.
21411 if test -z "$compiler_lib_search_path_CXX"; then
21412 compiler_lib_search_path_CXX
="${prev}${p}"
21414 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21417 # The "-l" case would never come before the object being
21418 # linked, so don't bother handling this case.
21421 if test -z "$postdeps_CXX"; then
21422 postdeps_CXX
="${prev}${p}"
21424 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21430 # This assumes that the test object file only shows up
21431 # once in the compiler output.
21432 if test "$p" = "conftest.$objext"; then
21433 pre_test_object_deps_done
=yes
21437 if test "$pre_test_object_deps_done" = no
; then
21438 if test -z "$predep_objects_CXX"; then
21439 predep_objects_CXX
="$p"
21441 predep_objects_CXX
="$predep_objects_CXX $p"
21444 if test -z "$postdep_objects_CXX"; then
21445 postdep_objects_CXX
="$p"
21447 postdep_objects_CXX
="$postdep_objects_CXX $p"
21452 *) ;; # Ignore the rest.
21460 echo "libtool.m4: error: problem compiling CXX test program"
21463 $RM -f confest.
$objext
21465 # PORTME: override above test on systems where it is broken
21468 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21469 # hack all around it, let's just trust "g++" to DTRT.
21470 predep_objects_CXX
=
21471 postdep_objects_CXX
=
21476 case `$CC -V 2>&1 | sed 5q` in
21480 # The more standards-conforming stlport4 library is
21481 # incompatible with the Cstd library. Avoid specifying
21482 # it if it's in CXXFLAGS. Ignore libCrun as
21483 # -library=stlport4 depends on it.
21484 case " $CXX $CXXFLAGS " in
21485 *" -library=stlport4 "*)
21486 solaris_use_stlport4
=yes
21490 if test "$solaris_use_stlport4" != yes; then
21491 postdeps_CXX
='-library=Cstd -library=Crun'
21498 case $cc_basename in
21500 # The more standards-conforming stlport4 library is
21501 # incompatible with the Cstd library. Avoid specifying
21502 # it if it's in CXXFLAGS. Ignore libCrun as
21503 # -library=stlport4 depends on it.
21504 case " $CXX $CXXFLAGS " in
21505 *" -library=stlport4 "*)
21506 solaris_use_stlport4
=yes
21510 # Adding this requires a known-good setup of shared libraries for
21511 # Sun compiler versions before 5.6, else PIC objects from an old
21512 # archive will be linked into the output, leading to subtle bugs.
21513 if test "$solaris_use_stlport4" != yes; then
21514 postdeps_CXX
='-library=Cstd -library=Crun'
21522 case " $postdeps_CXX " in
21523 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21525 compiler_lib_search_dirs_CXX
=
21526 if test -n "${compiler_lib_search_path_CXX}"; then
21527 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21560 lt_prog_compiler_wl_CXX
=
21561 lt_prog_compiler_pic_CXX
=
21562 lt_prog_compiler_static_CXX
=
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21565 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21567 # C++ specific cases for pic, static, wl, etc.
21568 if test "$GXX" = yes; then
21569 lt_prog_compiler_wl_CXX
='-Wl,'
21570 lt_prog_compiler_static_CXX
='-static'
21574 # All AIX code is PIC.
21575 if test "$host_cpu" = ia64
; then
21576 # AIX 5 now supports IA64 processor
21577 lt_prog_compiler_static_CXX
='-Bstatic'
21579 lt_prog_compiler_pic_CXX
='-fPIC'
21585 # see comment about AmigaOS4 .so support
21586 lt_prog_compiler_pic_CXX
='-fPIC'
21589 # FIXME: we need at least 68020 code to build shared libraries, but
21590 # adding the `-m68020' flag to GCC prevents building anything better,
21592 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21597 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21598 # PIC is the default for these OSes.
21600 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21601 # This hack is so that the source file can tell whether it is being
21602 # built for inclusion in a dll (and should export symbols for example).
21603 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21604 # (--disable-auto-import) libraries
21605 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21607 darwin
* | rhapsody
*)
21608 # PIC is the default on this platform
21609 # Common symbols not allowed in MH_DYLIB files
21610 lt_prog_compiler_pic_CXX
='-fno-common'
21613 # DJGPP does not support shared libraries at all
21614 lt_prog_compiler_pic_CXX
=
21617 # PIC is the default for Haiku.
21618 # The "-static" flag exists, but is broken.
21619 lt_prog_compiler_static_CXX
=
21622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21623 # Instead, we relocate shared libraries at runtime.
21626 if test -d /usr
/nec
; then
21627 lt_prog_compiler_pic_CXX
=-Kconform_pic
21631 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21632 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21633 # sets the default TLS model and affects inlining.
21638 lt_prog_compiler_pic_CXX
='-fPIC'
21643 # QNX uses GNU C++, but need to define -shared option too, otherwise
21644 # it will coredump.
21645 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21648 lt_prog_compiler_pic_CXX
='-fPIC'
21654 # All AIX code is PIC.
21655 if test "$host_cpu" = ia64
; then
21656 # AIX 5 now supports IA64 processor
21657 lt_prog_compiler_static_CXX
='-Bstatic'
21659 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21663 case $cc_basename in
21665 # Green Hills C++ Compiler
21666 # _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"
21671 case $cc_basename in
21673 lt_prog_compiler_pic_CXX
='-KPIC'
21676 # Green Hills C++ Compiler
21677 lt_prog_compiler_pic_CXX
='-pic'
21683 freebsd
* | dragonfly
*)
21684 # FreeBSD uses GNU C++
21686 hpux9
* | hpux10
* | hpux11
*)
21687 case $cc_basename in
21689 lt_prog_compiler_wl_CXX
='-Wl,'
21690 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21691 if test "$host_cpu" != ia64
; then
21692 lt_prog_compiler_pic_CXX
='+Z'
21696 lt_prog_compiler_wl_CXX
='-Wl,'
21697 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21703 lt_prog_compiler_pic_CXX
='+Z'
21712 # This is c89, which is MS Visual C++ (no shared libs)
21713 # Anyone wants to do a port?
21715 irix5
* | irix6
* | nonstopux
*)
21716 case $cc_basename in
21718 lt_prog_compiler_wl_CXX
='-Wl,'
21719 lt_prog_compiler_static_CXX
='-non_shared'
21720 # CC pic flag -KPIC is the default.
21726 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21727 case $cc_basename in
21730 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21731 lt_prog_compiler_pic_CXX
='-fPIC'
21734 # old Intel C++ for x86_64 which still supported -KPIC.
21735 lt_prog_compiler_wl_CXX
='-Wl,'
21736 lt_prog_compiler_pic_CXX
='-KPIC'
21737 lt_prog_compiler_static_CXX
='-static'
21740 # Intel C++, used to be incompatible with GCC.
21741 # ICC 10 doesn't accept -KPIC any more.
21742 lt_prog_compiler_wl_CXX
='-Wl,'
21743 lt_prog_compiler_pic_CXX
='-fPIC'
21744 lt_prog_compiler_static_CXX
='-static'
21747 # Portland Group C++ compiler
21748 lt_prog_compiler_wl_CXX
='-Wl,'
21749 lt_prog_compiler_pic_CXX
='-fpic'
21750 lt_prog_compiler_static_CXX
='-Bstatic'
21754 # Make sure the PIC flag is empty. It appears that all Alpha
21755 # Linux and Compaq Tru64 Unix objects are PIC.
21756 lt_prog_compiler_pic_CXX
=
21757 lt_prog_compiler_static_CXX
='-non_shared'
21759 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21760 # IBM XL 8.0, 9.0 on PPC and BlueGene
21761 lt_prog_compiler_wl_CXX
='-Wl,'
21762 lt_prog_compiler_pic_CXX
='-qpic'
21763 lt_prog_compiler_static_CXX
='-qstaticlink'
21766 case `$CC -V 2>&1 | sed 5q` in
21769 lt_prog_compiler_pic_CXX
='-KPIC'
21770 lt_prog_compiler_static_CXX
='-Bstatic'
21771 lt_prog_compiler_wl_CXX
='-Qoption ld '
21782 case $cc_basename in
21784 lt_prog_compiler_pic_CXX
='-W c,exportall'
21793 # QNX uses GNU C++, but need to define -shared option too, otherwise
21794 # it will coredump.
21795 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21797 osf3
* | osf4
* | osf5
*)
21798 case $cc_basename in
21800 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21803 # Rational C++ 2.4.1
21804 lt_prog_compiler_pic_CXX
='-pic'
21807 # Digital/Compaq C++
21808 lt_prog_compiler_wl_CXX
='-Wl,'
21809 # Make sure the PIC flag is empty. It appears that all Alpha
21810 # Linux and Compaq Tru64 Unix objects are PIC.
21811 lt_prog_compiler_pic_CXX
=
21812 lt_prog_compiler_static_CXX
='-non_shared'
21821 case $cc_basename in
21823 # Sun C++ 4.2, 5.x and Centerline C++
21824 lt_prog_compiler_pic_CXX
='-KPIC'
21825 lt_prog_compiler_static_CXX
='-Bstatic'
21826 lt_prog_compiler_wl_CXX
='-Qoption ld '
21829 # Green Hills C++ Compiler
21830 lt_prog_compiler_pic_CXX
='-PIC'
21837 case $cc_basename in
21840 lt_prog_compiler_pic_CXX
='-pic'
21841 lt_prog_compiler_static_CXX
='-Bstatic'
21845 lt_prog_compiler_pic_CXX
='-pic'
21851 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21852 case $cc_basename in
21854 lt_prog_compiler_wl_CXX
='-Wl,'
21855 lt_prog_compiler_pic_CXX
='-KPIC'
21856 lt_prog_compiler_static_CXX
='-Bstatic'
21861 case $cc_basename in
21863 # NonStop-UX NCC 3.20
21864 lt_prog_compiler_pic_CXX
='-KPIC'
21873 lt_prog_compiler_can_build_shared_CXX
=no
21879 # For platforms which do not support PIC, -DPIC is meaningless:
21881 lt_prog_compiler_pic_CXX
=
21884 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21888 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21893 # Check to make sure the PIC flag actually works.
21895 if test -n "$lt_prog_compiler_pic_CXX"; then
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21897 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21898 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21899 $as_echo_n "(cached) " >&6
21901 lt_cv_prog_compiler_pic_works_CXX
=no
21902 ac_outfile
=conftest.
$ac_objext
21903 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21904 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21905 # Insert the option either (1) after the last *FLAGS variable, or
21906 # (2) before a word containing "conftest.", or (3) at the end.
21907 # Note that $ac_compile itself does not contain backslashes and begins
21908 # with a dollar sign (not a hyphen), so the echo should work correctly.
21909 # The option is referenced via a variable to avoid confusing sed.
21910 lt_compile
=`echo "$ac_compile" | $SED \
21911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21913 -e 's:$: $lt_compiler_flag:'`
21914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21915 (eval "$lt_compile" 2>conftest.err
)
21917 cat conftest.err
>&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 if (exit $ac_status) && test -s "$ac_outfile"; then
21920 # The compiler can only warn and ignore the option if not recognized
21921 # So say no if there are warnings other than the usual output.
21922 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21923 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21924 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21925 lt_cv_prog_compiler_pic_works_CXX
=yes
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21932 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21934 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21935 case $lt_prog_compiler_pic_CXX in
21937 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21940 lt_prog_compiler_pic_CXX
=
21941 lt_prog_compiler_can_build_shared_CXX
=no
21949 # Check to make sure the static flag actually works.
21951 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21953 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21954 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21955 $as_echo_n "(cached) " >&6
21957 lt_cv_prog_compiler_static_works_CXX
=no
21958 save_LDFLAGS
="$LDFLAGS"
21959 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21960 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21961 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21962 # The linker can only warn and ignore the option if not recognized
21963 # So say no if there are warnings
21964 if test -s conftest.err
; then
21965 # Append any errors to the config.log.
21966 cat conftest.err
1>&5
21967 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21968 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21969 if diff conftest.exp conftest.er2
>/dev
/null
; then
21970 lt_cv_prog_compiler_static_works_CXX
=yes
21973 lt_cv_prog_compiler_static_works_CXX
=yes
21977 LDFLAGS
="$save_LDFLAGS"
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21981 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21983 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21986 lt_prog_compiler_static_CXX
=
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21994 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21995 $as_echo_n "(cached) " >&6
21997 lt_cv_prog_compiler_c_o_CXX
=no
21998 $RM -r conftest
2>/dev
/null
22002 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22004 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22005 # Insert the option either (1) after the last *FLAGS variable, or
22006 # (2) before a word containing "conftest.", or (3) at the end.
22007 # Note that $ac_compile itself does not contain backslashes and begins
22008 # with a dollar sign (not a hyphen), so the echo should work correctly.
22009 lt_compile
=`echo "$ac_compile" | $SED \
22010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22012 -e 's:$: $lt_compiler_flag:'`
22013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22014 (eval "$lt_compile" 2>out
/conftest.err
)
22016 cat out
/conftest.err
>&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22020 # The compiler can only warn and ignore the option if not recognized
22021 # So say no if there are warnings
22022 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22023 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22024 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22025 lt_cv_prog_compiler_c_o_CXX
=yes
22030 # SGI C++ compiler will create directory out/ii_files/ for
22031 # template instantiation
22032 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22033 $RM out
/* && rmdir out
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22040 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22045 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22046 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22047 $as_echo_n "(cached) " >&6
22049 lt_cv_prog_compiler_c_o_CXX
=no
22050 $RM -r conftest
2>/dev
/null
22054 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22056 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22057 # Insert the option either (1) after the last *FLAGS variable, or
22058 # (2) before a word containing "conftest.", or (3) at the end.
22059 # Note that $ac_compile itself does not contain backslashes and begins
22060 # with a dollar sign (not a hyphen), so the echo should work correctly.
22061 lt_compile
=`echo "$ac_compile" | $SED \
22062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22064 -e 's:$: $lt_compiler_flag:'`
22065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22066 (eval "$lt_compile" 2>out
/conftest.err
)
22068 cat out
/conftest.err
>&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22072 # The compiler can only warn and ignore the option if not recognized
22073 # So say no if there are warnings
22074 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22075 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22076 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22077 lt_cv_prog_compiler_c_o_CXX
=yes
22082 # SGI C++ compiler will create directory out/ii_files/ for
22083 # template instantiation
22084 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22085 $RM out
/* && rmdir out
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22092 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22097 hard_links
="nottested"
22098 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22099 # do not overwrite the value of need_locks provided by the user
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22101 $as_echo_n "checking if we can lock with hard links... " >&6; }
22104 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22106 ln conftest.a conftest.b
2>&5 || hard_links
=no
22107 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22109 $as_echo "$hard_links" >&6; }
22110 if test "$hard_links" = no
; then
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22112 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22124 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22127 # If we're using GNU nm, then we don't want the "-C" option.
22128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22129 # Also, AIX nm treats weak defined symbols like other global defined
22130 # symbols, whereas GNU nm marks them as "W".
22131 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22132 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'
22134 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'
22138 export_symbols_cmds_CXX
="$ltdll_cmds"
22140 cygwin
* | mingw
* | cegcc
*)
22141 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'
22144 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22147 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22150 $as_echo "$ld_shlibs_CXX" >&6; }
22151 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22153 with_gnu_ld_CXX
=$with_gnu_ld
22161 # Do we need to explicitly link libc?
22163 case "x$archive_cmds_need_lc_CXX" in
22165 # Assume -lc should be added
22166 archive_cmds_need_lc_CXX
=yes
22168 if test "$enable_shared" = yes && test "$GCC" = yes; then
22169 case $archive_cmds_CXX in
22171 # FIXME: we may have to deal with multi-command sequences.
22174 # Test whether the compiler implicitly links with -lc since on some
22175 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22176 # to ld, don't add -lc before -lgcc.
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22178 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22179 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22180 $as_echo_n "(cached) " >&6
22183 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22186 (eval $ac_compile) 2>&5
22188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22189 test $ac_status = 0; } 2>conftest.err
; then
22192 libobjs
=conftest.
$ac_objext
22194 wl
=$lt_prog_compiler_wl_CXX
22195 pic_flag
=$lt_prog_compiler_pic_CXX
22201 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22202 allow_undefined_flag_CXX
=
22203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22204 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22207 test $ac_status = 0; }
22209 lt_cv_archive_cmds_need_lc_CXX
=no
22211 lt_cv_archive_cmds_need_lc_CXX
=yes
22213 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22215 cat conftest.err
1>&5
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22221 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22222 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22293 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22295 library_names_spec
=
22296 libname_spec
='lib$name'
22300 postuninstall_cmds
=
22304 shlibpath_overrides_runpath
=unknown
22306 dynamic_linker
="$host_os ld.so"
22307 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22308 need_lib_prefix
=unknown
22309 hardcode_into_libs
=no
22311 # when you set need_version to no, make sure it does not cause -set_version
22312 # flags to be left without arguments
22313 need_version
=unknown
22318 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22319 shlibpath_var
=LIBPATH
22321 # AIX 3 has no versioning support, so we append a major version to the name.
22322 soname_spec
='${libname}${release}${shared_ext}$major'
22329 hardcode_into_libs
=yes
22330 if test "$host_cpu" = ia64
; then
22331 # AIX 5 supports IA64
22332 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22333 shlibpath_var
=LD_LIBRARY_PATH
22335 # With GCC up to 2.95.x, collect2 would create an import file
22336 # for dependence libraries. The import file would start with
22337 # the line `#! .'. This would cause the generated library to
22338 # depend on `.', always an invalid library. This was fixed in
22339 # development snapshots of GCC prior to 3.0.
22341 aix4 | aix4.
[01] | aix4.
[01].
*)
22342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22344 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22347 can_build_shared
=no
22351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22352 # soname into executable. Probably we can add versioning support to
22353 # collect2, so additional links can be useful in future.
22354 if test "$aix_use_runtimelinking" = yes; then
22355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22356 # instead of lib<name>.a to let people know that these are not
22357 # typical AIX shared libraries.
22358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22360 # We preserve .a as extension for shared libraries through AIX4.2
22361 # and later when we are not doing run time linking.
22362 library_names_spec
='${libname}${release}.a $libname.a'
22363 soname_spec
='${libname}${release}${shared_ext}$major'
22365 shlibpath_var
=LIBPATH
22372 # Since July 2007 AmigaOS4 officially supports .so libraries.
22373 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22377 library_names_spec
='$libname.ixlibrary $libname.a'
22378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22379 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'
22385 library_names_spec
='${libname}${shared_ext}'
22386 dynamic_linker
="$host_os ld.so"
22387 shlibpath_var
=LIBRARY_PATH
22393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22394 soname_spec
='${libname}${release}${shared_ext}$major'
22395 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22396 shlibpath_var
=LD_LIBRARY_PATH
22397 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22398 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22399 # the default ld.so.conf also contains /usr/contrib/lib and
22400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22401 # libtool to hard-code these into programs
22404 cygwin
* | mingw
* | pw32
* | cegcc
*)
22405 version_type
=windows
22410 case $GCC,$host_os in
22411 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22412 library_names_spec
='$libname.dll.a'
22413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22414 postinstall_cmds
='base_file=`basename \${file}`~
22415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22416 dldir=$destdir/`dirname \$dlpath`~
22417 test -d \$dldir || mkdir -p \$dldir~
22418 $install_prog $dir/$dlname \$dldir/$dlname~
22419 chmod a+x \$dldir/$dlname~
22420 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22421 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22423 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22424 dlpath=$dir/\$dldll~
22426 shlibpath_overrides_runpath
=yes
22430 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22431 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22435 # MinGW DLLs use traditional 'lib' prefix
22436 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22439 # pw32 DLLs use 'pw' prefix rather than 'lib'
22440 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22446 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22449 dynamic_linker
='Win32 ld.exe'
22450 # FIXME: first we should search . and the directory the executable is in
22454 darwin
* | rhapsody
*)
22455 dynamic_linker
="$host_os dyld"
22456 version_type
=darwin
22459 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22460 soname_spec
='${libname}${release}${major}$shared_ext'
22461 shlibpath_overrides_runpath
=yes
22462 shlibpath_var
=DYLD_LIBRARY_PATH
22463 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22465 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22473 soname_spec
='${libname}${release}${shared_ext}$major'
22474 shlibpath_var
=LD_LIBRARY_PATH
22477 freebsd
* | dragonfly
*)
22478 # DragonFly does not have aout. When/if they implement a new
22479 # versioning mechanism, adjust this.
22480 if test -x /usr
/bin
/objformat
; then
22481 objformat
=`/usr/bin/objformat`
22484 freebsd
[23].
*) objformat
=aout
;;
22485 *) objformat
=elf
;;
22488 version_type
=freebsd-
$objformat
22489 case $version_type in
22491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22496 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22500 shlibpath_var
=LD_LIBRARY_PATH
22503 shlibpath_overrides_runpath
=yes
22505 freebsd3.
[01]* | freebsdelf3.
[01]*)
22506 shlibpath_overrides_runpath
=yes
22507 hardcode_into_libs
=yes
22509 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22510 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22511 shlibpath_overrides_runpath
=no
22512 hardcode_into_libs
=yes
22514 *) # from 4.6 on, and DragonFly
22515 shlibpath_overrides_runpath
=yes
22516 hardcode_into_libs
=yes
22525 dynamic_linker
="$host_os runtime_loader"
22526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22527 soname_spec
='${libname}${release}${shared_ext}$major'
22528 shlibpath_var
=LIBRARY_PATH
22529 shlibpath_overrides_runpath
=yes
22530 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22531 hardcode_into_libs
=yes
22534 hpux9
* | hpux10
* | hpux11
*)
22535 # Give a soname corresponding to the major version so that dld.sl refuses to
22536 # link against other versions.
22543 hardcode_into_libs
=yes
22544 dynamic_linker
="$host_os dld.so"
22545 shlibpath_var
=LD_LIBRARY_PATH
22546 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22548 soname_spec
='${libname}${release}${shared_ext}$major'
22549 if test "X$HPUX_IA64_MODE" = X32
; then
22550 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22552 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22554 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22558 hardcode_into_libs
=yes
22559 dynamic_linker
="$host_os dld.sl"
22560 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22561 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22562 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22563 soname_spec
='${libname}${release}${shared_ext}$major'
22564 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22565 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22569 dynamic_linker
="$host_os dld.sl"
22570 shlibpath_var
=SHLIB_PATH
22571 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22573 soname_spec
='${libname}${release}${shared_ext}$major'
22576 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22577 postinstall_cmds
='chmod 555 $lib'
22578 # or fails outright, so override atomically:
22579 install_override_mode
=555
22586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22587 soname_spec
='${libname}${release}${shared_ext}$major'
22588 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22589 shlibpath_var
=LD_LIBRARY_PATH
22590 shlibpath_overrides_runpath
=no
22591 hardcode_into_libs
=yes
22594 irix5
* | irix6
* | nonstopux
*)
22596 nonstopux
*) version_type
=nonstopux
;;
22598 if test "$lt_cv_prog_gnu_ld" = yes; then
22606 soname_spec
='${libname}${release}${shared_ext}$major'
22607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22609 irix5
* | nonstopux
*)
22610 libsuff
= shlibsuff
=
22613 case $LD in # libtool.m4 will add one of these switches to LD
22614 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22615 libsuff
= shlibsuff
= libmagic
=32-bit;;
22616 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22617 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22618 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22619 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22620 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22624 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22625 shlibpath_overrides_runpath
=no
22626 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22627 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22628 hardcode_into_libs
=yes
22631 # No shared lib support for Linux oldld, aout, or coff.
22632 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22636 # This must be Linux ELF.
22638 # uclinux* changes (here and below) have been submitted to the libtool
22639 # project, but have not yet been accepted: they are GCC-local changes
22640 # for the time being. (See
22641 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22642 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22647 soname_spec
='${libname}${release}${shared_ext}$major'
22648 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22649 shlibpath_var
=LD_LIBRARY_PATH
22650 shlibpath_overrides_runpath
=no
22652 # Some binutils ld are patched to set DT_RUNPATH
22653 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22654 $as_echo_n "(cached) " >&6
22656 lt_cv_shlibpath_overrides_runpath
=no
22657 save_LDFLAGS
=$LDFLAGS
22658 save_libdir
=$libdir
22659 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22660 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22662 /* end confdefs.h. */
22672 if ac_fn_cxx_try_link
"$LINENO"; then :
22673 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22674 lt_cv_shlibpath_overrides_runpath
=yes
22677 rm -f core conftest.err conftest.
$ac_objext \
22678 conftest
$ac_exeext conftest.
$ac_ext
22679 LDFLAGS
=$save_LDFLAGS
22680 libdir
=$save_libdir
22684 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22686 # This implies no fast_install, which is unacceptable.
22687 # Some rework will be needed to allow for fast_install
22688 # before this can be enabled.
22689 hardcode_into_libs
=yes
22691 # Append ld.so.conf contents to the search path
22692 if test -f /etc
/ld.so.conf
; then
22693 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' ' '`
22694 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22697 # We used to test for /lib/ld.so.1 and disable shared libraries on
22698 # powerpc, because MkLinux only supported shared libraries with the
22699 # GNU dynamic linker. Since this was broken with cross compilers,
22700 # most powerpc-linux boxes support dynamic linking these days and
22701 # people can always --disable-shared, the test was removed, and we
22702 # assume the GNU/Linux dynamic linker is in use.
22703 dynamic_linker
='GNU/Linux ld.so'
22710 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22712 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22713 dynamic_linker
='NetBSD (a.out) ld.so'
22715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22716 soname_spec
='${libname}${release}${shared_ext}$major'
22717 dynamic_linker
='NetBSD ld.elf_so'
22719 shlibpath_var
=LD_LIBRARY_PATH
22720 shlibpath_overrides_runpath
=yes
22721 hardcode_into_libs
=yes
22726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22727 shlibpath_var
=LD_LIBRARY_PATH
22728 shlibpath_overrides_runpath
=yes
22735 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736 soname_spec
='${libname}${release}${shared_ext}$major'
22737 shlibpath_var
=LD_LIBRARY_PATH
22738 shlibpath_overrides_runpath
=no
22739 hardcode_into_libs
=yes
22740 dynamic_linker
='ldqnx.so'
22745 sys_lib_dlsearch_path_spec
="/usr/lib"
22747 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22749 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22750 *) need_version
=no
;;
22752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22753 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22754 shlibpath_var
=LD_LIBRARY_PATH
22755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22757 openbsd2.
[89] | openbsd2.
[89].
*)
22758 shlibpath_overrides_runpath
=no
22761 shlibpath_overrides_runpath
=yes
22765 shlibpath_overrides_runpath
=yes
22770 libname_spec
='$name'
22773 library_names_spec
='$libname${shared_ext} $libname.a'
22774 dynamic_linker
='OS/2 ld.exe'
22775 shlibpath_var
=LIBPATH
22778 osf3
* | osf4
* | osf5
*)
22782 soname_spec
='${libname}${release}${shared_ext}$major'
22783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22784 shlibpath_var
=LD_LIBRARY_PATH
22785 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22786 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22798 soname_spec
='${libname}${release}${shared_ext}$major'
22799 shlibpath_var
=LD_LIBRARY_PATH
22800 shlibpath_overrides_runpath
=yes
22801 hardcode_into_libs
=yes
22802 # ldd complains unless libraries are executable
22803 postinstall_cmds
='chmod +x $lib'
22808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22809 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22810 shlibpath_var
=LD_LIBRARY_PATH
22811 shlibpath_overrides_runpath
=yes
22812 if test "$with_gnu_ld" = yes; then
22820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22821 soname_spec
='${libname}${release}${shared_ext}$major'
22822 shlibpath_var
=LD_LIBRARY_PATH
22823 case $host_vendor in
22825 shlibpath_overrides_runpath
=no
22827 runpath_var
=LD_RUN_PATH
22835 shlibpath_overrides_runpath
=no
22836 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22842 if test -d /usr
/nec
;then
22844 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22845 soname_spec
='$libname${shared_ext}.$major'
22846 shlibpath_var
=LD_LIBRARY_PATH
22850 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22851 version_type
=freebsd-elf
22854 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22855 soname_spec
='${libname}${release}${shared_ext}$major'
22856 shlibpath_var
=LD_LIBRARY_PATH
22857 shlibpath_overrides_runpath
=yes
22858 hardcode_into_libs
=yes
22859 if test "$with_gnu_ld" = yes; then
22860 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22862 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22865 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22869 sys_lib_dlsearch_path_spec
='/usr/lib'
22873 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22878 shlibpath_var
=LD_LIBRARY_PATH
22879 shlibpath_overrides_runpath
=no
22880 hardcode_into_libs
=yes
22885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22886 soname_spec
='${libname}${release}${shared_ext}$major'
22887 shlibpath_var
=LD_LIBRARY_PATH
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22895 $as_echo "$dynamic_linker" >&6; }
22896 test "$dynamic_linker" = no
&& can_build_shared
=no
22898 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22899 if test "$GCC" = yes; then
22900 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22903 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22904 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22906 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22907 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22948 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22949 hardcode_action_CXX
=
22950 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22951 test -n "$runpath_var_CXX" ||
22952 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22954 # We can hardcode non-existent directories.
22955 if test "$hardcode_direct_CXX" != no
&&
22956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22957 # have to relink, otherwise we might link with an installed library
22958 # when we should be linking with a yet-to-be-installed one
22959 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22960 test "$hardcode_minus_L_CXX" != no
; then
22961 # Linking always hardcodes the temporary library directory.
22962 hardcode_action_CXX
=relink
22964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22965 hardcode_action_CXX
=immediate
22968 # We cannot hardcode anything, or else we can only hardcode existing
22970 hardcode_action_CXX
=unsupported
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22973 $as_echo "$hardcode_action_CXX" >&6; }
22975 if test "$hardcode_action_CXX" = relink ||
22976 test "$inherit_rpath_CXX" = yes; then
22977 # Fast installation is not supported
22978 enable_fast_install
=no
22979 elif test "$shlibpath_overrides_runpath" = yes ||
22980 test "$enable_shared" = no
; then
22981 # Fast installation is not necessary
22982 enable_fast_install
=needless
22991 fi # test -n "$compiler"
22997 with_gnu_ld
=$lt_save_with_gnu_ld
22998 lt_cv_path_LDCXX
=$lt_cv_path_LD
22999 lt_cv_path_LD
=$lt_save_path_LD
23000 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23001 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23002 fi # test "$_lt_caught_CXX_error" != yes
23005 ac_cpp
='$CXXCPP $CPPFLAGS'
23006 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23007 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23008 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23025 # Only expand once:
23031 # Identify the assembler which will work hand-in-glove with the newly
23032 # built GCC, so that we can examine its features. This is the assembler
23033 # which will be driven by the driver program.
23035 # If build != host, and we aren't building gas in-tree, we identify a
23036 # build->target assembler and hope that it will have the same features
23037 # as the host->target assembler we'll be using.
23038 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23040 if ${gcc_cv_as+:} false
; then :
23044 if test -x "$DEFAULT_ASSEMBLER"; then
23045 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23046 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23047 && test -f ..
/gas
/Makefile \
23048 && test x
$build = x
$host; then
23049 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23050 elif test -x as
$build_exeext; then
23051 # Build using assembler in the current directory.
23052 gcc_cv_as
=.
/as
$build_exeext
23053 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23054 gcc_cv_as
="$AS_FOR_TARGET"
23056 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23057 set dummy
$AS_FOR_TARGET; ac_word
=$2
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23059 $as_echo_n "checking for $ac_word... " >&6; }
23060 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23061 $as_echo_n "(cached) " >&6
23065 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23069 for as_dir
in $PATH
23072 test -z "$as_dir" && as_dir
=.
23073 for ac_exec_ext
in '' $ac_executable_extensions; do
23074 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23075 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23086 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23087 if test -n "$gcc_cv_as"; then
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23089 $as_echo "$gcc_cv_as" >&6; }
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23092 $as_echo "no" >&6; }
23099 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23101 case "$ORIGINAL_AS_FOR_TARGET" in
23102 .
/as | .
/as
$build_exeext) ;;
23103 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23108 # Check whether --enable-ld was given.
23109 if test "${enable_ld+set}" = set; then :
23110 enableval
=$enable_ld; case "${enableval}" in
23118 install_gold_as_default
=no
23119 # Check whether --enable-gold was given.
23120 if test "${enable_gold+set}" = set; then :
23121 enableval
=$enable_gold; case "${enableval}" in
23123 install_gold_as_default
=yes
23126 if test x
${default_ld} != x
; then
23127 install_gold_as_default
=yes
23133 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23139 # Identify the linker which will work hand-in-glove with the newly
23140 # built GCC, so that we can examine its features. This is the linker
23141 # which will be driven by the driver program.
23143 # If build != host, and we aren't building gas in-tree, we identify a
23144 # build->target linker and hope that it will have the same features
23145 # as the host->target linker we'll be using.
23146 gcc_cv_gld_major_version
=
23147 gcc_cv_gld_minor_version
=
23148 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23149 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23150 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23152 if ${gcc_cv_ld+:} false
; then :
23156 if test -x "$DEFAULT_LINKER"; then
23157 gcc_cv_ld
="$DEFAULT_LINKER"
23158 elif test $install_gold_as_default = yes \
23159 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23160 && test -f ..
/gold
/Makefile \
23161 && test x
$build = x
$host; then
23162 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23163 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23164 && test -f ..
/ld
/Makefile \
23165 && test x
$build = x
$host; then
23166 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23167 elif test -x collect-ld
$build_exeext; then
23168 # Build using linker in the current directory.
23169 gcc_cv_ld
=.
/collect-ld
$build_exeext
23170 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23171 gcc_cv_ld
="$LD_FOR_TARGET"
23173 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23174 set dummy
$LD_FOR_TARGET; ac_word
=$2
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23176 $as_echo_n "checking for $ac_word... " >&6; }
23177 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23178 $as_echo_n "(cached) " >&6
23182 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23186 for as_dir
in $PATH
23189 test -z "$as_dir" && as_dir
=.
23190 for ac_exec_ext
in '' $ac_executable_extensions; do
23191 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23192 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23203 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23204 if test -n "$gcc_cv_ld"; then
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23206 $as_echo "$gcc_cv_ld" >&6; }
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23209 $as_echo "no" >&6; }
23216 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23217 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23218 # if the PLUGIN_LD is set ld-new, just have it as ld
23219 # as that is the installed named.
23220 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23221 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23222 PLUGIN_LD_SUFFIX
=ld
23225 # Check whether --with-plugin-ld was given.
23226 if test "${with_plugin_ld+set}" = set; then :
23227 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23228 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23229 PLUGIN_LD_SUFFIX
="$withval"
23235 cat >>confdefs.h
<<_ACEOF
23236 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23240 # Check to see if we are using gold instead of ld
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23242 $as_echo_n "checking whether we are using gold... " >&6; }
23244 if test x
$gcc_cv_ld != x
; then
23245 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23246 |
grep "GNU gold" > /dev
/null
; then
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23251 $as_echo "$ld_is_gold" >&6; }
23253 # Check to see if we are using mold instead of ld
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23255 $as_echo_n "checking whether we are using mold... " >&6; }
23257 if test x
$gcc_cv_ld != x
; then
23258 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23259 |
grep "mold" > /dev
/null
; then
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23264 $as_echo "$ld_is_mold" >&6; }
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23268 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23269 # Check to see if default ld is not gold, but gold is
23270 # available and has support for split stack. If gcc was configured
23271 # with gold then no checking is done.
23273 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23275 # For platforms other than powerpc64*, enable as appropriate.
23277 gold_non_default
=no
23278 ld_gold
=`which ${gcc_cv_ld}.gold`
23279 # Make sure this gold has minimal split stack support
23280 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23281 ld_vers
=`$ld_gold --version | sed 1q`
23282 gold_vers
=`echo $ld_vers | sed -n \
23283 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23285 # check that the gold version contains the complete split stack support
23286 # on powerpc64 big and little endian
23288 case "$gold_vers" in
23289 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23291 *) gold_non_default
=no
23297 if test $gold_non_default = yes; then
23299 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23304 $as_echo "$gold_non_default" >&6; }
23306 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23308 case "$ORIGINAL_LD_FOR_TARGET" in
23309 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23310 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23315 $as_echo_n "checking what linker to use... " >&6; }
23316 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23317 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23318 # Single tree build which includes ld. We want to prefer it
23319 # over whatever linker top-level may have detected, since
23320 # we'll use what we're building after installation anyway.
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23322 $as_echo "newly built ld" >&6; }
23324 in_tree_ld_is_elf
=no
23325 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23326 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23327 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23328 in_tree_ld_is_elf
=yes
23329 elif test "$ld_is_gold" = yes; then
23330 in_tree_ld_is_elf
=yes
23332 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
23334 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23335 if test x
$gcc_cv_gld_version != x
; then
23339 case $gcc_cv_gld_version in
23341 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23343 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23344 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23345 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23346 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23349 $as_echo "$gcc_cv_ld" >&6; }
23351 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23352 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23353 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23359 # Figure out what nm we will be using.
23360 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23361 if ${gcc_cv_nm+:} false
; then :
23365 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23366 && test -f ..
/binutils
/Makefile \
23367 && test x
$build = x
$host; then
23368 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23369 elif test -x nm
$build_exeext; then
23370 gcc_cv_nm
=.
/nm
$build_exeext
23371 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23372 gcc_cv_nm
="$NM_FOR_TARGET"
23374 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23375 set dummy
$NM_FOR_TARGET; ac_word
=$2
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23377 $as_echo_n "checking for $ac_word... " >&6; }
23378 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23379 $as_echo_n "(cached) " >&6
23383 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23387 for as_dir
in $PATH
23390 test -z "$as_dir" && as_dir
=.
23391 for ac_exec_ext
in '' $ac_executable_extensions; do
23392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23393 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23404 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23405 if test -n "$gcc_cv_nm"; then
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23407 $as_echo "$gcc_cv_nm" >&6; }
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23418 $as_echo_n "checking what nm to use... " >&6; }
23419 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23420 # Single tree build which includes binutils.
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23422 $as_echo "newly built nm" >&6; }
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23426 $as_echo "$gcc_cv_nm" >&6; }
23430 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23432 case "$ORIGINAL_NM_FOR_TARGET" in
23433 .
/nm | .
/nm
$build_exeext) ;;
23434 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23439 # Figure out what objdump we will be using.
23440 if ${gcc_cv_objdump+:} false
; then :
23444 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23445 && test -f ..
/binutils
/Makefile \
23446 && test x
$build = x
$host; then
23447 # Single tree build which includes binutils.
23448 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23449 elif test -x objdump
$build_exeext; then
23450 gcc_cv_objdump
=.
/objdump
$build_exeext
23451 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23452 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23454 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23455 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23457 $as_echo_n "checking for $ac_word... " >&6; }
23458 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23459 $as_echo_n "(cached) " >&6
23461 case $gcc_cv_objdump in
23463 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23467 for as_dir
in $PATH
23470 test -z "$as_dir" && as_dir
=.
23471 for ac_exec_ext
in '' $ac_executable_extensions; do
23472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23473 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23484 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23485 if test -n "$gcc_cv_objdump"; then
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23487 $as_echo "$gcc_cv_objdump" >&6; }
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23490 $as_echo "no" >&6; }
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23498 $as_echo_n "checking what objdump to use... " >&6; }
23499 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23500 # Single tree build which includes binutils.
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23502 $as_echo "newly built objdump" >&6; }
23503 elif test x
$gcc_cv_objdump = x
; then
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23505 $as_echo "not found" >&6; }
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23508 $as_echo "$gcc_cv_objdump" >&6; }
23511 # Figure out what readelf we will be using.
23512 if ${gcc_cv_readelf+:} false
; then :
23516 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23517 && test -f ..
/binutils
/Makefile \
23518 && test x
$build = x
$host; then
23519 # Single tree build which includes binutils.
23520 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23521 elif test -x readelf
$build_exeext; then
23522 gcc_cv_readelf
=.
/readelf
$build_exeext
23523 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23524 gcc_cv_readelf
="$READELF_FOR_TARGET"
23526 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23527 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23529 $as_echo_n "checking for $ac_word... " >&6; }
23530 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23531 $as_echo_n "(cached) " >&6
23533 case $gcc_cv_readelf in
23535 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23539 for as_dir
in $PATH
23542 test -z "$as_dir" && as_dir
=.
23543 for ac_exec_ext
in '' $ac_executable_extensions; do
23544 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23545 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23556 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23557 if test -n "$gcc_cv_readelf"; then
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23559 $as_echo "$gcc_cv_readelf" >&6; }
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23562 $as_echo "no" >&6; }
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23570 $as_echo_n "checking what readelf to use... " >&6; }
23571 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23572 # Single tree build which includes binutils.
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23574 $as_echo "newly built readelf" >&6; }
23575 elif test x
$gcc_cv_readelf = x
; then
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23577 $as_echo "not found" >&6; }
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23580 $as_echo "$gcc_cv_readelf" >&6; }
23583 # Figure out what otool we will be using.
23584 if ${gcc_cv_otool+:} false
; then :
23588 if test -x otool
$build_exeext; then
23589 gcc_cv_otool
=.
/otool
$build_exeext
23590 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23591 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23593 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23594 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23596 $as_echo_n "checking for $ac_word... " >&6; }
23597 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23598 $as_echo_n "(cached) " >&6
23600 case $gcc_cv_otool in
23602 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23606 for as_dir
in $PATH
23609 test -z "$as_dir" && as_dir
=.
23610 for ac_exec_ext
in '' $ac_executable_extensions; do
23611 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23612 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23623 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23624 if test -n "$gcc_cv_otool"; then
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23626 $as_echo "$gcc_cv_otool" >&6; }
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23629 $as_echo "no" >&6; }
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23637 $as_echo_n "checking what otool to use... " >&6; }
23638 if test x
$gcc_cv_otool = x
; then
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23640 $as_echo "not found" >&6; }
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23643 $as_echo "$gcc_cv_otool" >&6; }
23646 # Figure out the dsymutil we will use.
23647 if ${gcc_cv_dsymutil+:} false
; then :
23651 if test -x "$DEFAULT_DSYMUTIL"; then
23652 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23653 elif test -x dsymutil
$build_exeext; then
23654 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23655 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23656 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23657 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23658 gcc_cv_dsymutil
=$DSYMUTIL
23660 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23661 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23663 $as_echo_n "checking for $ac_word... " >&6; }
23664 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23665 $as_echo_n "(cached) " >&6
23667 case $gcc_cv_dsymutil in
23669 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23673 for as_dir
in $PATH
23676 test -z "$as_dir" && as_dir
=.
23677 for ac_exec_ext
in '' $ac_executable_extensions; do
23678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23679 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23690 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23691 if test -n "$gcc_cv_dsymutil"; then
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23693 $as_echo "$gcc_cv_dsymutil" >&6; }
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23696 $as_echo "no" >&6; }
23703 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23705 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23706 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23707 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23711 # Figure out what assembler alignment features are present.
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23713 $as_echo_n "checking assembler flags... " >&6; }
23714 if ${gcc_cv_as_flags+:} false
; then :
23715 $as_echo_n "(cached) " >&6
23718 i
[34567]86-*-linux*)
23719 gcc_cv_as_flags
=--32
23721 x86_64-
*-linux-gnux32)
23722 gcc_cv_as_flags
=--x32
23725 gcc_cv_as_flags
=--64
23727 powerpc
*-*-darwin*)
23728 gcc_cv_as_flags
="-arch ppc"
23731 gcc_cv_as_flags
=" "
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23736 $as_echo "$gcc_cv_as_flags" >&6; }
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23739 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23740 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23741 $as_echo_n "(cached) " >&6
23743 gcc_cv_as_balign_and_p2align
=no
23744 if test x
$gcc_cv_as != x
; then
23745 $as_echo '.balign 4
23746 .p2align 2' > conftest.s
23747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23749 (eval $ac_try) 2>&5
23751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752 test $ac_status = 0; }; }
23754 gcc_cv_as_balign_and_p2align
=yes
23756 echo "configure: failed program was" >&5
23759 rm -f conftest.o conftest.s
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23763 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23764 if test $gcc_cv_as_balign_and_p2align = yes; then
23766 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23772 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23773 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23774 $as_echo_n "(cached) " >&6
23776 gcc_cv_as_max_skip_p2align
=no
23777 if test x
$gcc_cv_as != x
; then
23778 $as_echo '.p2align 4,,7' > conftest.s
23779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23781 (eval $ac_try) 2>&5
23783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23784 test $ac_status = 0; }; }
23786 gcc_cv_as_max_skip_p2align
=yes
23788 echo "configure: failed program was" >&5
23791 rm -f conftest.o conftest.s
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23795 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23796 if test $gcc_cv_as_max_skip_p2align = yes; then
23798 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23804 $as_echo_n "checking assembler for .literal16... " >&6; }
23805 if ${gcc_cv_as_literal16+:} false
; then :
23806 $as_echo_n "(cached) " >&6
23808 gcc_cv_as_literal16
=no
23809 if test x
$gcc_cv_as != x
; then
23810 $as_echo '.literal16' > conftest.s
23811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23813 (eval $ac_try) 2>&5
23815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23816 test $ac_status = 0; }; }
23818 gcc_cv_as_literal16
=yes
23820 echo "configure: failed program was" >&5
23823 rm -f conftest.o conftest.s
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23827 $as_echo "$gcc_cv_as_literal16" >&6; }
23828 if test $gcc_cv_as_literal16 = yes; then
23830 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23836 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23837 if ${gcc_cv_as_subsection_m1+:} false
; then :
23838 $as_echo_n "(cached) " >&6
23840 gcc_cv_as_subsection_m1
=no
23841 if test x
$gcc_cv_as != x
; then
23842 $as_echo 'conftest_label1: .word 0
23844 conftest_label2: .word 0
23845 .previous' > conftest.s
23846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23848 (eval $ac_try) 2>&5
23850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23851 test $ac_status = 0; }; }
23853 if test x
$gcc_cv_nm != x
; then
23854 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23855 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23856 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23858 else gcc_cv_as_subsection_m1
=yes
23860 rm -f conftest.nm1 conftest.nm2
23863 echo "configure: failed program was" >&5
23866 rm -f conftest.o conftest.s
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23870 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23871 if test $gcc_cv_as_subsection_m1 = yes; then
23873 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23879 $as_echo_n "checking assembler for .weak... " >&6; }
23880 if ${gcc_cv_as_weak+:} false
; then :
23881 $as_echo_n "(cached) " >&6
23884 if test x
$gcc_cv_as != x
; then
23885 $as_echo ' .weak foobar' > conftest.s
23886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23888 (eval $ac_try) 2>&5
23890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23891 test $ac_status = 0; }; }
23895 echo "configure: failed program was" >&5
23898 rm -f conftest.o conftest.s
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23902 $as_echo "$gcc_cv_as_weak" >&6; }
23903 if test $gcc_cv_as_weak = yes; then
23905 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23911 $as_echo_n "checking assembler for .weakref... " >&6; }
23912 if ${gcc_cv_as_weakref+:} false
; then :
23913 $as_echo_n "(cached) " >&6
23915 gcc_cv_as_weakref
=no
23916 if test x
$gcc_cv_as != x
; then
23917 $as_echo ' .weakref foobar, barfnot' > conftest.s
23918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23920 (eval $ac_try) 2>&5
23922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23923 test $ac_status = 0; }; }
23925 gcc_cv_as_weakref
=yes
23927 echo "configure: failed program was" >&5
23930 rm -f conftest.o conftest.s
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23934 $as_echo "$gcc_cv_as_weakref" >&6; }
23935 if test $gcc_cv_as_weakref = yes; then
23937 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23943 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23944 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23945 $as_echo_n "(cached) " >&6
23947 gcc_cv_as_nsubspa_comdat
=no
23948 if test x
$gcc_cv_as != x
; then
23949 $as_echo ' .SPACE $TEXT$
23950 .NSUBSPA $CODE$,COMDAT' > conftest.s
23951 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23953 (eval $ac_try) 2>&5
23955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23956 test $ac_status = 0; }; }
23958 gcc_cv_as_nsubspa_comdat
=yes
23960 echo "configure: failed program was" >&5
23963 rm -f conftest.o conftest.s
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23967 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23968 if test $gcc_cv_as_nsubspa_comdat = yes; then
23970 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23975 # .hidden needs to be supported in both the assembler and the linker,
23976 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23977 # This is irritatingly difficult to feature test for; we have to check the
23978 # date string after the version number. If we've got an in-tree
23979 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23981 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23982 case "${target}" in
23984 conftest_s
=' .globl foobar,hidden'
23987 conftest_s
=' .hidden foobar
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23992 $as_echo_n "checking assembler for .hidden... " >&6; }
23993 if ${gcc_cv_as_hidden+:} false
; then :
23994 $as_echo_n "(cached) " >&6
23996 gcc_cv_as_hidden
=no
23997 if test x
$gcc_cv_as != x
; then
23998 $as_echo "$conftest_s" > conftest.s
23999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24001 (eval $ac_try) 2>&5
24003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24004 test $ac_status = 0; }; }
24006 gcc_cv_as_hidden
=yes
24008 echo "configure: failed program was" >&5
24011 rm -f conftest.o conftest.s
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24015 $as_echo "$gcc_cv_as_hidden" >&6; }
24018 case "${target}" in
24020 # Darwin as has some visibility support, though with a different syntax.
24021 gcc_cv_as_hidden
=yes
24025 # gnu_indirect_function type is an extension proposed at
24026 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24027 # selection of function implementation
24028 # Check whether --enable-gnu-indirect-function was given.
24029 if test "${enable_gnu_indirect_function+set}" = set; then :
24030 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24032 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24033 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24036 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24040 case "${target}" in
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24043 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24044 cat > conftest.s
<<EOF
24046 .type foo_resolver, @function
24049 .size foo_resolver, .-foo_resolver
24052 .type foo, %gnu_indirect_function
24053 .set foo, foo_resolver
24056 .type bar, @function
24062 if test x
$gcc_cv_as != x \
24063 && test x
$gcc_cv_ld != x \
24064 && test x
$gcc_cv_readelf != x \
24065 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24066 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24067 && $gcc_cv_readelf --relocs --wide conftest \
24068 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24069 enable_gnu_indirect_function
=yes
24071 rm -f conftest conftest.o conftest.s
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24073 $as_echo "$enable_gnu_indirect_function" >&6; }
24077 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24079 cat >>confdefs.h
<<_ACEOF
24080 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24085 if test $in_tree_ld != yes ; then
24086 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24087 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24088 if test x
"$ld_is_gold" = xyes
; then
24089 # GNU gold --version looks like this:
24091 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24093 # We extract the binutils version which is more familiar and specific
24094 # than the gold version.
24095 ld_vers
=`echo $ld_ver | sed -n \
24096 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24098 # GNU ld --version looks like this:
24100 # GNU ld (GNU Binutils) 2.21.51.20110225
24101 ld_vers
=`echo $ld_ver | sed -n \
24102 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24104 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'`
24105 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24106 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24107 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24109 case "${target}" in
24111 # Solaris 2 ld -V output looks like this for a regular version:
24113 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24115 # but test versions add stuff at the end:
24117 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24119 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24120 # numbers can be used in ld.so.1 feature checks even if a different
24121 # linker is configured.
24122 ld_ver
=`$gcc_cv_ld -V 2>&1`
24123 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24124 ld_vers
=`echo $ld_ver | sed -n \
24125 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24126 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24127 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24135 $as_echo_n "checking linker for .hidden support... " >&6; }
24136 if ${gcc_cv_ld_hidden+:} false
; then :
24137 $as_echo_n "(cached) " >&6
24139 if test $in_tree_ld = yes ; then
24140 gcc_cv_ld_hidden
=no
24141 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 \
24142 && test $in_tree_ld_is_elf = yes; then
24143 gcc_cv_ld_hidden
=yes
24146 gcc_cv_ld_hidden
=yes
24147 if test x
"$ld_is_gold" = xyes
; then
24149 elif test x
"$ld_is_mold" = xyes
; then
24151 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24152 if test 0"$ld_date" -lt 20020404; then
24153 if test -n "$ld_date"; then
24154 # If there was date string, but was earlier than 2002-04-04, fail
24155 gcc_cv_ld_hidden
=no
24156 elif test -z "$ld_vers"; then
24157 # If there was no date string nor ld version number, something is wrong
24158 gcc_cv_ld_hidden
=no
24160 test -z "$ld_vers_patch" && ld_vers_patch
=0
24161 if test "$ld_vers_major" -lt 2; then
24162 gcc_cv_ld_hidden
=no
24163 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24164 gcc_cv_ld_hidden
="no"
24165 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24166 gcc_cv_ld_hidden
=no
24171 case "${target}" in
24173 gcc_cv_ld_hidden
=yes
24176 # Darwin ld has some visibility support.
24177 gcc_cv_ld_hidden
=yes
24179 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24180 gcc_cv_ld_hidden
=yes
24183 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24184 # .symbolic was only added in Solaris 9 12/02.
24185 gcc_cv_ld_hidden
=yes
24188 gcc_cv_ld_hidden
=no
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24195 $as_echo "$gcc_cv_ld_hidden" >&6; }
24196 libgcc_visibility
=no
24199 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24200 libgcc_visibility
=yes
24202 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24207 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24208 gcc_cv_ld_ro_rw_mix
=unknown
24209 if test $in_tree_ld = yes ; then
24210 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 \
24211 && test $in_tree_ld_is_elf = yes; then
24212 gcc_cv_ld_ro_rw_mix
=read-write
24214 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24215 echo '.section myfoosect, "a"' > conftest1.s
24216 echo '.section myfoosect, "aw"' > conftest2.s
24217 echo '.byte 1' >> conftest2.s
24218 echo '.section myfoosect, "a"' > conftest3.s
24219 echo '.byte 0' >> conftest3.s
24220 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24221 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24222 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
24223 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24224 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24225 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24226 | sed -e '/myfoosect/!d' -e N`
24227 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24228 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24229 gcc_cv_ld_ro_rw_mix
=read-only
24231 gcc_cv_ld_ro_rw_mix
=read-write
24235 rm -f conftest.
* conftest
[123].
*
24237 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24239 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24243 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24245 # Check whether --enable-initfini-array was given.
24246 if test "${enable_initfini_array+set}" = set; then :
24247 enableval
=$enable_initfini_array;
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24251 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24252 if ${gcc_cv_initfini_array+:} false
; then :
24253 $as_echo_n "(cached) " >&6
24255 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24256 case "${target}" in
24258 if test "$cross_compiling" = yes; then :
24259 gcc_cv_initfini_array
=no
24261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24262 /* end confdefs.h. */
24265 #error Not an ELF OS
24267 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24268 if it can be used. */
24270 int main (void) { return x; }
24271 int foo (void) { x = 0; }
24272 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24275 if ac_fn_cxx_try_run
"$LINENO"; then :
24276 gcc_cv_initfini_array
=yes
24278 gcc_cv_initfini_array
=no
24280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24285 gcc_cv_initfini_array
=no
24286 if test $in_tree_ld = yes ; then
24287 if test "$gcc_cv_gld_major_version" -eq 2 \
24288 -a "$gcc_cv_gld_minor_version" -ge 22 \
24289 -o "$gcc_cv_gld_major_version" -gt 2 \
24290 && test $in_tree_ld_is_elf = yes; then
24291 gcc_cv_initfini_array
=yes
24293 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24294 case $target:$gas in
24297 sh_type
='%progbits'
24299 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24301 sh_type
='@progbits'
24303 sparc
*-*-solaris2*:no
)
24305 sh_type
='#progbits'
24309 case "$target:$gnu_ld" in
24311 cat > conftest.s
<<EOF
24312 .section .dtors,$sh_flags,$sh_type
24314 .byte 'A', 'A', 'A', 'A'
24315 .section .ctors,$sh_flags,$sh_type
24317 .byte 'B', 'B', 'B', 'B'
24318 .section .fini_array.65530,$sh_flags,$sh_type
24320 .byte 'C', 'C', 'C', 'C'
24321 .section .init_array.65530,$sh_flags,$sh_type
24323 .byte 'D', 'D', 'D', 'D'
24324 .section .dtors.64528,$sh_flags,$sh_type
24326 .byte 'E', 'E', 'E', 'E'
24327 .section .ctors.64528,$sh_flags,$sh_type
24329 .byte 'F', 'F', 'F', 'F'
24330 .section .fini_array.01005,$sh_flags,$sh_type
24332 .byte 'G', 'G', 'G', 'G'
24333 .section .init_array.01005,$sh_flags,$sh_type
24335 .byte 'H', 'H', 'H', 'H'
24340 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24341 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24342 && $gcc_cv_objdump -s -j .init_array conftest \
24343 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24344 && $gcc_cv_objdump -s -j .fini_array conftest \
24345 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24346 gcc_cv_initfini_array
=yes
24350 # When Solaris ld added constructor priority support, it was
24351 # decided to only handle .init_array.N/.fini_array.N since
24352 # there was no need for backwards compatibility with
24353 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24354 # sections with correct execution order resp. to
24355 # .init_array/.fini_array, while gld merges them into
24356 # .init_array/.fini_array.
24357 cat > conftest.s
<<EOF
24358 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24360 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24361 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24363 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24364 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24366 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24367 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24369 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24374 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24375 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24376 && $gcc_cv_objdump -s -j .init_array conftest \
24377 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24378 && $gcc_cv_objdump -s -j .fini_array conftest \
24379 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24380 gcc_cv_initfini_array
=yes
24384 rm -f conftest conftest.
*
24386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24387 /* end confdefs.h. */
24390 # error Not an ELF OS
24392 #include <stdlib.h>
24393 #if defined __GLIBC_PREREQ
24394 # if __GLIBC_PREREQ (2, 4)
24396 # error GLIBC 2.4 required
24399 # if defined __sun__ && defined __svr4__
24400 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24402 # error The C library not known to support .init_array/.fini_array
24407 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24410 gcc_cv_initfini_array
=no
24412 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24415 case "${target}" in
24416 aarch64
*-linux-gnu*)
24417 # AArch64 postdates glibc support for .init_array/.fini_array,
24418 # so we don't need the preprocessor test above.
24419 gcc_cv_initfini_array
=yes
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24424 $as_echo_n "checking cross compile... guessing... " >&6; }
24425 gcc_cv_initfini_array
=no
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24431 $as_echo "$gcc_cv_initfini_array" >&6; }
24432 enable_initfini_array
=$gcc_cv_initfini_array
24437 cat >>confdefs.h
<<_ACEOF
24438 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24443 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24444 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24445 # these directives, even when they appear to accept them.
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24447 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24448 if ${gcc_cv_as_leb128+:} false
; then :
24449 $as_echo_n "(cached) " >&6
24451 gcc_cv_as_leb128
=no
24452 if test x
$gcc_cv_as != x
; then
24459 .uleb128 0x8000000000000000
24461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24463 (eval $ac_try) 2>&5
24465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24466 test $ac_status = 0; }; }
24469 if test "x$gcc_cv_objdump" != x
; then
24470 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24471 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24472 gcc_cv_as_leb128
=yes
24474 elif test "x$gcc_cv_otool" != x
; then
24475 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24476 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24477 gcc_cv_as_leb128
=yes
24480 # play safe, assume the assembler is broken.
24485 echo "configure: failed program was" >&5
24488 rm -f conftest.o conftest.s
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24492 $as_echo "$gcc_cv_as_leb128" >&6; }
24493 if test $gcc_cv_as_leb128 = yes; then
24495 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24498 if test $gcc_cv_as_leb128 != yes; then
24500 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24504 # Determine if an .eh_frame section is read-only.
24505 gcc_fn_eh_frame_ro
() {
24506 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24507 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24508 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24511 # Check if we have assembler support for unwind directives.
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24513 $as_echo_n "checking assembler for cfi directives... " >&6; }
24514 if ${gcc_cv_as_cfi_directive+:} false
; then :
24515 $as_echo_n "(cached) " >&6
24517 gcc_cv_as_cfi_directive
=no
24518 if test x
$gcc_cv_as != x
; then
24524 .cfi_escape 1, 2, 3, 4, 5
24525 .cfi_endproc' > conftest.s
24526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24528 (eval $ac_try) 2>&5
24530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24531 test $ac_status = 0; }; }
24535 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24536 # read-only and read-write sections, we need to make sure that the
24537 # assembler used emits read-write .eh_frame sections.
24538 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24539 gcc_cv_as_cfi_directive
=yes
24540 elif test "x$gcc_cv_objdump" = x
; then
24541 # No objdump, err on the side of caution.
24542 gcc_cv_as_cfi_directive
=no
24544 if test x
$gas = xyes
; then
24552 sparc
*-*-solaris2.
*)
24553 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24554 if gcc_fn_eh_frame_ro
$as_32_opt \
24555 || gcc_fn_eh_frame_ro
$as_64_opt; then
24556 gcc_cv_as_cfi_directive
=no
24558 gcc_cv_as_cfi_directive
=yes
24561 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24562 # On Solaris/x86, make sure that GCC and assembler agree on using
24563 # read-only .eh_frame sections for 64-bit.
24564 if gcc_fn_eh_frame_ro
$as_32_opt; then
24565 gcc_cv_as_cfi_directive
=no
24566 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24567 gcc_cv_as_cfi_directive
=yes
24569 gcc_cv_as_cfi_directive
=no
24576 gcc_cv_as_cfi_directive
=yes
24580 echo "configure: failed program was" >&5
24583 rm -f conftest.o conftest.s
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24587 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24590 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24592 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24593 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24594 $as_echo_n "(cached) " >&6
24596 gcc_cv_as_cfi_advance_working
=no
24597 if test x
$gcc_cv_as != x
; then
24600 .cfi_adjust_cfa_offset 64
24602 .cfi_adjust_cfa_offset 128
24603 .cfi_endproc' > conftest.s
24604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24612 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24613 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24614 gcc_cv_as_cfi_advance_working
=yes
24618 echo "configure: failed program was" >&5
24621 rm -f conftest.o conftest.s
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24625 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24629 # no objdump, err on the side of caution
24630 gcc_cv_as_cfi_advance_working
=no
24634 cat >>confdefs.h
<<_ACEOF
24635 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24636 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24642 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24643 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24644 $as_echo_n "(cached) " >&6
24646 gcc_cv_as_cfi_personality_directive
=no
24647 if test x
$gcc_cv_as != x
; then
24650 .cfi_personality 0, symbol
24651 .cfi_endproc' > conftest.s
24652 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24654 (eval $ac_try) 2>&5
24656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24657 test $ac_status = 0; }; }
24659 gcc_cv_as_cfi_personality_directive
=yes
24661 echo "configure: failed program was" >&5
24664 rm -f conftest.o conftest.s
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24668 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24672 cat >>confdefs.h
<<_ACEOF
24673 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24678 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24679 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24680 $as_echo_n "(cached) " >&6
24682 gcc_cv_as_cfi_sections_directive
=no
24683 if test x
$gcc_cv_as != x
; then
24685 .cfi_sections .debug_frame, .eh_frame
24687 .cfi_endproc' > conftest.s
24688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24690 (eval $ac_try) 2>&5
24692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24693 test $ac_status = 0; }; }
24696 win32 | pe | cygwin
* | mingw32
*)
24697 # Need to check that we generated the correct relocation for the
24698 # .debug_frame section. This was fixed for binutils 2.21.
24699 gcc_cv_as_cfi_sections_directive
=no
24700 if test "x$gcc_cv_objdump" != x
; then
24701 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24702 grep secrel
> /dev
/null
; then
24703 gcc_cv_as_cfi_sections_directive
=yes
24708 gcc_cv_as_cfi_sections_directive
=yes
24712 echo "configure: failed program was" >&5
24715 rm -f conftest.o conftest.s
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24719 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24724 cat >>confdefs.h
<<_ACEOF
24725 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24729 # GAS versions up to and including 2.11.0 may mis-optimize
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24732 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24733 if ${gcc_cv_as_eh_frame+:} false
; then :
24734 $as_echo_n "(cached) " >&6
24736 gcc_cv_as_eh_frame
=no
24737 if test x
$gcc_cv_as != x
; then
24744 .section .eh_frame,"aw",@progbits
24746 .4byte .LECIE1-.LSCIE1
24760 .4byte .LEFDE1-.LASFDE1
24762 .4byte .LASFDE1-__FRAME_BEGIN__
24769 .LEFDE1:' > conftest.s
24770 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24772 (eval $ac_try) 2>&5
24774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24775 test $ac_status = 0; }; }
24777 cat > conftest.lit
<<EOF
24778 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24779 0010 01000000 12000000 18000000 00000000 ................
24780 0020 08000000 04080000 0044 .........D
24782 cat > conftest.big
<<EOF
24783 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24784 0010 00000001 00000012 00000018 00000000 ................
24785 0020 00000008 04000000 0844 .........D
24787 # If the assembler didn't choke, and we can objdump,
24788 # and we got the correct data, then succeed.
24789 # The text in the here-document typically retains its unix-style line
24790 # endings, while the output of objdump will use host line endings.
24791 # Therefore, use diff -b for the comparisons.
24792 if test x
$gcc_cv_objdump != x \
24793 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24794 |
tail -3 > conftest.got \
24795 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24796 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24798 gcc_cv_as_eh_frame
=yes
24799 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24801 (eval $ac_try) 2>&5
24803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24804 test $ac_status = 0; }; }; then
24805 gcc_cv_as_eh_frame
=buggy
24807 # Uh oh, what do we do now?
24808 gcc_cv_as_eh_frame
=no
24811 echo "configure: failed program was" >&5
24814 rm -f conftest.o conftest.s
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24818 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24822 if test $gcc_cv_as_eh_frame = buggy
; then
24824 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24828 # Test if the assembler supports the section flag 'e' or #exclude for
24829 # specifying an excluded section.
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24831 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24832 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24833 $as_echo_n "(cached) " >&6
24835 gcc_cv_as_section_exclude_e
=no
24836 if test x
$gcc_cv_as != x
; then
24837 $as_echo '.section foo1,"e"
24838 .byte 0,0,0,0' > conftest.s
24839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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; }; }
24846 gcc_cv_as_section_exclude_e
=yes
24848 echo "configure: failed program was" >&5
24851 rm -f conftest.o conftest.s
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24855 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24858 if test $gcc_cv_as_section_exclude_e = no
; then
24859 case "${target}" in
24860 # Solaris as uses #exclude instead.
24862 case "${target}" in
24863 sparc
*-*-solaris2*)
24864 conftest_s
='.section "foo1", #exclude'
24866 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24867 conftest_s
='.section foo1, #exclude'
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24873 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24874 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24875 $as_echo_n "(cached) " >&6
24877 gcc_cv_as_section_exclude_hash
=no
24878 if test x
$gcc_cv_as != x
; then
24879 $as_echo "$conftest_s
24880 .byte 0,0,0,0" > conftest.s
24881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883 (eval $ac_try) 2>&5
24885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886 test $ac_status = 0; }; }
24888 gcc_cv_as_section_exclude_hash
=yes
24890 echo "configure: failed program was" >&5
24893 rm -f conftest.o conftest.s
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24897 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24902 cat >>confdefs.h
<<_ACEOF
24903 #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`
24907 # Test if the assembler supports the section flag 'R' for specifying
24908 # section with SHF_GNU_RETAIN.
24909 case "${target}" in
24910 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24911 # assembler supports the section flag 'R', it doesn't mean that
24912 # Solairs ld supports it.
24914 gcc_cv_as_shf_gnu_retain
=no
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24918 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24919 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
24920 $as_echo_n "(cached) " >&6
24922 gcc_cv_as_shf_gnu_retain
=no
24923 if test x
$gcc_cv_as != x
; then
24924 $as_echo '.section .foo,"awR",%progbits
24925 .byte 0' > conftest.s
24926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24928 (eval $ac_try) 2>&5
24930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24931 test $ac_status = 0; }; }
24933 gcc_cv_as_shf_gnu_retain
=yes
24935 echo "configure: failed program was" >&5
24938 rm -f conftest.o conftest.s
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24942 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24948 cat >>confdefs.h
<<_ACEOF
24949 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24953 # Test if the assembler supports the section flag 'o' for specifying
24954 # section with link-order.
24955 case "${target}" in
24956 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24957 # assembler supports the section flag 'o', it doesn't mean that
24958 # Solairs ld supports it.
24960 gcc_cv_as_section_link_order
=no
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24964 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24965 if ${gcc_cv_as_section_link_order+:} false
; then :
24966 $as_echo_n "(cached) " >&6
24968 gcc_cv_as_section_link_order
=no
24969 if test x
$gcc_cv_as != x
; then
24970 $as_echo '.section .foo,"a"
24972 .section __patchable_function_entries,"awo",%progbits,.foo
24973 .byte 0' > conftest.s
24974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }
24981 gcc_cv_as_section_link_order
=yes
24983 echo "configure: failed program was" >&5
24986 rm -f conftest.o conftest.s
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24990 $as_echo "$gcc_cv_as_section_link_order" >&6; }
24996 cat >>confdefs.h
<<_ACEOF
24997 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25002 $as_echo_n "checking assembler for section merging support... " >&6; }
25003 if ${gcc_cv_as_shf_merge+:} false
; then :
25004 $as_echo_n "(cached) " >&6
25006 gcc_cv_as_shf_merge
=no
25007 if test x
$gcc_cv_as != x
; then
25008 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25011 (eval $ac_try) 2>&5
25013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25014 test $ac_status = 0; }; }
25016 gcc_cv_as_shf_merge
=yes
25018 echo "configure: failed program was" >&5
25021 rm -f conftest.o conftest.s
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25025 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25028 if test $gcc_cv_as_shf_merge = no
; then
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25030 $as_echo_n "checking assembler for section merging support... " >&6; }
25031 if ${gcc_cv_as_shf_merge+:} false
; then :
25032 $as_echo_n "(cached) " >&6
25034 gcc_cv_as_shf_merge
=no
25035 if test x
$gcc_cv_as != x
; then
25036 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25039 (eval $ac_try) 2>&5
25041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25042 test $ac_status = 0; }; }
25044 gcc_cv_as_shf_merge
=yes
25046 echo "configure: failed program was" >&5
25049 rm -f conftest.o conftest.s
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25053 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25058 cat >>confdefs.h
<<_ACEOF
25059 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25063 gcc_cv_ld_aligned_shf_merge
=yes
25065 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25067 sparc
*-*-solaris2.11
*)
25068 if test x
"$gnu_ld" = xno \
25069 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25070 gcc_cv_ld_aligned_shf_merge
=no
25075 cat >>confdefs.h
<<_ACEOF
25076 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
25081 $as_echo_n "checking assembler for stabs directive... " >&6; }
25082 if ${gcc_cv_as_stabs_directive+:} false
; then :
25083 $as_echo_n "(cached) " >&6
25085 gcc_cv_as_stabs_directive
=no
25086 if test x
$gcc_cv_as != x
; then
25087 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
25088 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25090 (eval $ac_try) 2>&5
25092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25093 test $ac_status = 0; }; }
25095 gcc_cv_as_stabs_directive
=yes
25097 echo "configure: failed program was" >&5
25100 rm -f conftest.o conftest.s
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
25104 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
25105 if test $gcc_cv_as_stabs_directive = yes; then
25107 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25113 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25114 if ${gcc_cv_as_comdat_group+:} false
; then :
25115 $as_echo_n "(cached) " >&6
25117 gcc_cv_as_comdat_group
=no
25118 if test x
$gcc_cv_as != x
; then
25119 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25122 (eval $ac_try) 2>&5
25124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25125 test $ac_status = 0; }; }
25127 gcc_cv_as_comdat_group
=yes
25129 echo "configure: failed program was" >&5
25132 rm -f conftest.o conftest.s
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25136 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25139 if test $gcc_cv_as_comdat_group = yes; then
25140 gcc_cv_as_comdat_group_percent
=no
25141 gcc_cv_as_comdat_group_group
=no
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25144 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25145 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25146 $as_echo_n "(cached) " >&6
25148 gcc_cv_as_comdat_group_percent
=no
25149 if test x
$gcc_cv_as != x
; then
25150 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25153 (eval $ac_try) 2>&5
25155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25156 test $ac_status = 0; }; }
25158 gcc_cv_as_comdat_group_percent
=yes
25160 echo "configure: failed program was" >&5
25163 rm -f conftest.o conftest.s
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25167 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25170 if test $gcc_cv_as_comdat_group_percent = yes; then
25171 gcc_cv_as_comdat_group_group
=no
25173 case "${target}" in
25174 # Sun as uses a completely different syntax.
25176 case "${target}" in
25177 sparc
*-*-solaris2*)
25179 .group foo,".text%foo",#comdat
25180 .section ".text%foo", #alloc,#execinstr,#progbits
25185 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25187 .group foo,.text%foo,#comdat
25188 .section .text%foo, "ax", @progbits
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25195 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25196 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25197 $as_echo_n "(cached) " >&6
25199 gcc_cv_as_comdat_group_group
=no
25200 if test x
$gcc_cv_as != x
; then
25201 $as_echo "$conftest_s" > conftest.s
25202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25204 (eval $ac_try) 2>&5
25206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25207 test $ac_status = 0; }; }
25209 gcc_cv_as_comdat_group_group
=yes
25211 echo "configure: failed program was" >&5
25214 rm -f conftest.o conftest.s
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25218 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25223 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25224 gcc_cv_as_comdat_group_group
=no
25228 if test x
"$ld_is_gold" = xyes
; then
25230 elif test x
"$ld_is_mold" = xyes
; then
25232 elif test $in_tree_ld = yes ; then
25234 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 \
25235 && test $in_tree_ld_is_elf = yes; then
25238 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25240 if test 0"$ld_date" -lt 20050308; then
25241 if test -n "$ld_date"; then
25242 # If there was date string, but was earlier than 2005-03-08, fail
25244 elif test "$ld_vers_major" -lt 2; then
25246 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25251 case "${target}" in
25252 *-*-solaris2.1
[1-9]*)
25254 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25255 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25258 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25259 # least ld version 1.2267.
25260 if test "$ld_vers_major" -gt 1; then
25262 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25264 elif test "$ld_vers_minor" -ge 2267; then
25269 # Assume linkers other than GNU ld don't support COMDAT group.
25274 # Allow overriding the automatic COMDAT group tests above.
25275 # Check whether --enable-comdat was given.
25276 if test "${enable_comdat+set}" = set; then :
25277 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25280 if test $comdat_group = no
; then
25281 gcc_cv_as_comdat_group
=no
25282 gcc_cv_as_comdat_group_percent
=no
25283 gcc_cv_as_comdat_group_group
=no
25286 cat >>confdefs.h
<<_ACEOF
25287 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25288 || test $gcc_cv_as_comdat_group_percent = yes \
25289 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25293 # Restrict this test to Solaris/x86: other targets define this statically.
25294 case "${target}" in
25295 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25297 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25298 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25299 hidden_linkonce
=yes
25301 case "${target}" in
25302 # Full support for hidden thunks in linkonce sections only appeared in
25303 # Solaris 11/OpenSolaris.
25304 *-*-solaris2.1
[1-9]*)
25305 hidden_linkonce
=yes
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25313 $as_echo "$hidden_linkonce" >&6; }
25315 cat >>confdefs.h
<<_ACEOF
25316 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25323 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25324 if ${gcc_cv_as_is_stmt+:} false
; then :
25325 $as_echo_n "(cached) " >&6
25327 gcc_cv_as_is_stmt
=no
25328 if test x
$gcc_cv_as != x
; then
25331 .loc 1 1 0 is_stmt 1' > conftest.s
25332 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25334 (eval $ac_try) 2>&5
25336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25337 test $ac_status = 0; }; }
25339 gcc_cv_as_is_stmt
=yes
25341 echo "configure: failed program was" >&5
25344 rm -f conftest.o conftest.s
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25348 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25349 if test $gcc_cv_as_is_stmt = yes; then
25351 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25357 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25358 if ${gcc_cv_as_discriminator+:} false
; then :
25359 $as_echo_n "(cached) " >&6
25361 gcc_cv_as_discriminator
=no
25362 if test x
$gcc_cv_as != x
; then
25365 .loc 1 1 0 discriminator 1' > conftest.s
25366 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25368 (eval $ac_try) 2>&5
25370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25371 test $ac_status = 0; }; }
25373 gcc_cv_as_discriminator
=yes
25375 echo "configure: failed program was" >&5
25378 rm -f conftest.o conftest.s
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25382 $as_echo "$gcc_cv_as_discriminator" >&6; }
25383 if test $gcc_cv_as_discriminator = yes; then
25385 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25390 # Catch the newlib flag of the same name so we can gate GCC features on it.
25391 # Check whether --enable-newlib-nano-formatted-io was given.
25392 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25393 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25397 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25403 # Thread-local storage - the check is heavily parameterized.
25409 .section ".tdata","awT",@progbits
25412 ldq $27,__tls_get_addr($29) !literal!1
25413 lda $16,foo($29) !tlsgd!1
25414 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25415 ldq $27,__tls_get_addr($29) !literal!2
25416 lda $16,foo($29) !tlsldm!2
25417 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25418 ldq $1,foo($29) !gotdtprel
25419 ldah $2,foo($29) !dtprelhi
25420 lda $3,foo($2) !dtprello
25421 lda $4,foo($29) !dtprel
25422 ldq $1,foo($29) !gottprel
25423 ldah $2,foo($29) !tprelhi
25424 lda $3,foo($2) !tprello
25425 lda $4,foo($29) !tprel'
25426 tls_as_opt
=--fatal-warnings
25430 add_s r0,r0, @foo@tpoff'
25432 cris-
*-*|crisv32-
*-*)
25434 .section ".tdata","awT",@progbits
25439 tls_as_opt
=--fatal-warnings
25443 .section ".tdata","awT",@progbits
25446 call #gettlsoff(x)'
25453 .section ".tdata","awT",@progbits
25457 addil LT%foo-$tls_gdidx$,gp
25458 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25461 addil LT%foo-$tls_ldidx$,gp
25463 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25464 addil LR%foo-$tls_dtpoff$,%ret0
25465 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25467 addil LT%foo-$tls_ieoff$,gp
25468 ldw RT%foo-$tls_ieoff$(%r1),%t2
25471 addil LR%foo-$tls_leoff$,%t1
25472 ldo RR%foo-$tls_leoff$(%r1),%t2'
25473 tls_as_opt
=--fatal-warnings
25477 .section ".tdata","awT",%progbits
25480 .word foo(gottpoff)
25486 i
[34567]86-*-* | x86_64-
*-*)
25488 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25495 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25497 .section .tdata,"awt",@progbits'
25500 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25504 .section ".tdata","awT",@progbits'
25506 tls_as_opt
="--fatal-warnings"
25510 if test x
$on_solaris = xyes
; then
25512 yes) tls_as_opt
="$tls_as_opt --32" ;;
25515 conftest_s
="$conftest_s
25519 leal foo@tlsgd(,%ebx,1), %eax
25520 leal foo@tlsldm(%ebx), %eax
25521 leal foo@dtpoff(%eax), %edx
25522 movl foo@gottpoff(%ebx), %eax
25523 subl foo@gottpoff(%ebx), %eax
25524 addl foo@gotntpoff(%ebx), %eax
25525 movl foo@indntpoff, %eax
25526 movl \$foo@tpoff, %eax
25527 subl \$foo@tpoff, %eax
25528 leal foo@ntpoff(%ecx), %eax"
25531 if test x
$on_solaris = xyes
; then
25533 yes) tls_as_opt
="$tls_as_opt --64" ;;
25534 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25537 conftest_s
="$conftest_s
25541 leaq foo@tlsgd(%rip), %rdi
25542 leaq foo@tlsld(%rip), %rdi
25543 leaq foo@dtpoff(%rax), %rdx
25544 movq foo@gottpoff(%rip), %rax
25545 movq \$foo@tpoff, %rax"
25551 .section ".tdata","awT",@progbits
25554 addl r16 = @ltoff(@dtpmod(foo#)), gp
25555 addl r17 = @ltoff(@dtprel(foo#)), gp
25556 addl r18 = @ltoff(@tprel(foo#)), gp
25557 addl r19 = @dtprel(foo#), gp
25558 adds r21 = @dtprel(foo#), r13
25559 movl r23 = @dtprel(foo#)
25560 addl r20 = @tprel(foo#), gp
25561 adds r22 = @tprel(foo#), r13
25562 movl r24 = @tprel(foo#)'
25563 tls_as_opt
=--fatal-warnings
25567 .section .tdata,"awT",@progbits
25574 tls_as_opt
='--fatal-warnings'
25578 .section .tdata,"awT",@progbits
25582 addik r5,r20,x@TLSGD
25583 addik r5,r20,x@TLSLDM'
25584 tls_as_opt
='--fatal-warnings'
25588 .section .tdata,"awT",@progbits
25592 addiu $4, $28, %tlsgd(x)
25593 addiu $4, $28, %tlsldm(x)
25594 lui $4, %dtprel_hi(x)
25595 addiu $4, $4, %dtprel_lo(x)
25596 lw $4, %gottprel(x)($28)
25597 lui $4, %tprel_hi(x)
25598 addiu $4, $4, %tprel_lo(x)'
25599 tls_as_opt
='-32 --fatal-warnings'
25603 .section .tdata,"awT",@progbits
25608 move.l x@TLSGD(%a5),%a0
25609 move.l x@TLSLDM(%a5),%a0
25610 move.l x@TLSLDO(%a5),%a0
25611 move.l x@TLSIE(%a5),%a0
25612 move.l x@TLSLE(%a5),%a0'
25613 tls_as_opt
='--fatal-warnings'
25617 .section ".tdata","awT",@progbits'
25618 tls_as_opt
="--fatal-warnings"
25622 .section ".tdata","awT",%progbits
25626 add x0, x0, #:tlsgd_lo12:x
25629 tls_as_opt
='--fatal-warnings'
25633 .section ".tdata","awT",@progbits
25636 l.movhi r3, tpoffha(foo)
25638 l.lwz r4, tpofflo(foo)(r3)'
25639 tls_as_opt
=--fatal-warnings
25643 .extern __get_tpointer
25659 .section ".tdata","awT",@progbits
25667 addi 3,2,ld0@got@tlsgd
25673 addi 3,2,x1@got@tlsld
25679 addis 9,3,x2@dtprel@ha
25680 addi 9,9,x2@dtprel@l
25683 ld 9,x3@got@dtprel(2)
25687 tls_as_opt
="-a64 --fatal-warnings"
25691 .section ".tdata","awT",@progbits
25699 addi 3,31,ld0@got@tlsgd
25701 addi 3,31,x1@got@tlsld
25704 addis 9,3,x2@dtprel@ha
25705 addi 9,9,x2@dtprel@l
25706 lwz 9,x3@got@tprel(31)
25709 addis 9,2,x2@tprel@ha
25710 addi 9,9,x2@tprel@l'
25711 tls_as_opt
="-a32 --fatal-warnings"
25715 .section .tdata,"awT",@progbits
25719 call __tls_get_addr'
25720 tls_as_opt
='--fatal-warnings'
25724 .section ".tdata","awT",@progbits
25731 .long foo@GOTNTPOFF
25732 .long foo@INDNTPOFF
25733 l %r1,foo@GOTNTPOFF(%r12)
25734 l %r1,0(%r1):tls_load:foo
25735 bas %r14,0(%r1,%r13):tls_gdcall:foo
25736 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25737 tls_as_opt
="-m31 --fatal-warnings"
25741 .section ".tdata","awT",@progbits
25748 .quad foo@GOTNTPOFF
25749 lg %r1,foo@GOTNTPOFF(%r12)
25750 larl %r1,foo@INDNTPOFF
25751 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25752 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25753 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25755 sh-
*-* | sh
[123456789lbe
]*-*-*)
25757 .section ".tdata","awT",@progbits
25765 tls_as_opt
=--fatal-warnings
25769 sparc
*-sun-solaris2.
*)
25776 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25778 .section ".tdata",#alloc,#write,#tls'
25781 .section ".tdata","awT",@progbits'
25782 tls_as_opt
="-32 --fatal-warnings"
25784 conftest_s
="$conftest_s
25787 sethi %tgd_hi22(foo), %o0
25788 add %o0, %tgd_lo10(foo), %o1
25789 add %l7, %o1, %o0, %tgd_add(foo)
25790 call __tls_get_addr, %tgd_call(foo)
25791 sethi %tldm_hi22(foo), %l1
25792 add %l1, %tldm_lo10(foo), %l2
25793 add %l7, %l2, %o0, %tldm_add(foo)
25794 call __tls_get_addr, %tldm_call(foo)
25795 sethi %tldo_hix22(foo), %l3
25796 xor %l3, %tldo_lox10(foo), %l4
25797 add %o0, %l4, %l5, %tldo_add(foo)
25798 sethi %tie_hi22(foo), %o3
25799 add %o3, %tie_lo10(foo), %o3
25800 ld [%l7 + %o3], %o2, %tie_ld(foo)
25801 add %g7, %o2, %o4, %tie_add(foo)
25802 sethi %tle_hix22(foo), %l1
25803 xor %l1, %tle_lox10(foo), %o5
25804 ld [%g7 + %o5], %o1"
25808 .section ".tdata","awT",@progbits
25811 addli r0, zero, tls_gd(foo)
25812 auli r0, zero, tls_gd_ha16(foo)
25813 addli r0, r0, tls_gd_lo16(foo)
25815 addli r0, zero, tls_ie(foo)
25816 auli r0, r0, tls_ie_ha16(foo)
25817 addli r0, r0, tls_ie_lo16(foo)'
25818 tls_as_opt
="--fatal-warnings"
25822 .section ".tdata","awT",@progbits
25825 shl16insli r0, zero, hw0_last_tls_gd(foo)
25826 shl16insli r0, zero, hw1_last_tls_gd(foo)
25827 shl16insli r0, r0, hw0_tls_gd(foo)
25829 shl16insli r0, zero, hw1_last_tls_ie(foo)
25830 shl16insli r0, r0, hw0_tls_ie(foo)'
25831 tls_as_opt
="--fatal-warnings"
25835 .section ".tdata","awT",@progbits
25838 movi a8, foo@TLSFUNC
25839 movi a10, foo@TLSARG
25840 callx8.tls a8, foo@TLSCALL'
25844 if test "x$enable_tls" = xno
; then
25845 : # TLS explicitly disabled.
25846 elif test "x$enable_tls" = xyes
; then
25847 set_have_as_tls
=yes # TLS explicitly enabled.
25848 elif test -z "$conftest_s"; then
25849 : # If we don't have a check, assume no support.
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25852 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25853 if ${gcc_cv_as_tls+:} false
; then :
25854 $as_echo_n "(cached) " >&6
25857 if test x
$gcc_cv_as != x
; then
25858 $as_echo "$conftest_s" > conftest.s
25859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25861 (eval $ac_try) 2>&5
25863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; }; }
25868 echo "configure: failed program was" >&5
25871 rm -f conftest.o conftest.s
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25875 $as_echo "$gcc_cv_as_tls" >&6; }
25876 if test $gcc_cv_as_tls = yes; then
25877 set_have_as_tls
=yes
25881 if test $set_have_as_tls = yes ; then
25883 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25887 # Target-specific assembler checks.
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25890 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25891 gcc_cv_ld_static_dynamic
=no
25892 gcc_cv_ld_static_option
='-Bstatic'
25893 gcc_cv_ld_dynamic_option
='-Bdynamic'
25894 if test $in_tree_ld = yes ; then
25895 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
25896 gcc_cv_ld_static_dynamic
=yes
25898 elif test x
$gcc_cv_ld != x
; then
25899 # Check if linker supports -Bstatic/-Bdynamic option
25900 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25901 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25902 gcc_cv_ld_static_dynamic
=yes
25905 # AIX ld uses -b flags
25906 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25907 gcc_cv_ld_static_dynamic
=yes
25908 gcc_cv_ld_static_option
="-bstatic"
25909 gcc_cv_ld_dynamic_option
="-bdynamic"
25911 # HP-UX ld uses -a flags to select between shared and archive.
25913 if test x
"$gnu_ld" = xno
; then
25914 gcc_cv_ld_static_dynamic
=yes
25915 gcc_cv_ld_static_option
="-aarchive_shared"
25916 gcc_cv_ld_dynamic_option
="-adefault"
25919 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25921 gcc_cv_ld_static_dynamic
=yes
25926 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25928 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25931 cat >>confdefs.h
<<_ACEOF
25932 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25936 cat >>confdefs.h
<<_ACEOF
25937 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25942 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25945 $as_echo_n "checking linker --version-script option... " >&6; }
25946 gcc_cv_ld_version_script
=no
25947 ld_version_script_option
=''
25948 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25949 gcc_cv_ld_version_script
=yes
25950 ld_version_script_option
='--version-script'
25951 elif test x
$gcc_cv_ld != x
; then
25953 # Solaris 2 ld always supports -M. It also supports a subset of
25954 # --version-script since Solaris 11.4, but requires
25955 # -z gnu-version-script-compat to activate.
25957 gcc_cv_ld_version_script
=yes
25958 ld_version_script_option
='-M'
25962 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25964 $as_echo "$gcc_cv_ld_version_script" >&6; }
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25968 $as_echo_n "checking linker soname option... " >&6; }
25969 gcc_cv_ld_soname
=no
25970 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25971 gcc_cv_ld_soname
=yes
25972 ld_soname_option
='-soname'
25973 elif test x
$gcc_cv_ld != x
; then
25976 gcc_cv_ld_soname
=yes
25977 ld_soname_option
='-install_name'
25979 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25980 # ld compatiblity since some Solaris 10 update.
25982 gcc_cv_ld_soname
=yes
25983 ld_soname_option
='-h'
25987 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25989 $as_echo "$gcc_cv_ld_soname" >&6; }
25992 if test x
"$demangler_in_ld" = xyes
; then
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25994 $as_echo_n "checking linker --demangle support... " >&6; }
25995 gcc_cv_ld_demangle
=no
25996 if test $in_tree_ld = yes; then
25997 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 \
25998 gcc_cv_ld_demangle
=yes
26000 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26001 # Check if the GNU linker supports --demangle option
26002 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26003 gcc_cv_ld_demangle
=yes
26006 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26008 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26012 $as_echo "$gcc_cv_ld_demangle" >&6; }
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26016 $as_echo_n "checking linker plugin support... " >&6; }
26017 gcc_cv_lto_plugin
=0
26018 if test -f liblto_plugin.la
; then
26019 save_ld_ver
="$ld_ver"
26020 save_ld_vers_major
="$ld_vers_major"
26021 save_ld_vers_minor
="$ld_vers_minor"
26022 save_ld_is_gold
="$ld_is_gold"
26026 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26028 # FIXME: ld_is_gold?
26029 ld_vers_major
="$gcc_cv_gld_major_version"
26030 ld_vers_minor
="$gcc_cv_gld_minor_version"
26032 # Determine plugin linker version.
26033 # FIXME: Partial duplicate from above, generalize.
26034 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26035 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26036 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26038 ld_vers
=`echo $ld_ver | sed -n \
26039 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26041 ld_vers
=`echo $ld_ver | sed -n \
26042 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26044 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26045 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26049 # Determine plugin support.
26050 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26051 # Require GNU ld or gold 2.21+ for plugin support by default.
26052 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26053 gcc_cv_lto_plugin
=2
26054 elif test "$ld_is_mold" = yes; then
26055 gcc_cv_lto_plugin
=2
26056 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26057 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26058 gcc_cv_lto_plugin
=1
26062 ld_ver
="$save_ld_ver"
26063 ld_vers_major
="$save_ld_vers_major"
26064 ld_vers_minor
="$save_ld_vers_minor"
26065 ld_is_gold
="$save_ld_is_gold"
26068 cat >>confdefs.h
<<_ACEOF
26069 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26073 $as_echo "$gcc_cv_lto_plugin" >&6; }
26075 # Target OS-specific assembler checks.
26077 case "$target_os" in
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26080 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26081 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26082 $as_echo_n "(cached) " >&6
26084 gcc_cv_as_mmacosx_version_min
=no
26085 if test x
$gcc_cv_as != x
; then
26086 $as_echo '.text' > conftest.s
26087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26089 (eval $ac_try) 2>&5
26091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26092 test $ac_status = 0; }; }
26094 gcc_cv_as_mmacosx_version_min
=yes
26096 echo "configure: failed program was" >&5
26099 rm -f conftest.o conftest.s
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26103 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26104 if test $gcc_cv_as_mmacosx_version_min = yes; then
26106 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26113 # Target CPU-specific assembler checks.
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26118 $as_echo_n "checking assembler for -mabi option... " >&6; }
26119 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26120 $as_echo_n "(cached) " >&6
26122 gcc_cv_as_aarch64_mabi
=no
26123 if test x
$gcc_cv_as != x
; then
26124 $as_echo '.text' > conftest.s
26125 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26127 (eval $ac_try) 2>&5
26129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26130 test $ac_status = 0; }; }
26132 gcc_cv_as_aarch64_mabi
=yes
26134 echo "configure: failed program was" >&5
26137 rm -f conftest.o conftest.s
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26141 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26144 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26146 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26149 if test x
$with_abi = xilp32
; then
26150 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26151 Upgrade the Assembler." "$LINENO" 5
26153 if test x
"$with_multilib_list" = xdefault
; then
26154 TM_MULTILIB_CONFIG
=lp64
26156 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26157 for aarch64_multilib
in ${aarch64_multilibs}; do
26158 case ${aarch64_multilib} in
26160 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26161 Upgrade the Assembler." "$LINENO" 5
26169 # Check if we have binutils support for relocations types needed by -fpic
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26171 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26172 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26173 $as_echo_n "(cached) " >&6
26175 gcc_cv_as_aarch64_picreloc
=no
26176 if test x
$gcc_cv_as != x
; then
26179 ldr x0, [x2, #:gotpage_lo15:globalsym]
26181 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26183 (eval $ac_try) 2>&5
26185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186 test $ac_status = 0; }; }
26188 gcc_cv_as_aarch64_picreloc
=yes
26190 echo "configure: failed program was" >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26197 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26198 if test $gcc_cv_as_aarch64_picreloc = yes; then
26200 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26204 # Enable Branch Target Identification Mechanism and Return Address
26205 # Signing by default.
26206 # Check whether --enable-standard-branch-protection was given.
26207 if test "${enable_standard_branch_protection+set}" = set; then :
26208 enableval
=$enable_standard_branch_protection;
26211 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26216 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26217 Valid choices are 'yes' and 'no'." "$LINENO" 5
26223 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26224 # Check whether --enable-fix-cortex-a53-835769 was given.
26225 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26226 enableval
=$enable_fix_cortex_a53_835769;
26229 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26234 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26235 Valid choices are 'yes' and 'no'." "$LINENO" 5
26242 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26243 # Check whether --enable-fix-cortex-a53-843419 was given.
26244 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26245 enableval
=$enable_fix_cortex_a53_843419;
26248 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26253 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26254 Valid choices are 'yes' and 'no'." "$LINENO" 5
26263 # All TARGET_ABI_OSF targets.
26264 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26266 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26267 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26268 $as_echo_n "(cached) " >&6
26270 gcc_cv_as_alpha_explicit_relocs
=no
26271 if test x
$gcc_cv_as != x
; then
26272 $as_echo ' .set nomacro
26274 extbl $3, $2, $3 !lituse_bytoff!1
26275 ldq $2, a($29) !literal!1
26276 ldq $4, b($29) !literal!2
26277 ldq_u $3, 0($2) !lituse_base!1
26278 ldq $27, f($29) !literal!5
26279 jsr $26, ($27), f !lituse_jsr!5
26280 ldah $29, 0($26) !gpdisp!3
26281 lda $0, c($29) !gprel
26282 ldah $1, d($29) !gprelhigh
26283 lda $1, d($1) !gprellow
26284 lda $29, 0($29) !gpdisp!3' > conftest.s
26285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; }
26292 gcc_cv_as_alpha_explicit_relocs
=yes
26294 echo "configure: failed program was" >&5
26297 rm -f conftest.o conftest.s
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26301 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26302 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26304 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26309 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26310 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26311 $as_echo_n "(cached) " >&6
26313 gcc_cv_as_alpha_jsrdirect_relocs
=no
26314 if test x
$gcc_cv_as != x
; then
26315 $as_echo ' .set nomacro
26317 ldq $27, a($29) !literal!1
26318 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26321 (eval $ac_try) 2>&5
26323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26324 test $ac_status = 0; }; }
26326 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26328 echo "configure: failed program was" >&5
26331 rm -f conftest.o conftest.s
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26335 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26336 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26338 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26346 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26347 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26348 $as_echo_n "(cached) " >&6
26350 gcc_cv_as_avr_mlink_relax
=no
26351 if test x
$gcc_cv_as != x
; then
26352 $as_echo '.text' > conftest.s
26353 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26355 (eval $ac_try) 2>&5
26357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26358 test $ac_status = 0; }; }
26360 gcc_cv_as_avr_mlink_relax
=yes
26362 echo "configure: failed program was" >&5
26365 rm -f conftest.o conftest.s
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26369 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26370 if test $gcc_cv_as_avr_mlink_relax = yes; then
26372 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26378 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26379 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26380 $as_echo_n "(cached) " >&6
26382 gcc_cv_as_avr_mrmw
=no
26383 if test x
$gcc_cv_as != x
; then
26384 $as_echo '.text' > conftest.s
26385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }
26392 gcc_cv_as_avr_mrmw
=yes
26394 echo "configure: failed program was" >&5
26397 rm -f conftest.o conftest.s
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26401 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26402 if test $gcc_cv_as_avr_mrmw = yes; then
26404 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26410 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26411 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26412 $as_echo_n "(cached) " >&6
26414 gcc_cv_as_avr_mgccisr
=no
26415 if test x
$gcc_cv_as != x
; then
26421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26423 (eval $ac_try) 2>&5
26425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26426 test $ac_status = 0; }; }
26428 gcc_cv_as_avr_mgccisr
=yes
26430 echo "configure: failed program was" >&5
26433 rm -f conftest.o conftest.s
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26437 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26438 if test $gcc_cv_as_avr_mgccisr = yes; then
26440 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26445 # Check how default linker description file implements .rodata for
26446 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26447 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26449 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26450 cat > conftest.s
<<EOF
26451 .section .rodata,"a",@progbits
26453 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26458 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460 (eval $ac_try) 2>&5
26462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463 test $ac_status = 0; }; }
26464 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; }
26470 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26472 (eval $ac_try) 2>&5
26474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26475 test $ac_status = 0; }; }
26476 if test -s conftest.nm
26478 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26480 $as_echo "yes" >&6; }
26482 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26486 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26487 echo "$as_me: nm output was" >&5
26488 cat conftest.nm
>&5
26489 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26490 { $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
26491 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26495 $as_echo "test failed" >&6; }
26496 echo "$as_me: failed program was" >&5
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26499 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26501 rm -f conftest.s conftest.o conftest.elf conftest.nm
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26506 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26507 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26508 $as_echo_n "(cached) " >&6
26510 gcc_cv_as_cris_no_mul_bug
=no
26511 if test x
$gcc_cv_as != x
; then
26512 $as_echo '.text' > conftest.s
26513 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26515 (eval $ac_try) 2>&5
26517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26518 test $ac_status = 0; }; }
26520 gcc_cv_as_cris_no_mul_bug
=yes
26522 echo "configure: failed program was" >&5
26525 rm -f conftest.o conftest.s
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26529 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26530 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26532 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26540 $as_echo_n "checking assembler for -relax option... " >&6; }
26541 if ${gcc_cv_as_sparc_relax+:} false
; then :
26542 $as_echo_n "(cached) " >&6
26544 gcc_cv_as_sparc_relax
=no
26545 if test x
$gcc_cv_as != x
; then
26546 $as_echo '.text' > conftest.s
26547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26549 (eval $ac_try) 2>&5
26551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26552 test $ac_status = 0; }; }
26554 gcc_cv_as_sparc_relax
=yes
26556 echo "configure: failed program was" >&5
26559 rm -f conftest.o conftest.s
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26563 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26564 if test $gcc_cv_as_sparc_relax = yes; then
26566 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26572 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26573 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26574 $as_echo_n "(cached) " >&6
26576 gcc_cv_as_sparc_gotdata_op
=no
26577 if test x
$gcc_cv_as != x
; then
26583 sethi %gdop_hix22(foo), %g1
26584 xor %g1, %gdop_lox10(foo), %g1
26585 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26586 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588 (eval $ac_try) 2>&5
26590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591 test $ac_status = 0; }; }
26593 if test x
$gcc_cv_ld != x \
26594 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26595 if test x
$gcc_cv_objdump != x
; then
26596 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26597 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26598 gcc_cv_as_sparc_gotdata_op
=no
26600 gcc_cv_as_sparc_gotdata_op
=yes
26606 echo "configure: failed program was" >&5
26609 rm -f conftest.o conftest.s
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26613 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26614 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26616 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26622 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26623 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26624 $as_echo_n "(cached) " >&6
26626 gcc_cv_as_sparc_ua_pcrel
=no
26627 if test x
$gcc_cv_as != x
; then
26634 .uaword %r_disp32(foo)' > conftest.s
26635 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637 (eval $ac_try) 2>&5
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; }
26642 if test x
$gcc_cv_ld != x \
26643 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26644 gcc_cv_as_sparc_ua_pcrel
=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_sparc_ua_pcrel" >&5
26655 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26656 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26658 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26662 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26663 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26664 $as_echo_n "(cached) " >&6
26666 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26667 if test x
$gcc_cv_as != x
; then
26671 .uaword %r_disp32(foo)
26672 .byte 0x32, 0x33, 0x34
26676 .skip 4' > conftest.s
26677 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26679 (eval $ac_try) 2>&5
26681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26682 test $ac_status = 0; }; }
26684 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26685 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26686 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26687 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26688 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26689 |
grep 'DISP32' > /dev
/null
2>&1; then
26692 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26697 echo "configure: failed program was" >&5
26700 rm -f conftest.o conftest.s
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26704 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26705 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26707 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26713 # unaligned pcrel relocs
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26716 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26717 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26718 $as_echo_n "(cached) " >&6
26720 gcc_cv_as_sparc_offsetable_lo10
=no
26721 if test x
$gcc_cv_as != x
; then
26723 or %g1, %lo(ab) + 12, %g1
26724 or %g1, %lo(ab + 12), %g1' > conftest.s
26725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26727 (eval $ac_try) 2>&5
26729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26730 test $ac_status = 0; }; }
26732 if test x
$gcc_cv_objdump != x \
26733 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26734 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26735 gcc_cv_as_sparc_offsetable_lo10
=yes
26738 echo "configure: failed program was" >&5
26741 rm -f conftest.o conftest.s
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26745 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26746 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26748 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26754 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26755 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26756 $as_echo_n "(cached) " >&6
26758 gcc_cv_as_sparc_fmaf
=no
26759 if test x
$gcc_cv_as != x
; then
26761 .register %g2, #scratch
26762 .register %g3, #scratch
26764 fmaddd %f0, %f2, %f4, %f6
26765 addxccc %g1, %g2, %g3
26766 fsrl32 %f2, %f4, %f8
26767 fnaddd %f10, %f12, %f14' > conftest.s
26768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26770 (eval $ac_try) 2>&5
26772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26773 test $ac_status = 0; }; }
26775 gcc_cv_as_sparc_fmaf
=yes
26777 echo "configure: failed program was" >&5
26780 rm -f conftest.o conftest.s
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26784 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26785 if test $gcc_cv_as_sparc_fmaf = yes; then
26787 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26793 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26794 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26795 $as_echo_n "(cached) " >&6
26797 gcc_cv_as_sparc_sparc4
=no
26798 if test x
$gcc_cv_as != x
; then
26800 .register %g2, #scratch
26801 .register %g3, #scratch
26804 1: cwbneg %g2, %g3, 1f
26807 aes_kexpand0 %f4, %f6, %f8
26808 des_round %f38, %f40, %f42, %f44
26809 camellia_f %f54, %f56, %f58, %f60
26810 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26813 (eval $ac_try) 2>&5
26815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26816 test $ac_status = 0; }; }
26818 gcc_cv_as_sparc_sparc4
=yes
26820 echo "configure: failed program was" >&5
26823 rm -f conftest.o conftest.s
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26827 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26828 if test $gcc_cv_as_sparc_sparc4 = yes; then
26830 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26836 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26837 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26838 $as_echo_n "(cached) " >&6
26840 gcc_cv_as_sparc_sparc5
=no
26841 if test x
$gcc_cv_as != x
; then
26843 .register %g2, #scratch
26844 .register %g3, #scratch
26846 subxc %g1, %g2, %g3
26847 fpadd8 %f0, %f2, %f4' > conftest.s
26848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26850 (eval $ac_try) 2>&5
26852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26853 test $ac_status = 0; }; }
26855 gcc_cv_as_sparc_sparc5
=yes
26857 echo "configure: failed program was" >&5
26860 rm -f conftest.o conftest.s
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26864 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26865 if test $gcc_cv_as_sparc_sparc5 = yes; then
26867 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26873 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26874 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26875 $as_echo_n "(cached) " >&6
26877 gcc_cv_as_sparc_sparc6
=no
26878 if test x
$gcc_cv_as != x
; then
26880 .register %g2, #scratch
26881 .register %g3, #scratch
26884 fpsll64x %f0, %f2, %f4' > conftest.s
26885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26887 (eval $ac_try) 2>&5
26889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26890 test $ac_status = 0; }; }
26892 gcc_cv_as_sparc_sparc6
=yes
26894 echo "configure: failed program was" >&5
26897 rm -f conftest.o conftest.s
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26901 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26902 if test $gcc_cv_as_sparc_sparc6 = yes; then
26904 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26910 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26911 if ${gcc_cv_as_sparc_leon+:} false
; then :
26912 $as_echo_n "(cached) " >&6
26914 gcc_cv_as_sparc_leon
=no
26915 if test x
$gcc_cv_as != x
; then
26917 .register %g2, #scratch
26918 .register %g3, #scratch
26922 casa [%g2] 0xb, %g3, %g1' > conftest.s
26923 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26925 (eval $ac_try) 2>&5
26927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26928 test $ac_status = 0; }; }
26930 gcc_cv_as_sparc_leon
=yes
26932 echo "configure: failed program was" >&5
26935 rm -f conftest.o conftest.s
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26939 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26940 if test $gcc_cv_as_sparc_leon = yes; then
26942 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26948 i
[34567]86-*-* | x86_64-
*-*)
26951 # Full C++ conformance when using a shared libstdc++-v3 requires some
26952 # support from the Cygwin DLL, which in more recent versions exports
26953 # wrappers to aid in interposing and redirecting operators new, delete,
26954 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26955 # are configuring for a version of Cygwin that exports the wrappers.
26956 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26957 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26958 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26959 gcc_ac_cygwin_dll_wrappers
=yes
26961 gcc_ac_cygwin_dll_wrappers
=no
26965 # Can't check presence of libc functions during cross-compile, so
26966 # we just have to assume we're building for an up-to-date target.
26967 gcc_ac_cygwin_dll_wrappers
=yes
26970 cat >>confdefs.h
<<_ACEOF
26971 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26976 cygwin
* | pe | mingw32
*)
26977 # Recent binutils allows the three-operand form of ".comm" on PE. This
26978 # definition is used unconditionally to initialise the default state of
26979 # the target option variable that governs usage of the feature.
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26981 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26982 if ${gcc_cv_as_comm_has_align+:} false
; then :
26983 $as_echo_n "(cached) " >&6
26985 gcc_cv_as_comm_has_align
=no
26986 if test x
$gcc_cv_as != x
; then
26987 $as_echo '.comm foo,1,32' > conftest.s
26988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26990 (eval $ac_try) 2>&5
26992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26993 test $ac_status = 0; }; }
26995 gcc_cv_as_comm_has_align
=yes
26997 echo "configure: failed program was" >&5
27000 rm -f conftest.o conftest.s
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27004 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27008 cat >>confdefs.h
<<_ACEOF
27009 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27012 # Used for DWARF 2 in PE
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27014 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27015 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27016 $as_echo_n "(cached) " >&6
27018 gcc_cv_as_ix86_pe_secrel32
=no
27019 if test x
$gcc_cv_as != x
; then
27023 .secrel32 foo' > conftest.s
27024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27026 (eval $ac_try) 2>&5
27028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27029 test $ac_status = 0; }; }
27031 if test x
$gcc_cv_ld != x \
27032 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27033 gcc_cv_as_ix86_pe_secrel32
=yes
27037 echo "configure: failed program was" >&5
27040 rm -f conftest.o conftest.s
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27044 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27045 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27047 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27051 # Test if the assembler supports the extended form of the .section
27052 # directive that specifies section alignment. LTO support uses this,
27053 # but normally only after installation, so we warn but don't fail the
27054 # configure if LTO is enabled but the assembler does not support it.
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27056 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27057 if ${gcc_cv_as_section_has_align+:} false
; then :
27058 $as_echo_n "(cached) " >&6
27060 gcc_cv_as_section_has_align
=no
27061 if test x
$gcc_cv_as != x
; then
27062 $as_echo '.section lto_test,"dr0"' > conftest.s
27063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27065 (eval $ac_try) 2>&5
27067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27068 test $ac_status = 0; }; }
27070 gcc_cv_as_section_has_align
=yes
27072 echo "configure: failed program was" >&5
27075 rm -f conftest.o conftest.s
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27079 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27082 if test x
$gcc_cv_as_section_has_align != xyes
; then
27083 case ",$enable_languages," in
27085 { $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
27086 $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;}
27093 darwin2
* | darwin19
*)
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27095 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27096 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27097 $as_echo_n "(cached) " >&6
27099 gcc_cv_as_mllvm_x86_pad_for_align
=no
27100 if test x
$gcc_cv_as != x
; then
27101 $as_echo '.text' > conftest.s
27102 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -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_mllvm_x86_pad_for_align
=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_mllvm_x86_pad_for_align" >&5
27118 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27119 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27121 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27129 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27130 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27131 $as_echo_n "(cached) " >&6
27133 gcc_cv_as_ix86_xbrace_comment
=no
27134 if test x
$gcc_cv_as != x
; then
27135 $as_echo '.text' > conftest.s
27136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27138 (eval $ac_try) 2>&5
27140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27141 test $ac_status = 0; }; }
27143 gcc_cv_as_ix86_xbrace_comment
=yes
27145 echo "configure: failed program was" >&5
27148 rm -f conftest.o conftest.s
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27152 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27153 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27155 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27161 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27162 if ${gcc_cv_as_ix86_filds+:} false
; then :
27163 $as_echo_n "(cached) " >&6
27165 gcc_cv_as_ix86_filds
=no
27166 if test x
$gcc_cv_as != x
; then
27167 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27170 (eval $ac_try) 2>&5
27172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27173 test $ac_status = 0; }; }
27175 gcc_cv_as_ix86_filds
=yes
27177 echo "configure: failed program was" >&5
27180 rm -f conftest.o conftest.s
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27184 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27185 if test $gcc_cv_as_ix86_filds = yes; then
27187 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27193 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27194 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27195 $as_echo_n "(cached) " >&6
27197 gcc_cv_as_ix86_fildq
=no
27198 if test x
$gcc_cv_as != x
; then
27199 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27202 (eval $ac_try) 2>&5
27204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27205 test $ac_status = 0; }; }
27207 gcc_cv_as_ix86_fildq
=yes
27209 echo "configure: failed program was" >&5
27212 rm -f conftest.o conftest.s
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27216 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27217 if test $gcc_cv_as_ix86_fildq = yes; then
27219 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27225 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27226 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27227 $as_echo_n "(cached) " >&6
27229 gcc_cv_as_ix86_cmov_sun_syntax
=no
27230 if test x
$gcc_cv_as != x
; then
27231 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27234 (eval $ac_try) 2>&5
27236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27237 test $ac_status = 0; }; }
27239 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27241 echo "configure: failed program was" >&5
27244 rm -f conftest.o conftest.s
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27248 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27249 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27251 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27257 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27258 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27259 $as_echo_n "(cached) " >&6
27261 gcc_cv_as_ix86_ffreep
=no
27262 if test x
$gcc_cv_as != x
; then
27263 $as_echo 'ffreep %st(1)' > conftest.s
27264 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27266 (eval $ac_try) 2>&5
27268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27269 test $ac_status = 0; }; }
27271 gcc_cv_as_ix86_ffreep
=yes
27273 echo "configure: failed program was" >&5
27276 rm -f conftest.o conftest.s
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27280 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27281 if test $gcc_cv_as_ix86_ffreep = yes; then
27283 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27289 $as_echo_n "checking assembler for .quad directive... " >&6; }
27290 if ${gcc_cv_as_ix86_quad+:} false
; then :
27291 $as_echo_n "(cached) " >&6
27293 gcc_cv_as_ix86_quad
=no
27294 if test x
$gcc_cv_as != x
; then
27295 $as_echo '.quad 0' > conftest.s
27296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27298 (eval $ac_try) 2>&5
27300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27301 test $ac_status = 0; }; }
27303 gcc_cv_as_ix86_quad
=yes
27305 echo "configure: failed program was" >&5
27308 rm -f conftest.o conftest.s
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27312 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27313 if test $gcc_cv_as_ix86_quad = yes; then
27315 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27321 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27322 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27323 $as_echo_n "(cached) " >&6
27325 gcc_cv_as_ix86_sahf
=no
27326 if test x
$gcc_cv_as != x
; then
27329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27331 (eval $ac_try) 2>&5
27333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27334 test $ac_status = 0; }; }
27336 gcc_cv_as_ix86_sahf
=yes
27338 echo "configure: failed program was" >&5
27341 rm -f conftest.o conftest.s
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27345 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27346 if test $gcc_cv_as_ix86_sahf = yes; then
27348 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27354 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27355 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27356 $as_echo_n "(cached) " >&6
27358 gcc_cv_as_ix86_interunit_movq
=no
27359 if test x
$gcc_cv_as != x
; then
27362 movq %rax, %xmm0' > conftest.s
27363 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27365 (eval $ac_try) 2>&5
27367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27368 test $ac_status = 0; }; }
27370 gcc_cv_as_ix86_interunit_movq
=yes
27372 echo "configure: failed program was" >&5
27375 rm -f conftest.o conftest.s
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27379 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27383 cat >>confdefs.h
<<_ACEOF
27384 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27389 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27390 if ${gcc_cv_as_ix86_hle+:} false
; then :
27391 $as_echo_n "(cached) " >&6
27393 gcc_cv_as_ix86_hle
=no
27394 if test x
$gcc_cv_as != x
; then
27395 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27398 (eval $ac_try) 2>&5
27400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27401 test $ac_status = 0; }; }
27403 gcc_cv_as_ix86_hle
=yes
27405 echo "configure: failed program was" >&5
27408 rm -f conftest.o conftest.s
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27412 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27413 if test $gcc_cv_as_ix86_hle = yes; then
27415 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27421 $as_echo_n "checking assembler for swap suffix... " >&6; }
27422 if ${gcc_cv_as_ix86_swap+:} false
; then :
27423 $as_echo_n "(cached) " >&6
27425 gcc_cv_as_ix86_swap
=no
27426 if test x
$gcc_cv_as != x
; then
27427 $as_echo 'movl.s %esp, %ebp' > conftest.s
27428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27430 (eval $ac_try) 2>&5
27432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27433 test $ac_status = 0; }; }
27435 gcc_cv_as_ix86_swap
=yes
27437 echo "configure: failed program was" >&5
27440 rm -f conftest.o conftest.s
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27444 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27445 if test $gcc_cv_as_ix86_swap = yes; then
27447 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27453 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27454 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27455 $as_echo_n "(cached) " >&6
27457 gcc_cv_as_ix86_diff_sect_delta
=no
27458 if test x
$gcc_cv_as != x
; then
27459 $as_echo '.section .rodata
27465 .L2: nop' > conftest.s
27466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27468 (eval $ac_try) 2>&5
27470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27471 test $ac_status = 0; }; }
27473 gcc_cv_as_ix86_diff_sect_delta
=yes
27475 echo "configure: failed program was" >&5
27478 rm -f conftest.o conftest.s
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27482 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27483 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27485 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27491 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27492 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27493 $as_echo_n "(cached) " >&6
27495 gcc_cv_as_ix86_rep_lock_prefix
=no
27496 if test x
$gcc_cv_as != x
; then
27497 $as_echo 'rep movsl
27502 lock addl %edi, (%eax,%esi)
27503 lock orl $0, (%esp)' > conftest.s
27504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27506 (eval $ac_try) 2>&5
27508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27509 test $ac_status = 0; }; }
27511 gcc_cv_as_ix86_rep_lock_prefix
=yes
27513 echo "configure: failed program was" >&5
27516 rm -f conftest.o conftest.s
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27520 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27521 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27523 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27529 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27530 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27531 $as_echo_n "(cached) " >&6
27533 gcc_cv_as_ix86_ud2
=no
27534 if test x
$gcc_cv_as != x
; then
27535 $as_echo 'ud2' > conftest.s
27536 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27538 (eval $ac_try) 2>&5
27540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27541 test $ac_status = 0; }; }
27543 gcc_cv_as_ix86_ud2
=yes
27545 echo "configure: failed program was" >&5
27548 rm -f conftest.o conftest.s
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27552 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27553 if test $gcc_cv_as_ix86_ud2 = yes; then
27555 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27560 # Enforce 32-bit output with gas and gld.
27561 if test x
$gas = xyes
; then
27562 as_ix86_gas_32_opt
="--32"
27564 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27565 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27566 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27568 ld_ix86_gld_32_opt
="-melf_i386"
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27573 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27574 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27575 $as_echo_n "(cached) " >&6
27577 gcc_cv_as_ix86_tlsgdplt
=no
27578 if test x
$gcc_cv_as != x
; then
27579 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27582 (eval $ac_try) 2>&5
27584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27585 test $ac_status = 0; }; }
27587 if test x
$gcc_cv_ld != x \
27588 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27589 gcc_cv_as_ix86_tlsgdplt
=yes
27593 echo "configure: failed program was" >&5
27596 rm -f conftest.o conftest.s
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27600 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27601 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27603 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27609 .section .tdata,"aw'$tls_section_flag'",@progbits
27611 .section .text,"ax",@progbits
27612 call tls_ld@tlsldmplt'
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27615 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27616 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27617 $as_echo_n "(cached) " >&6
27619 gcc_cv_as_ix86_tlsldmplt
=no
27620 if test x
$gcc_cv_as != x
; then
27621 $as_echo "$conftest_s" > conftest.s
27622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27624 (eval $ac_try) 2>&5
27626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27627 test $ac_status = 0; }; }
27629 if test x
$gcc_cv_ld != x \
27630 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27631 gcc_cv_as_ix86_tlsldmplt
=yes
27635 echo "configure: failed program was" >&5
27638 rm -f conftest.o conftest.s
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27642 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27646 cat >>confdefs.h
<<_ACEOF
27647 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27652 .section .text,"ax",@progbits
27654 .type _start, @function
27656 leal value@tlsldm(%ebx), %eax
27657 call ___tls_get_addr@plt
27659 .section .tdata,"aw'$tls_section_flag'",@progbits
27660 .type value, @object
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27663 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27664 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27665 $as_echo_n "(cached) " >&6
27667 gcc_cv_as_ix86_tlsldm
=no
27668 if test x
$gcc_cv_as != x
; then
27669 $as_echo "$conftest_s" > conftest.s
27670 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27672 (eval $ac_try) 2>&5
27674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27675 test $ac_status = 0; }; }
27677 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27678 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27679 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27680 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27681 gcc_cv_as_ix86_tlsldm
=yes
27686 echo "configure: failed program was" >&5
27689 rm -f conftest.o conftest.s
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27693 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27697 cat >>confdefs.h
<<_ACEOF
27698 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27712 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27713 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27714 $as_echo_n "(cached) " >&6
27716 gcc_cv_as_ix86_got32x
=no
27717 if test x
$gcc_cv_as != x
; then
27718 $as_echo "$conftest_s" > conftest.s
27719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; }
27726 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27727 && test x
$gcc_cv_readelf != x \
27728 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27729 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27730 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27731 if $gcc_cv_objdump -dw conftest
2>&1 \
27732 |
grep 0xffffff > /dev
/null
2>&1; then
27733 gcc_cv_as_ix86_got32x
=no
27735 gcc_cv_as_ix86_got32x
=yes
27740 echo "configure: failed program was" >&5
27743 rm -f conftest.o conftest.s
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27747 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27751 cat >>confdefs.h
<<_ACEOF
27752 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27757 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27758 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27759 $as_echo_n "(cached) " >&6
27761 gcc_cv_as_ix86_gotoff_in_data
=no
27762 if test x
$gcc_cv_as != x
; then
27767 .long .L0@GOTOFF' > conftest.s
27768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27770 (eval $ac_try) 2>&5
27772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27773 test $ac_status = 0; }; }
27775 gcc_cv_as_ix86_gotoff_in_data
=yes
27777 echo "configure: failed program was" >&5
27780 rm -f conftest.o conftest.s
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27784 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27788 cat >>confdefs.h
<<_ACEOF
27789 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27794 .section .text,"ax",@progbits
27796 .type _start, @function
27798 leal ld@tlsldm(%ecx), %eax
27799 call *___tls_get_addr@GOT(%ecx)
27800 leal gd@tlsgd(%ecx), %eax
27801 call *___tls_get_addr@GOT(%ecx)
27803 .section .tdata,"aw'$tls_section_flag'",@progbits
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27812 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27813 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27814 $as_echo_n "(cached) " >&6
27816 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27817 if test x
$gcc_cv_as != x
; then
27818 $as_echo "$conftest_s" > conftest.s
27819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27821 (eval $ac_try) 2>&5
27823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27824 test $ac_status = 0; }; }
27826 if test x
$gcc_cv_ld != x \
27827 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27828 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27832 echo "configure: failed program was" >&5
27835 rm -f conftest.o conftest.s
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27839 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27843 cat >>confdefs.h
<<_ACEOF
27844 #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`
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27851 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27852 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27853 $as_echo_n "(cached) " >&6
27855 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27856 if test x
$gcc_cv_as != x
; then
27858 addl r15 = @ltoffx(x#), gp
27860 ld8.mov r16 = [r15], x#
27862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27864 (eval $ac_try) 2>&5
27866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27867 test $ac_status = 0; }; }
27869 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27871 echo "configure: failed program was" >&5
27874 rm -f conftest.o conftest.s
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27878 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27879 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27881 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27893 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27894 if ${gcc_cv_as_machine_directive+:} false
; then :
27895 $as_echo_n "(cached) " >&6
27897 gcc_cv_as_machine_directive
=no
27898 if test x
$gcc_cv_as != x
; then
27899 $as_echo ' .machine ppc7400' > conftest.s
27900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27902 (eval $ac_try) 2>&5
27904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27905 test $ac_status = 0; }; }
27907 gcc_cv_as_machine_directive
=yes
27909 echo "configure: failed program was" >&5
27912 rm -f conftest.o conftest.s
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27916 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27919 if test x
$gcc_cv_as_machine_directive != xyes
; then
27920 echo "*** This target requires an assembler supporting \".machine\"" >&2
27921 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27922 test x
$build = x
$target && exit 1
27928 *-*-aix*) conftest_s
=' .machine "pwr5"
27931 *-*-darwin*) conftest_s
=' .text
27933 *) conftest_s
=' .machine power4
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27939 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27940 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27941 $as_echo_n "(cached) " >&6
27943 gcc_cv_as_powerpc_mfcrf
=no
27944 if test x
$gcc_cv_as != x
; then
27945 $as_echo "$conftest_s" > conftest.s
27946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27948 (eval $ac_try) 2>&5
27950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27951 test $ac_status = 0; }; }
27953 gcc_cv_as_powerpc_mfcrf
=yes
27955 echo "configure: failed program was" >&5
27958 rm -f conftest.o conftest.s
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27962 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27963 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27965 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27971 *-*-aix*) conftest_s
=' .csect .text[PR]
27973 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27977 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27978 *) conftest_s
=' .text
27980 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27984 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27985 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27986 $as_echo_n "(cached) " >&6
27988 gcc_cv_as_powerpc_rel16
=no
27989 if test x
$gcc_cv_as != x
; then
27990 $as_echo "$conftest_s" > conftest.s
27991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27993 (eval $ac_try) 2>&5
27995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27996 test $ac_status = 0; }; }
27998 gcc_cv_as_powerpc_rel16
=yes
28000 echo "configure: failed program was" >&5
28003 rm -f conftest.o conftest.s
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28007 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28008 if test $gcc_cv_as_powerpc_rel16 = yes; then
28010 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28016 *-*-aix*) conftest_s
=' .machine "pwr7"
28019 *) conftest_s
=' .machine power7
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28025 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28026 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28027 $as_echo_n "(cached) " >&6
28029 gcc_cv_as_powerpc_vsx
=no
28030 if test x
$gcc_cv_as != x
; then
28031 $as_echo "$conftest_s" > conftest.s
28032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28034 (eval $ac_try) 2>&5
28036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28037 test $ac_status = 0; }; }
28039 gcc_cv_as_powerpc_vsx
=yes
28041 echo "configure: failed program was" >&5
28044 rm -f conftest.o conftest.s
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28048 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28049 if test $gcc_cv_as_powerpc_vsx = yes; then
28051 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28057 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28058 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28059 $as_echo_n "(cached) " >&6
28061 gcc_cv_as_powerpc_gnu_attribute
=no
28062 if test x
$gcc_cv_as != x
; then
28063 $as_echo '.gnu_attribute 4,1' > conftest.s
28064 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28066 (eval $ac_try) 2>&5
28068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28069 test $ac_status = 0; }; }
28071 gcc_cv_as_powerpc_gnu_attribute
=yes
28073 echo "configure: failed program was" >&5
28076 rm -f conftest.o conftest.s
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28080 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28081 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28083 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28089 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28090 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28091 $as_echo_n "(cached) " >&6
28093 gcc_cv_as_powerpc_entry_markers
=no
28094 if test x
$gcc_cv_as != x
; then
28095 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28098 (eval $ac_try) 2>&5
28100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28101 test $ac_status = 0; }; }
28103 gcc_cv_as_powerpc_entry_markers
=yes
28105 echo "configure: failed program was" >&5
28108 rm -f conftest.o conftest.s
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28112 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28113 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28115 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28121 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28122 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28123 $as_echo_n "(cached) " >&6
28125 gcc_cv_as_powerpc_pltseq_markers
=no
28126 if test x
$gcc_cv_as != x
; then
28127 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28130 (eval $ac_try) 2>&5
28132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28133 test $ac_status = 0; }; }
28135 gcc_cv_as_powerpc_pltseq_markers
=yes
28137 echo "configure: failed program was" >&5
28140 rm -f conftest.o conftest.s
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28144 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28145 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28147 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28155 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28156 if ${gcc_cv_as_aix_ref+:} false
; then :
28157 $as_echo_n "(cached) " >&6
28159 gcc_cv_as_aix_ref
=no
28160 if test x
$gcc_cv_as != x
; then
28161 $as_echo ' .csect stuff[rw]
28167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28169 (eval $ac_try) 2>&5
28171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28172 test $ac_status = 0; }; }
28174 gcc_cv_as_aix_ref
=yes
28176 echo "configure: failed program was" >&5
28179 rm -f conftest.o conftest.s
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28183 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28184 if test $gcc_cv_as_aix_ref = yes; then
28186 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28192 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28193 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28194 $as_echo_n "(cached) " >&6
28196 gcc_cv_as_aix_dwloc
=no
28197 if test x
$gcc_cv_as != x
; then
28198 $as_echo ' .dwsect 0xA0000
28202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28204 (eval $ac_try) 2>&5
28206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28207 test $ac_status = 0; }; }
28209 gcc_cv_as_aix_dwloc
=yes
28211 echo "configure: failed program was" >&5
28214 rm -f conftest.o conftest.s
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28218 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28219 if test $gcc_cv_as_aix_dwloc = yes; then
28221 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28231 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28232 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28233 $as_echo_n "(cached) " >&6
28235 gcc_cv_as_mips_explicit_relocs
=no
28236 if test x
$gcc_cv_as != x
; then
28237 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28238 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28240 (eval $ac_try) 2>&5
28242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28243 test $ac_status = 0; }; }
28245 gcc_cv_as_mips_explicit_relocs
=yes
28247 echo "configure: failed program was" >&5
28250 rm -f conftest.o conftest.s
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28254 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28255 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28256 if test x
$target_cpu_default = x
28257 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28258 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28264 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28265 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28266 $as_echo_n "(cached) " >&6
28268 gcc_cv_as_mips_no_shared
=no
28269 if test x
$gcc_cv_as != x
; then
28270 $as_echo 'nop' > conftest.s
28271 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28273 (eval $ac_try) 2>&5
28275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28276 test $ac_status = 0; }; }
28278 gcc_cv_as_mips_no_shared
=yes
28280 echo "configure: failed program was" >&5
28283 rm -f conftest.o conftest.s
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28287 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28288 if test $gcc_cv_as_mips_no_shared = yes; then
28290 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28296 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28297 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28298 $as_echo_n "(cached) " >&6
28300 gcc_cv_as_mips_gnu_attribute
=no
28301 if test x
$gcc_cv_as != x
; then
28302 $as_echo '.gnu_attribute 4,1' > conftest.s
28303 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28305 (eval $ac_try) 2>&5
28307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28308 test $ac_status = 0; }; }
28310 gcc_cv_as_mips_gnu_attribute
=yes
28312 echo "configure: failed program was" >&5
28315 rm -f conftest.o conftest.s
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28319 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28320 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28322 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28328 $as_echo_n "checking assembler for .module support... " >&6; }
28329 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28330 $as_echo_n "(cached) " >&6
28332 gcc_cv_as_mips_dot_module
=no
28333 if test x
$gcc_cv_as != x
; then
28334 $as_echo '.module mips2
28335 .module fp=xx' > conftest.s
28336 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28338 (eval $ac_try) 2>&5
28340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28341 test $ac_status = 0; }; }
28343 gcc_cv_as_mips_dot_module
=yes
28345 echo "configure: failed program was" >&5
28348 rm -f conftest.o conftest.s
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28352 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28353 if test $gcc_cv_as_mips_dot_module = yes; then
28355 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28359 if test x
$gcc_cv_as_mips_dot_module = xno \
28360 && test x
$with_fp_32 != x
; then
28361 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28365 $as_echo_n "checking assembler for .micromips support... " >&6; }
28366 if ${gcc_cv_as_micromips_support+:} false
; then :
28367 $as_echo_n "(cached) " >&6
28369 gcc_cv_as_micromips_support
=no
28370 if test x
$gcc_cv_as != x
; then
28371 $as_echo '.set micromips' > conftest.s
28372 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28374 (eval $ac_try) 2>&5
28376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28377 test $ac_status = 0; }; }
28379 gcc_cv_as_micromips_support
=yes
28381 echo "configure: failed program was" >&5
28384 rm -f conftest.o conftest.s
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28388 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28389 if test $gcc_cv_as_micromips_support = yes; then
28391 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28397 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28398 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28399 $as_echo_n "(cached) " >&6
28401 gcc_cv_as_mips_dtprelword
=no
28402 if test x
$gcc_cv_as != x
; then
28403 $as_echo '.section .tdata,"awT",@progbits
28407 .dtprelword x+0x8000' > conftest.s
28408 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28410 (eval $ac_try) 2>&5
28412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28413 test $ac_status = 0; }; }
28415 gcc_cv_as_mips_dtprelword
=yes
28417 echo "configure: failed program was" >&5
28420 rm -f conftest.o conftest.s
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28424 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28425 if test $gcc_cv_as_mips_dtprelword = yes; then
28427 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28433 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28434 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28435 $as_echo_n "(cached) " >&6
28437 gcc_cv_as_mips_dspr1_mult
=no
28438 if test x
$gcc_cv_as != x
; then
28439 $as_echo ' .set mips32r2
28447 multu $ac3,$4,$5' > conftest.s
28448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28450 (eval $ac_try) 2>&5
28452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; }; }
28455 gcc_cv_as_mips_dspr1_mult
=yes
28457 echo "configure: failed program was" >&5
28460 rm -f conftest.o conftest.s
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28464 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28465 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28467 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28473 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28474 gcc_cv_as_ld_jalr_reloc
=no
28475 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28476 if test $in_tree_ld = yes ; then
28477 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 \
28478 && test $in_tree_ld_is_elf = yes; then
28479 gcc_cv_as_ld_jalr_reloc
=yes
28481 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28482 echo ' .ent x' > conftest.s
28483 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28484 echo ' lw $25,%call16(y)($28)' >> conftest.s
28485 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28486 echo '1: jalr $25' >> conftest.s
28487 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28488 echo '1: jalr $25' >> conftest.s
28489 echo ' .end x' >> conftest.s
28490 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28491 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28492 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28493 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28494 gcc_cv_as_ld_jalr_reloc
=yes
28500 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28501 if test x
$target_cpu_default = x
; then
28502 target_cpu_default
=MASK_RELAX_PIC_CALLS
28504 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28508 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28511 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28512 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28513 $as_echo_n "(cached) " >&6
28515 gcc_cv_ld_mips_personality_relaxation
=no
28516 if test $in_tree_ld = yes ; then
28517 if test "$gcc_cv_gld_major_version" -eq 2 \
28518 -a "$gcc_cv_gld_minor_version" -ge 21 \
28519 -o "$gcc_cv_gld_major_version" -gt 2; then
28520 gcc_cv_ld_mips_personality_relaxation
=yes
28522 elif test x
$gcc_cv_as != x \
28523 -a x
$gcc_cv_ld != x \
28524 -a x
$gcc_cv_readelf != x
; then
28525 cat > conftest.s
<<EOF
28527 .cfi_personality 0x80,indirect_ptr
28534 .section .data,"aw",@progbits
28538 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28539 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28540 if $gcc_cv_readelf -d conftest
2>&1 \
28541 |
grep TEXTREL
> /dev
/null
2>&1; then
28543 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28544 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28547 gcc_cv_ld_mips_personality_relaxation
=yes
28551 rm -f conftest.s conftest.o conftest
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28554 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28555 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28557 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28562 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28563 if ${gcc_cv_as_mips_nan+:} false
; then :
28564 $as_echo_n "(cached) " >&6
28566 gcc_cv_as_mips_nan
=no
28567 if test x
$gcc_cv_as != x
; then
28568 $as_echo '' > conftest.s
28569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28571 (eval $ac_try) 2>&5
28573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28574 test $ac_status = 0; }; }
28576 gcc_cv_as_mips_nan
=yes
28578 echo "configure: failed program was" >&5
28581 rm -f conftest.o conftest.s
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28585 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28586 if test $gcc_cv_as_mips_nan = yes; then
28588 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28592 if test x
$gcc_cv_as_mips_nan = xno \
28593 && test x
$with_nan != x
; then
28594 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28598 # Earlier GAS versions generically support .gnu_attribute, but the
28599 # msp430 assembler will not do anything with it.
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28601 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28602 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28603 $as_echo_n "(cached) " >&6
28605 gcc_cv_as_msp430_gnu_attribute
=no
28606 if test x
$gcc_cv_as != x
; then
28607 $as_echo '.gnu_attribute 4,1' > conftest.s
28608 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28610 (eval $ac_try) 2>&5
28612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28613 test $ac_status = 0; }; }
28615 gcc_cv_as_msp430_gnu_attribute
=yes
28617 echo "configure: failed program was" >&5
28620 rm -f conftest.o conftest.s
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28624 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28625 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28627 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28632 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28633 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28634 $as_echo_n "(cached) " >&6
28636 gcc_cv_as_msp430_mspabi_attribute
=no
28637 if test x
$gcc_cv_as != x
; then
28638 $as_echo '.mspabi_attribute 4,2' > conftest.s
28639 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28641 (eval $ac_try) 2>&5
28643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28644 test $ac_status = 0; }; }
28646 gcc_cv_as_msp430_mspabi_attribute
=yes
28648 echo "configure: failed program was" >&5
28651 rm -f conftest.o conftest.s
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28655 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28656 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28658 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28662 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28664 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28669 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28670 # syntax that is documented in the ABI specification.
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28672 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28673 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28674 $as_echo_n "(cached) " >&6
28676 gcc_cv_as_nios2_gotoff_relocation
=no
28677 if test x
$gcc_cv_as != x
; then
28678 $as_echo ' .extern foo
28680 .long %gotoff(foo)' > conftest.s
28681 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28683 (eval $ac_try) 2>&5
28685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28686 test $ac_status = 0; }; }
28688 gcc_cv_as_nios2_gotoff_relocation
=yes
28690 echo "configure: failed program was" >&5
28693 rm -f conftest.o conftest.s
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28697 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28698 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28700 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28707 $as_echo_n "checking assembler for .attribute support... " >&6; }
28708 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28709 $as_echo_n "(cached) " >&6
28711 gcc_cv_as_riscv_attribute
=no
28712 if test x
$gcc_cv_as != x
; then
28713 $as_echo '.attribute stack_align,4' > conftest.s
28714 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28716 (eval $ac_try) 2>&5
28718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28719 test $ac_status = 0; }; }
28721 gcc_cv_as_riscv_attribute
=yes
28723 echo "configure: failed program was" >&5
28726 rm -f conftest.o conftest.s
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28730 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28731 if test $gcc_cv_as_riscv_attribute = yes; then
28733 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28738 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28739 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28740 $as_echo_n "(cached) " >&6
28742 gcc_cv_as_riscv_isa_spec
=no
28743 if test x
$gcc_cv_as != x
; then
28744 $as_echo '' > conftest.s
28745 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28747 (eval $ac_try) 2>&5
28749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28750 test $ac_status = 0; }; }
28752 gcc_cv_as_riscv_isa_spec
=yes
28754 echo "configure: failed program was" >&5
28757 rm -f conftest.o conftest.s
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28761 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28762 if test $gcc_cv_as_riscv_isa_spec = yes; then
28764 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28769 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28770 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28771 $as_echo_n "(cached) " >&6
28773 gcc_cv_as_riscv_march_zifencei
=no
28774 if test x
$gcc_cv_as != x
; then
28775 $as_echo '' > conftest.s
28776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28778 (eval $ac_try) 2>&5
28780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28781 test $ac_status = 0; }; }
28783 gcc_cv_as_riscv_march_zifencei
=yes
28785 echo "configure: failed program was" >&5
28788 rm -f conftest.o conftest.s
28791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28792 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28793 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28795 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28802 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28803 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
28804 $as_echo_n "(cached) " >&6
28806 gcc_cv_as_loongarch_dtprelword
=no
28807 if test x
$gcc_cv_as != x
; then
28808 $as_echo '' > conftest.s
28809 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28811 (eval $ac_try) 2>&5
28813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28814 test $ac_status = 0; }; }
28816 .section .tdata
,"awT",@progbits
28820 .dtprelword x
+0x8000
28822 echo "configure: failed program was" >&5
28825 rm -f conftest.o conftest.s
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28829 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28831 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28833 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28839 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28840 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28841 $as_echo_n "(cached) " >&6
28843 gcc_cv_as_s390_gnu_attribute
=no
28844 if test x
$gcc_cv_as != x
; then
28845 $as_echo '.gnu_attribute 8,1' > conftest.s
28846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28848 (eval $ac_try) 2>&5
28850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28851 test $ac_status = 0; }; }
28853 gcc_cv_as_s390_gnu_attribute
=yes
28855 echo "configure: failed program was" >&5
28858 rm -f conftest.o conftest.s
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28862 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28863 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28865 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28870 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28871 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28872 $as_echo_n "(cached) " >&6
28874 gcc_cv_as_s390_machine_machinemode
=no
28875 if test x
$gcc_cv_as != x
; then
28876 $as_echo ' .machinemode push
28879 .machine pop' > conftest.s
28880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28882 (eval $ac_try) 2>&5
28884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28885 test $ac_status = 0; }; }
28887 gcc_cv_as_s390_machine_machinemode
=yes
28889 echo "configure: failed program was" >&5
28892 rm -f conftest.o conftest.s
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28896 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28897 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28899 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28904 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28905 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28906 $as_echo_n "(cached) " >&6
28908 gcc_cv_as_s390_architecture_modifiers
=no
28909 if test x
$gcc_cv_as != x
; then
28910 $as_echo ' .machine z13+vx ' > conftest.s
28911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28913 (eval $ac_try) 2>&5
28915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28916 test $ac_status = 0; }; }
28918 gcc_cv_as_s390_architecture_modifiers
=yes
28920 echo "configure: failed program was" >&5
28923 rm -f conftest.o conftest.s
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28927 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28928 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28930 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28935 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28936 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28937 $as_echo_n "(cached) " >&6
28939 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28940 if test x
$gcc_cv_as != x
; then
28941 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28944 (eval $ac_try) 2>&5
28946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28947 test $ac_status = 0; }; }
28949 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28951 echo "configure: failed program was" >&5
28954 rm -f conftest.o conftest.s
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28958 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28959 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28961 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28966 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28967 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
28968 $as_echo_n "(cached) " >&6
28970 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
28971 if test x
$gcc_cv_as != x
; then
28972 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28975 (eval $ac_try) 2>&5
28977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28978 test $ac_status = 0; }; }
28980 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
28982 echo "configure: failed program was" >&5
28985 rm -f conftest.o conftest.s
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28989 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28990 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28992 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29000 # Mips, LoongArch and HP-UX need the GNU assembler.
29001 # Linux on IA64 might be able to use the Intel assembler.
29004 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29005 if test x
$gas_flag = xyes \
29006 ||
test x
"$host" != x
"$build" \
29007 ||
test ! -x "$gcc_cv_as" \
29008 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29011 echo "*** This configuration requires the GNU assembler" >&2
29017 # This tests if the assembler supports two registers for global_load functions
29018 # (like in LLVM versions <12) or one register (like in LLVM 12).
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5
29022 $as_echo_n "checking assembler fix for global_load functions... " >&6; }
29023 gcc_cv_as_gcn_global_load_fixed
=yes
29024 if test x
$gcc_cv_as != x
; then
29025 cat > conftest.s
<<EOF
29026 global_store_dwordx2 v[1:2], v[4:5], s[14:15]
29028 if $gcc_cv_as -triple=amdgcn--amdhsa
-filetype=obj
-mcpu=gfx900
-o conftest.o conftest.s
> /dev
/null
2>&1; then
29029 gcc_cv_as_gcn_global_load_fixed
=no
29031 rm -f conftest.s conftest.o conftest
29033 global_load_fixed
=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
29035 cat >>confdefs.h
<<_ACEOF
29036 #define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5
29040 $as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; }
29046 # Test the LLVM assembler syntax dialect; they have made a number of
29047 # changes between LLVM 12 & 13 without any backward compatibility.
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v2/3 syntax" >&5
29049 $as_echo_n "checking assembler for assembler amdgcn_target v2/3 syntax... " >&6; }
29050 if ${gcc_cv_as_gcn_asm_v3_syntax+:} false
; then :
29051 $as_echo_n "(cached) " >&6
29053 gcc_cv_as_gcn_asm_v3_syntax
=no
29054 if test x
$gcc_cv_as != x
; then
29055 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"' > conftest.s
29056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack -o conftest.o conftest.s >&5'
29057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29058 (eval $ac_try) 2>&5
29060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29061 test $ac_status = 0; }; }
29063 gcc_cv_as_gcn_asm_v3_syntax
=yes
29065 echo "configure: failed program was" >&5
29068 rm -f conftest.o conftest.s
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v3_syntax" >&5
29072 $as_echo "$gcc_cv_as_gcn_asm_v3_syntax" >&6; }
29073 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
29075 $as_echo "#define HAVE_GCN_ASM_V3_SYNTAX 1" >>confdefs.h
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v4 syntax" >&5
29080 $as_echo_n "checking assembler for assembler amdgcn_target v4 syntax... " >&6; }
29081 if ${gcc_cv_as_gcn_asm_v4_syntax+:} false
; then :
29082 $as_echo_n "(cached) " >&6
29084 gcc_cv_as_gcn_asm_v4_syntax
=no
29085 if test x
$gcc_cv_as != x
; then
29086 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"' > conftest.s
29087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack -o conftest.o conftest.s >&5'
29088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29089 (eval $ac_try) 2>&5
29091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29092 test $ac_status = 0; }; }
29094 gcc_cv_as_gcn_asm_v4_syntax
=yes
29096 echo "configure: failed program was" >&5
29099 rm -f conftest.o conftest.s
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v4_syntax" >&5
29103 $as_echo "$gcc_cv_as_gcn_asm_v4_syntax" >&6; }
29104 if test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
29106 $as_echo "#define HAVE_GCN_ASM_V4_SYNTAX 1" >>confdefs.h
29111 # Some attribute names changed in the move to v4 ...
29112 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
29113 sramopt
="+sram-ecc"
29114 sramattr
="+sram-ecc"
29116 elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
29118 sramattr
=":sramecc+"
29119 xnackattr
=":xnack+"
29121 as_fn_error $?
"Unrecognised assembler version" "$LINENO" 5
29124 # Test whether the LLVM assembler accepts -mattr=+xnack without any
29125 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
29126 # LLVM 12+ throws a warning for GPUs without support.
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for fiji" >&5
29128 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for fiji... " >&6; }
29129 if ${gcc_cv_as_gcn_xnack_ecc_fiji+:} false
; then :
29130 $as_echo_n "(cached) " >&6
29132 gcc_cv_as_gcn_xnack_ecc_fiji
=no
29133 if test x
$gcc_cv_as != x
; then
29134 $as_echo '' > conftest.s
29135 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
29136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29137 (eval $ac_try) 2>&5
29139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29140 test $ac_status = 0; }; }
29142 grep "." conftest.err
>&5 \
29143 || gcc_cv_as_gcn_xnack_ecc_fiji
=yes
29145 echo "configure: failed program was" >&5
29148 rm -f conftest.o conftest.s
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_fiji" >&5
29152 $as_echo "$gcc_cv_as_gcn_xnack_ecc_fiji" >&6; }
29153 if test $gcc_cv_as_gcn_xnack_ecc_fiji = yes; then
29155 $as_echo "#define HAVE_GCN_XNACK_FIJI 1" >>confdefs.h
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx900" >&5
29161 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx900... " >&6; }
29162 if ${gcc_cv_as_gcn_xnack_ecc_gfx900+:} false
; then :
29163 $as_echo_n "(cached) " >&6
29165 gcc_cv_as_gcn_xnack_ecc_gfx900
=no
29166 if test x
$gcc_cv_as != x
; then
29167 $as_echo '' > conftest.s
29168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
29169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29170 (eval $ac_try) 2>&5
29172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29173 test $ac_status = 0; }; }
29175 grep "." conftest.err
>&5 \
29176 || gcc_cv_as_gcn_xnack_ecc_gfx900
=yes
29178 echo "configure: failed program was" >&5
29181 rm -f conftest.o conftest.s
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx900" >&5
29185 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx900" >&6; }
29186 if test $gcc_cv_as_gcn_xnack_ecc_gfx900 = yes; then
29188 $as_echo "#define HAVE_GCN_XNACK_GFX900 1" >>confdefs.h
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx906" >&5
29194 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx906... " >&6; }
29195 if ${gcc_cv_as_gcn_xnack_ecc_gfx906+:} false
; then :
29196 $as_echo_n "(cached) " >&6
29198 gcc_cv_as_gcn_xnack_ecc_gfx906
=no
29199 if test x
$gcc_cv_as != x
; then
29200 $as_echo '' > conftest.s
29201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
29202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29203 (eval $ac_try) 2>&5
29205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29206 test $ac_status = 0; }; }
29208 grep "." conftest.err
>&5 \
29209 || gcc_cv_as_gcn_xnack_ecc_gfx906
=yes
29211 echo "configure: failed program was" >&5
29214 rm -f conftest.o conftest.s
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx906" >&5
29218 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx906" >&6; }
29219 if test $gcc_cv_as_gcn_xnack_ecc_gfx906 = yes; then
29221 $as_echo "#define HAVE_GCN_XNACK_GFX906 1" >>confdefs.h
29226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx908" >&5
29227 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx908... " >&6; }
29228 if ${gcc_cv_as_gcn_xnack_ecc_gfx908+:} false
; then :
29229 $as_echo_n "(cached) " >&6
29231 gcc_cv_as_gcn_xnack_ecc_gfx908
=no
29232 if test x
$gcc_cv_as != x
; then
29233 $as_echo '' > conftest.s
29234 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
29235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29236 (eval $ac_try) 2>&5
29238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29239 test $ac_status = 0; }; }
29241 grep "." conftest.err
>&5 \
29242 || gcc_cv_as_gcn_xnack_ecc_gfx908
=yes
29244 echo "configure: failed program was" >&5
29247 rm -f conftest.o conftest.s
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx908" >&5
29251 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx908" >&6; }
29252 if test $gcc_cv_as_gcn_xnack_ecc_gfx908 = yes; then
29254 $as_echo "#define HAVE_GCN_XNACK_GFX908 1" >>confdefs.h
29260 # Test whether the LLVM assembler accepts -mattr=+sramecc without any
29261 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
29262 # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning
29263 # for GPUs without support.
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for fiji" >&5
29265 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for fiji... " >&6; }
29266 if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false
; then :
29267 $as_echo_n "(cached) " >&6
29269 gcc_cv_as_gcn_sram_ecc_fiji
=no
29270 if test x
$gcc_cv_as != x
; then
29271 $as_echo '' > conftest.s
29272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29274 (eval $ac_try) 2>&5
29276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29277 test $ac_status = 0; }; }
29279 grep "." conftest.err
>&5 \
29280 || gcc_cv_as_gcn_sram_ecc_fiji
=yes
29282 echo "configure: failed program was" >&5
29285 rm -f conftest.o conftest.s
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5
29289 $as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; }
29290 if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then
29292 $as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx900" >&5
29298 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx900... " >&6; }
29299 if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false
; then :
29300 $as_echo_n "(cached) " >&6
29302 gcc_cv_as_gcn_sram_ecc_gfx900
=no
29303 if test x
$gcc_cv_as != x
; then
29304 $as_echo '' > conftest.s
29305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29307 (eval $ac_try) 2>&5
29309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29310 test $ac_status = 0; }; }
29312 grep "." conftest.err
>&5 \
29313 || gcc_cv_as_gcn_sram_ecc_gfx900
=yes
29315 echo "configure: failed program was" >&5
29318 rm -f conftest.o conftest.s
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5
29322 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; }
29323 if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then
29325 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx906" >&5
29331 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx906... " >&6; }
29332 if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false
; then :
29333 $as_echo_n "(cached) " >&6
29335 gcc_cv_as_gcn_sram_ecc_gfx906
=no
29336 if test x
$gcc_cv_as != x
; then
29337 $as_echo '' > conftest.s
29338 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29340 (eval $ac_try) 2>&5
29342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29343 test $ac_status = 0; }; }
29345 grep "." conftest.err
>&5 \
29346 || gcc_cv_as_gcn_sram_ecc_gfx906
=yes
29348 echo "configure: failed program was" >&5
29351 rm -f conftest.o conftest.s
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5
29355 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; }
29356 if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then
29358 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx908" >&5
29364 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx908... " >&6; }
29365 if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false
; then :
29366 $as_echo_n "(cached) " >&6
29368 gcc_cv_as_gcn_sram_ecc_gfx908
=no
29369 if test x
$gcc_cv_as != x
; then
29370 $as_echo '' > conftest.s
29371 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29373 (eval $ac_try) 2>&5
29375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29376 test $ac_status = 0; }; }
29378 grep "." conftest.err
>&5 \
29379 || gcc_cv_as_gcn_sram_ecc_gfx908
=yes
29381 echo "configure: failed program was" >&5
29384 rm -f conftest.o conftest.s
29387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5
29388 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; }
29389 if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then
29391 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29399 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29400 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29401 $as_echo_n "(cached) " >&6
29403 gcc_cv_as_arm_option_extensions
=no
29404 if test x
$gcc_cv_as != x
; then
29408 vmov.f32 s0, s1' > conftest.s
29409 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29411 (eval $ac_try) 2>&5
29413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29414 test $ac_status = 0; }; }
29416 gcc_cv_as_arm_option_extensions
=yes
29418 echo "configure: failed program was" >&5
29421 rm -f conftest.o conftest.s
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29425 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29426 if test $gcc_cv_as_arm_option_extensions = yes; then
29428 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29434 # ??? Not all targets support dwarf2 debug_line, even within a version
29435 # of gas. Moreover, we need to emit a valid instruction to trigger any
29436 # info to the output file. So, as supported targets are added to gas 2.11,
29437 # add some instruction here to (also) show we expect this might work.
29438 # ??? Once 2.11 is released, probably need to add first known working
29439 # version to the per-target configury.
29440 case "$cpu_type" in
29441 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29442 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29443 | tilegx | tilepro | visium | xstormy16 | xtensa
)
29453 if test x
"$insn" != x
; then
29455 .file 1 \"conftest.s\"
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29459 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29460 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29461 $as_echo_n "(cached) " >&6
29463 gcc_cv_as_dwarf2_debug_line
=no
29464 if test x
$gcc_cv_as != x
; then
29465 $as_echo "$conftest_s" > conftest.s
29466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29468 (eval $ac_try) 2>&5
29470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29471 test $ac_status = 0; }; }
29473 if test x
$gcc_cv_objdump != x \
29474 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29475 |
grep debug_line
> /dev
/null
2>&1; then
29476 gcc_cv_as_dwarf2_debug_line
=yes
29477 elif test x
$gcc_cv_otool != x \
29478 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29479 |
grep debug_line
> /dev
/null
2>&1; then
29480 gcc_cv_as_dwarf2_debug_line
=yes
29483 echo "configure: failed program was" >&5
29486 rm -f conftest.o conftest.s
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29490 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29494 # The .debug_line file table must be in the exact order that
29495 # we specified the files, since these indices are also used
29496 # by DW_AT_decl_file. Approximate this test by testing if
29497 # the assembler bitches if the same index is assigned twice.
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29499 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29500 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29501 $as_echo_n "(cached) " >&6
29503 gcc_cv_as_dwarf2_file_buggy
=no
29504 if test x
$gcc_cv_as != x
; then
29505 $as_echo ' .file 1 "foo.s"
29506 .file 1 "bar.s"' > conftest.s
29507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29509 (eval $ac_try) 2>&5
29511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29512 test $ac_status = 0; }; }
29514 gcc_cv_as_dwarf2_file_buggy
=yes
29516 echo "configure: failed program was" >&5
29519 rm -f conftest.o conftest.s
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29523 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29527 if test $gcc_cv_as_dwarf2_debug_line = yes \
29528 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29530 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29533 if test $gcc_cv_as_leb128 = yes; then
29535 .file 1 \"conftest.s\"
29536 .loc 1 3 0 view .LVU1
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29543 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29544 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29545 $as_echo_n "(cached) " >&6
29547 gcc_cv_as_dwarf2_debug_view
=no
29548 if test x
$gcc_cv_as != x
; then
29549 $as_echo "$conftest_s" > conftest.s
29550 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29552 (eval $ac_try) 2>&5
29554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29555 test $ac_status = 0; }; }
29557 gcc_cv_as_dwarf2_debug_view
=yes
29559 echo "configure: failed program was" >&5
29562 rm -f conftest.o conftest.s
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29566 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29567 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29569 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29577 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29578 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29579 $as_echo_n "(cached) " >&6
29581 gcc_cv_as_gdwarf2_flag
=no
29582 if test x
$gcc_cv_as != x
; then
29583 $as_echo "$insn" > conftest.s
29584 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29586 (eval $ac_try) 2>&5
29588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29589 test $ac_status = 0; }; }
29591 gcc_cv_as_gdwarf2_flag
=yes
29593 echo "configure: failed program was" >&5
29596 rm -f conftest.o conftest.s
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29600 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29601 if test $gcc_cv_as_gdwarf2_flag = yes; then
29603 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29609 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29610 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29611 $as_echo_n "(cached) " >&6
29613 gcc_cv_as_gdwarf_5_flag
=no
29614 if test x
$gcc_cv_as != x
; then
29615 $as_echo "$insn" > conftest.s
29616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29618 (eval $ac_try) 2>&5
29620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29621 test $ac_status = 0; }; }
29623 if test x
$gcc_cv_objdump != x \
29624 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29625 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29626 gcc_cv_as_gdwarf_5_flag
=yes;
29629 echo "configure: failed program was" >&5
29632 rm -f conftest.o conftest.s
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29636 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29637 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29639 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29645 win32 | pe | cygwin
* | mingw32
*)
29646 section_flags
=\"dr
\"
29647 function_type
=".def foo; .scl 2; .type 32; .endef"
29650 section_flags
=\"\",%progbits
29651 function_type
=".type foo, %function"
29652 function_size
=".size foo, .-foo";;
29654 dwarf4_debug_info_size
=0x46
29655 dwarf4_high_pc_form
=7
29656 dwarf4_debug_aranges_size
=0x2c
29658 for dwarf4_addr_size
in 8 4; do
29674 .section .debug_info,$section_flags
29676 .4byte $dwarf4_debug_info_size
29678 .4byte .Ldebug_abbrev0
29679 .byte 0x$dwarf4_addr_size
29681 .ascii \"GNU C17\\0\"
29685 .${dwarf4_addr_size}byte .Ltext0
29686 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29687 .4byte .Ldebug_line0
29693 .${dwarf4_addr_size}byte .LFB0
29694 .${dwarf4_addr_size}byte .LFE0-.LFB0
29698 .section .debug_abbrev,$section_flags
29714 .byte 0x$dwarf4_high_pc_form
29735 .byte 0x$dwarf4_high_pc_form
29741 .section .debug_aranges,$section_flags
29742 .4byte $dwarf4_debug_aranges_size
29744 .4byte .Ldebug_info0
29749 .${dwarf4_addr_size}byte .Ltext0
29750 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29751 .${dwarf4_addr_size}byte 0
29752 .${dwarf4_addr_size}byte 0
29753 .section .debug_line,$section_flags
29755 .4byte .LELT0-.LSLT0
29758 .4byte .LELTP0-.LASLTP0
29786 .byte 0x$dwarf4_line_sz
29788 .${dwarf4_addr_size}byte .LM1
29793 .byte 0x$dwarf4_line_sz
29795 .${dwarf4_addr_size}byte .LM2
29800 .byte 0x$dwarf4_line_sz
29802 .${dwarf4_addr_size}byte .Letext0
29807 .section .debug_str,$section_flags
29811 if test $dwarf4_addr_size = 4; then
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29813 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29814 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29815 $as_echo_n "(cached) " >&6
29817 gcc_cv_as_debug_line_32_flag
=no
29818 if test x
$gcc_cv_as != x
; then
29819 $as_echo "$conftest_s" > conftest.s
29820 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29822 (eval $ac_try) 2>&5
29824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29825 test $ac_status = 0; }; }
29827 gcc_cv_as_debug_line_32_flag
=yes
29829 echo "configure: failed program was" >&5
29832 rm -f conftest.o conftest.s
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29836 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29837 if test $gcc_cv_as_debug_line_32_flag = yes; then
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29843 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29844 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29845 $as_echo_n "(cached) " >&6
29847 gcc_cv_as_debug_line_64_flag
=no
29848 if test x
$gcc_cv_as != x
; then
29849 $as_echo "$conftest_s" > conftest.s
29850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29852 (eval $ac_try) 2>&5
29854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29855 test $ac_status = 0; }; }
29857 gcc_cv_as_debug_line_64_flag
=yes
29859 echo "configure: failed program was" >&5
29862 rm -f conftest.o conftest.s
29865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29866 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29867 if test $gcc_cv_as_debug_line_64_flag = yes; then
29872 if test $dwarf4_success = yes; then
29874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29875 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29876 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29877 $as_echo_n "(cached) " >&6
29879 gcc_cv_as_dwarf_4_debug_line_flag
=no
29880 if test x
$gcc_cv_as != x
; then
29881 $as_echo "$conftest_s" > conftest.s
29882 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29884 (eval $ac_try) 2>&5
29886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29887 test $ac_status = 0; }; }
29889 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29891 echo "configure: failed program was" >&5
29894 rm -f conftest.o conftest.s
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29898 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29899 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29905 dwarf4_debug_info_size
=0x36
29906 dwarf4_high_pc_form
=6
29907 dwarf4_debug_aranges_size
=0x1c
29911 if test $dwarf4_success = yes; then
29929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29930 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29931 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29932 $as_echo_n "(cached) " >&6
29934 gcc_cv_as_dwarf_4_app_flag
=no
29935 if test x
$gcc_cv_as != x
; then
29936 $as_echo "$conftest_s" > conftest.s
29937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29939 (eval $ac_try) 2>&5
29941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29942 test $ac_status = 0; }; }
29944 gcc_cv_as_dwarf_4_app_flag
=yes
29946 echo "configure: failed program was" >&5
29949 rm -f conftest.o conftest.s
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29953 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29954 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29960 if test $dwarf4_success = yes; then
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29971 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29972 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29973 $as_echo_n "(cached) " >&6
29975 gcc_cv_as_working_gdwarf_n_flag
=no
29976 if test x
$gcc_cv_as != x
; then
29977 $as_echo "$conftest_s" > conftest.s
29978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29980 (eval $ac_try) 2>&5
29982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29983 test $ac_status = 0; }; }
29985 if test x
$gcc_cv_objdump != x \
29986 && $gcc_cv_objdump -W conftest.o
2>&1 \
29987 |
grep conftest.s
> /dev
/null
2>&1; then
29988 gcc_cv_as_working_gdwarf_n_flag
=no
29990 gcc_cv_as_working_gdwarf_n_flag
=yes
29993 echo "configure: failed program was" >&5
29996 rm -f conftest.o conftest.s
29999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
30000 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
30003 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
30005 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
30011 $as_echo_n "checking assembler for --gstabs option... " >&6; }
30012 if ${gcc_cv_as_gstabs_flag+:} false
; then :
30013 $as_echo_n "(cached) " >&6
30015 gcc_cv_as_gstabs_flag
=no
30016 if test x
$gcc_cv_as != x
; then
30017 $as_echo "$insn" > conftest.s
30018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
30019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30020 (eval $ac_try) 2>&5
30022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30023 test $ac_status = 0; }; }
30025 gcc_cv_as_gstabs_flag
=yes
30027 echo "configure: failed program was" >&5
30030 rm -f conftest.o conftest.s
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
30034 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
30035 if test $gcc_cv_as_gstabs_flag = yes; then
30037 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
30043 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
30044 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
30045 $as_echo_n "(cached) " >&6
30047 gcc_cv_as_debug_prefix_map_flag
=no
30048 if test x
$gcc_cv_as != x
; then
30049 $as_echo "$insn" > conftest.s
30050 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
30051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30052 (eval $ac_try) 2>&5
30054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30055 test $ac_status = 0; }; }
30057 gcc_cv_as_debug_prefix_map_flag
=yes
30059 echo "configure: failed program was" >&5
30062 rm -f conftest.o conftest.s
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
30066 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
30067 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
30069 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
30076 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
30077 if ${gcc_cv_as_compress_debug+:} false
; then :
30078 $as_echo_n "(cached) " >&6
30080 gcc_cv_as_compress_debug
=no
30081 if test x
$gcc_cv_as != x
; then
30082 $as_echo '' > conftest.s
30083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30085 (eval $ac_try) 2>&5
30087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30088 test $ac_status = 0; }; }
30090 # gas compiled without zlib cannot compress debug sections and warns
30091 # about it, but still exits successfully. So check for this, too.
30092 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
30094 gcc_cv_as_compress_debug
=0
30095 # Since binutils 2.26, gas supports --compress-debug-sections=type,
30096 # defaulting to the ELF gABI format.
30097 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
30099 gcc_cv_as_compress_debug
=2
30100 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
30101 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
30102 # Before binutils 2.26, gas only supported --compress-debug-options and
30103 # emitted the traditional GNU format.
30104 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
30106 gcc_cv_as_compress_debug
=1
30107 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
30108 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
30110 gcc_cv_as_compress_debug
=0
30113 echo "configure: failed program was" >&5
30116 rm -f conftest.o conftest.s
30119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
30120 $as_echo "$gcc_cv_as_compress_debug" >&6; }
30124 cat >>confdefs.h
<<_ACEOF
30125 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
30129 cat >>confdefs.h
<<_ACEOF
30130 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
30134 cat >>confdefs.h
<<_ACEOF
30135 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
30140 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
30141 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
30142 $as_echo_n "(cached) " >&6
30144 gcc_cv_as_lcomm_with_alignment
=no
30145 if test x
$gcc_cv_as != x
; then
30146 $as_echo '.lcomm bar,4,16' > conftest.s
30147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30149 (eval $ac_try) 2>&5
30151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30152 test $ac_status = 0; }; }
30154 gcc_cv_as_lcomm_with_alignment
=yes
30156 echo "configure: failed program was" >&5
30159 rm -f conftest.o conftest.s
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
30163 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
30164 if test $gcc_cv_as_lcomm_with_alignment = yes; then
30166 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
30171 if test x
$with_sysroot = x
&& test x
$host = x
$target \
30172 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
30173 && test "$prefix" != "NONE"; then
30175 cat >>confdefs.h
<<_ACEOF
30176 #define PREFIX_INCLUDE_DIR "$prefix/include"
30181 # Determine the version of glibc, if any, used on the target.
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30183 $as_echo_n "checking for target glibc version... " >&6; }
30185 # Check whether --with-glibc-version was given.
30186 if test "${with_glibc_version+set}" = set; then :
30187 withval
=$with_glibc_version;
30188 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30189 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30190 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30192 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
30196 glibc_version_major
=0
30197 glibc_version_minor
=0
30198 if test -f $target_header_dir/features.h \
30199 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30200 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30201 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30202 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30207 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30209 cat >>confdefs.h
<<_ACEOF
30210 #define TARGET_GLIBC_MAJOR $glibc_version_major
30214 cat >>confdefs.h
<<_ACEOF
30215 #define TARGET_GLIBC_MINOR $glibc_version_minor
30219 # Check whether --enable-gnu-unique-object was given.
30220 if test "${enable_gnu_unique_object+set}" = set; then :
30221 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30223 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30224 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30228 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30229 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
30230 $as_echo_n "(cached) " >&6
30232 gcc_cv_as_gnu_unique_object
=no
30233 if test x
$gcc_cv_as != x
; then
30234 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30237 (eval $ac_try) 2>&5
30239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30240 test $ac_status = 0; }; }
30242 gcc_cv_as_gnu_unique_object
=yes
30244 echo "configure: failed program was" >&5
30247 rm -f conftest.o conftest.s
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30251 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30252 if test $gcc_cv_as_gnu_unique_object = yes; then
30253 # We need to unquote above to to use the definition from config.gcc.
30254 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30256 if test $glibc_version_major -gt 2 \
30257 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30258 enable_gnu_unique_object
=yes
30265 if test x
$enable_gnu_unique_object = xyes
; then
30267 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30272 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30273 if ${gcc_cv_as_line_zero+:} false
; then :
30274 $as_echo_n "(cached) " >&6
30276 gcc_cv_as_line_zero
=no
30277 if test "x$gcc_cv_as" != x
; then
30278 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30279 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30281 (eval $ac_try) 2>&5
30283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30284 test $ac_status = 0; }; } &&
30285 test "x`cat conftest.out`" = x
30287 gcc_cv_as_line_zero
=yes
30289 echo "configure: failed program was" >&5
30291 echo "configure: error output was" >&5
30292 cat conftest.out
>&5
30294 rm -f conftest.o conftest.s conftest.out
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30298 $as_echo "$gcc_cv_as_line_zero" >&6; }
30299 if test "x$gcc_cv_as_line_zero" = xyes
; then
30301 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30306 $as_echo_n "checking support for thin archives... " >&6; }
30307 thin_archive_support
=no
30308 echo 'int main (void) { return 0; }' > conftest.c
30309 if ($AR --version |
sed 1q |
grep "GNU ar" \
30310 && $CC $CFLAGS -c conftest.c \
30311 && $AR rcT conftest.a conftest.o \
30312 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30313 thin_archive_support
=yes
30315 rm -f conftest.c conftest.o conftest.a conftest
30316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30317 $as_echo "$thin_archive_support" >&6; }
30320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30321 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30322 gcc_cv_ld_eh_frame_hdr
=no
30323 if test $in_tree_ld = yes ; then
30324 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 \
30325 && test $in_tree_ld_is_elf = yes; then
30326 gcc_cv_ld_eh_frame_hdr
=yes
30328 elif test x
$gcc_cv_ld != x
; then
30329 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30330 # Check if linker supports --eh-frame-hdr option
30331 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30332 gcc_cv_ld_eh_frame_hdr
=yes
30337 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30338 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30339 gcc_cv_ld_eh_frame_hdr
=yes
30346 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30348 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30352 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30355 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30356 gcc_cv_ld_eh_frame_ciev3
=no
30357 if test $in_tree_ld = yes ; then
30358 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 \
30359 && test $in_tree_ld_is_elf = yes; then
30360 gcc_cv_ld_eh_frame_ciev3
=yes
30362 elif test x
$gcc_cv_ld != x
; then
30363 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30364 gcc_cv_ld_eh_frame_ciev3
=yes
30365 if test 0"$ld_date" -lt 20040513; then
30366 if test -n "$ld_date"; then
30367 # If there was date string, but was earlier than 2004-05-13, fail
30368 gcc_cv_ld_eh_frame_ciev3
=no
30369 elif test "$ld_vers_major" -lt 2; then
30370 gcc_cv_ld_eh_frame_ciev3
=no
30371 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30372 gcc_cv_ld_eh_frame_ciev3
=no
30378 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30379 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30380 gcc_cv_ld_eh_frame_ciev3
=yes
30387 cat >>confdefs.h
<<_ACEOF
30388 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30392 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30395 $as_echo_n "checking linker position independent executable support... " >&6; }
30397 if test $in_tree_ld = yes ; then
30399 # Full PIE support on Solaris was only introduced in gld 2.26.
30400 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30401 *) gcc_gld_pie_min_version
=15 ;;
30403 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 \
30404 && test $in_tree_ld_is_elf = yes; then
30407 elif test x
$gcc_cv_ld != x
; then
30408 # Check if linker supports -pie option
30409 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30413 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30414 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30421 *-*-solaris2.1
[1-9]*)
30422 # Solaris 11.3 added PIE support.
30423 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30430 if test x
"$gcc_cv_ld_pie" = xyes
; then
30432 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30436 $as_echo "$gcc_cv_ld_pie" >&6; }
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30439 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30440 gcc_cv_ld_pie_copyreloc
=no
30441 if test $gcc_cv_ld_pie = yes ; then
30442 if test $in_tree_ld = yes ; then
30443 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
30444 gcc_cv_ld_pie_copyreloc
=yes
30446 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30447 # Check if linker supports -pie option with copy reloc
30449 i?
86-*-linux* | x86_64-
*-linux*)
30450 cat > conftest1.s
<<EOF
30453 .type a_glob, @object
30458 cat > conftest2.s
<<EOF
30461 .type main, @function
30463 movl %eax, a_glob(%rip)
30466 .section .data.rel,"aw",@progbits
30471 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30472 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30473 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30474 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30475 gcc_cv_ld_pie_copyreloc
=yes
30477 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30483 cat >>confdefs.h
<<_ACEOF
30484 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30488 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30491 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30492 gcc_cv_ld_eh_gc_sections
=no
30493 if test $in_tree_ld = yes ; then
30494 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 \
30495 && test $in_tree_ld_is_elf = yes; then
30496 gcc_cv_ld_eh_gc_sections
=yes
30498 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30499 cat > conftest.s
<<EOF
30502 .type _start, @function
30505 .size _start, .-_start
30506 .section .text.foo,"ax",@progbits
30507 .type foo, @function
30511 .section .gcc_except_table.foo,"a",@progbits
30514 .section .eh_frame,"a",@progbits
30517 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30518 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30519 |
grep "gc-sections option ignored" > /dev
/null
; then
30520 gcc_cv_ld_eh_gc_sections
=no
30521 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30522 |
grep gcc_except_table
> /dev
/null
; then
30523 gcc_cv_ld_eh_gc_sections
=yes
30524 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30525 if test x
$gcc_cv_as_comdat_group != xyes
; then
30526 gcc_cv_ld_eh_gc_sections
=no
30527 cat > conftest.s
<<EOF
30530 .type _start, @function
30533 .size _start, .-_start
30534 .section .gnu.linkonce.t.foo,"ax",@progbits
30535 .type foo, @function
30539 .section .gcc_except_table.foo,"a",@progbits
30542 .section .eh_frame,"a",@progbits
30545 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30546 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30547 |
grep "gc-sections option ignored" > /dev
/null
; then
30548 gcc_cv_ld_eh_gc_sections
=no
30549 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30550 |
grep gcc_except_table
> /dev
/null
; then
30551 gcc_cv_ld_eh_gc_sections
=yes
30557 rm -f conftest.s conftest.o conftest
30561 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30562 gcc_cv_ld_eh_gc_sections
=no
30565 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30567 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30571 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30574 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30575 gcc_cv_ld_eh_gc_sections_bug
=no
30576 if test $in_tree_ld = yes ; then
30577 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 \
30578 && test $in_tree_ld_is_elf = yes; then
30579 gcc_cv_ld_eh_gc_sections_bug
=yes
30581 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
30582 gcc_cv_ld_eh_gc_sections_bug
=yes
30583 cat > conftest.s
<<EOF
30586 .type _start, @function
30589 .size _start, .-_start
30590 .section .text.startup.foo,"ax",@progbits
30591 .type foo, @function
30595 .section .gcc_except_table.foo,"a",@progbits
30598 .section .eh_frame,"a",@progbits
30601 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30602 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30603 |
grep "gc-sections option ignored" > /dev
/null
; then
30605 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30606 |
grep gcc_except_table
> /dev
/null
; then
30607 gcc_cv_ld_eh_gc_sections_bug
=no
30610 rm -f conftest.s conftest.o conftest
30612 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30614 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30618 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30621 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30622 # gold/gld support compressed debug sections since binutils 2.19/2.21
30623 # In binutils 2.26, gld gained support for the ELF gABI format.
30624 if test $in_tree_ld = yes ; then
30625 gcc_cv_ld_compress_debug
=0
30626 if test $ld_is_mold = yes; then
30627 gcc_cv_ld_compress_debug
=3
30628 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30629 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
30630 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30631 gcc_cv_ld_compress_debug
=2
30632 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30633 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
30634 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
30635 gcc_cv_ld_compress_debug
=3
30636 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30637 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
30638 && test $in_tree_ld_is_elf = yes; then
30639 gcc_cv_ld_compress_debug
=1
30641 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30642 if test $ld_is_mold = yes; then
30643 gcc_cv_ld_compress_debug
=3
30644 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30645 elif test "$ld_vers_major" -lt 2 \
30646 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30647 gcc_cv_ld_compress_debug
=0
30648 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30649 gcc_cv_ld_compress_debug
=1
30651 gcc_cv_ld_compress_debug
=3
30652 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30654 if test $ld_is_gold = yes; then
30655 gcc_cv_ld_compress_debug
=2
30656 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30659 case "${target}" in
30661 # Introduced in Solaris 11.2.
30662 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30663 gcc_cv_ld_compress_debug
=3
30664 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30666 gcc_cv_ld_compress_debug
=0
30670 # Assume linkers other than GNU ld don't support compessed debug
30672 gcc_cv_ld_compress_debug
=0
30677 cat >>confdefs.h
<<_ACEOF
30678 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30682 cat >>confdefs.h
<<_ACEOF
30683 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30687 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30689 if test x
"$ld64_flag" = x
"yes"; then
30691 # Set defaults for possibly untestable items.
30692 gcc_cv_ld64_export_dynamic
=0
30693 gcc_cv_ld64_platform_version
=0
30695 if test "$build" = "$host"; then
30701 # On Darwin, because of FAT library support, it is often possible to execute
30702 # exes from compatible archs even when the host differs from the build system.
30703 case "$build","$host" in
30704 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30705 darwin_try_test
=1;;
30709 # If the configurer specified a minimum ld64 version to be supported, then use
30710 # that to determine feature support.
30711 if test x
"${gcc_cv_ld64_version}" != x
; then
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30713 $as_echo_n "checking ld64 specified version... " >&6; }
30714 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30716 $as_echo "$gcc_cv_ld64_major" >&6; }
30717 if test "$gcc_cv_ld64_major" -ge 236; then
30718 gcc_cv_ld64_export_dynamic
=1
30720 if test "$gcc_cv_ld64_major" -ge 512; then
30721 gcc_cv_ld64_platform_version
=1
30723 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30724 # If the version was not specified, try to find it.
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30726 $as_echo_n "checking linker version... " >&6; }
30727 if test x
"${gcc_cv_ld64_version}" = x
; then
30728 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30731 $as_echo "$gcc_cv_ld64_version" >&6; }
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30734 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30735 gcc_cv_ld64_export_dynamic
=1
30736 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30737 gcc_cv_ld64_export_dynamic
=0
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30740 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30743 $as_echo_n "checking linker for -platform_version support... " >&6; }
30744 gcc_cv_ld64_platform_version
=1
30745 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30746 gcc_cv_ld64_platform_version
=0
30748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30749 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30752 if test x
"${gcc_cv_ld64_version}" != x
; then
30754 cat >>confdefs.h
<<_ACEOF
30755 #define LD64_VERSION "${gcc_cv_ld64_version}"
30761 cat >>confdefs.h
<<_ACEOF
30762 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30767 cat >>confdefs.h
<<_ACEOF
30768 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30773 if test x
"$dsymutil_flag" = x
"yes"; then
30775 # If the user specified a dsymutil path, then we will already have the
30776 # version string, otherwise, pick it up.
30777 if test x
"$gcc_cv_dsymutil" = x
; then
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30779 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30780 dsymutil_vers
="tool unspecified"
30781 elif test x
"$dsymutil_vers" = x
; then
30782 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30785 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30787 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30788 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30789 dsymutil_kind
=DWARFUTILS
30790 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30791 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30792 dsymutil_kind
=CLANG
30793 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30794 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30796 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30798 dsymutil_kind
=UNKNOWN
30799 dsymutil_vers
="0.0"
30801 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30802 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30803 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30804 if test x
"${dsymutil_minor}" = x
; then
30807 if test x
"${dsymutil_tiny}" = x
; then
30811 cat >>confdefs.h
<<_ACEOF
30812 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30816 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30820 win32 | pe | cygwin* | mingw32*)
30821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30822 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30823 gcc_cv_ld_broken_pe_dwarf5=yes
30824 if test $in_tree_ld = yes ; then
30825 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30826 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30827 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30828 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30829 gcc_cv_ld_broken_pe_dwarf5=no
30832 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30833 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30834 gcc_cv_ld_broken_pe_dwarf5=no
30837 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30839 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30843 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30846 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30847 gcc_cv_ld_disable_dynamicbase
=no
30848 if test $in_tree_ld = yes; then
30849 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 \
30850 gcc_cv_ld_disable_dynamicbase
=yes
30853 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30854 gcc_cv_ld_disable_dynamicbase
=yes
30857 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30859 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30863 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30872 $as_echo_n "checking linker --as-needed support... " >&6; }
30873 if ${gcc_cv_ld_as_needed+:} false
; then :
30874 $as_echo_n "(cached) " >&6
30876 gcc_cv_ld_as_needed
=no
30877 gcc_cv_ld_as_needed_option
='--as-needed'
30878 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30879 if test $in_tree_ld = yes ; then
30880 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 \
30881 && test $in_tree_ld_is_elf = yes; then
30882 gcc_cv_ld_as_needed
=yes
30883 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30884 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30885 gcc_cv_ld_no_as_needed_option
='--pop-state'
30888 elif test x
$gcc_cv_ld != x
; then
30889 # Check if linker supports --as-needed and --no-as-needed options
30890 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30891 gcc_cv_ld_as_needed
=yes
30892 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30893 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30894 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30895 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30896 # Use these options only when both ld.bfd and ld.gold support
30897 # --push-state/--pop-state, which unfortunately wasn't added
30898 # at the same time.
30899 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30900 gcc_cv_ld_no_as_needed_option
='--pop-state'
30903 case "$target:$gnu_ld" in
30905 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30907 gcc_cv_ld_as_needed
=yes
30908 gcc_cv_ld_as_needed_option
="-z ignore"
30909 gcc_cv_ld_no_as_needed_option
="-z record"
30913 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30914 # dl_iterate_phdr, i.e. since Solaris 11.
30916 *-*-solaris2.1
[1-9]*)
30918 i?
86-*-* | x86_64-
*-*)
30919 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30920 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30921 gcc_cv_ld_as_needed
=no
30927 gcc_cv_ld_as_needed
=no
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30933 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30934 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30936 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30939 cat >>confdefs.h
<<_ACEOF
30940 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30944 cat >>confdefs.h
<<_ACEOF
30945 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30951 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30952 saved_LDFLAGS
="$LDFLAGS"
30953 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30954 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30956 /* end confdefs.h. */
30957 int main(void) {return 0;}
30959 if ac_fn_cxx_try_link
"$LINENO"; then :
30960 gcc_cv_ld_clearcap
=yes; break
30962 gcc_cv_ld_clearcap
=no
30964 rm -f core conftest.err conftest.
$ac_objext \
30965 conftest
$ac_exeext conftest.
$ac_ext
30967 LDFLAGS
="$saved_LDFLAGS"
30968 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30970 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30972 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30976 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30982 emul_name
="-melf32lppc"
30985 emul_name
="-melf32ppc"
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30989 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30990 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30991 $as_echo_n "(cached) " >&6
30993 gcc_cv_ld_ppc_attr
=no
30994 if test x
"$ld_is_gold" = xyes
; then
30995 gcc_cv_ld_ppc_attr
=yes
30996 elif test $in_tree_ld = yes ; then
30997 if test "$gcc_cv_gld_major_version" -eq 2 \
30998 -a "$gcc_cv_gld_minor_version" -ge 28 \
30999 -o "$gcc_cv_gld_major_version" -gt 2; then
31000 gcc_cv_ld_ppc_attr
=yes
31002 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31003 # check that merging the long double .gnu_attribute doesn't warn
31004 cat > conftest1.s
<<EOF
31007 cat > conftest2.s
<<EOF
31010 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
31011 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
31012 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
31013 && test ! -s conftest.err
; then
31014 gcc_cv_ld_ppc_attr
=yes
31016 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
31020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
31021 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
31022 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
31024 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
31030 case "$target:$tm_file" in
31031 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
31034 emul_name
="-melf64lppc"
31037 emul_name
="-melf64ppc"
31040 emul_name
="-melf64lppc_fbsd"
31043 emul_name
="-melf64ppc_fbsd"
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
31047 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
31048 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
31049 $as_echo_n "(cached) " >&6
31051 gcc_cv_ld_no_dot_syms
=no
31052 if test x
"$ld_is_gold" = xyes
; then
31053 gcc_cv_ld_no_dot_syms
=yes
31054 elif test $in_tree_ld = yes ; then
31055 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
31056 gcc_cv_ld_no_dot_syms
=yes
31058 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31059 cat > conftest1.s
<<EOF
31063 cat > conftest2.s
<<EOF
31064 .section ".opd","aw"
31067 .type foo,@function
31069 .quad .LEfoo,.TOC.@tocbase,0
31075 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
31076 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
31077 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
31078 gcc_cv_ld_no_dot_syms
=yes
31080 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
31084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
31085 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
31086 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
31088 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
31092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31093 $as_echo_n "checking linker large toc support... " >&6; }
31094 if ${gcc_cv_ld_large_toc+:} false
; then :
31095 $as_echo_n "(cached) " >&6
31097 gcc_cv_ld_large_toc
=no
31098 if test x
"$ld_is_gold" = xyes
; then
31099 gcc_cv_ld_large_toc
=yes
31100 elif test $in_tree_ld = yes ; then
31101 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
31102 gcc_cv_ld_large_toc
=yes
31104 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31105 cat > conftest.s
<<EOF
31106 .section ".tbss","awT",@nobits
31112 addis 9,13,ie0@got@tprel@ha
31113 ld 9,ie0@got@tprel@l(9)
31115 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
31116 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
31117 gcc_cv_ld_large_toc
=yes
31119 rm -f conftest conftest.o conftest.s
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31124 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31125 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31127 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
31132 $as_echo_n "checking linker toc pointer alignment... " >&6; }
31133 if ${gcc_cv_ld_toc_align+:} false
; then :
31134 $as_echo_n "(cached) " >&6
31136 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
31137 cat > conftest.s
<<EOF
31142 .section .data.rel.ro,"aw",@progbits
31147 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
31148 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
31149 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)) }'`
31151 rm -f conftest conftest.o conftest.s
31155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
31156 $as_echo "$gcc_cv_ld_toc_align" >&6; }
31157 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
31159 cat >>confdefs.h
<<_ACEOF
31160 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
31169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31170 $as_echo_n "checking linker large toc support... " >&6; }
31171 if ${gcc_cv_ld_large_toc+:} false
; then :
31172 $as_echo_n "(cached) " >&6
31174 gcc_cv_ld_large_toc
=no
31175 if test x
$gcc_cv_as != x
; then
31176 cat > conftest.s
<<EOF
31186 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
31187 gcc_cv_ld_large_toc
=yes
31189 rm -f conftest conftest.o conftest.s
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31194 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31195 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31197 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31204 $as_echo_n "checking linker --build-id support... " >&6; }
31205 if ${gcc_cv_ld_buildid+:} false
; then :
31206 $as_echo_n "(cached) " >&6
31208 gcc_cv_ld_buildid
=no
31209 if test $in_tree_ld = yes ; then
31210 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31211 "$gcc_cv_gld_minor_version" -ge 18 -o \
31212 "$gcc_cv_gld_major_version" -gt 2 \
31213 && test $in_tree_ld_is_elf = yes; then
31214 gcc_cv_ld_buildid
=yes
31216 elif test x
$gcc_cv_ld != x
; then
31217 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
31218 gcc_cv_ld_buildid
=yes
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31223 $as_echo "$gcc_cv_ld_buildid" >&6; }
31224 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31226 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31230 # Check whether --enable-linker-build-id was given.
31231 if test "${enable_linker_build_id+set}" = set; then :
31232 enableval
=$enable_linker_build_id;
31234 enable_linker_build_id
=no
31238 if test x
"$enable_linker_build_id" = xyes
; then
31239 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31241 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31245 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31249 # In binutils 2.21, GNU ld gained support for new emulations fully
31250 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31252 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31253 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
31254 $as_echo_n "(cached) " >&6
31256 gcc_cv_ld_sol2_emulation
=no
31257 if test $in_tree_ld = yes ; then
31258 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31259 "$gcc_cv_gld_minor_version" -ge 21 -o \
31260 "$gcc_cv_gld_major_version" -gt 2 \
31261 && test $in_tree_ld_is_elf = yes; then
31262 gcc_cv_ld_sol2_emulation
=yes
31264 elif test x
$gcc_cv_ld != x
; then
31265 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
31266 grep _sol2
> /dev
/null
; then
31267 gcc_cv_ld_sol2_emulation
=yes
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31272 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31273 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31275 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31280 $as_echo_n "checking linker --sysroot support... " >&6; }
31281 if ${gcc_cv_ld_sysroot+:} false
; then :
31282 $as_echo_n "(cached) " >&6
31284 gcc_cv_ld_sysroot
=no
31285 if test $in_tree_ld = yes ; then
31286 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
31287 gcc_cv_ld_sysroot
=yes
31289 elif test x
$gcc_cv_ld != x
; then
31290 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31291 gcc_cv_ld_sysroot
=yes
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31296 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31297 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31299 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31305 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31307 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31308 if ${gcc_cv_solaris_crts+:} false
; then :
31309 $as_echo_n "(cached) " >&6
31311 gcc_cv_solaris_crts
=no
31312 if test x
$host != x
$target; then
31313 if test "x$with_sysroot" = xyes
; then
31314 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31316 target_sysroot
="${with_sysroot}"
31319 target_libdir
="$target_sysroot/usr/lib"
31320 # At the time they were added, gcrt1.o became a symlink for backwards
31321 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31323 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31324 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31326 sparc
*-*-solaris2*)
31327 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31332 $as_echo "$gcc_cv_solaris_crts" >&6; }
31335 if test x
$gcc_cv_solaris_crts = xyes
; then
31337 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31341 # Check whether --enable-libssp was given.
31342 if test "${enable_libssp+set}" = set; then :
31343 enableval
=$enable_libssp; case "${enableval}" in
31347 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31353 # Test for stack protector support in target C library.
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31355 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31356 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31357 $as_echo_n "(cached) " >&6
31359 gcc_cv_libc_provides_ssp
=no
31360 if test "x$enable_libssp" = "xno"; then
31361 gcc_cv_libc_provides_ssp
=yes
31362 elif test "x$enable_libssp" = "xyes"; then
31363 gcc_cv_libc_provides_ssp
=no
31367 # All versions of musl provide stack protector
31368 gcc_cv_libc_provides_ssp
=yes;;
31369 *-*-linux* |
*-*-kfreebsd*-gnu)
31370 # glibc 2.4 and later provides __stack_chk_fail and
31371 # either __stack_chk_guard, or TLS access to stack guard canary.
31373 if test $glibc_version_major -gt 2 \
31374 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31375 gcc_cv_libc_provides_ssp
=yes
31378 if test -f $target_header_dir/features.h \
31379 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31380 $target_header_dir/features.h
> /dev
/null
; then
31381 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31382 $target_header_dir/features.h
> /dev
/null
&& \
31383 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31384 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31385 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31386 gcc_cv_libc_provides_ssp
=yes
31388 # all versions of Bionic support stack protector
31389 elif test -f $target_header_dir/sys
/cdefs.h \
31390 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31391 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31392 gcc_cv_libc_provides_ssp
=yes
31397 # Avoid complicated tests (see
31398 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31399 # simply assert that glibc does provide this, which is true for all
31400 # realistically usable GNU/Hurd configurations.
31401 # All supported versions of musl provide it as well
31402 gcc_cv_libc_provides_ssp
=yes;;
31403 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31404 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31405 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31406 gcc_cv_libc_provides_ssp
=yes
31408 echo "no __stack_chk_fail on this target"
31412 *) gcc_cv_libc_provides_ssp
=no
;;
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31417 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31419 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31421 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31425 # Check whether --enable-default-ssp was given.
31426 # Check whether --enable-default-ssp was given.
31427 if test "${enable_default_ssp+set}" = set; then :
31428 enableval
=$enable_default_ssp;
31429 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31431 ia64
*-*-*) enable_default_ssp
=no
;;
31432 *) enable_default_ssp
=$enableval ;;
31435 enable_default_ssp
=no
31438 enable_default_ssp
=no
31441 if test x
$enable_default_ssp = xyes
; then
31443 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31448 # Test for <sys/sdt.h> on the target.
31450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31451 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31453 if test -f $target_header_dir/sys
/sdt.h
; then
31456 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31460 $as_echo "$have_sys_sdt_h" >&6; }
31462 # Check if TFmode long double should be used by default or not.
31463 # Some glibc targets used DFmode long double, but with glibc 2.4
31464 # and later they can use TFmode.
31466 powerpc
*-*-linux* | \
31467 sparc
*-*-linux* | \
31471 # Check whether --with-long-double-128 was given.
31472 if test "${with_long_double_128+set}" = set; then :
31473 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31477 s390
*-*-linux-musl*)
31478 gcc_cv_target_ldbl128
=yes
31480 powerpc
*-*-linux-musl*)
31481 gcc_cv_target_ldbl128
=no
31485 if test $glibc_version_major -gt 2 \
31486 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31487 gcc_cv_target_ldbl128
=yes
31490 gcc_cv_target_ldbl128
=no
31491 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31492 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31493 && gcc_cv_target_ldbl128
=yes
31504 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31506 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31510 # Check if TFmode long double target should use the IBM extended double or IEEE
31511 # 128-bit floating point formats if long doubles are 128-bits long. The long
31512 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31513 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31516 # Check whether --with-long-double-format was given.
31517 if test "${with_long_double_format+set}" = set; then :
31518 withval
=$with_long_double_format;
31519 case "$target:$with_long_double_format" in
31520 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31523 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31524 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31525 case "$with_cpu" in
31526 power7 | power8 | power9 | power1
*)
31530 as_fn_error $?
"Configuration option --with-long-double-format is only \
31531 supported if the default cpu is power7 or newer" "$LINENO" 5
31532 with_long_double_format
=""
31536 powerpc64
*-*-linux*:*)
31537 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31538 with_long_double_format
=""
31541 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31542 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31543 with_long_double_format
=""
31549 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31550 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31551 gcc_cv_libc_provides_hwcap_in_tcb
=no
31555 if test $glibc_version_major -gt 2 \
31556 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31557 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31561 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31563 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31567 # Check if the target LIBC handles PT_GNU_STACK.
31568 gcc_cv_libc_gnustack
=unknown
31570 mips
*-*-linux-musl*)
31571 gcc_cv_libc_gnustack
=yes
31575 if test $glibc_version_major -gt 2 \
31576 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31577 gcc_cv_libc_gnustack
=yes
31581 if test x
$gcc_cv_libc_gnustack = xyes
; then
31583 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31588 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31589 gcc_cv_target_dl_iterate_phdr
=unknown
31592 # <link.h> needs both a dl_iterate_phdr declaration and support for
31593 # compilation with largefile support.
31594 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31595 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31596 gcc_cv_target_dl_iterate_phdr
=yes
31598 gcc_cv_target_dl_iterate_phdr
=no
31601 *-*-dragonfly* |
*-*-freebsd*)
31602 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31603 gcc_cv_target_dl_iterate_phdr
=yes
31605 gcc_cv_target_dl_iterate_phdr
=no
31609 gcc_cv_target_dl_iterate_phdr
=yes
31613 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31615 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31619 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31621 # We no longer support different GC mechanisms. Emit an error if
31622 # the user configures with --with-gc.
31624 # Check whether --with-gc was given.
31625 if test "${with_gc+set}" = set; then :
31626 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31630 # Libraries to use on the host. This will normally be set by the top
31631 # level Makefile. Here we simply capture the value for our Makefile.
31632 if test -z "${HOST_LIBS+set}"; then
31637 # Use the system's zlib library.
31639 # Use the system's zlib library.
31640 zlibdir
="-L\$(top_builddir)/../zlib"
31641 zlibinc
="-I\$(top_srcdir)/../zlib"
31643 # Check whether --with-system-zlib was given.
31644 if test "${with_system_zlib+set}" = set; then :
31645 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31658 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31659 # Check whether --enable-maintainer-mode was given.
31660 if test "${enable_maintainer_mode+set}" = set; then :
31661 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31668 $as_echo "$maintainer_mode" >&6; }
31670 if test "$maintainer_mode" = "yes"; then
31676 if test -z "$CTAGS"; then
31680 if test -z "$ETAGS"; then
31684 if test -z "$CSCOPE"; then
31690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31691 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31692 # Check whether --enable-link-mutex was given.
31693 if test "${enable_link_mutex+set}" = set; then :
31694 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31700 $as_echo "$do_link_mutex" >&6; }
31702 if test "$do_link_mutex" = "yes"; then
31705 DO_LINK_MUTEX
=false
31710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31711 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31712 # Check whether --enable-link-serialization was given.
31713 if test "${enable_link_serialization+set}" = set; then :
31714 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31716 do_link_serialization
=no
31719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31720 $as_echo "$do_link_serialization" >&6; }
31722 case "$do_link_serialization" in
31724 DO_LINK_SERIALIZATION
=1;;
31725 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31726 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31728 DO_LINK_SERIALIZATION
=;;
31730 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31738 # Make empty files to contain the specs and options for each language.
31739 # Then add #include lines to for a compiler that has specs and/or options.
31745 # These (without "all_") are set in each config-lang.in.
31746 # `language' must be a single word so is spelled singularly.
31749 all_outputs
='Makefile'
31750 # List of language configure and makefile fragments.
31751 all_lang_configurefrags
=
31752 all_lang_makefrags
=
31753 # Additional files for gengtype
31754 all_gtfiles
="$target_gtfiles"
31756 # These are the languages that are set in --enable-languages,
31757 # and are available in the GCC tree.
31758 all_selected_languages
=
31760 # Add the language fragments.
31761 # Languages are added via two mechanisms. Some information must be
31762 # recorded in makefile variables, these are defined in config-lang.in.
31763 # We accumulate them and plug them into the main Makefile.
31764 # The other mechanism is a set of hooks for each of the main targets
31765 # like `clean', `install', etc.
31767 language_hooks
="Make-hooks"
31769 for lang
in ${srcdir}/*/config-lang.
in
31771 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31773 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31774 if test "x$lang_alias" = x
31776 echo "$lang doesn't set \$language." 1>&2
31779 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31780 subdirs
="$subdirs $subdir"
31782 # $gcc_subdir is where the gcc integration files are to be found
31783 # for a language, both for internal compiler purposes (compiler
31784 # sources implementing front-end to GCC tree converters), and for
31785 # build infrastructure purposes (Make-lang.in, etc.)
31787 # This will be <subdir> (relative to $srcdir) if a line like
31788 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31789 # is found in <langdir>/config-lang.in, and will remain <langdir>
31792 # Except for the language alias (fetched above), the regular
31793 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31794 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31795 # only this and the language alias.
31797 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31798 if [ "$gcc_subdir" = "" ]; then
31799 gcc_subdir
="$subdir"
31802 case ",$enable_languages," in
31804 all_selected_languages
="$all_selected_languages $lang_alias"
31805 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31806 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31817 .
${srcdir}/$gcc_subdir/config-lang.
in
31818 if test "x$language" = x
31820 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31825 case ",$enable_languages," in
31826 *,$lang_alias,*) ;;
31828 for i
in $subdir_requires; do
31829 test -f "${srcdir}/$i/config-lang.in" && continue
31837 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31838 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31839 # Put c/Make-lang.in fragment first to match serialization languages order.
31840 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31842 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31844 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31845 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31846 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31848 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31849 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31851 all_languages
="$all_languages $language"
31852 all_compilers
="$all_compilers $compilers"
31853 all_outputs
="$all_outputs $outputs"
31854 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31855 case ",$enable_languages," in
31858 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31868 for language
in $all_selected_languages
31870 check_languages
="$check_languages check-$language"
31873 selftest_languages
=
31874 for language
in $all_selected_languages
31876 selftest_languages
="$selftest_languages selftest-$language"
31879 # We link each language in with a set of hooks, reached indirectly via
31880 # lang.${target}. Only do so for selected languages.
31884 target_list
="all.cross start.encap rest.encap tags \
31885 install-common install-man install-info install-dvi install-pdf \
31886 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31887 mostlyclean clean distclean maintainer-clean install-plugin"
31889 for t
in $target_list
31892 for lang
in $all_selected_languages
31896 echo "lang.$t: $x" >> Make-hooks
31899 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31900 echo "SERIAL_LIST =" >> Make-hooks
31901 echo else >> Make-hooks
31905 serialization_languages
=c
31906 for lang
in $all_selected_languages
31908 test $lang = c
&& continue
31909 if test $lang = lto
; then
31910 serialization_languages
="$serialization_languages lto1 lto2"
31912 serialization_languages
="$serialization_languages $lang"
31915 for lang
in $serialization_languages
31917 test $lang = c
&& continue
31918 lang_cnt
=`expr $lang_cnt + 1`
31919 lang_list
=" $prev$lang_list"
31922 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31923 echo endif
>> Make-hooks
31924 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31925 echo "INDEX.c = 0" >> Make-hooks
31927 for lang
in $serialization_languages
31929 test $lang = c
&& continue
31930 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31931 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31932 lang_cnt
=`expr $lang_cnt - 1`
31933 lang_idx
=`expr $lang_idx + 1`
31937 # Option include files
31940 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31941 option_includes
="option-includes.mk"
31950 echo "dir ." > .gdbinit
31951 echo "dir ${srcdir}" >> .gdbinit
31952 if test x
$gdb_needs_out_file_path = xyes
31954 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31956 if test "x$subdirs" != x
; then
31959 echo "dir ${srcdir}/$s" >> .gdbinit
31962 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31963 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31965 # Put a breakpoint on __asan_report_error to help with debugging buffer
31968 *-fsanitize=address
*)
31969 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31973 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31977 # Find a directory in which to install a shared libgcc.
31979 # Check whether --enable-version-specific-runtime-libs was given.
31980 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31981 enableval
=$enable_version_specific_runtime_libs;
31985 # Substitute configuration variables
32056 if test x
${build} = x
${host} ; then
32057 if test x
${host} = x
${target} ; then
32058 echo "Links are now set up to build a native compiler for ${target}." 1>&2
32060 echo "Links are now set up to build a cross-compiler" 1>&2
32061 echo " from ${host} to ${target}." 1>&2
32064 if test x
${host} = x
${target} ; then
32065 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
32066 echo " for ${target}." 1>&2
32068 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
32069 echo " from ${host} to ${target}." 1>&2
32078 if test "x${ISLLIBS}" != "x" ; then
32080 $as_echo "#define HAVE_isl 1" >>confdefs.h
32084 # Check for plugin support
32085 # Check whether --enable-plugin was given.
32086 if test "${enable_plugin+set}" = set; then :
32087 enableval
=$enable_plugin; enable_plugin
=$enableval
32089 enable_plugin
=yes; default_plugin
=yes
32098 # Since plugin support under MinGW is not as straightforward as on
32099 # other platforms (e.g., we have to link import library, etc), we
32100 # only enable it if explicitly requested.
32101 if test x
"$default_plugin" = x
"yes"; then
32103 elif test x
"$enable_plugin" = x
"yes"; then
32104 # Use make's target variable to derive import library name.
32105 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
32110 if test x
$build = x
$host; then
32111 export_sym_check
="nm${exeext} -g"
32112 elif test x
$host = x
$target; then
32113 export_sym_check
="$gcc_cv_nm -g"
32119 if test x
$build = x
$host; then
32120 export_sym_check
="objdump${exeext} -T"
32121 elif test x
$host = x
$target; then
32122 export_sym_check
="$gcc_cv_objdump -T"
32129 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
32131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
32132 $as_echo_n "checking for exported symbols... " >&6; }
32133 if test "x$export_sym_check" != x
; then
32134 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
32135 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
32136 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
32137 : # No need to use a flag
32138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32139 $as_echo "yes" >&6; }
32141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32142 $as_echo "yes" >&6; }
32143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
32144 $as_echo_n "checking for -rdynamic... " >&6; }
32145 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
32146 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
32147 plugin_rdynamic
=yes
32148 pluginlibs
="-rdynamic"
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
32154 $as_echo "$plugin_rdynamic" >&6; }
32157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
32158 $as_echo "unable to check" >&6; }
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
32164 $as_echo_n "checking for library containing dlopen... " >&6; }
32165 if ${ac_cv_search_dlopen+:} false
; then :
32166 $as_echo_n "(cached) " >&6
32168 ac_func_search_save_LIBS
=$LIBS
32169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32170 /* end confdefs.h. */
32172 /* Override any GCC internal prototype to avoid an error.
32173 Use char because int might match the return type of a GCC
32174 builtin and then its argument prototype would still apply. */
32187 for ac_lib
in '' dl
; do
32188 if test -z "$ac_lib"; then
32189 ac_res
="none required"
32192 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
32194 if ac_fn_cxx_try_link
"$LINENO"; then :
32195 ac_cv_search_dlopen
=$ac_res
32197 rm -f core conftest.err conftest.
$ac_objext \
32199 if ${ac_cv_search_dlopen+:} false
; then :
32203 if ${ac_cv_search_dlopen+:} false
; then :
32206 ac_cv_search_dlopen
=no
32208 rm conftest.
$ac_ext
32209 LIBS
=$ac_func_search_save_LIBS
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32212 $as_echo "$ac_cv_search_dlopen" >&6; }
32213 ac_res
=$ac_cv_search_dlopen
32214 if test "$ac_res" != no
; then :
32215 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
32219 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
32220 pluginlibs
="$pluginlibs -ldl"
32224 # Check that we can build shared objects with -fPIC -shared
32225 saved_LDFLAGS
="$LDFLAGS"
32226 saved_CFLAGS
="$CFLAGS"
32227 saved_CXXFLAGS
="$CXXFLAGS"
32230 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32231 CFLAGS
="$CFLAGS -fPIC"
32232 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32233 CXXFLAGS
="$CXXFLAGS -fPIC"
32234 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
32237 CFLAGS
="$CFLAGS -fPIC"
32238 CXXFLAGS
="$CXXFLAGS -fPIC"
32239 LDFLAGS
="$LDFLAGS -fPIC -shared"
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32243 $as_echo_n "checking for -fPIC -shared... " >&6; }
32244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32245 /* end confdefs.h. */
32255 if ac_fn_cxx_try_link
"$LINENO"; then :
32256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32257 $as_echo "yes" >&6; }; have_pic_shared
=yes
32259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32260 $as_echo "no" >&6; }; have_pic_shared
=no
32262 rm -f core conftest.err conftest.
$ac_objext \
32263 conftest
$ac_exeext conftest.
$ac_ext
32264 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32268 LDFLAGS
="$saved_LDFLAGS"
32269 CFLAGS
="$saved_CFLAGS"
32270 CXXFLAGS
="$saved_CXXFLAGS"
32272 # If plugin support had been requested but not available, fail.
32273 if test x
"$enable_plugin" = x
"no" ; then
32274 if test x
"$default_plugin" != x
"yes"; then
32276 Building GCC with plugin support requires a host that supports
32277 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32284 if test x
"$enable_plugin" = x
"yes"; then
32286 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32291 # Enable --enable-host-shared
32292 # Check whether --enable-host-shared was given.
32293 if test "${enable_host_shared+set}" = set; then :
32294 enableval
=$enable_host_shared; PICFLAG
=-fPIC
32303 # Check whether --enable-libquadmath-support was given.
32304 if test "${enable_libquadmath_support+set}" = set; then :
32305 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32307 ENABLE_LIBQUADMATH_SUPPORT
=yes
32310 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32312 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32317 # Specify what hash style to use by default.
32319 # Check whether --with-linker-hash-style was given.
32320 if test "${with_linker_hash_style+set}" = set; then :
32321 withval
=$with_linker_hash_style; case x
"$withval" in
32323 LINKER_HASH_STYLE
=sysv
32326 LINKER_HASH_STYLE
=gnu
32329 LINKER_HASH_STYLE
=both
32332 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32336 LINKER_HASH_STYLE
=''
32339 if test x
"${LINKER_HASH_STYLE}" != x
; then
32341 cat >>confdefs.h
<<_ACEOF
32342 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32347 # Specify what should be the default of -fdiagnostics-color option.
32349 # Check whether --with-diagnostics-color was given.
32350 if test "${with_diagnostics_color+set}" = set; then :
32351 withval
=$with_diagnostics_color; case x
"$withval" in
32353 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32356 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32359 DIAGNOSTICS_COLOR_DEFAULT
=-1
32362 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32365 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32369 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32373 cat >>confdefs.h
<<_ACEOF
32374 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32378 # Specify what should be the default of -fdiagnostics-urls option.
32380 # Check whether --with-diagnostics-urls was given.
32381 if test "${with_diagnostics_urls+set}" = set; then :
32382 withval
=$with_diagnostics_urls; case x
"$withval" in
32384 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32387 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32390 DIAGNOSTICS_URLS_DEFAULT
=-1
32393 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32396 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32400 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32404 cat >>confdefs.h
<<_ACEOF
32405 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32409 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32410 # of jit/jit-playback.cc.
32411 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32412 echo "gcc_driver_version: ${gcc_driver_version}"
32413 cat > gcc-driver-name.h
<<EOF
32414 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32417 # Check whether --enable-default-pie was given.
32418 # Check whether --enable-default-pie was given.
32419 if test "${enable_default_pie+set}" = set; then :
32420 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32422 enable_default_pie
=no
32425 if test x
$enable_default_pie = xyes
; then
32427 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32432 # Check if -fno-PIE works.
32433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32434 $as_echo_n "checking for -fno-PIE option... " >&6; }
32435 if ${gcc_cv_c_no_fpie+:} false
; then :
32436 $as_echo_n "(cached) " >&6
32438 saved_CXXFLAGS
="$CXXFLAGS"
32439 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32441 /* end confdefs.h. */
32442 int main(void) {return 0;}
32444 if ac_fn_cxx_try_compile
"$LINENO"; then :
32445 gcc_cv_c_no_fpie
=yes
32447 gcc_cv_c_no_fpie
=no
32449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32450 CXXFLAGS
="$saved_CXXFLAGS"
32452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32453 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32454 if test "$gcc_cv_c_no_fpie" = "yes"; then
32455 NO_PIE_CFLAGS
="-fno-PIE"
32459 # Check if -no-pie works.
32460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32461 $as_echo_n "checking for -no-pie option... " >&6; }
32462 if ${gcc_cv_no_pie+:} false
; then :
32463 $as_echo_n "(cached) " >&6
32465 saved_LDFLAGS
="$LDFLAGS"
32466 LDFLAGS
="$LDFLAGS -no-pie"
32467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32468 /* end confdefs.h. */
32469 int main(void) {return 0;}
32471 if ac_fn_cxx_try_link
"$LINENO"; then :
32476 rm -f core conftest.err conftest.
$ac_objext \
32477 conftest
$ac_exeext conftest.
$ac_ext
32478 LDFLAGS
="$saved_LDFLAGS"
32480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32481 $as_echo "$gcc_cv_no_pie" >&6; }
32482 if test "$gcc_cv_no_pie" = "yes"; then
32483 NO_PIE_FLAG
="-no-pie"
32487 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32488 # Check whether --enable-cet was given.
32489 if test "${enable_cet+set}" = set; then :
32490 enableval
=$enable_cet;
32491 case "$enableval" in
32493 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32502 $as_echo_n "checking for CET support... " >&6; }
32505 i
[34567]86-*-linux* | x86_64-
*-linux*)
32507 cet_save_CFLAGS
="$CFLAGS"
32508 CFLAGS
="$CFLAGS -fcf-protection"
32509 case "$enable_cet" in
32511 # Check if target supports multi-byte NOPs
32512 # and if compiler and assembler support CET.
32513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32514 /* end confdefs.h. */
32520 #if !defined(__SSE2__)
32521 #error target does not support multi-byte NOPs
32530 if ac_fn_cxx_try_compile
"$LINENO"; then :
32535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32538 # Check if compiler and assembler support CET.
32539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32540 /* end confdefs.h. */
32550 if ac_fn_cxx_try_compile
"$LINENO"; then :
32555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32556 if test $support_cet = "no"; then
32557 if test x
$enable_bootstrap != xno \
32558 && test -z "${with_build_subdir}" \
32559 && (test ! -f ..
/stage_current \
32560 ||
test `cat ../stage_current` != "stage1"); then
32561 # Require CET support only for the final GCC build.
32562 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32564 # Don't enable CET without CET support for non-bootstrap
32565 # build, in stage1 nor for build support.
32571 CFLAGS
="$cet_save_CFLAGS"
32579 cet_save_CFLAGS
="$CFLAGS"
32580 CFLAGS
="$CFLAGS -fcf-protection=none"
32581 cet_save_LDFLAGS
="$LDFLAGS"
32582 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32583 if test x
$may_have_cet = xyes
; then
32584 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32586 /* end confdefs.h. */
32596 if ac_fn_cxx_try_link
"$LINENO"; then :
32601 rm -f core conftest.err conftest.
$ac_objext \
32602 conftest
$ac_exeext conftest.
$ac_ext
32605 if test x
$may_have_cet = xyes
; then
32606 if test x
$cross_compiling = xno
; then
32607 if test "$cross_compiling" = yes; then :
32608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32610 as_fn_error $?
"cannot run test program while cross compiling
32611 See \`config.log' for more details" "$LINENO" 5; }
32613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32614 /* end confdefs.h. */
32624 if ac_fn_cxx_try_run
"$LINENO"; then :
32625 have_multi_byte_nop
=yes
32627 have_multi_byte_nop
=no
32629 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32630 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32634 if test x
$have_multi_byte_nop = xyes
; then
32635 if test "$cross_compiling" = yes; then :
32636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32638 as_fn_error $?
"cannot run test program while cross compiling
32639 See \`config.log' for more details" "$LINENO" 5; }
32641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32642 /* end confdefs.h. */
32650 __attribute__ ((noinline, noclone))
32651 xxx (void (*f) (void))
32657 __attribute__ ((noinline, noclone))
32671 if ac_fn_cxx_try_run
"$LINENO"; then :
32676 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32677 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32681 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32682 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32686 # Enable CET in cross compiler if possible so that it will run on both
32687 # CET and non-CET hosts.
32690 if test x
$enable_cet = xyes
; then
32691 CET_HOST_FLAGS
="-fcf-protection"
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32693 $as_echo "yes" >&6; }
32695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32696 $as_echo "no" >&6; }
32698 CFLAGS
="$cet_save_CFLAGS"
32699 LDFLAGS
="$cet_save_LDFLAGS"
32701 case x
$enable_languages in
32710 # Check linker supports '-z bndplt'
32711 ld_bndplt_support
=no
32712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32713 $as_echo_n "checking linker -z bndplt option... " >&6; }
32714 if test x
"$ld_is_gold" = xno
; then
32715 if test $in_tree_ld = yes ; then
32716 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
32717 ld_bndplt_support
=yes
32719 elif test x
$gcc_cv_ld != x
; then
32720 # Check if linker supports -a bndplt option
32721 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32722 ld_bndplt_support
=yes
32726 if test x
"$ld_bndplt_support" = xyes
; then
32728 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32732 $as_echo "$ld_bndplt_support" >&6; }
32734 # Check linker supports '--push-state'/'--pop-state'
32735 ld_pushpopstate_support
=no
32736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32737 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32738 if test x
"$ld_is_gold" = xno
; then
32739 if test $in_tree_ld = yes ; then
32740 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
32741 ld_pushpopstate_support
=yes
32743 elif test x
$gcc_cv_ld != x
; then
32744 # Check if linker supports --push-state/--pop-state options
32745 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32746 ld_pushpopstate_support
=yes
32750 if test x
"$ld_pushpopstate_support" = xyes
; then
32752 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32756 $as_echo "$ld_pushpopstate_support" >&6; }
32758 # On s390, float_t has historically been statically defined as double for no
32759 # good reason. To comply with the C standard in the light of this definition,
32760 # gcc has evaluated float expressions in double precision when in
32761 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32762 # a smooth transition towards the new model used by most architectures, where
32763 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32764 # float_t from that, this behavior can be configured with
32765 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32766 # the old model. When omitted, native builds and cross compiles that have target
32767 # libc headers will detect whether libc clamps float_t to double and in that
32768 # case maintain the old model. Otherwise, they will default to the new model.
32769 # Check whether --enable-s390-excess-float-precision was given.
32770 if test "${enable_s390_excess_float_precision+set}" = set; then :
32771 enableval
=$enable_s390_excess_float_precision;
32773 enable_s390_excess_float_precision
=auto
32779 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32780 # Can we autodetect the behavior of the target libc?
32781 if test "$target" = "$host" -a "$host" = "$build"; then
32782 enable_s390_excess_float_precision
=autodetect
32783 elif test "x$with_headers" != xno
; then
32784 # cross build. are target headers available?
32785 # carefully coerce the build-system compiler to use target headers
32786 saved_CXXFLAGS
="$CXXFLAGS"
32787 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32788 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32789 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32791 /* end confdefs.h. */
32796 if ac_fn_cxx_try_compile
"$LINENO"; then :
32797 enable_s390_excess_float_precision
=autodetect
32799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32800 CXXFLAGS
="$saved_CXXFLAGS"
32803 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32804 saved_CXXFLAGS
="$CXXFLAGS"
32805 if ! test "$target" = "$host" -a "$host" = "$build"; then
32806 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32807 unset CROSS_TEST_CXXFLAGS
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32810 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32811 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32812 $as_echo_n "(cached) " >&6
32815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32816 /* end confdefs.h. */
32818 #define __FLT_EVAL_METHOD__ 0
32820 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32823 if ac_fn_cxx_try_compile
"$LINENO"; then :
32824 gcc_cv_float_t_clamped_to_double
=yes
32826 gcc_cv_float_t_clamped_to_double
=no
32828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32831 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32832 CXXFLAGS
="$saved_CXXFLAGS"
32833 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32835 # no way to detect behavior of target libc, default to new model
32836 enable_s390_excess_float_precision
=no
32841 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32843 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32849 # Configure the subdirectories
32850 # AC_CONFIG_SUBDIRS($subdirs)
32852 # Create the Makefile
32853 # and configure language subdirectories
32854 ac_config_files
="$ac_config_files $all_outputs"
32857 ac_config_commands
="$ac_config_commands default"
32859 cat >confcache
<<\_ACEOF
32860 # This file is a shell script that caches the results of configure
32861 # tests run on this system so they can be shared between configure
32862 # scripts and configure runs, see configure's option --config-cache.
32863 # It is not useful on other systems. If it contains results you don't
32864 # want to keep, you may remove or edit it.
32866 # config.status only pays attention to the cache file if you give it
32867 # the --recheck option to rerun configure.
32869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32871 # following values.
32875 # The following way of writing the cache mishandles newlines in values,
32876 # but we know of no workaround that is simple, portable, and efficient.
32877 # So, we kill variables containing newlines.
32878 # Ultrix sh set writes to stderr and can't be redirected directly,
32879 # and sets the high bit in the cache file unless we assign to the vars.
32881 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32882 eval ac_val
=\$
$ac_var
32886 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32890 _ | IFS | as_nl
) ;; #(
32891 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32892 *) { eval $ac_var=; unset $ac_var;} ;;
32898 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32899 *${as_nl}ac_space
=\
*)
32900 # `set' does not quote correctly, so add quotes: double-quote
32901 # substitution turns \\\\ into \\, and sed turns \\ into \.
32904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32907 # `set' quotes correctly as required by POSIX, so do not add quotes.
32908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32921 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32922 if test -w "$cache_file"; then
32923 if test "x$cache_file" != "x/dev/null"; then
32924 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32925 $as_echo "$as_me: updating cache $cache_file" >&6;}
32926 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32927 cat confcache
>"$cache_file"
32929 case $cache_file in #(
32931 mv -f confcache
"$cache_file"$$
&&
32932 mv -f "$cache_file"$$
"$cache_file" ;; #(
32934 mv -f confcache
"$cache_file" ;;
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32940 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32945 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32946 # Let make expand exec_prefix.
32947 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32949 DEFS
=-DHAVE_CONFIG_H
32954 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32955 # 1. Remove the extension, and $U if already installed.
32956 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32957 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32958 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32959 # will be set to the directory where LIBOBJS objects are built.
32960 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32961 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32963 LIBOBJS
=$ac_libobjs
32965 LTLIBOBJS
=$ac_ltlibobjs
32970 : "${CONFIG_STATUS=./config.status}"
32972 ac_clean_files_save
=$ac_clean_files
32973 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32975 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32977 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32979 # Generated by $as_me.
32980 # Run this file to recreate the current configuration.
32981 # Compiler output produced by configure, useful for debugging
32982 # configure, is in config.log if it exists.
32985 ac_cs_recheck=false
32988 SHELL=\${CONFIG_SHELL-$SHELL}
32991 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32992 ## -------------------- ##
32993 ## M4sh Initialization. ##
32994 ## -------------------- ##
32996 # Be more Bourne compatible
32997 DUALCASE
=1; export DUALCASE
# for MKS sh
32998 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
33001 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33002 # is contrary to our usage. Disable this feature.
33003 alias -g '${1+"$@"}'='"$@"'
33004 setopt NO_GLOB_SUBST
33006 case `(set -o) 2>/dev/null` in #(
33018 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33019 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33020 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33022 # Prefer a ksh shell builtin over an external printf program on Solaris,
33023 # but without wasting forks for bash or zsh.
33024 if test -z "$BASH_VERSION$ZSH_VERSION" \
33025 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33026 as_echo='print
-r --'
33027 as_echo_n='print
-rn --'
33028 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33029 as_echo='printf %s
\n'
33030 as_echo_n='printf %s
'
33032 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33033 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
33034 as_echo_n='/usr
/ucb
/echo -n'
33036 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33037 as_echo_n_body='eval
33041 expr "X$arg" : "X\\(.*\\)$as_nl";
33042 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33044 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
33046 export as_echo_n_body
33047 as_echo_n='sh
-c $as_echo_n_body as_echo
'
33049 export as_echo_body
33050 as_echo='sh
-c $as_echo_body as_echo
'
33053 # The user is always right.
33054 if test "${PATH_SEPARATOR+set}" != set; then
33056 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33057 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33064 # We need space, tab and new line, in precisely that order. Quoting is
33065 # there to prevent editors from complaining about space-tab.
33066 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33067 # splitting by setting IFS to empty value.)
33070 # Find who we are. Look in the path if we contain no directory separator.
33073 *[\\/]* ) as_myself=$0 ;;
33074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33075 for as_dir in $PATH
33078 test -z "$as_dir" && as_dir=.
33079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33085 # We did not find ourselves, most probably we were run as `sh COMMAND'
33086 # in which case we are not to be found in the path.
33087 if test "x$as_myself" = x
; then
33090 if test ! -f "$as_myself"; then
33091 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33095 # Unset variables that we do not need and which cause bugs (e.g. in
33096 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33097 # suppresses any "Segmentation fault" message there. '((' could
33098 # trigger a bug in pdksh 5.2.14.
33099 for as_var
in BASH_ENV ENV MAIL MAILPATH
33100 do eval test x\
${$as_var+set} = xset \
33101 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
33114 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
33117 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33118 # ----------------------------------------
33119 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33120 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33121 # script with STATUS, using 1 if that was 0.
33124 as_status
=$1; test $as_status -eq 0 && as_status
=1
33126 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
33127 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33129 $as_echo "$as_me: error: $2" >&2
33130 as_fn_exit
$as_status
33134 # as_fn_set_status STATUS
33135 # -----------------------
33136 # Set $? to STATUS, without forking.
33137 as_fn_set_status
()
33140 } # as_fn_set_status
33142 # as_fn_exit STATUS
33143 # -----------------
33144 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33148 as_fn_set_status
$1
33154 # Portably unset VAR.
33157 { eval $1=; unset $1;}
33159 as_unset
=as_fn_unset
33160 # as_fn_append VAR VALUE
33161 # ----------------------
33162 # Append the text in VALUE to the end of the definition contained in VAR. Take
33163 # advantage of any shell optimizations that allow amortized linear growth over
33164 # repeated appends, instead of the typical quadratic growth present in naive
33166 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
33167 eval 'as_fn_append ()
33178 # as_fn_arith ARG...
33179 # ------------------
33180 # Perform arithmetic evaluation on the ARGs, and store the result in the
33181 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33182 # must be portable across $(()) and expr.
33183 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
33184 eval 'as_fn_arith ()
33191 as_val
=`expr "$@" || test $? -eq 1`
33196 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33197 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33203 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33204 as_basename
=basename
33209 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33215 as_me
=`$as_basename -- "$0" ||
33216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33217 X"$0" : 'X\(//\)$' \| \
33218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33220 sed '/^.*\/\([^/][^/]*\)\/*$/{
33234 # Avoid depending upon Character Ranges.
33235 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33236 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33237 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33238 as_cr_digits
='0123456789'
33239 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33241 ECHO_C
= ECHO_N
= ECHO_T
=
33242 case `echo -n x` in #(((((
33244 case `echo 'xy\c'` in
33245 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33247 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33254 rm -f conf$$ conf$$.exe conf$$.
file
33255 if test -d conf$$.dir
; then
33256 rm -f conf$$.dir
/conf$$.
file
33259 mkdir conf$$.dir
2>/dev
/null
33261 if (echo >conf$$.
file) 2>/dev
/null
; then
33262 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33264 # ... but there are two gotchas:
33265 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33266 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33267 # In both cases, we have to default to `cp -pR'.
33268 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33270 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33278 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33279 rmdir conf$$.dir
2>/dev
/null
33284 # Create "$as_dir" as a directory, including parents if necessary.
33289 -*) as_dir
=.
/$as_dir;;
33291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33296 *) as_qdir
=$as_dir;;
33298 as_dirs
="'$as_qdir' $as_dirs"
33299 as_dir
=`$as_dirname -- "$as_dir" ||
33300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33301 X"$as_dir" : 'X\(//\)[^/]' \| \
33302 X"$as_dir" : 'X\(//\)$' \| \
33303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33304 $as_echo X"$as_dir" |
33305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33309 /^X\(\/\/\)[^/].*/{
33322 test -d "$as_dir" && break
33324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33325 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33329 if mkdir
-p .
2>/dev
/null
; then
33330 as_mkdir_p
='mkdir -p "$as_dir"'
33332 test -d .
/-p && rmdir .
/-p
33337 # as_fn_executable_p FILE
33338 # -----------------------
33339 # Test if FILE is an executable regular file.
33340 as_fn_executable_p
()
33342 test -f "$1" && test -x "$1"
33343 } # as_fn_executable_p
33344 as_test_x
='test -x'
33345 as_executable_p
=as_fn_executable_p
33347 # Sed expression to map a string onto a valid CPP name.
33348 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33350 # Sed expression to map a string onto a valid variable name.
33351 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33355 ## ----------------------------------- ##
33356 ## Main body of $CONFIG_STATUS script. ##
33357 ## ----------------------------------- ##
33359 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33362 # Save the log message, to keep $0 and so on meaningful, and to
33363 # report actual input values of CONFIG_FILES etc. instead of their
33364 # values after options handling.
33366 This file was extended by $as_me, which was
33367 generated by GNU Autoconf 2.69. Invocation command line was
33369 CONFIG_FILES = $CONFIG_FILES
33370 CONFIG_HEADERS = $CONFIG_HEADERS
33371 CONFIG_LINKS = $CONFIG_LINKS
33372 CONFIG_COMMANDS = $CONFIG_COMMANDS
33375 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33380 case $ac_config_files in *"
33381 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33384 case $ac_config_headers in *"
33385 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33390 # Files that config.status was made for.
33391 config_files="$ac_config_files"
33392 config_headers="$ac_config_headers"
33393 config_links="$ac_config_links"
33394 config_commands="$ac_config_commands"
33398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33400 \`$as_me' instantiates files and other configuration actions
33401 from templates according to the current configuration. Unless the files
33402 and actions are specified as TAGs, all are instantiated by default.
33404 Usage: $0 [OPTION]... [TAG]...
33406 -h, --help print this help, then exit
33407 -V, --version print version number and configuration settings, then exit
33408 --config print configuration, then exit
33409 -q, --quiet, --silent
33410 do not print progress messages
33411 -d, --debug don't remove temporary files
33412 --recheck update $as_me by reconfiguring in the same conditions
33413 --file=FILE[:TEMPLATE]
33414 instantiate the configuration file FILE
33415 --header=FILE[:TEMPLATE]
33416 instantiate the configuration header FILE
33418 Configuration files:
33421 Configuration headers:
33424 Configuration links:
33427 Configuration commands:
33430 Report bugs to the package provider."
33433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33434 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33437 configured by $0, generated by GNU Autoconf 2.69,
33438 with options \\"\$ac_cs_config\\"
33440 Copyright (C) 2012 Free Software Foundation, Inc.
33441 This config.status script is free software; the Free Software Foundation
33442 gives unlimited permission to copy, distribute and modify it."
33447 test -n "\$AWK" || AWK=awk
33450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33451 # The default lists apply if the user does not specify any file.
33457 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33458 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33462 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33474 # Handling of the options.
33475 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33477 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33478 $as_echo "$ac_cs_version"; exit ;;
33479 --config |
--confi |
--conf |
--con |
--co |
--c )
33480 $as_echo "$ac_cs_config"; exit ;;
33481 --debug |
--debu |
--deb |
--de |
--d |
-d )
33483 --file |
--fil |
--fi |
--f )
33486 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33487 '') as_fn_error $?
"missing file argument" ;;
33489 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33490 ac_need_defaults
=false
;;
33491 --header |
--heade |
--head |
--hea )
33494 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33496 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33497 ac_need_defaults
=false
;;
33499 # Conflict between --help and --header
33500 as_fn_error $?
"ambiguous option: \`$1'
33501 Try \`$0 --help' for more information.";;
33502 --help |
--hel |
-h )
33503 $as_echo "$ac_cs_usage"; exit ;;
33504 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33505 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33508 # This is an error.
33509 -*) as_fn_error $?
"unrecognized option: \`$1'
33510 Try \`$0 --help' for more information." ;;
33512 *) as_fn_append ac_config_targets
" $1"
33513 ac_need_defaults
=false
;;
33519 ac_configure_extra_args
=
33521 if $ac_cs_silent; then
33523 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33528 if \$ac_cs_recheck; then
33529 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33531 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33532 CONFIG_SHELL='$SHELL'
33533 export CONFIG_SHELL
33538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33543 ## Running $as_me. ##
33549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33553 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33554 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33561 # Handling of arguments.
33562 for ac_config_target
in $ac_config_targets
33564 case $ac_config_target in
33565 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33566 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33567 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33568 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33569 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33570 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33571 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33572 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33573 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33574 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33576 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33581 # If the user did not use the arguments to specify the items to instantiate,
33582 # then the envvar interface is used. Set only those that are not.
33583 # We use the long form for the default assignment because of an extremely
33584 # bizarre bug on SunOS 4.1.3.
33585 if $ac_need_defaults; then
33586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33588 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33592 # Have a temporary directory for convenience. Make it in the build tree
33593 # simply because there is no reason against having it here, and in addition,
33594 # creating and moving files from /tmp can sometimes cause problems.
33595 # Hook for its removal unless debugging.
33596 # Note that there is a small window in which the directory will not be cleaned:
33597 # after its creation but before its name has been assigned to `$tmp'.
33601 trap 'exit_status=$?
33602 : "${ac_tmp:=$tmp}"
33603 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33605 trap 'as_fn_exit 1' 1 2 13 15
33607 # Create a (secure) tmp directory for tmp files.
33610 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33614 tmp
=.
/conf$$
-$RANDOM
33615 (umask 077 && mkdir
"$tmp")
33616 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33619 # Set up the scripts for CONFIG_FILES section.
33620 # No need to generate them if there are no CONFIG_FILES.
33621 # This happens for instance with `./config.status config.h'.
33622 if test -n "$CONFIG_FILES"; then
33624 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33625 ac_cs_awk_getline
=:
33626 ac_cs_awk_pipe_init
=
33627 ac_cs_awk_read_file
='
33628 while ((getline aline < (F[key])) > 0)
33631 ac_cs_awk_pipe_fini
=
33633 ac_cs_awk_getline
=false
33634 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33635 ac_cs_awk_read_file
='
33637 print "cat " F[key] " &&"
33638 '$ac_cs_awk_pipe_init
33639 # The final `:' finishes the AND list.
33640 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33642 ac_cr
=`echo X | tr X '\015'`
33643 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33644 # But we know of no other shell where ac_cr would be empty at this
33645 # point, so we can use a bashism as a fallback.
33646 if test "x$ac_cr" = x
; then
33647 eval ac_cr
=\$
\'\\r
\'
33649 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33650 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33653 ac_cs_awk_cr
=$ac_cr
33656 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33659 # Create commands to substitute file output variables.
33661 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33662 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33663 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33666 } >conf$
$files.sh
&&
33667 . .
/conf$
$files.sh ||
33668 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33669 rm -f conf$
$files.sh
33672 echo "cat >conf$$subs.awk <<_ACEOF" &&
33673 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33675 } >conf$$subs.sh ||
33676 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33677 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33679 for ac_last_try in false false false false false :; do
33680 . ./conf$$subs.sh ||
33681 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33683 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33684 if test $ac_delim_n = $ac_delim_num; then
33686 elif $ac_last_try; then
33687 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33689 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33692 rm -f conf$$subs.sh
33694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33695 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33699 s/^/S["/; s
/!.
*/"]=/
33709 s/\(.\{148\}\)..*/\1/
33711 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33716 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33723 s/\(.\{148\}\)..*/\1/
33725 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33729 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33734 ' <conf$$subs.awk | sed '
33739 ' >>$CONFIG_STATUS || ac_write_fail=1
33740 rm -f conf$$subs.awk
33741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33743 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33744 for (key in S) S_is_set[key] = 1
33746 \$ac_cs_awk_pipe_init
33750 nfields = split(line, field, "@
")
33752 len = length(field[1])
33753 for (i = 2; i < nfields; i++) {
33755 keylen = length(key)
33756 if (S_is_set[key]) {
33758 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33759 len += length(value) + length(field[++i])
33764 if (nfields == 3 && !substed) {
33766 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33767 \$ac_cs_awk_read_file
33773 \$ac_cs_awk_pipe_fini
33776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33777 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33778 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33781 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33782 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33785 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33786 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33787 # trailing colons and then remove the whole line if VPATH becomes empty
33788 # (actually we leave an empty line to preserve line numbers).
33789 if test "x
$srcdir" = x.; then
33790 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33809 fi # test -n "$CONFIG_FILES"
33811 # Set up the scripts for CONFIG_HEADERS section.
33812 # No need to generate them if there are no CONFIG_HEADERS.
33813 # This happens for instance with `./config.status Makefile'.
33814 if test -n "$CONFIG_HEADERS"; then
33815 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33819 # Transform confdefs.h into an awk script `defines.awk', embedded as
33820 # here-document in config.status, that substitutes the proper values into
33821 # config.h.in to produce config.h.
33823 # Create a delimiter string that does not exist in confdefs.h, to ease
33824 # handling of long lines.
33826 for ac_last_try in false false :; do
33827 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33828 if test -z "$ac_tt"; then
33830 elif $ac_last_try; then
33831 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33833 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33837 # For the awk script, D is an array of macro values keyed by name,
33838 # likewise P contains macro parameters if any. Preserve backslash
33839 # newline sequences.
33841 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33843 s/.\{148\}/&'"$ac_delim"'/g
33846 s/^[ ]*#[ ]*define[ ][ ]*/ /
33853 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33855 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33860 D["\
1"]=" \
3\\\\\\n
"\\/p
33862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33867 s/.\{148\}/&'"$ac_delim"'/g
33872 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33875 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33877 ' <confdefs.h | sed '
33878 s/'"$ac_delim"'/"\\\
33879 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33882 for (key in D) D_is_set[key] = 1
33885 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33887 split(line, arg, " ")
33888 if (arg[1] == "#") {
33892 defundef
= substr
(arg
[1], 2)
33895 split(mac1
, mac2
, "(") #)
33897 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33898 if (D_is_set
[macro
]) {
33899 # Preserve the white space surrounding the "#".
33900 print prefix
"define", macro P
[macro
] D
[macro
]
33903 # Replace #undef with comments. This is necessary, for example,
33904 # in the case of _POSIX_SOURCE, which is predefined and required
33905 # on some systems where configure will not decide to define it.
33906 if (defundef
== "undef") {
33907 print
"/*", prefix defundef
, macro
, "*/"
33915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33916 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33917 fi # test -n "$CONFIG_HEADERS"
33920 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33925 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33927 case $ac_mode$ac_tag in
33929 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33930 :[FH
]-) ac_tag
=-:-;;
33931 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33948 -) ac_f
="$ac_tmp/stdin";;
33949 *) # Look for the file first in the build tree, then in the source tree
33950 # (if the path is not absolute). The absolute path cannot be DOS-style,
33951 # because $ac_f cannot contain `:'.
33955 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33957 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33959 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33960 as_fn_append ac_file_inputs
" '$ac_f'"
33963 # Let's still pretend it is `configure' which instantiates (i.e., don't
33964 # use $as_me), people would be surprised to read:
33965 # /* config.h. Generated by config.status. */
33966 configure_input
='Generated from '`
33967 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33969 if test x
"$ac_file" != x-
; then
33970 configure_input
="$ac_file. $configure_input"
33971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33972 $as_echo "$as_me: creating $ac_file" >&6;}
33974 # Neutralize special characters interpreted by sed in replacement strings.
33975 case $configure_input in #(
33976 *\
&* |
*\|
* |
*\\* )
33977 ac_sed_conf_input
=`$as_echo "$configure_input" |
33978 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33979 *) ac_sed_conf_input
=$configure_input;;
33983 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33984 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33989 ac_dir
=`$as_dirname -- "$ac_file" ||
33990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33991 X"$ac_file" : 'X\(//\)[^/]' \| \
33992 X"$ac_file" : 'X\(//\)$' \| \
33993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33994 $as_echo X"$ac_file" |
33995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33999 /^X\(\/\/\)[^/].*/{
34012 as_dir
="$ac_dir"; as_fn_mkdir_p
34016 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34018 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34019 # A ".." for each directory in $ac_dir_suffix.
34020 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34021 case $ac_top_builddir_sub in
34022 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34023 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34026 ac_abs_top_builddir
=$ac_pwd
34027 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34028 # for backward compatibility:
34029 ac_top_builddir
=$ac_top_build_prefix
34032 .
) # We are building in place.
34034 ac_top_srcdir
=$ac_top_builddir_sub
34035 ac_abs_top_srcdir
=$ac_pwd ;;
34036 [\\/]* | ?
:[\\/]* ) # Absolute name.
34037 ac_srcdir
=$srcdir$ac_dir_suffix;
34038 ac_top_srcdir
=$srcdir
34039 ac_abs_top_srcdir
=$srcdir ;;
34040 *) # Relative name.
34041 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34042 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34043 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34045 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34057 # If the template does not know about datarootdir, expand it.
34058 # FIXME: This hack should be removed a few years after 2.60.
34059 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34070 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34071 *datarootdir
*) ac_datarootdir_seen
=yes;;
34072 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34074 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34077 ac_datarootdir_hack='
34078 s&@datadir@&$datadir&g
34079 s&@docdir@&$docdir&g
34080 s&@infodir@&$infodir&g
34081 s&@localedir@&$localedir&g
34082 s&@mandir@&$mandir&g
34083 s&\\\${datarootdir}&$datarootdir&g' ;;
34087 # Neutralize VPATH when `$srcdir' = `.'.
34088 # Shell code in configure.ac might set extrasub.
34089 # FIXME: do we really want to maintain this feature?
34090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34091 ac_sed_extra="$ac_vpsub
34094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34096 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34097 s|@configure_input@|
$ac_sed_conf_input|
;t t
34098 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34099 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
34100 s
&@srcdir@
&$ac_srcdir&;t t
34101 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34102 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34103 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34104 s
&@builddir@
&$ac_builddir&;t t
34105 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34106 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34107 $ac_datarootdir_hack
34109 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
34110 if $ac_cs_awk_getline; then
34111 $AWK -f "$ac_tmp/subs.
awk"
34113 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
34115 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
34117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34118 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
34119 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34120 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
34121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34122 which seems to be undefined. Please make sure it is defined" >&5
34123 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34124 which seems to be undefined. Please make sure it is defined" >&2;}
34126 rm -f "$ac_tmp/stdin"
34128 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34129 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34137 if test x"$ac_file" != x-; then
34139 $as_echo "/* $configure_input */" \
34140 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34141 } >"$ac_tmp/config.h" \
34142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34143 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34144 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34145 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34148 mv "$ac_tmp/config.h" "$ac_file" \
34149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34152 $as_echo "/* $configure_input */" \
34153 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34154 || as_fn_error $? "could not create -" "$LINENO" 5
34162 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
34165 # Prefer the file from the source tree if names are identical.
34166 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34167 ac_source=$srcdir/$ac_source
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34171 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34173 if test ! -r "$ac_source"; then
34174 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34178 # Try a relative symlink, then a hard link, then a copy.
34180 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34181 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34183 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34184 ln "$ac_source" "$ac_file" 2>/dev/null ||
34185 cp -p "$ac_source" "$ac_file" ||
34186 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34189 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34190 $as_echo "$as_me: executing $ac_file commands" >&6;}
34195 case $ac_file$ac_mode in
34196 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34198 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34199 for lang in $subdirs c-family common analyzer rtl-ssa
34201 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34203 "as":F) chmod +x as ;;
34204 "collect-ld":F) chmod +x collect-ld ;;
34205 "nm":F) chmod +x nm ;;
34206 "dsymutil":F) chmod +x dsymutil ;;
34208 case ${CONFIG_HEADERS} in
34209 *auto-host.h:config.in*)
34212 # Make sure all the subdirs exist.
34213 for d in $subdirs doc build common c-family
34215 test -d $d || mkdir $d
34225 ac_clean_files=$ac_clean_files_save
34227 test $ac_write_fail = 0 ||
34228 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34231 # configure is writing to config.log, and then calls config.status.
34232 # config.status does its own redirection, appending to config.log.
34233 # Unfortunately, on DOS this fails, as config.log is still kept open
34234 # by configure, so config.status won't be able to
write to it
; its
34235 # output is simply discarded. So we exec the FD to /dev/null,
34236 # effectively closing config.log, so it can be properly (re)opened and
34237 # appended to by config.status. When coming back to configure, we
34238 # need to make the FD available again.
34239 if test "$no_create" != yes; then
34241 ac_config_status_args
=
34242 test "$silent" = yes &&
34243 ac_config_status_args
="$ac_config_status_args --quiet"
34245 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34247 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34248 # would make configure fail if this is the last instruction.
34249 $ac_cs_success || as_fn_exit
1
34251 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34253 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}