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.c"
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 if test "x$GDC" != xno
; then
5362 # Do configure tests with the C++ compiler, since that's what we build with.
5364 ac_cpp
='$CXXCPP $CPPFLAGS'
5365 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5370 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5371 # optimizations to be activated explicitly by the toplevel.
5373 */prev-gcc
/xgcc
*) ;;
5374 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5375 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5381 # Determine PICFLAG for target gnatlib.
5387 # PIC is the default on some targets or must not be used.
5389 # For darwin, common symbols are not allowed in MH_DYLIB files
5391 # If we are using a compiler supporting mdynamic-no-pic
5392 # and the option has been tested as safe to add, then cancel
5393 # it here, since the code generated is incompatible with shared
5395 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5396 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5400 # PIC is the default.
5403 # PIC is the default for 64-bit PA HP-UX.
5405 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5407 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5409 i
[34567]86-*-interix[3-9]*)
5410 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5411 # Instead, we relocate shared libraries at runtime.
5413 i
[34567]86-*-nto-qnx*)
5414 # QNX uses GNU C++, but need to define -shared option too, otherwise
5416 PICFLAG_FOR_TARGET
='-fPIC -shared'
5418 i
[34567]86-pc-msdosdjgpp*)
5419 # DJGPP does not support shared libraries at all.
5422 # On IA64 HP-UX, PIC is the default but the pic flag
5423 # sets the default TLS model and affects inlining.
5424 PICFLAG_FOR_TARGET
=-fPIC
5427 # PIC is the default.
5429 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5430 # All AIX code is PIC.
5433 # Some targets support both -fPIC and -fpic, but prefer the latter.
5435 i
[34567]86-*-* | x86_64-
*-*)
5436 PICFLAG_FOR_TARGET
=-fpic
5438 # FIXME: Override -fPIC default in libgcc only?
5439 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5440 PICFLAG_FOR_TARGET
=-fpic
5442 # FIXME: Simplify to sh*-*-netbsd*?
5443 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5444 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5445 PICFLAG_FOR_TARGET
=-fpic
5447 # Default to -fPIC unless specified otherwise.
5449 PICFLAG_FOR_TARGET
=-fPIC
5453 # If the user explicitly uses -fpic/-fPIC, keep that.
5454 case "${CFLAGS_FOR_TARGET}" in
5456 PICFLAG_FOR_TARGET
=-fpic
5459 PICFLAG_FOR_TARGET
=-fPIC
5465 # -------------------------
5466 # Check C compiler features
5467 # -------------------------
5471 ac_cpp
='$CXXCPP $CPPFLAGS'
5472 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5476 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5477 if test -z "$CXXCPP"; then
5478 if ${ac_cv_prog_CXXCPP+:} false
; then :
5479 $as_echo_n "(cached) " >&6
5481 # Double quotes because CXXCPP needs to be expanded
5482 for CXXCPP
in "$CXX -E" "/lib/cpp"
5485 for ac_cxx_preproc_warn_flag
in '' yes
5487 # Use a header file that comes with gcc, so configuring glibc
5488 # with a fresh cross-compiler works.
5489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490 # <limits.h> exists even on freestanding compilers.
5491 # On the NeXT, cc -E runs the code through the compiler's parser,
5492 # not just through cpp. "Syntax error" is here to catch this case.
5493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5496 # include <limits.h>
5498 # include <assert.h>
5502 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5505 # Broken: fails on valid input.
5508 rm -f conftest.err conftest.i conftest.
$ac_ext
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <ac_nonexistent.h>
5516 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5517 # Broken: success on invalid input.
5520 # Passes both tests.
5524 rm -f conftest.err conftest.i conftest.
$ac_ext
5527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5528 rm -f conftest.i conftest.err conftest.
$ac_ext
5529 if $ac_preproc_ok; then :
5534 ac_cv_prog_CXXCPP
=$CXXCPP
5537 CXXCPP
=$ac_cv_prog_CXXCPP
5539 ac_cv_prog_CXXCPP
=$CXXCPP
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5542 $as_echo "$CXXCPP" >&6; }
5544 for ac_cxx_preproc_warn_flag
in '' yes
5546 # Use a header file that comes with gcc, so configuring glibc
5547 # with a fresh cross-compiler works.
5548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5549 # <limits.h> exists even on freestanding compilers.
5550 # On the NeXT, cc -E runs the code through the compiler's parser,
5551 # not just through cpp. "Syntax error" is here to catch this case.
5552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5555 # include <limits.h>
5557 # include <assert.h>
5561 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5564 # Broken: fails on valid input.
5567 rm -f conftest.err conftest.i conftest.
$ac_ext
5569 # OK, works on sane cases. Now check whether nonexistent headers
5570 # can be detected and how.
5571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <ac_nonexistent.h>
5575 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5576 # Broken: success on invalid input.
5579 # Passes both tests.
5583 rm -f conftest.err conftest.i conftest.
$ac_ext
5586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5587 rm -f conftest.i conftest.err conftest.
$ac_ext
5588 if $ac_preproc_ok; then :
5591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5593 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5594 See \`config.log' for more details" "$LINENO" 5; }
5598 ac_cpp
='$CXXCPP $CPPFLAGS'
5599 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5606 if ${ac_cv_path_GREP+:} false
; then :
5607 $as_echo_n "(cached) " >&6
5609 if test -z "$GREP"; then
5610 ac_path_GREP_found
=false
5611 # Loop through the user's path and test for each of PROGNAME-LIST
5612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5613 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5616 test -z "$as_dir" && as_dir
=.
5617 for ac_prog
in grep ggrep
; do
5618 for ac_exec_ext
in '' $ac_executable_extensions; do
5619 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5620 as_fn_executable_p
"$ac_path_GREP" ||
continue
5621 # Check for GNU ac_path_GREP and select it if it is found.
5622 # Check for GNU $ac_path_GREP
5623 case `"$ac_path_GREP" --version 2>&1` in
5625 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5628 $as_echo_n 0123456789 >"conftest.in"
5631 cat "conftest.in" "conftest.in" >"conftest.tmp"
5632 mv "conftest.tmp" "conftest.in"
5633 cp "conftest.in" "conftest.nl"
5634 $as_echo 'GREP' >> "conftest.nl"
5635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5636 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5637 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5639 # Best one so far, save it but keep looking for a better one
5640 ac_cv_path_GREP
="$ac_path_GREP"
5641 ac_path_GREP_max
=$ac_count
5643 # 10*(2^10) chars as input seems more than enough
5644 test $ac_count -gt 10 && break
5646 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5649 $ac_path_GREP_found && break 3
5654 if test -z "$ac_cv_path_GREP"; then
5655 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5658 ac_cv_path_GREP
=$GREP
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5663 $as_echo "$ac_cv_path_GREP" >&6; }
5664 GREP
="$ac_cv_path_GREP"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5668 $as_echo_n "checking for egrep... " >&6; }
5669 if ${ac_cv_path_EGREP+:} false
; then :
5670 $as_echo_n "(cached) " >&6
5672 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5673 then ac_cv_path_EGREP
="$GREP -E"
5675 if test -z "$EGREP"; then
5676 ac_path_EGREP_found
=false
5677 # Loop through the user's path and test for each of PROGNAME-LIST
5678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5679 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5682 test -z "$as_dir" && as_dir
=.
5683 for ac_prog
in egrep; do
5684 for ac_exec_ext
in '' $ac_executable_extensions; do
5685 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5686 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5687 # Check for GNU ac_path_EGREP and select it if it is found.
5688 # Check for GNU $ac_path_EGREP
5689 case `"$ac_path_EGREP" --version 2>&1` in
5691 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5694 $as_echo_n 0123456789 >"conftest.in"
5697 cat "conftest.in" "conftest.in" >"conftest.tmp"
5698 mv "conftest.tmp" "conftest.in"
5699 cp "conftest.in" "conftest.nl"
5700 $as_echo 'EGREP' >> "conftest.nl"
5701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5702 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5703 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5705 # Best one so far, save it but keep looking for a better one
5706 ac_cv_path_EGREP
="$ac_path_EGREP"
5707 ac_path_EGREP_max
=$ac_count
5709 # 10*(2^10) chars as input seems more than enough
5710 test $ac_count -gt 10 && break
5712 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5715 $ac_path_EGREP_found && break 3
5720 if test -z "$ac_cv_path_EGREP"; then
5721 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5724 ac_cv_path_EGREP
=$EGREP
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5730 $as_echo "$ac_cv_path_EGREP" >&6; }
5731 EGREP
="$ac_cv_path_EGREP"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5735 $as_echo_n "checking for ANSI C header files... " >&6; }
5736 if ${ac_cv_header_stdc+:} false
; then :
5737 $as_echo_n "(cached) " >&6
5739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5754 if ac_fn_cxx_try_compile
"$LINENO"; then :
5755 ac_cv_header_stdc
=yes
5757 ac_cv_header_stdc
=no
5759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5761 if test $ac_cv_header_stdc = yes; then
5762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5769 $EGREP "memchr" >/dev
/null
2>&1; then :
5772 ac_cv_header_stdc
=no
5778 if test $ac_cv_header_stdc = yes; then
5779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786 $EGREP "free" >/dev
/null
2>&1; then :
5789 ac_cv_header_stdc
=no
5795 if test $ac_cv_header_stdc = yes; then
5796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5797 if test "$cross_compiling" = yes; then :
5800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5804 #if ((' ' & 0x0FF) == 0x020)
5805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5808 # define ISLOWER(c) \
5809 (('a' <= (c) && (c) <= 'i') \
5810 || ('j' <= (c) && (c) <= 'r') \
5811 || ('s' <= (c) && (c) <= 'z'))
5812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5820 for (i = 0; i < 256; i++)
5821 if (XOR (islower (i), ISLOWER (i))
5822 || toupper (i) != TOUPPER (i))
5827 if ac_fn_cxx_try_run
"$LINENO"; then :
5830 ac_cv_header_stdc
=no
5832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5839 $as_echo "$ac_cv_header_stdc" >&6; }
5840 if test $ac_cv_header_stdc = yes; then
5842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5847 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5848 inttypes.h stdint.h unistd.h
5850 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5851 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5853 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5854 cat >>confdefs.h
<<_ACEOF
5855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5864 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5865 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5872 if test "$MINIX" = yes; then
5874 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5877 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5880 $as_echo "#define _MINIX 1" >>confdefs.h
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5886 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5887 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5888 $as_echo_n "(cached) " >&6
5890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5893 # define __EXTENSIONS__ 1
5894 $ac_includes_default
5903 if ac_fn_cxx_try_compile
"$LINENO"; then :
5904 ac_cv_safe_to_define___extensions__
=yes
5906 ac_cv_safe_to_define___extensions__
=no
5908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5911 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5912 test $ac_cv_safe_to_define___extensions__ = yes &&
5913 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5915 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5917 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5919 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5921 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5926 ac_cpp
='$CPP $CPPFLAGS'
5927 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5931 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5932 # On Suns, sometimes $CPP names a directory.
5933 if test -n "$CPP" && test -d "$CPP"; then
5936 if test -z "$CPP"; then
5937 if ${ac_cv_prog_CPP+:} false
; then :
5938 $as_echo_n "(cached) " >&6
5940 # Double quotes because CPP needs to be expanded
5941 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5944 for ac_c_preproc_warn_flag
in '' yes
5946 # Use a header file that comes with gcc, so configuring glibc
5947 # with a fresh cross-compiler works.
5948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949 # <limits.h> exists even on freestanding compilers.
5950 # On the NeXT, cc -E runs the code through the compiler's parser,
5951 # not just through cpp. "Syntax error" is here to catch this case.
5952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5955 # include <limits.h>
5957 # include <assert.h>
5961 if ac_fn_c_try_cpp
"$LINENO"; then :
5964 # Broken: fails on valid input.
5967 rm -f conftest.err conftest.i conftest.
$ac_ext
5969 # OK, works on sane cases. Now check whether nonexistent headers
5970 # can be detected and how.
5971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #include <ac_nonexistent.h>
5975 if ac_fn_c_try_cpp
"$LINENO"; then :
5976 # Broken: success on invalid input.
5979 # Passes both tests.
5983 rm -f conftest.err conftest.i conftest.
$ac_ext
5986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987 rm -f conftest.i conftest.err conftest.
$ac_ext
5988 if $ac_preproc_ok; then :
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6001 $as_echo "$CPP" >&6; }
6003 for ac_c_preproc_warn_flag
in '' yes
6005 # Use a header file that comes with gcc, so configuring glibc
6006 # with a fresh cross-compiler works.
6007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6008 # <limits.h> exists even on freestanding compilers.
6009 # On the NeXT, cc -E runs the code through the compiler's parser,
6010 # not just through cpp. "Syntax error" is here to catch this case.
6011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6014 # include <limits.h>
6016 # include <assert.h>
6020 if ac_fn_c_try_cpp
"$LINENO"; then :
6023 # Broken: fails on valid input.
6026 rm -f conftest.err conftest.i conftest.
$ac_ext
6028 # OK, works on sane cases. Now check whether nonexistent headers
6029 # can be detected and how.
6030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 #include <ac_nonexistent.h>
6034 if ac_fn_c_try_cpp
"$LINENO"; then :
6035 # Broken: success on invalid input.
6038 # Passes both tests.
6042 rm -f conftest.err conftest.i conftest.
$ac_ext
6045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6046 rm -f conftest.i conftest.err conftest.
$ac_ext
6047 if $ac_preproc_ok; then :
6050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6053 See \`config.log' for more details" "$LINENO" 5; }
6057 ac_cpp
='$CXXCPP $CPPFLAGS'
6058 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6063 $as_echo_n "checking for inline... " >&6; }
6064 if ${ac_cv_c_inline+:} false
; then :
6065 $as_echo_n "(cached) " >&6
6068 for ac_kw
in inline __inline__ __inline
; do
6069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6073 static $ac_kw foo_t static_foo () {return 0; }
6074 $ac_kw foo_t foo () {return 0; }
6078 if ac_fn_cxx_try_compile
"$LINENO"; then :
6079 ac_cv_c_inline
=$ac_kw
6081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6082 test "$ac_cv_c_inline" != no
&& break
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6087 $as_echo "$ac_cv_c_inline" >&6; }
6089 case $ac_cv_c_inline in
6092 case $ac_cv_c_inline in
6094 *) ac_val
=$ac_cv_c_inline;;
6096 cat >>confdefs.h
<<_ACEOF
6098 #define inline $ac_val
6105 # Check whether --enable-largefile was given.
6106 if test "${enable_largefile+set}" = set; then :
6107 enableval
=$enable_largefile;
6110 if test "$enable_largefile" != no
; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6113 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6114 if ${ac_cv_sys_largefile_CC+:} false
; then :
6115 $as_echo_n "(cached) " >&6
6117 ac_cv_sys_largefile_CC
=no
6118 if test "$GCC" != yes; then
6121 # IRIX 6.2 and later do not support large files by default,
6122 # so use the C compiler's -n32 option if that helps.
6123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 /* Check that off_t can represent 2**63 - 1 correctly.
6127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6128 since some C++ compilers masquerading as C compilers
6129 incorrectly reject 9223372036854775807. */
6130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6132 && LARGE_OFF_T % 2147483647 == 1)
6142 if ac_fn_cxx_try_compile
"$LINENO"; then :
6145 rm -f core conftest.err conftest.
$ac_objext
6147 if ac_fn_cxx_try_compile
"$LINENO"; then :
6148 ac_cv_sys_largefile_CC
=' -n32'; break
6150 rm -f core conftest.err conftest.
$ac_objext
6154 rm -f conftest.
$ac_ext
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6158 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6159 if test "$ac_cv_sys_largefile_CC" != no
; then
6160 CC
=$CC$ac_cv_sys_largefile_CC
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6164 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6165 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6166 $as_echo_n "(cached) " >&6
6169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 #include <sys/types.h>
6172 /* Check that off_t can represent 2**63 - 1 correctly.
6173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6174 since some C++ compilers masquerading as C compilers
6175 incorrectly reject 9223372036854775807. */
6176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6178 && LARGE_OFF_T % 2147483647 == 1)
6188 if ac_fn_cxx_try_compile
"$LINENO"; then :
6189 ac_cv_sys_file_offset_bits
=no
; break
6191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #define _FILE_OFFSET_BITS 64
6195 #include <sys/types.h>
6196 /* Check that off_t can represent 2**63 - 1 correctly.
6197 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6198 since some C++ compilers masquerading as C compilers
6199 incorrectly reject 9223372036854775807. */
6200 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6201 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6202 && LARGE_OFF_T % 2147483647 == 1)
6212 if ac_fn_cxx_try_compile
"$LINENO"; then :
6213 ac_cv_sys_file_offset_bits
=64; break
6215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 ac_cv_sys_file_offset_bits
=unknown
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6221 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6222 case $ac_cv_sys_file_offset_bits in #(
6225 cat >>confdefs.h
<<_ACEOF
6226 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6231 if test $ac_cv_sys_file_offset_bits = unknown
; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6233 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6234 if ${ac_cv_sys_large_files+:} false
; then :
6235 $as_echo_n "(cached) " >&6
6238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 #include <sys/types.h>
6241 /* Check that off_t can represent 2**63 - 1 correctly.
6242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6243 since some C++ compilers masquerading as C compilers
6244 incorrectly reject 9223372036854775807. */
6245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6247 && LARGE_OFF_T % 2147483647 == 1)
6257 if ac_fn_cxx_try_compile
"$LINENO"; then :
6258 ac_cv_sys_large_files
=no
; break
6260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 #define _LARGE_FILES 1
6264 #include <sys/types.h>
6265 /* Check that off_t can represent 2**63 - 1 correctly.
6266 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6267 since some C++ compilers masquerading as C compilers
6268 incorrectly reject 9223372036854775807. */
6269 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6271 && LARGE_OFF_T % 2147483647 == 1)
6281 if ac_fn_cxx_try_compile
"$LINENO"; then :
6282 ac_cv_sys_large_files
=1; break
6284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6285 ac_cv_sys_large_files
=unknown
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6290 $as_echo "$ac_cv_sys_large_files" >&6; }
6291 case $ac_cv_sys_large_files in #(
6294 cat >>confdefs.h
<<_ACEOF
6295 #define _LARGE_FILES $ac_cv_sys_large_files
6306 # sizeof(char) is 1 by definition.
6307 # The cast to long int works around a bug in the HP C Compiler
6308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6310 # This bug is HP SR number 8606223364.
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6312 $as_echo_n "checking size of void *... " >&6; }
6313 if ${ac_cv_sizeof_void_p+:} false
; then :
6314 $as_echo_n "(cached) " >&6
6316 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6319 if test "$ac_cv_type_void_p" = yes; then
6320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6322 as_fn_error
77 "cannot compute sizeof (void *)
6323 See \`config.log' for more details" "$LINENO" 5; }
6325 ac_cv_sizeof_void_p
=0
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6331 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6335 cat >>confdefs.h
<<_ACEOF
6336 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6340 # The cast to long int works around a bug in the HP C Compiler
6341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6343 # This bug is HP SR number 8606223364.
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6345 $as_echo_n "checking size of short... " >&6; }
6346 if ${ac_cv_sizeof_short+:} false
; then :
6347 $as_echo_n "(cached) " >&6
6349 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6352 if test "$ac_cv_type_short" = yes; then
6353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6355 as_fn_error
77 "cannot compute sizeof (short)
6356 See \`config.log' for more details" "$LINENO" 5; }
6358 ac_cv_sizeof_short
=0
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6364 $as_echo "$ac_cv_sizeof_short" >&6; }
6368 cat >>confdefs.h
<<_ACEOF
6369 #define SIZEOF_SHORT $ac_cv_sizeof_short
6373 # The cast to long int works around a bug in the HP C Compiler
6374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6376 # This bug is HP SR number 8606223364.
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6378 $as_echo_n "checking size of int... " >&6; }
6379 if ${ac_cv_sizeof_int+:} false
; then :
6380 $as_echo_n "(cached) " >&6
6382 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6385 if test "$ac_cv_type_int" = yes; then
6386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6388 as_fn_error
77 "cannot compute sizeof (int)
6389 See \`config.log' for more details" "$LINENO" 5; }
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6397 $as_echo "$ac_cv_sizeof_int" >&6; }
6401 cat >>confdefs.h
<<_ACEOF
6402 #define SIZEOF_INT $ac_cv_sizeof_int
6406 # The cast to long int works around a bug in the HP C Compiler
6407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6409 # This bug is HP SR number 8606223364.
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6411 $as_echo_n "checking size of long... " >&6; }
6412 if ${ac_cv_sizeof_long+:} false
; then :
6413 $as_echo_n "(cached) " >&6
6415 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6418 if test "$ac_cv_type_long" = yes; then
6419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6421 as_fn_error
77 "cannot compute sizeof (long)
6422 See \`config.log' for more details" "$LINENO" 5; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6430 $as_echo "$ac_cv_sizeof_long" >&6; }
6434 cat >>confdefs.h
<<_ACEOF
6435 #define SIZEOF_LONG $ac_cv_sizeof_long
6439 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6440 if test "x$ac_cv_type_long_long" = xyes
; then :
6442 cat >>confdefs.h
<<_ACEOF
6443 #define HAVE_LONG_LONG 1
6446 # The cast to long int works around a bug in the HP C Compiler
6447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6449 # This bug is HP SR number 8606223364.
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6451 $as_echo_n "checking size of long long... " >&6; }
6452 if ${ac_cv_sizeof_long_long+:} false
; then :
6453 $as_echo_n "(cached) " >&6
6455 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6458 if test "$ac_cv_type_long_long" = yes; then
6459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6461 as_fn_error
77 "cannot compute sizeof (long long)
6462 See \`config.log' for more details" "$LINENO" 5; }
6464 ac_cv_sizeof_long_long
=0
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6470 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6474 cat >>confdefs.h
<<_ACEOF
6475 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6481 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6482 case $ac_cv_c_int8_t in #(
6486 cat >>confdefs.h
<<_ACEOF
6487 #define int8_t $ac_cv_c_int8_t
6492 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6493 case $ac_cv_c_int16_t in #(
6497 cat >>confdefs.h
<<_ACEOF
6498 #define int16_t $ac_cv_c_int16_t
6503 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6504 case $ac_cv_c_int32_t in #(
6508 cat >>confdefs.h
<<_ACEOF
6509 #define int32_t $ac_cv_c_int32_t
6514 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6515 case $ac_cv_c_int64_t in #(
6519 cat >>confdefs.h
<<_ACEOF
6520 #define int64_t $ac_cv_c_int64_t
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6527 $as_echo_n "checking for unsigned long long int... " >&6; }
6528 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6529 $as_echo_n "(cached) " >&6
6531 ac_cv_type_unsigned_long_long_int
=yes
6532 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6536 /* For now, do not test the preprocessor; as of 2007 there are too many
6537 implementations with broken preprocessors. Perhaps this can
6538 be revisited in 2012. In the meantime, code should not expect
6539 #if to work with literals wider than 32 bits. */
6540 /* Test literals. */
6541 long long int ll = 9223372036854775807ll;
6542 long long int nll = -9223372036854775807LL;
6543 unsigned long long int ull = 18446744073709551615ULL;
6544 /* Test constant expressions. */
6545 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6547 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6553 /* Test availability of runtime routines for shift and division. */
6554 long long int llmax = 9223372036854775807ll;
6555 unsigned long long int ullmax = 18446744073709551615ull;
6556 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6557 | (llmax / ll) | (llmax % ll)
6558 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6559 | (ullmax / ull) | (ullmax % ull));
6565 if ac_fn_cxx_try_link
"$LINENO"; then :
6568 ac_cv_type_unsigned_long_long_int
=no
6570 rm -f core conftest.err conftest.
$ac_objext \
6571 conftest
$ac_exeext conftest.
$ac_ext
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6575 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6576 if test $ac_cv_type_unsigned_long_long_int = yes; then
6578 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6585 $as_echo_n "checking for long long int... " >&6; }
6586 if ${ac_cv_type_long_long_int+:} false
; then :
6587 $as_echo_n "(cached) " >&6
6589 ac_cv_type_long_long_int
=yes
6590 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6591 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6592 if test $ac_cv_type_long_long_int = yes; then
6593 if test "$cross_compiling" = yes; then :
6596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6601 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6602 # define LLONG_MAX (HALF - 1 + HALF)
6607 long long int n = 1;
6611 long long int m = n << i;
6614 if (LLONG_MAX / 2 < m)
6622 if ac_fn_cxx_try_run
"$LINENO"; then :
6625 ac_cv_type_long_long_int
=no
6627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6628 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6635 $as_echo "$ac_cv_type_long_long_int" >&6; }
6636 if test $ac_cv_type_long_long_int = yes; then
6638 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6644 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6645 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6647 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6650 test $ac_cv_type_long_long_int = yes \
6651 && ac_type
='long long int' \
6652 || ac_type
='long int'
6654 cat >>confdefs.h
<<_ACEOF
6655 #define intmax_t $ac_type
6662 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6663 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6665 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6668 for ac_type
in 'int' 'long int' 'long long int'; do
6669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 $ac_includes_default
6675 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6677 return test_array [0];
6683 if ac_fn_cxx_try_compile
"$LINENO"; then :
6685 cat >>confdefs.h
<<_ACEOF
6686 #define intptr_t $ac_type
6691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6692 test -z "$ac_type" && break
6697 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6698 case $ac_cv_c_uint8_t in #(
6702 $as_echo "#define _UINT8_T 1" >>confdefs.h
6705 cat >>confdefs.h
<<_ACEOF
6706 #define uint8_t $ac_cv_c_uint8_t
6711 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6712 case $ac_cv_c_uint16_t in #(
6717 cat >>confdefs.h
<<_ACEOF
6718 #define uint16_t $ac_cv_c_uint16_t
6723 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6724 case $ac_cv_c_uint32_t in #(
6728 $as_echo "#define _UINT32_T 1" >>confdefs.h
6731 cat >>confdefs.h
<<_ACEOF
6732 #define uint32_t $ac_cv_c_uint32_t
6737 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6738 case $ac_cv_c_uint64_t in #(
6742 $as_echo "#define _UINT64_T 1" >>confdefs.h
6745 cat >>confdefs.h
<<_ACEOF
6746 #define uint64_t $ac_cv_c_uint64_t
6753 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6754 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6756 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6759 test $ac_cv_type_unsigned_long_long_int = yes \
6760 && ac_type
='unsigned long long int' \
6761 || ac_type
='unsigned long int'
6763 cat >>confdefs.h
<<_ACEOF
6764 #define uintmax_t $ac_type
6771 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6772 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6774 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6777 for ac_type
in 'unsigned int' 'unsigned long int' \
6778 'unsigned long long int'; do
6779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 $ac_includes_default
6785 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6787 return test_array [0];
6793 if ac_fn_cxx_try_compile
"$LINENO"; then :
6795 cat >>confdefs.h
<<_ACEOF
6796 #define uintptr_t $ac_type
6801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6802 test -z "$ac_type" && break
6819 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6820 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6823 # check what underlying integer type int64_t uses
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6825 $as_echo_n "checking for int64_t underlying type... " >&6; }
6826 if ${ac_cv_int64_t_type+:} false
; then :
6827 $as_echo_n "(cached) " >&6
6830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6833 #ifdef HAVE_STDINT_H
6836 template <typename T> struct X { };
6838 struct X<long> { typedef long t; };
6848 if ac_fn_cxx_try_compile
"$LINENO"; then :
6849 ac_cv_int64_t_type
=long
6851 ac_cv_int64_t_type
="long long"
6853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6856 $as_echo "$ac_cv_int64_t_type" >&6; }
6857 if test "$ac_cv_int64_t_type" = "long"; then
6859 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6865 #ifdef HAVE_STDINT_H
6868 template <typename T> struct X { };
6870 struct X<long long> { typedef long long t; };
6880 if ac_fn_cxx_try_compile
"$LINENO"; then :
6883 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6889 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6890 if ${ac_cv_std_swap_in_utility+:} false
; then :
6891 $as_echo_n "(cached) " >&6
6894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6902 int a, b; std::swap(a,b);
6907 if ac_fn_cxx_try_compile
"$LINENO"; then :
6908 ac_cv_std_swap_in_utility
=yes
6910 ac_cv_std_swap_in_utility
=no
6912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6915 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6916 if test $ac_cv_std_swap_in_utility = yes; then
6918 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6922 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6923 # If the host compiler is affected by the bug, and we build with optimization
6924 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6925 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6926 # Since there is no reliable feature check for the presence of this bug,
6927 # we simply use a GCC version number check. (This should never trigger for
6928 # stages 2 or 3 of a native bootstrap.)
6930 if test "$GCC" = yes; then
6931 saved_CXXFLAGS
="$CXXFLAGS"
6933 # The following test compilation will succeed if and only if $CXX accepts
6934 # -fno-strict-aliasing *and* is older than GCC 4.3.
6935 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6937 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6941 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6942 #error compiler not affected by placement new aliasing bug
6946 if ac_fn_cxx_try_compile
"$LINENO"; then :
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6948 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6955 CXXFLAGS
="$saved_CXXFLAGS"
6961 # ---------------------
6962 # Warnings and checking
6963 # ---------------------
6965 # Check $CC warning features (if it's GCC).
6966 # We want to use -pedantic, but we don't want warnings about
6969 # * overlong strings
6970 # * C++11 narrowing conversions in { }
6971 # So, we only use -pedantic if we can disable those warnings.
6973 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6974 # Check whether --enable-build-format-warnings was given.
6975 if test "${enable_build_format_warnings+set}" = set; then :
6976 enableval
=$enable_build_format_warnings;
6978 enable_build_format_warnings
=yes
6981 if test $enable_build_format_warnings = no
; then :
6987 ac_cpp
='$CXXCPP $CPPFLAGS'
6988 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6993 save_CXXFLAGS
="$CXXFLAGS"
6994 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6995 # Do the check with the no- prefix removed since gcc silently
6996 # accepts any -Wno-* option on purpose
6997 case $real_option in
6998 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6999 *) option
=$real_option ;;
7001 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7004 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7005 if eval \
${$as_acx_Woption+:} false
; then :
7006 $as_echo_n "(cached) " >&6
7009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7020 if ac_fn_cxx_try_compile
"$LINENO"; then :
7021 eval "$as_acx_Woption=yes"
7023 eval "$as_acx_Woption=no"
7025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7028 eval ac_res
=\$
$as_acx_Woption
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7030 $as_echo "$ac_res" >&6; }
7031 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7032 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7035 CXXFLAGS
="$save_CXXFLAGS"
7037 ac_cpp
='$CXXCPP $CPPFLAGS'
7038 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7045 ac_cpp
='$CPP $CPPFLAGS'
7046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7051 save_CFLAGS
="$CFLAGS"
7052 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
7053 # Do the check with the no- prefix removed since gcc silently
7054 # accepts any -Wno-* option on purpose
7055 case $real_option in
7056 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7057 *) option
=$real_option ;;
7059 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7062 $as_echo_n "checking whether $CC supports $option... " >&6; }
7063 if eval \
${$as_acx_Woption+:} false
; then :
7064 $as_echo_n "(cached) " >&6
7067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7078 if ac_fn_c_try_compile
"$LINENO"; then :
7079 eval "$as_acx_Woption=yes"
7081 eval "$as_acx_Woption=no"
7083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7086 eval ac_res
=\$
$as_acx_Woption
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7088 $as_echo "$ac_res" >&6; }
7089 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7090 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7093 CFLAGS
="$save_CFLAGS"
7095 ac_cpp
='$CXXCPP $CPPFLAGS'
7096 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7102 ac_cpp
='$CXXCPP $CPPFLAGS'
7103 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7108 save_CXXFLAGS
="$CXXFLAGS"
7109 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
7110 # Do the check with the no- prefix removed since gcc silently
7111 # accepts any -Wno-* option on purpose
7112 case $real_option in
7113 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7114 *) option
=$real_option ;;
7116 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7119 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7120 if eval \
${$as_acx_Woption+:} false
; then :
7121 $as_echo_n "(cached) " >&6
7124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7135 if ac_fn_cxx_try_compile
"$LINENO"; then :
7136 eval "$as_acx_Woption=yes"
7138 eval "$as_acx_Woption=no"
7140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7143 eval ac_res
=\$
$as_acx_Woption
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7145 $as_echo "$ac_res" >&6; }
7146 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7147 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7150 CXXFLAGS
="$save_CXXFLAGS"
7152 ac_cpp
='$CXXCPP $CPPFLAGS'
7153 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7159 ac_cpp
='$CPP $CPPFLAGS'
7160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7165 save_CFLAGS
="$CFLAGS"
7166 for real_option
in -Wold-style-definition -Wc++-compat; do
7167 # Do the check with the no- prefix removed since gcc silently
7168 # accepts any -Wno-* option on purpose
7169 case $real_option in
7170 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7171 *) option
=$real_option ;;
7173 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7176 $as_echo_n "checking whether $CC supports $option... " >&6; }
7177 if eval \
${$as_acx_Woption+:} false
; then :
7178 $as_echo_n "(cached) " >&6
7181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7192 if ac_fn_c_try_compile
"$LINENO"; then :
7193 eval "$as_acx_Woption=yes"
7195 eval "$as_acx_Woption=no"
7197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7200 eval ac_res
=\$
$as_acx_Woption
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7202 $as_echo "$ac_res" >&6; }
7203 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7204 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7207 CFLAGS
="$save_CFLAGS"
7209 ac_cpp
='$CXXCPP $CPPFLAGS'
7210 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7216 ac_cpp
='$CXXCPP $CPPFLAGS'
7217 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7221 # Do the check with the no- prefix removed from the warning options
7222 # since gcc silently accepts any -Wno-* option on purpose
7223 if test "$GXX" = yes; then :
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7225 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7226 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7227 $as_echo_n "(cached) " >&6
7229 save_CXXFLAGS
="$CXXFLAGS"
7230 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7242 if ac_fn_cxx_try_compile
"$LINENO"; then :
7243 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7245 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7248 CXXFLAGS
="$save_CXXFLAGS"
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7251 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7252 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7253 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7258 ac_cpp
='$CXXCPP $CPPFLAGS'
7259 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7265 ac_cpp
='$CXXCPP $CPPFLAGS'
7266 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7270 # Check whether --enable-werror-always was given.
7271 if test "${enable_werror_always+set}" = set; then :
7272 enableval
=$enable_werror_always;
7274 enable_werror_always
=no
7277 if test $enable_werror_always = yes; then :
7278 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7282 ac_cpp
='$CXXCPP $CPPFLAGS'
7283 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7289 # The above macros do nothing if the compiler is not GCC. However, the
7290 # Makefile has more goo to add other flags, so these variables are used
7291 # to enable warnings only for GCC.
7294 if test "x$GCC" = "xyes"; then
7295 warn_cflags
='$(GCC_WARN_CFLAGS)'
7296 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7301 # Disable exceptions and RTTI if building with g++
7303 ac_cpp
='$CPP $CPPFLAGS'
7304 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7309 save_CFLAGS
="$CFLAGS"
7310 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7311 # Do the check with the no- prefix removed since gcc silently
7312 # accepts any -Wno-* option on purpose
7313 case $real_option in
7314 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7315 *) option
=$real_option ;;
7317 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7320 $as_echo_n "checking whether $CC supports $option... " >&6; }
7321 if eval \
${$as_acx_Woption+:} false
; then :
7322 $as_echo_n "(cached) " >&6
7325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7336 if ac_fn_c_try_compile
"$LINENO"; then :
7337 eval "$as_acx_Woption=yes"
7339 eval "$as_acx_Woption=no"
7341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7344 eval ac_res
=\$
$as_acx_Woption
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7346 $as_echo "$ac_res" >&6; }
7347 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7348 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7351 CFLAGS
="$save_CFLAGS"
7353 ac_cpp
='$CXXCPP $CPPFLAGS'
7354 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7360 # Enable expensive internal checks
7362 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7366 # Check whether --enable-checking was given.
7367 if test "${enable_checking+set}" = set; then :
7368 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7371 # Determine the default checks.
7372 if test x
$is_release = x
; then
7373 ac_checking_flags
=yes,extra
7375 ac_checking_flags
=release
7379 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7380 for check
in release
$ac_checking_flags
7383 # these set all the flags to specific states
7384 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7385 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7386 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7387 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7388 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7389 ac_types_checking
=1 ;;
7390 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7391 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7392 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7393 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7394 ac_tree_checking
= ; ac_valgrind_checking
= ;
7395 ac_types_checking
= ;;
7396 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7397 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7398 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7399 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7400 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7401 ac_types_checking
=1 ;;
7402 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7403 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7404 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7405 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7406 ac_tree_checking
= ; ac_valgrind_checking
= ;
7407 ac_types_checking
= ;;
7408 # these enable particular checks
7409 assert
) ac_assert_checking
=1 ;;
7410 df
) ac_df_checking
=1 ;;
7411 extra
) ac_extra_checking
=1 ;;
7412 fold) ac_fold_checking
=1 ;;
7413 gc
) ac_gc_checking
=1 ;;
7414 gcac
) ac_gc_always_collect
=1 ;;
7415 gimple
) ac_gimple_checking
=1 ;;
7416 misc
) ac_checking
=1 ;;
7417 rtl
) ac_rtl_checking
=1 ;;
7418 rtlflag
) ac_rtlflag_checking
=1 ;;
7419 runtime
) ac_runtime_checking
=1 ;;
7420 tree
) ac_tree_checking
=1 ;;
7421 types
) ac_types_checking
=1 ;;
7422 valgrind
) ac_valgrind_checking
=1 ;;
7423 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7429 if test x
$ac_checking != x
; then
7431 $as_echo "#define CHECKING_P 1" >>confdefs.h
7433 nocommon_flag
=-fno-common
7435 $as_echo "#define CHECKING_P 0" >>confdefs.h
7439 if test x
$ac_extra_checking != x
; then
7441 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7444 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7447 if test x
$ac_df_checking != x
; then
7449 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7452 if test x
$ac_assert_checking != x
; then
7454 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7457 if test x
$ac_gimple_checking != x
; then
7459 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7463 if test x
$ac_runtime_checking != x
; then
7465 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7468 if test x
$ac_tree_checking != x
; then
7470 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7474 if test x
$ac_types_checking != x
; then
7476 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7480 if test x
$ac_rtl_checking != x
; then
7482 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7485 if test x
$ac_rtlflag_checking != x
; then
7487 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7490 if test x
$ac_gc_checking != x
; then
7492 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7495 if test x
$ac_gc_always_collect != x
; then
7497 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7500 if test x
$ac_fold_checking != x
; then
7502 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7505 valgrind_path_defines
=
7508 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7509 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7517 # It is certainly possible that there's valgrind but no valgrind.h.
7518 # GCC relies on making annotations so we must have both.
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7520 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 #include <valgrind/memcheck.h>
7524 #ifndef VALGRIND_DISCARD
7525 #error VALGRIND_DISCARD not defined
7528 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7529 gcc_cv_header_valgrind_memcheck_h
=yes
7531 gcc_cv_header_valgrind_memcheck_h
=no
7533 rm -f conftest.err conftest.i conftest.
$ac_ext
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7535 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7537 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <memcheck.h>
7541 #ifndef VALGRIND_DISCARD
7542 #error VALGRIND_DISCARD not defined
7545 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7546 gcc_cv_header_memcheck_h
=yes
7548 gcc_cv_header_memcheck_h
=no
7550 rm -f conftest.err conftest.i conftest.
$ac_ext
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7552 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7553 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7555 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7558 if test $gcc_cv_header_memcheck_h = yes; then
7560 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7564 if test x
$ac_valgrind_checking != x
; then
7566 # Prepare PATH_SEPARATOR.
7567 # The user is always right.
7568 if test "${PATH_SEPARATOR+set}" != set; then
7569 echo "#! /bin/sh" >conf$$.sh
7570 echo "exit 0" >>conf$$.sh
7572 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7580 # Find out how to test for executable files. Don't use a zero-byte file,
7581 # as systems may use methods other than mode bits to determine executability.
7582 cat >conf$$.
file <<_ASEOF
7586 chmod +x conf$$.
file
7587 if test -x conf$$.
file >/dev
/null
2>&1; then
7588 ac_executable_p
="test -x"
7590 ac_executable_p
="test -f"
7594 # Extract the first word of "valgrind", so it can be a program name with args.
7595 set dummy valgrind
; ac_word
=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if ${ac_cv_path_valgrind_path+:} false
; then :
7599 $as_echo_n "(cached) " >&6
7601 case "$valgrind_path" in
7603 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7606 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7607 for ac_dir
in $PATH; do
7609 test -z "$ac_dir" && ac_dir
=.
7610 for ac_exec_ext
in '' $ac_executable_extensions; do
7611 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7612 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7613 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7623 valgrind_path
="$ac_cv_path_valgrind_path"
7624 if test -n "$valgrind_path"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7626 $as_echo "$valgrind_path" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7632 if test "x$valgrind_path" = "x" \
7633 ||
(test $have_valgrind_h = no \
7634 && test $gcc_cv_header_memcheck_h = no \
7635 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7636 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7638 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7639 valgrind_command
="$valgrind_path -q"
7641 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7647 # Enable code coverage collection
7648 # Check whether --enable-coverage was given.
7649 if test "${enable_coverage+set}" = set; then :
7650 enableval
=$enable_coverage; case "${enableval}" in
7652 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7655 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7658 # a.k.a. --disable-coverage
7662 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7671 # Check whether --enable-gather-detailed-mem-stats was given.
7672 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7673 enableval
=$enable_gather_detailed_mem_stats;
7675 enable_gather_detailed_mem_stats
=no
7678 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7680 cat >>confdefs.h
<<_ACEOF
7681 #define GATHER_STATISTICS $gather_stats
7685 # Check whether --enable-valgrind-annotations was given.
7686 if test "${enable_valgrind_annotations+set}" = set; then :
7687 enableval
=$enable_valgrind_annotations;
7689 enable_valgrind_annotations
=no
7692 if test x
$enable_valgrind_annotations != xno \
7693 ||
test x
$ac_valgrind_checking != x
; then
7694 if (test $have_valgrind_h = no \
7695 && test $gcc_cv_header_memcheck_h = no \
7696 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7697 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7700 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7704 # -------------------------------
7705 # Miscenalleous configure options
7706 # -------------------------------
7708 # Determine whether or not multilibs are enabled.
7709 # Check whether --enable-multilib was given.
7710 if test "${enable_multilib+set}" = set; then :
7711 enableval
=$enable_multilib;
7718 # Determine whether or not multiarch is enabled.
7719 # Check whether --enable-multiarch was given.
7720 if test "${enable_multiarch+set}" = set; then :
7721 enableval
=$enable_multiarch; case "${enableval}" in
7722 yes|no|auto
) enable_multiarch
=$enableval;;
7723 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7726 enable_multiarch
=auto
7729 if test x
${enable_multiarch} = xauto
; then
7730 if test x
${with_native_system_header_dir} != x
; then
7731 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7734 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7735 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7740 $as_echo_n "checking for multiarch configuration... " >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7743 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7745 # needed for setting the multiarch name for soft-float/hard-float ABIs
7749 # default stack clash protection guard size as power of twos in bytes.
7750 # Please keep these in sync with params.def.
7754 # Keep the default value when the option is not used to 0, this allows us to
7755 # distinguish between the cases where the user specifially set a value via
7756 # configure and when the normal default value is used.
7758 # Check whether --with-stack-clash-protection-guard-size was given.
7759 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7760 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7762 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7765 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7766 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7767 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7768 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
7772 cat >>confdefs.h
<<_ACEOF
7773 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7777 # Enable __cxa_atexit for C++.
7778 # Check whether --enable-__cxa_atexit was given.
7779 if test "${enable___cxa_atexit+set}" = set; then :
7780 enableval
=$enable___cxa_atexit;
7784 # Enable C extension for decimal float if target supports it.
7786 # Check whether --enable-decimal-float was given.
7787 if test "${enable_decimal_float+set}" = set; then :
7788 enableval
=$enable_decimal_float;
7789 case $enable_decimal_float in
7790 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7791 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7792 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7798 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7799 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7800 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7801 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7802 enable_decimal_float
=yes
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7806 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7807 enable_decimal_float
=no
7814 # x86's use BID format instead of DPD
7815 case x
$enable_decimal_float in
7818 i?
86*-*-* | x86_64
*-*-*)
7819 enable_decimal_float
=bid
7822 enable_decimal_float
=dpd
7825 default_decimal_float
=$enable_decimal_float
7828 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7829 # dependency on libdecnumber.
7830 default_decimal_float
=dpd
7837 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7839 cat >>confdefs.h
<<_ACEOF
7840 #define ENABLE_DECIMAL_FLOAT $dfp
7844 # Use default_decimal_float for dependency.
7845 enable_decimal_float
=$default_decimal_float
7847 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7849 cat >>confdefs.h
<<_ACEOF
7850 #define ENABLE_DECIMAL_BID_FORMAT $bid
7854 # Enable C extension for fixed-point arithmetic.
7855 # Check whether --enable-fixed-point was given.
7856 if test "${enable_fixed_point+set}" = set; then :
7857 enableval
=$enable_fixed_point;
7862 enable_fixed_point
=yes
7866 enable_fixed_point
=yes
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7870 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7871 enable_fixed_point
=no
7879 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7881 cat >>confdefs.h
<<_ACEOF
7882 #define ENABLE_FIXED_POINT $fixedpoint
7887 # Pass with no value to take the default
7888 # Pass with a value to specify a thread package
7889 # Check whether --enable-threads was given.
7890 if test "${enable_threads+set}" = set; then :
7891 enableval
=$enable_threads;
7897 # Check whether --enable-tls was given.
7898 if test "${enable_tls+set}" = set; then :
7899 enableval
=$enable_tls;
7902 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7903 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7911 # Check whether --enable-vtable-verify was given.
7912 if test "${enable_vtable_verify+set}" = set; then :
7913 enableval
=$enable_vtable_verify;
7915 enable_vtable_verify
=no
7918 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7920 cat >>confdefs.h
<<_ACEOF
7921 #define ENABLE_VTABLE_VERIFY $vtable_verify
7925 # Check whether --enable-analyzer was given.
7926 if test "${enable_analyzer+set}" = set; then :
7927 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
7937 cat >>confdefs.h
<<_ACEOF
7938 #define ENABLE_ANALYZER $analyzer
7942 # Check whether --enable-objc-gc was given.
7943 if test "${enable_objc_gc+set}" = set; then :
7944 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7955 # Check whether --with-dwarf2 was given.
7956 if test "${with_dwarf2+set}" = set; then :
7957 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7963 # Check whether --enable-shared was given.
7964 if test "${enable_shared+set}" = set; then :
7965 enableval
=$enable_shared;
7966 case $enable_shared in
7970 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7971 for pkg
in $enableval; do
7972 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7986 # Check whether --enable-gcov was given.
7987 if test "${enable_gcov+set}" = set; then :
7988 enableval
=$enable_gcov;
7996 # Check whether --with-specs was given.
7997 if test "${with_specs+set}" = set; then :
7998 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8008 # Check whether --with-pkgversion was given.
8009 if test "${with_pkgversion+set}" = set; then :
8010 withval
=$with_pkgversion; case "$withval" in
8011 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8013 *) PKGVERSION
="($withval) " ;;
8024 # Check whether --with-bugurl was given.
8025 if test "${with_bugurl+set}" = set; then :
8026 withval
=$with_bugurl; case "$withval" in
8027 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8030 *) BUGURL
="$withval"
8034 BUGURL
="https://gcc.gnu.org/bugs/"
8044 REPORT_BUGS_TO
="<$BUGURL>"
8045 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8052 # Allow overriding the default URL for documentation
8054 # Check whether --with-documentation-root-url was given.
8055 if test "${with_documentation_root_url+set}" = set; then :
8056 withval
=$with_documentation_root_url; case "$withval" in
8057 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8058 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8059 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8060 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8063 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8068 cat >>confdefs.h
<<_ACEOF
8069 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8073 # Allow overriding the default URL for GCC changes
8075 # Check whether --with-changes-root-url was given.
8076 if test "${with_changes_root_url+set}" = set; then :
8077 withval
=$with_changes_root_url; case "$withval" in
8078 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8079 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8080 */) CHANGES_ROOT_URL
="$withval" ;;
8081 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8084 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8089 cat >>confdefs.h
<<_ACEOF
8090 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8094 # Sanity check enable_languages in case someone does not run the toplevel
8095 # configure # script.
8096 # Check whether --enable-languages was given.
8097 if test "${enable_languages+set}" = set; then :
8098 enableval
=$enable_languages; case ,${enable_languages}, in
8100 # go safe -- we cannot be much sure without the toplevel
8102 # analysis of which target libs are present and usable
8106 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8111 enable_languages
=c
,${enable_languages}
8119 # If top-level libada has been disabled, then wire in install-gnatlib
8120 # invocation with `make install', so that one can build and install
8121 # the library manually with `make -C gcc all gnatlib gnattools install'.
8122 if test x
"$enable_libada" = xno
; then
8123 gnat_install_lib
=gnat-install-lib
8129 if test x
"$enable_as_accelerator_for" != x
; then
8131 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8133 enable_as_accelerator
=yes
8136 # In this case we expect offload compiler to be built as native, so we
8137 # need to rename the driver to avoid clashes with host's drivers.
8138 program_transform_name
="s&^&${target}-&" ;;
8140 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8141 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8142 accel_dir_suffix
=/accel
/${target_noncanonical}
8143 real_target_noncanonical
=${enable_as_accelerator_for}
8149 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8150 tgt
=`echo $tgt | sed 's/=.*//'`
8154 *-intelmic-* |
*-intelmicemul-*)
8155 omp_device_property
=omp-device-properties-i386
8156 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8159 omp_device_property
=omp-device-properties-gcn
8160 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8163 omp_device_property
=omp-device-properties-nvptx
8164 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8167 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8170 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8171 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8173 if test x
"$offload_targets" = x
; then
8174 offload_targets
=$tgt
8176 offload_targets
="$offload_targets,$tgt"
8183 cat >>confdefs.h
<<_ACEOF
8184 #define OFFLOAD_TARGETS "$offload_targets"
8187 if test x
"$enable_offloading" != x
; then
8189 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8193 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8197 if test "x$enable_offload_defaulted" = xyes
; then
8199 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8204 # Check whether --with-multilib-list was given.
8205 if test "${with_multilib_list+set}" = set; then :
8206 withval
=$with_multilib_list; :
8208 with_multilib_list
=default
8213 # Check whether --with-multilib-generator was given.
8214 if test "${with_multilib_generator+set}" = set; then :
8215 withval
=$with_multilib_generator; :
8217 with_multilib_generator
=default
8221 # -------------------------
8222 # Checks for other programs
8223 # -------------------------
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8226 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8228 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8229 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8230 $as_echo_n "(cached) " >&6
8232 cat >conftest.
make <<\_ACEOF
8235 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8237 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8238 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8240 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8242 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8246 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8248 $as_echo "yes" >&6; }
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8253 SET_MAKE
="MAKE=${MAKE-make}"
8257 # Find some useful tools
8258 for ac_prog
in gawk mawk nawk
awk
8260 # Extract the first word of "$ac_prog", so it can be a program name with args.
8261 set dummy
$ac_prog; ac_word
=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if ${ac_cv_prog_AWK+:} false
; then :
8265 $as_echo_n "(cached) " >&6
8267 if test -n "$AWK"; then
8268 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8274 test -z "$as_dir" && as_dir
=.
8275 for ac_exec_ext
in '' $ac_executable_extensions; do
8276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_AWK
="$ac_prog"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 if test -n "$AWK"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8290 $as_echo "$AWK" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8297 test -n "$AWK" && break
8300 # We need awk to create options.c and options.h.
8301 # Bail out if it's missing.
8303 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8307 $as_echo_n "checking whether ln -s works... " >&6; }
8308 if ${gcc_cv_prog_LN_S+:} false
; then :
8309 $as_echo_n "(cached) " >&6
8311 rm -f conftestdata_t
8312 echo >conftestdata_f
8313 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8315 gcc_cv_prog_LN_S
="ln -s"
8317 if ln conftestdata_f conftestdata_t
2>/dev
/null
8321 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8323 gcc_cv_prog_LN_S
="cp -p"
8329 rm -f conftestdata_f conftestdata_t
8332 LN_S
="$gcc_cv_prog_LN_S"
8333 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335 $as_echo "yes" >&6; }
8337 if test "$gcc_cv_prog_LN_S" = "ln"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8339 $as_echo "no, using ln" >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8342 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8347 $as_echo_n "checking whether ln works... " >&6; }
8348 if ${acx_cv_prog_LN+:} false
; then :
8349 $as_echo_n "(cached) " >&6
8351 rm -f conftestdata_t
8352 echo >conftestdata_f
8353 if ln conftestdata_f conftestdata_t
2>/dev
/null
8359 rm -f conftestdata_f conftestdata_t
8362 if test $acx_cv_prog_LN = no
; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8365 $as_echo "no, using $LN" >&6; }
8367 LN
="$acx_cv_prog_LN"
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8369 $as_echo "yes" >&6; }
8372 if test -n "$ac_tool_prefix"; then
8373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8374 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_RANLIB+:} false
; then :
8378 $as_echo_n "(cached) " >&6
8380 if test -n "$RANLIB"; then
8381 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8387 test -z "$as_dir" && as_dir
=.
8388 for ac_exec_ext
in '' $ac_executable_extensions; do
8389 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 RANLIB
=$ac_cv_prog_RANLIB
8401 if test -n "$RANLIB"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8403 $as_echo "$RANLIB" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8411 if test -z "$ac_cv_prog_RANLIB"; then
8412 ac_ct_RANLIB
=$RANLIB
8413 # Extract the first word of "ranlib", so it can be a program name with args.
8414 set dummy ranlib
; ac_word
=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8418 $as_echo_n "(cached) " >&6
8420 if test -n "$ac_ct_RANLIB"; then
8421 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8427 test -z "$as_dir" && as_dir
=.
8428 for ac_exec_ext
in '' $ac_executable_extensions; do
8429 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8430 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8441 if test -n "$ac_ct_RANLIB"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8443 $as_echo "$ac_ct_RANLIB" >&6; }
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8449 if test "x$ac_ct_RANLIB" = x
; then
8452 case $cross_compiling:$ac_tool_warned in
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8456 ac_tool_warned
=yes ;;
8458 RANLIB
=$ac_ct_RANLIB
8461 RANLIB
="$ac_cv_prog_RANLIB"
8467 # Find a good install program. We prefer a C program (faster),
8468 # so one script is as good as another. But avoid the broken or
8469 # incompatible versions:
8470 # SysV /etc/install, /usr/sbin/install
8471 # SunOS /usr/etc/install
8472 # IRIX /sbin/install
8474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8476 # ./install, which can be erroneously created by make from ./install.sh.
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8478 $as_echo_n "checking for a BSD compatible install... " >&6; }
8479 if test -z "$INSTALL"; then
8480 if ${ac_cv_path_install+:} false
; then :
8481 $as_echo_n "(cached) " >&6
8483 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8484 for ac_dir
in $PATH; do
8485 # Account for people who put trailing slashes in PATH elements.
8487 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8489 # OSF1 and SCO ODT 3.0 have their own names for install.
8490 for ac_prog
in ginstall scoinst
install; do
8491 if test -f $ac_dir/$ac_prog; then
8492 if test $ac_prog = install &&
8493 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8494 # AIX install. It has an incompatible calling convention.
8495 # OSF/1 installbsd also uses dspmsg, but is usable.
8498 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8509 if test "${ac_cv_path_install+set}" = set; then
8510 INSTALL
="$ac_cv_path_install"
8512 # As a last resort, use the slow shell script. We don't cache a
8513 # path for INSTALL within a source directory, because that will
8514 # break other packages using the cache if that directory is
8515 # removed, or if the path is relative.
8516 INSTALL
="$ac_install_sh"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8520 $as_echo "$INSTALL" >&6; }
8522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8523 # It thinks the first close brace ends the variable substitution.
8524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8526 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8529 # See if cmp has --ignore-initial.
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8531 $as_echo_n "checking for cmp's capabilities... " >&6; }
8532 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8533 $as_echo_n "(cached) " >&6
8537 gcc_cv_prog_cmp_skip
=slowcompare
8538 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8539 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8542 gcc_cv_prog_cmp_skip
=gnucompare
8545 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8546 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8547 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8550 gcc_cv_prog_cmp_skip
=fastcompare
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8558 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8559 make_compare_target
=$gcc_cv_prog_cmp_skip
8563 # See if we have the mktemp command.
8564 # Extract the first word of "mktemp", so it can be a program name with args.
8565 set dummy mktemp
; ac_word
=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8569 $as_echo_n "(cached) " >&6
8571 if test -n "$have_mktemp_command"; then
8572 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8578 test -z "$as_dir" && as_dir
=.
8579 for ac_exec_ext
in '' $ac_executable_extensions; do
8580 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_have_mktemp_command
="yes"
8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8592 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8593 if test -n "$have_mktemp_command"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8595 $as_echo "$have_mktemp_command" >&6; }
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 $as_echo "no" >&6; }
8603 # See if makeinfo has been installed and is modern enough
8604 # that we can use it.
8606 # Extract the first word of "makeinfo", so it can be a program name with args.
8607 set dummy makeinfo
; ac_word
=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8611 $as_echo_n "(cached) " >&6
8613 if test -n "$MAKEINFO"; then
8614 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8620 test -z "$as_dir" && as_dir
=.
8621 for ac_exec_ext
in '' $ac_executable_extensions; do
8622 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8623 ac_cv_prog_MAKEINFO
="makeinfo"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 MAKEINFO
=$ac_cv_prog_MAKEINFO
8634 if test -n "$MAKEINFO"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8636 $as_echo "$MAKEINFO" >&6; }
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8643 if test -n "$MAKEINFO"; then
8644 # Found it, now check the version.
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8646 $as_echo_n "checking for modern makeinfo... " >&6; }
8647 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8648 $as_echo_n "(cached) " >&6
8650 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8651 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8653 case $ac_prog_version in
8654 '') gcc_cv_prog_makeinfo_modern
=no
;;
8655 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8656 *) gcc_cv_prog_makeinfo_modern
=no
;;
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8661 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8663 gcc_cv_prog_makeinfo_modern
=no
8665 if test $gcc_cv_prog_makeinfo_modern = no
; then
8666 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8669 if test $gcc_cv_prog_makeinfo_modern = no
; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8671 *** Makeinfo is missing or too old.
8672 *** Info documentation will not be built." >&5
8673 $as_echo "$as_me: WARNING:
8674 *** Makeinfo is missing or too old.
8675 *** Info documentation will not be built." >&2;}
8682 # Is pod2man recent enough to regenerate manpages?
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8684 $as_echo_n "checking for recent Pod::Man... " >&6; }
8685 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8687 $as_echo "yes" >&6; }
8688 GENERATED_MANPAGES
=generated-manpages
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8696 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8701 # Extract the first word of "$ac_prog", so it can be a program name with args.
8702 set dummy
$ac_prog; ac_word
=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_prog_FLEX+:} false
; then :
8706 $as_echo_n "(cached) " >&6
8708 if test -n "$FLEX"; then
8709 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8715 test -z "$as_dir" && as_dir
=.
8716 for ac_exec_ext
in '' $ac_executable_extensions; do
8717 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8718 ac_cv_prog_FLEX
="$ac_prog"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 FLEX
=$ac_cv_prog_FLEX
8729 if test -n "$FLEX"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8731 $as_echo "$FLEX" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8738 test -n "$FLEX" && break
8740 test -n "$FLEX" || FLEX
="$MISSING flex"
8744 for ac_prog
in bison
8746 # Extract the first word of "$ac_prog", so it can be a program name with args.
8747 set dummy
$ac_prog; ac_word
=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_BISON+:} false
; then :
8751 $as_echo_n "(cached) " >&6
8753 if test -n "$BISON"; then
8754 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8760 test -z "$as_dir" && as_dir
=.
8761 for ac_exec_ext
in '' $ac_executable_extensions; do
8762 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_BISON
="$ac_prog"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 BISON
=$ac_cv_prog_BISON
8774 if test -n "$BISON"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8776 $as_echo "$BISON" >&6; }
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8783 test -n "$BISON" && break
8785 test -n "$BISON" || BISON
="$MISSING bison"
8788 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8789 # check for build == host before using them.
8792 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8793 && test -d ..
/binutils
; then
8794 NM
='${objdir}/../binutils/nm-new'
8796 # Extract the first word of "nm", so it can be a program name with args.
8797 set dummy nm
; ac_word
=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if ${ac_cv_prog_NM+:} false
; then :
8801 $as_echo_n "(cached) " >&6
8803 if test -n "$NM"; then
8804 ac_cv_prog_NM
="$NM" # Let the user override the test.
8806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8810 test -z "$as_dir" && as_dir
=.
8811 for ac_exec_ext
in '' $ac_executable_extensions; do
8812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8825 if test -n "$NM"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8827 $as_echo "$NM" >&6; }
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8837 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8838 && test -d ..
/binutils
; then
8839 AR
='${objdir}/../binutils/ar'
8841 # Extract the first word of "ar", so it can be a program name with args.
8842 set dummy
ar; ac_word
=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if ${ac_cv_prog_AR+:} false
; then :
8846 $as_echo_n "(cached) " >&6
8848 if test -n "$AR"; then
8849 ac_cv_prog_AR
="$AR" # Let the user override the test.
8851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8855 test -z "$as_dir" && as_dir
=.
8856 for ac_exec_ext
in '' $ac_executable_extensions; do
8857 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8870 if test -n "$AR"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8872 $as_echo "$AR" >&6; }
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8881 # The jit documentation looks better if built with sphinx, but can be
8882 # built with texinfo if sphinx is not available.
8883 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8884 # Extract the first word of "sphinx-build", so it can be a program name with args.
8885 set dummy sphinx-build
; ac_word
=$2
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887 $as_echo_n "checking for $ac_word... " >&6; }
8888 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8889 $as_echo_n "(cached) " >&6
8891 if test -n "$doc_build_sys"; then
8892 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8898 test -z "$as_dir" && as_dir
=.
8899 for ac_exec_ext
in '' $ac_executable_extensions; do
8900 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8901 ac_cv_prog_doc_build_sys
="sphinx"
8902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8912 doc_build_sys
=$ac_cv_prog_doc_build_sys
8913 if test -n "$doc_build_sys"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8915 $as_echo "$doc_build_sys" >&6; }
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8923 # --------------------
8924 # Checks for C headers
8925 # --------------------
8927 # Need to reject headers which give warnings, so that the -Werror bootstrap
8928 # works later. *sigh* This needs to come before all header checks.
8930 ac_c_preproc_warn_flag
=yes
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8933 $as_echo_n "checking for ANSI C header files... " >&6; }
8934 if ${ac_cv_header_stdc+:} false
; then :
8935 $as_echo_n "(cached) " >&6
8937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8952 if ac_fn_cxx_try_compile
"$LINENO"; then :
8953 ac_cv_header_stdc
=yes
8955 ac_cv_header_stdc
=no
8957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8959 if test $ac_cv_header_stdc = yes; then
8960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8967 $EGREP "memchr" >/dev
/null
2>&1; then :
8970 ac_cv_header_stdc
=no
8976 if test $ac_cv_header_stdc = yes; then
8977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8984 $EGREP "free" >/dev
/null
2>&1; then :
8987 ac_cv_header_stdc
=no
8993 if test $ac_cv_header_stdc = yes; then
8994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8995 if test "$cross_compiling" = yes; then :
8998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9002 #if ((' ' & 0x0FF) == 0x020)
9003 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9004 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9006 # define ISLOWER(c) \
9007 (('a' <= (c) && (c) <= 'i') \
9008 || ('j' <= (c) && (c) <= 'r') \
9009 || ('s' <= (c) && (c) <= 'z'))
9010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9018 for (i = 0; i < 256; i++)
9019 if (XOR (islower (i), ISLOWER (i))
9020 || toupper (i) != TOUPPER (i))
9025 if ac_fn_cxx_try_run
"$LINENO"; then :
9028 ac_cv_header_stdc
=no
9030 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9031 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9037 $as_echo "$ac_cv_header_stdc" >&6; }
9038 if test $ac_cv_header_stdc = yes; then
9040 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9045 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9046 if ${ac_cv_header_time+:} false
; then :
9047 $as_echo_n "(cached) " >&6
9049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 #include <sys/types.h>
9052 #include <sys/time.h>
9058 if ((struct tm *) 0)
9064 if ac_fn_cxx_try_compile
"$LINENO"; then :
9065 ac_cv_header_time
=yes
9067 ac_cv_header_time
=no
9069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9072 $as_echo "$ac_cv_header_time" >&6; }
9073 if test $ac_cv_header_time = yes; then
9075 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9080 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9081 if ${gcc_cv_header_string+:} false
; then :
9082 $as_echo_n "(cached) " >&6
9084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9087 #include <strings.h>
9096 if ac_fn_cxx_try_compile
"$LINENO"; then :
9097 gcc_cv_header_string
=yes
9099 gcc_cv_header_string
=no
9101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9104 $as_echo "$gcc_cv_header_string" >&6; }
9105 if test $gcc_cv_header_string = yes; then
9107 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9112 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9113 if ${ac_cv_header_sys_wait_h+:} false
; then :
9114 $as_echo_n "(cached) " >&6
9116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 #include <sys/types.h>
9119 #include <sys/wait.h>
9121 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9124 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9132 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9137 if ac_fn_cxx_try_compile
"$LINENO"; then :
9138 ac_cv_header_sys_wait_h
=yes
9140 ac_cv_header_sys_wait_h
=no
9142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9145 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9146 if test $ac_cv_header_sys_wait_h = yes; then
9148 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9153 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9154 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9155 $as_echo_n "(cached) " >&6
9157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 #include <sys/types.h>
9160 #include <termios.h>
9166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9167 $EGREP "yes" >/dev
/null
2>&1; then :
9168 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9170 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9176 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9178 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9180 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9181 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9182 $as_echo_n "(cached) " >&6
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 #include <sys/types.h>
9187 #include <sys/ioctl.h>
9193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9194 $EGREP "yes" >/dev
/null
2>&1; then :
9195 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9197 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9203 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9205 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9207 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9212 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9213 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9214 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9215 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9217 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9218 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9219 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9220 cat >>confdefs.h
<<_ACEOF
9221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9228 # Check for thread headers.
9229 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9230 if test "x$ac_cv_header_thread_h" = xyes
; then :
9236 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9237 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9244 # These tests can't be done till we know if we have limits.h.
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9246 $as_echo_n "checking for CHAR_BIT... " >&6; }
9247 if ${gcc_cv_decl_char_bit+:} false
; then :
9248 $as_echo_n "(cached) " >&6
9250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252 #ifdef HAVE_LIMITS_H
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "found" >/dev
/null
2>&1; then :
9261 gcc_cv_decl_char_bit
=yes
9263 gcc_cv_decl_char_bit
=no
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9270 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9271 if test $gcc_cv_decl_char_bit = no
; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9273 $as_echo_n "checking number of bits in a byte... " >&6; }
9274 if ${gcc_cv_c_nbby+:} false
; then :
9275 $as_echo_n "(cached) " >&6
9279 while test $i -lt 65; do
9280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9287 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9288 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9294 if ac_fn_cxx_try_compile
"$LINENO"; then :
9295 gcc_cv_c_nbby
=$i; break
9297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9300 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9304 $as_echo "$gcc_cv_c_nbby" >&6; }
9305 if test $gcc_cv_c_nbby = failed
; then
9306 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9309 cat >>confdefs.h
<<_ACEOF
9310 #define CHAR_BIT $gcc_cv_c_nbby
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9316 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9317 if ${ac_cv_c_bigendian+:} false
; then :
9318 $as_echo_n "(cached) " >&6
9320 ac_cv_c_bigendian
=unknown
9321 # See if we're dealing with a universal compiler.
9322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324 #ifndef __APPLE_CC__
9325 not a universal capable compiler
9330 if ac_fn_cxx_try_compile
"$LINENO"; then :
9332 # Check for potential -arch flags. It is not universal unless
9333 # there are at least two -arch flags with different values.
9336 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9337 if test -n "$ac_prev"; then
9339 i?
86 | x86_64 | ppc | ppc64
)
9340 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9343 ac_cv_c_bigendian
=universal
9349 elif test "x$ac_word" = "x-arch"; then
9354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9355 if test $ac_cv_c_bigendian = unknown
; then
9356 # See if sys/param.h defines the BYTE_ORDER macro.
9357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 #include <sys/types.h>
9360 #include <sys/param.h>
9365 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9366 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9375 if ac_fn_cxx_try_compile
"$LINENO"; then :
9376 # It does; now see whether it defined to BIG_ENDIAN or not.
9377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 #include <sys/types.h>
9380 #include <sys/param.h>
9385 #if BYTE_ORDER != BIG_ENDIAN
9393 if ac_fn_cxx_try_compile
"$LINENO"; then :
9394 ac_cv_c_bigendian
=yes
9396 ac_cv_c_bigendian
=no
9398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9402 if test $ac_cv_c_bigendian = unknown
; then
9403 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9411 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9419 if ac_fn_cxx_try_compile
"$LINENO"; then :
9420 # It does; now see whether it defined to _BIG_ENDIAN or not.
9421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9436 if ac_fn_cxx_try_compile
"$LINENO"; then :
9437 ac_cv_c_bigendian
=yes
9439 ac_cv_c_bigendian
=no
9441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9445 if test $ac_cv_c_bigendian = unknown
; then
9446 # Compile a test program.
9447 if test "$cross_compiling" = yes; then :
9448 # Try to guess by grepping values from an object file.
9449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451 short int ascii_mm[] =
9452 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9453 short int ascii_ii[] =
9454 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9455 int use_ascii (int i) {
9456 return ascii_mm[i] + ascii_ii[i];
9458 short int ebcdic_ii[] =
9459 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9460 short int ebcdic_mm[] =
9461 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9462 int use_ebcdic (int i) {
9463 return ebcdic_mm[i] + ebcdic_ii[i];
9470 return use_ascii (foo) == use_ebcdic (foo);
9475 if ac_fn_cxx_try_compile
"$LINENO"; then :
9476 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9477 ac_cv_c_bigendian
=yes
9479 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9480 if test "$ac_cv_c_bigendian" = unknown
; then
9481 ac_cv_c_bigendian
=no
9483 # finding both strings is unlikely to happen, but who knows?
9484 ac_cv_c_bigendian
=unknown
9488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 $ac_includes_default
9497 /* Are we little or big endian? From Harbison&Steele. */
9501 char c[sizeof (long int)];
9504 return u.c[sizeof (long int) - 1] == 1;
9510 if ac_fn_cxx_try_run
"$LINENO"; then :
9511 ac_cv_c_bigendian
=no
9513 ac_cv_c_bigendian
=yes
9515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9516 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9522 $as_echo "$ac_cv_c_bigendian" >&6; }
9523 case $ac_cv_c_bigendian in #(
9525 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9531 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9535 as_fn_error $?
"unknown endianness
9536 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9540 # ----------------------
9541 # Checks for C++ headers
9542 # ----------------------
9545 ac_cpp
='$CXXCPP $CPPFLAGS'
9546 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9550 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9551 if test -z "$CXXCPP"; then
9552 if ${ac_cv_prog_CXXCPP+:} false
; then :
9553 $as_echo_n "(cached) " >&6
9555 # Double quotes because CXXCPP needs to be expanded
9556 for CXXCPP
in "$CXX -E" "/lib/cpp"
9559 for ac_cxx_preproc_warn_flag
in '' yes
9561 # Use a header file that comes with gcc, so configuring glibc
9562 # with a fresh cross-compiler works.
9563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564 # <limits.h> exists even on freestanding compilers.
9565 # On the NeXT, cc -E runs the code through the compiler's parser,
9566 # not just through cpp. "Syntax error" is here to catch this case.
9567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9570 # include <limits.h>
9572 # include <assert.h>
9576 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9579 # Broken: fails on valid input.
9582 rm -f conftest.err conftest.i conftest.
$ac_ext
9584 # OK, works on sane cases. Now check whether nonexistent headers
9585 # can be detected and how.
9586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 #include <ac_nonexistent.h>
9590 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9591 # Broken: success on invalid input.
9594 # Passes both tests.
9598 rm -f conftest.err conftest.i conftest.
$ac_ext
9601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9602 rm -f conftest.i conftest.err conftest.
$ac_ext
9603 if $ac_preproc_ok; then :
9608 ac_cv_prog_CXXCPP
=$CXXCPP
9611 CXXCPP
=$ac_cv_prog_CXXCPP
9613 ac_cv_prog_CXXCPP
=$CXXCPP
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9616 $as_echo "$CXXCPP" >&6; }
9618 for ac_cxx_preproc_warn_flag
in '' yes
9620 # Use a header file that comes with gcc, so configuring glibc
9621 # with a fresh cross-compiler works.
9622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9623 # <limits.h> exists even on freestanding compilers.
9624 # On the NeXT, cc -E runs the code through the compiler's parser,
9625 # not just through cpp. "Syntax error" is here to catch this case.
9626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9629 # include <limits.h>
9631 # include <assert.h>
9635 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9638 # Broken: fails on valid input.
9641 rm -f conftest.err conftest.i conftest.
$ac_ext
9643 # OK, works on sane cases. Now check whether nonexistent headers
9644 # can be detected and how.
9645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 #include <ac_nonexistent.h>
9649 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9650 # Broken: success on invalid input.
9653 # Passes both tests.
9657 rm -f conftest.err conftest.i conftest.
$ac_ext
9660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9661 rm -f conftest.i conftest.err conftest.
$ac_ext
9662 if $ac_preproc_ok; then :
9665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9668 See \`config.log' for more details" >&5
9669 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9670 See \`config.log' for more details" >&2;}; }
9674 ac_cpp
='$CXXCPP $CPPFLAGS'
9675 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9680 for ac_header
in unordered_map
9682 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9683 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9684 cat >>confdefs.h
<<_ACEOF
9685 #define HAVE_UNORDERED_MAP 1
9691 for ac_header
in tr1/unordered_map
9693 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9694 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9695 cat >>confdefs.h
<<_ACEOF
9696 #define HAVE_TR1_UNORDERED_MAP 1
9702 for ac_header
in ext
/hash_map
9704 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9705 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9706 cat >>confdefs.h
<<_ACEOF
9707 #define HAVE_EXT_HASH_MAP 1
9715 # Dependency checking.
9718 rm -rf .tst
2>/dev
/null
9719 mkdir .tst
2>/dev
/null
9720 if test -d .tst
; then
9725 rmdir .tst
2>/dev
/null
9727 DEPDIR
="${am__leading_dot}deps"
9729 ac_config_commands
="$ac_config_commands depdir"
9732 ac_config_commands
="$ac_config_commands gccdepdir"
9735 depcc
="$CXX" am_compiler_list
=
9737 am_depcomp
=$ac_aux_dir/depcomp
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9739 $as_echo_n "checking dependency style of $depcc... " >&6; }
9740 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9741 $as_echo_n "(cached) " >&6
9743 if test -f "$am_depcomp"; then
9744 # We make a subdir and do the tests there. Otherwise we can end up
9745 # making bogus files that we don't know about and never remove. For
9746 # instance it was reported that on HP-UX the gcc test will end up
9747 # making a dummy file named `D' -- because `-MD' means `put the output
9750 # Copy depcomp to subdir because otherwise we won't find it if we're
9751 # using a relative directory.
9752 cp "$am_depcomp" conftest.dir
9754 # We will build objects and dependencies in a subdirectory because
9755 # it helps to detect inapplicable dependency modes. For instance
9756 # both Tru64's cc and ICC support -MD to output dependencies as a
9757 # side effect of compilation, but ICC will put the dependencies in
9758 # the current directory while Tru64 will put them in the object
9762 am_cv_CXX_dependencies_compiler_type
=none
9763 if test "$am_compiler_list" = ""; then
9764 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9766 for depmode
in $am_compiler_list; do
9767 if test $depmode = none
; then break; fi
9769 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9770 # Setup a source with many dependencies, because some compilers
9771 # like to wrap large dependency lists on column 80 (with \), and
9772 # we should not choose a depcomp mode which is confused by this.
9774 # We need to recreate these files for each test, as the compiler may
9775 # overwrite some of them when testing with obscure command lines.
9776 # This happens at least with the AIX C compiler.
9778 for i
in 1 2 3 4 5 6; do
9779 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9780 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9781 # Solaris 8's {/usr,}/bin/sh.
9782 touch sub
/conftst
$i.h
9784 echo "include sub/conftest.Po" > confmf
9786 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9787 # mode. It turns out that the SunPro C++ compiler does not properly
9788 # handle `-M -o', and we need to detect this.
9789 depcmd
="depmode=$depmode \
9790 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9791 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9792 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9793 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9794 if env
$depcmd > conftest.err
2>&1 &&
9795 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9796 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9797 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9798 # icc doesn't choke on unknown options, it will just issue warnings
9799 # or remarks (even with -Werror). So we grep stderr for any message
9800 # that says an option was ignored or not supported.
9801 # When given -MP, icc 7.0 and 7.1 complain thusly:
9802 # icc: Command line warning: ignoring option '-M'; no argument required
9803 # The diagnosis changed in icc 8.0:
9804 # icc: Command line remark: option '-MP' not supported
9805 if (grep 'ignoring option' conftest.err ||
9806 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9807 am_cv_CXX_dependencies_compiler_type
=$depmode
9808 $as_echo "$as_me:$LINENO: success" >&5
9812 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9813 sed -e 's/^/| /' < conftest.err
>&5
9819 am_cv_CXX_dependencies_compiler_type
=none
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9824 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9825 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9826 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9827 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9837 # These libraries may be used by collect2.
9838 # We may need a special search path to get them linked.
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9840 $as_echo_n "checking for collect2 libraries... " >&6; }
9841 if ${gcc_cv_collect2_libs+:} false
; then :
9842 $as_echo_n "(cached) " >&6
9845 for libs
in '' -lld -lmld \
9846 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9847 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9868 if ac_fn_cxx_try_link
"$LINENO"; then :
9869 gcc_cv_collect2_libs
="$libs"; break
9871 rm -f core conftest.err conftest.
$ac_objext \
9872 conftest
$ac_exeext conftest.
$ac_ext
9875 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9878 $as_echo "$gcc_cv_collect2_libs" >&6; }
9879 case $gcc_cv_collect2_libs in
9881 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9885 # When building Ada code on Alpha, we need exc_resume which is usually in
9886 # -lexc. So test for it.
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9890 $as_echo_n "checking for library containing exc_resume... " >&6; }
9891 if ${ac_cv_search_exc_resume+:} false
; then :
9892 $as_echo_n "(cached) " >&6
9894 ac_func_search_save_LIBS
=$LIBS
9895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9908 return exc_resume ();
9913 for ac_lib
in '' exc
; do
9914 if test -z "$ac_lib"; then
9915 ac_res
="none required"
9918 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9920 if ac_fn_cxx_try_link
"$LINENO"; then :
9921 ac_cv_search_exc_resume
=$ac_res
9923 rm -f core conftest.err conftest.
$ac_objext \
9925 if ${ac_cv_search_exc_resume+:} false
; then :
9929 if ${ac_cv_search_exc_resume+:} false
; then :
9932 ac_cv_search_exc_resume
=no
9935 LIBS
=$ac_func_search_save_LIBS
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9938 $as_echo "$ac_cv_search_exc_resume" >&6; }
9939 ac_res
=$ac_cv_search_exc_resume
9940 if test "$ac_res" != no
; then :
9941 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9949 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9953 $as_echo_n "checking for library containing kstat_open... " >&6; }
9954 if ${ac_cv_search_kstat_open+:} false
; then :
9955 $as_echo_n "(cached) " >&6
9957 ac_func_search_save_LIBS
=$LIBS
9958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9961 /* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9971 return kstat_open ();
9976 for ac_lib
in '' kstat
; do
9977 if test -z "$ac_lib"; then
9978 ac_res
="none required"
9981 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9983 if ac_fn_cxx_try_link
"$LINENO"; then :
9984 ac_cv_search_kstat_open
=$ac_res
9986 rm -f core conftest.err conftest.
$ac_objext \
9988 if ${ac_cv_search_kstat_open+:} false
; then :
9992 if ${ac_cv_search_kstat_open+:} false
; then :
9995 ac_cv_search_kstat_open
=no
9998 LIBS
=$ac_func_search_save_LIBS
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10001 $as_echo "$ac_cv_search_kstat_open" >&6; }
10002 ac_res
=$ac_cv_search_kstat_open
10003 if test "$ac_res" != no
; then :
10004 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10008 EXTRA_GCC_LIBS
="$LIBS"
10012 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10013 # C++ needs those for libcody.
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10018 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10019 if ${ac_cv_search_gethostbyname+:} false
; then :
10020 $as_echo_n "(cached) " >&6
10022 ac_func_search_save_LIBS
=$LIBS
10023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10026 /* Override any GCC internal prototype to avoid an error.
10027 Use char because int might match the return type of a GCC
10028 builtin and then its argument prototype would still apply. */
10032 char gethostbyname ();
10036 return gethostbyname ();
10041 for ac_lib
in '' nsl
; do
10042 if test -z "$ac_lib"; then
10043 ac_res
="none required"
10046 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10048 if ac_fn_cxx_try_link
"$LINENO"; then :
10049 ac_cv_search_gethostbyname
=$ac_res
10051 rm -f core conftest.err conftest.
$ac_objext \
10053 if ${ac_cv_search_gethostbyname+:} false
; then :
10057 if ${ac_cv_search_gethostbyname+:} false
; then :
10060 ac_cv_search_gethostbyname
=no
10062 rm conftest.
$ac_ext
10063 LIBS
=$ac_func_search_save_LIBS
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10066 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10067 ac_res
=$ac_cv_search_gethostbyname
10068 if test "$ac_res" != no
; then :
10069 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10074 $as_echo_n "checking for library containing socket... " >&6; }
10075 if ${ac_cv_search_socket+:} false
; then :
10076 $as_echo_n "(cached) " >&6
10078 ac_func_search_save_LIBS
=$LIBS
10079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10082 /* Override any GCC internal prototype to avoid an error.
10083 Use char because int might match the return type of a GCC
10084 builtin and then its argument prototype would still apply. */
10097 for ac_lib
in '' socket
; do
10098 if test -z "$ac_lib"; then
10099 ac_res
="none required"
10102 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10104 if ac_fn_cxx_try_link
"$LINENO"; then :
10105 ac_cv_search_socket
=$ac_res
10107 rm -f core conftest.err conftest.
$ac_objext \
10109 if ${ac_cv_search_socket+:} false
; then :
10113 if ${ac_cv_search_socket+:} false
; then :
10116 ac_cv_search_socket
=no
10118 rm conftest.
$ac_ext
10119 LIBS
=$ac_func_search_save_LIBS
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10122 $as_echo "$ac_cv_search_socket" >&6; }
10123 ac_res
=$ac_cv_search_socket
10124 if test "$ac_res" != no
; then :
10125 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10130 $as_echo_n "checking for socket in -lsocket... " >&6; }
10131 if ${ac_cv_lib_socket_socket+:} false
; then :
10132 $as_echo_n "(cached) " >&6
10134 ac_check_lib_save_LIBS
=$LIBS
10135 LIBS
="-lsocket -lnsl $LIBS"
10136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10154 if ac_fn_cxx_try_link
"$LINENO"; then :
10155 ac_cv_lib_socket_socket
=yes
10157 ac_cv_lib_socket_socket
=no
10159 rm -f core conftest.err conftest.
$ac_objext \
10160 conftest
$ac_exeext conftest.
$ac_ext
10161 LIBS
=$ac_check_lib_save_LIBS
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10164 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10165 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10166 LIBS
="-lsocket -lnsl $LIBS"
10176 # Some systems put ldexp and frexp in libm instead of libc; assume
10177 # they're both in the same place. jcf-dump needs them.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10181 $as_echo_n "checking for library containing ldexp... " >&6; }
10182 if ${ac_cv_search_ldexp+:} false
; then :
10183 $as_echo_n "(cached) " >&6
10185 ac_func_search_save_LIBS
=$LIBS
10186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10189 /* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10204 for ac_lib
in '' m
; do
10205 if test -z "$ac_lib"; then
10206 ac_res
="none required"
10209 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10211 if ac_fn_cxx_try_link
"$LINENO"; then :
10212 ac_cv_search_ldexp
=$ac_res
10214 rm -f core conftest.err conftest.
$ac_objext \
10216 if ${ac_cv_search_ldexp+:} false
; then :
10220 if ${ac_cv_search_ldexp+:} false
; then :
10223 ac_cv_search_ldexp
=no
10225 rm conftest.
$ac_ext
10226 LIBS
=$ac_func_search_save_LIBS
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10229 $as_echo "$ac_cv_search_ldexp" >&6; }
10230 ac_res
=$ac_cv_search_ldexp
10231 if test "$ac_res" != no
; then :
10232 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10240 # Some systems need dlopen
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10244 $as_echo_n "checking for library containing dlopen... " >&6; }
10245 if ${ac_cv_search_dlopen+:} false
; then :
10246 $as_echo_n "(cached) " >&6
10248 ac_func_search_save_LIBS
=$LIBS
10249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10267 for ac_lib
in '' dl
; do
10268 if test -z "$ac_lib"; then
10269 ac_res
="none required"
10272 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10274 if ac_fn_cxx_try_link
"$LINENO"; then :
10275 ac_cv_search_dlopen
=$ac_res
10277 rm -f core conftest.err conftest.
$ac_objext \
10279 if ${ac_cv_search_dlopen+:} false
; then :
10283 if ${ac_cv_search_dlopen+:} false
; then :
10286 ac_cv_search_dlopen
=no
10288 rm conftest.
$ac_ext
10289 LIBS
=$ac_func_search_save_LIBS
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10292 $as_echo "$ac_cv_search_dlopen" >&6; }
10293 ac_res
=$ac_cv_search_dlopen
10294 if test "$ac_res" != no
; then :
10295 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10303 # Use <inttypes.h> only if it exists,
10304 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10307 $as_echo_n "checking for inttypes.h... " >&6; }
10308 if ${gcc_cv_header_inttypes_h+:} false
; then :
10309 $as_echo_n "(cached) " >&6
10311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313 #define __STDC_FORMAT_MACROS
10314 #include <sys/types.h>
10315 #include <inttypes.h>
10327 if ac_fn_cxx_try_compile
"$LINENO"; then :
10328 gcc_cv_header_inttypes_h
=yes
10330 gcc_cv_header_inttypes_h
=no
10332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10336 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10337 if test $gcc_cv_header_inttypes_h = yes; then
10339 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10343 # Look for the ZSTD package.
10353 # Check whether --with-zstd was given.
10354 if test "${with_zstd+set}" = set; then :
10355 withval
=$with_zstd;
10359 # Check whether --with-zstd-include was given.
10360 if test "${with_zstd_include+set}" = set; then :
10361 withval
=$with_zstd_include;
10365 # Check whether --with-zstd-lib was given.
10366 if test "${with_zstd_lib+set}" = set; then :
10367 withval
=$with_zstd_lib;
10370 case "x$with_zstd" in
10376 *) ZSTD_INCLUDE
=$with_zstd/include
10377 ZSTD_LIB
=$with_zstd/lib
10381 if test "x$with_zstd" != xno
; then
10382 if test "x$with_zstd_include" != x
; then
10383 ZSTD_INCLUDE
=$with_zstd_include
10385 if test "x$with_zstd_lib" != x
; then
10386 ZSTD_LIB
=$with_zstd_lib
10388 if test "x$ZSTD_INCLUDE" != x \
10389 && test "x$ZSTD_INCLUDE" != xno
; then
10390 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10392 if test "x$ZSTD_LIB" != x \
10393 && test "x$ZSTD_LIB" != xno
; then
10394 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10397 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10398 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10401 $as_echo_n "checking for zstd.h... " >&6; }
10402 if ${gcc_cv_header_zstd_h+:} false
; then :
10403 $as_echo_n "(cached) " >&6
10405 # We require version 1.3.0 or later. This is the first version that has
10406 # ZSTD_getFrameContentSize.
10407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10410 #if ZSTD_VERSION_NUMBER < 10300
10411 #error "need zstd 1.3.0 or better"
10421 if ac_fn_cxx_try_compile
"$LINENO"; then :
10422 gcc_cv_header_zstd_h
=yes
10424 gcc_cv_header_zstd_h
=no
10426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10430 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10431 if test $gcc_cv_header_zstd_h = yes; then
10433 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10435 elif test "x$with_zstd" != x
; then
10436 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10439 # LTO can use zstd compression algorithm
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10443 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10444 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10445 $as_echo_n "(cached) " >&6
10447 ac_func_search_save_LIBS
=$LIBS
10448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10451 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10457 char ZSTD_compress ();
10461 return ZSTD_compress ();
10466 for ac_lib
in '' zstd
; do
10467 if test -z "$ac_lib"; then
10468 ac_res
="none required"
10471 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10473 if ac_fn_cxx_try_link
"$LINENO"; then :
10474 ac_cv_search_ZSTD_compress
=$ac_res
10476 rm -f core conftest.err conftest.
$ac_objext \
10478 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10482 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10485 ac_cv_search_ZSTD_compress
=no
10487 rm conftest.
$ac_ext
10488 LIBS
=$ac_func_search_save_LIBS
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10491 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10492 ac_res
=$ac_cv_search_ZSTD_compress
10493 if test "$ac_res" != no
; then :
10494 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10505 for ac_func
in times clock kill getrlimit setrlimit atoq \
10506 popen sysconf strsignal getrusage nl_langinfo \
10507 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10508 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
10510 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10511 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10512 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10513 cat >>confdefs.h
<<_ACEOF
10514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10521 if test x
$ac_cv_func_mbstowcs = xyes
; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10523 $as_echo_n "checking whether mbstowcs works... " >&6; }
10524 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10525 $as_echo_n "(cached) " >&6
10527 if test "$cross_compiling" = yes; then :
10528 gcc_cv_func_mbstowcs_works
=yes
10530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532 #include <stdlib.h>
10535 mbstowcs(0, "", 0);
10539 if ac_fn_cxx_try_run
"$LINENO"; then :
10540 gcc_cv_func_mbstowcs_works
=yes
10542 gcc_cv_func_mbstowcs_works
=no
10544 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10545 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10550 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10551 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10553 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10558 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10559 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10563 cat >>confdefs.h
<<_ACEOF
10564 #define ssize_t int
10569 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10570 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10574 cat >>confdefs.h
<<_ACEOF
10575 #define caddr_t char *
10580 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10582 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10584 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10590 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10591 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10592 gcc_header_sys_mman_h
=yes
10594 gcc_header_sys_mman_h
=no
10597 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10598 if test "x$ac_cv_func_mmap" = xyes
; then :
10604 if test "$gcc_header_sys_mman_h" != yes \
10605 ||
test "$gcc_func_mmap" != yes; then
10606 gcc_cv_func_mmap_file
=no
10607 gcc_cv_func_mmap_dev_zero
=no
10608 gcc_cv_func_mmap_anon
=no
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10611 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10612 if ${gcc_cv_func_mmap_file+:} false
; then :
10613 $as_echo_n "(cached) " >&6
10615 # Add a system to this blacklist if
10616 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10617 # memory area containing the same data that you'd get if you applied
10618 # read() to the same fd. The only system known to have a problem here
10619 # is VMS, where text files have record structure.
10622 gcc_cv_func_mmap_file
=no
;;
10624 gcc_cv_func_mmap_file
=yes;;
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10628 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10630 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10631 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10632 $as_echo_n "(cached) " >&6
10634 # Add a system to this blacklist if it has mmap() but /dev/zero
10635 # does not exist, or if mmapping /dev/zero does not give anonymous
10636 # zeroed pages with both the following properties:
10637 # 1. If you map N consecutive pages in with one call, and then
10638 # unmap any subset of those pages, the pages that were not
10639 # explicitly unmapped remain accessible.
10640 # 2. If you map two adjacent blocks of memory and then unmap them
10641 # both at once, they must both go away.
10642 # Systems known to be in this category are Windows (all variants),
10645 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10646 gcc_cv_func_mmap_dev_zero
=no
;;
10648 gcc_cv_func_mmap_dev_zero
=yes;;
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10652 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10654 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10656 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10657 if ${gcc_cv_decl_map_anon+:} false
; then :
10658 $as_echo_n "(cached) " >&6
10660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10662 #include <sys/types.h>
10663 #include <sys/mman.h>
10664 #include <unistd.h>
10666 #ifndef MAP_ANONYMOUS
10667 #define MAP_ANONYMOUS MAP_ANON
10673 int n = MAP_ANONYMOUS;
10678 if ac_fn_cxx_try_compile
"$LINENO"; then :
10679 gcc_cv_decl_map_anon
=yes
10681 gcc_cv_decl_map_anon
=no
10683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10686 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10688 if test $gcc_cv_decl_map_anon = no
; then
10689 gcc_cv_func_mmap_anon
=no
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10692 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10693 if ${gcc_cv_func_mmap_anon+:} false
; then :
10694 $as_echo_n "(cached) " >&6
10696 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10697 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10698 # doesn't give anonymous zeroed pages with the same properties listed
10699 # above for use of /dev/zero.
10700 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10702 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10703 gcc_cv_func_mmap_anon
=no
;;
10705 gcc_cv_func_mmap_anon
=yes;;
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10709 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10713 if test $gcc_cv_func_mmap_file = yes; then
10715 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10718 if test $gcc_cv_func_mmap_dev_zero = yes; then
10720 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10723 if test $gcc_cv_func_mmap_anon = yes; then
10725 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10732 # Under VMS, vfork works very differently than on Unix. The standard test
10733 # won't work, and it isn't easily adaptable. It makes more sense to
10735 ac_cv_func_vfork_works
=yes
10738 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10739 if test "x$ac_cv_type_pid_t" = xyes
; then :
10743 cat >>confdefs.h
<<_ACEOF
10749 for ac_header
in vfork.h
10751 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10752 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10753 cat >>confdefs.h
<<_ACEOF
10754 #define HAVE_VFORK_H 1
10760 for ac_func
in fork vfork
10762 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10763 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10764 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10765 cat >>confdefs.h
<<_ACEOF
10766 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10772 if test "x$ac_cv_func_fork" = xyes
; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10774 $as_echo_n "checking for working fork... " >&6; }
10775 if ${ac_cv_func_fork_works+:} false
; then :
10776 $as_echo_n "(cached) " >&6
10778 if test "$cross_compiling" = yes; then :
10779 ac_cv_func_fork_works
=cross
10781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 $ac_includes_default
10788 /* By Ruediger Kuhlmann. */
10789 return fork () < 0;
10795 if ac_fn_cxx_try_run
"$LINENO"; then :
10796 ac_cv_func_fork_works
=yes
10798 ac_cv_func_fork_works
=no
10800 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10801 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10806 $as_echo "$ac_cv_func_fork_works" >&6; }
10809 ac_cv_func_fork_works
=$ac_cv_func_fork
10811 if test "x$ac_cv_func_fork_works" = xcross
; then
10813 *-*-amigaos* |
*-*-msdosdjgpp*)
10814 # Override, as these systems have only a dummy fork() stub
10815 ac_cv_func_fork_works
=no
10818 ac_cv_func_fork_works
=yes
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10822 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10824 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10825 if test "x$ac_cv_func_vfork" = xyes
; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10827 $as_echo_n "checking for working vfork... " >&6; }
10828 if ${ac_cv_func_vfork_works+:} false
; then :
10829 $as_echo_n "(cached) " >&6
10831 if test "$cross_compiling" = yes; then :
10832 ac_cv_func_vfork_works
=cross
10834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836 /* Thanks to Paul Eggert for this test. */
10837 $ac_includes_default
10838 #include <sys/wait.h>
10839 #ifdef HAVE_VFORK_H
10840 # include <vfork.h>
10842 /* On some sparc systems, changes by the child to local and incoming
10843 argument registers are propagated back to the parent. The compiler
10844 is told about this with #include <vfork.h>, but some compilers
10845 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10846 static variable whose address is put into a register that is
10847 clobbered by the vfork. */
10850 sparc_address_test (int arg)
10852 sparc_address_test (arg) int arg;
10855 static pid_t child;
10873 pid_t parent = getpid ();
10876 sparc_address_test (0);
10881 /* Here is another test for sparc vfork register problems. This
10882 test uses lots of local variables, at least as many local
10883 variables as main has allocated so far including compiler
10884 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10885 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10886 reuse the register of parent for one of the local variables,
10887 since it will think that parent can't possibly be used any more
10888 in this routine. Assigning to the local variable will thus
10889 munge parent in the parent process. */
10891 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10892 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10893 /* Convince the compiler that p..p7 are live; otherwise, it might
10894 use the same hardware register for all 8 local variables. */
10895 if (p != p1 || p != p2 || p != p3 || p != p4
10896 || p != p5 || p != p6 || p != p7)
10899 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10900 from child file descriptors. If the child closes a descriptor
10901 before it execs or exits, this munges the parent's descriptor
10902 as well. Test for this by closing stdout in the child. */
10903 _exit(close(fileno(stdout)) != 0);
10908 while (wait(&status) != child)
10911 /* Was there some problem with vforking? */
10914 /* Did the child fail? (This shouldn't happen.) */
10917 /* Did the vfork/compiler bug occur? */
10918 || parent != getpid()
10920 /* Did the file descriptor bug occur? */
10921 || fstat(fileno(stdout), &st) != 0
10926 if ac_fn_cxx_try_run
"$LINENO"; then :
10927 ac_cv_func_vfork_works
=yes
10929 ac_cv_func_vfork_works
=no
10931 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10932 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10937 $as_echo "$ac_cv_func_vfork_works" >&6; }
10940 if test "x$ac_cv_func_fork_works" = xcross
; then
10941 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10943 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10946 if test "x$ac_cv_func_vfork_works" = xyes
; then
10948 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10952 $as_echo "#define vfork fork" >>confdefs.h
10955 if test "x$ac_cv_func_fork_works" = xyes
; then
10957 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10963 if test "X$prefix" = "XNONE"; then
10964 acl_final_prefix
="$ac_default_prefix"
10966 acl_final_prefix
="$prefix"
10968 if test "X$exec_prefix" = "XNONE"; then
10969 acl_final_exec_prefix
='${prefix}'
10971 acl_final_exec_prefix
="$exec_prefix"
10973 acl_save_prefix
="$prefix"
10974 prefix
="$acl_final_prefix"
10975 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10976 prefix
="$acl_save_prefix"
10979 # Check whether --with-gnu-ld was given.
10980 if test "${with_gnu_ld+set}" = set; then :
10981 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10986 # Prepare PATH_SEPARATOR.
10987 # The user is always right.
10988 if test "${PATH_SEPARATOR+set}" != set; then
10989 echo "#! /bin/sh" >conf$$.sh
10990 echo "exit 0" >>conf$$.sh
10992 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11000 if test "$GCC" = yes; then
11001 # Check if gcc -print-prog-name=ld gives a path.
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11003 $as_echo_n "checking for ld used by GCC... " >&6; }
11006 # gcc leaves a trailing carriage return which upsets mingw
11007 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11009 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11012 # Accept absolute paths.
11013 [\\/]* |
[A-Za-z
]:[\\/]*)
11014 re_direlt
='/[^/][^/]*/\.\./'
11015 # Canonicalize the path of ld
11016 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11017 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11018 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11020 test -z "$LD" && LD
="$ac_prog"
11023 # If it fails, then pretend we aren't using GCC.
11027 # If it is relative, then search for the first ld in PATH.
11028 with_gnu_ld
=unknown
11031 elif test "$with_gnu_ld" = yes; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11033 $as_echo_n "checking for GNU ld... " >&6; }
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11036 $as_echo_n "checking for non-GNU ld... " >&6; }
11038 if ${acl_cv_path_LD+:} false
; then :
11039 $as_echo_n "(cached) " >&6
11041 if test -z "$LD"; then
11042 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11043 for ac_dir
in $PATH; do
11044 test -z "$ac_dir" && ac_dir
=.
11045 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11046 acl_cv_path_LD
="$ac_dir/$ac_prog"
11047 # Check to see if the program is GNU ld. I'd rather use --version,
11048 # but apparently some GNU ld's only accept -v.
11049 # Break only if it was the GNU/non-GNU ld that we prefer.
11050 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11051 test "$with_gnu_ld" != no
&& break
11053 test "$with_gnu_ld" != yes && break
11059 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11063 LD
="$acl_cv_path_LD"
11064 if test -n "$LD"; then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11066 $as_echo "$LD" >&6; }
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069 $as_echo "no" >&6; }
11071 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11073 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11074 if ${acl_cv_prog_gnu_ld+:} false
; then :
11075 $as_echo_n "(cached) " >&6
11077 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11078 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11079 acl_cv_prog_gnu_ld
=yes
11081 acl_cv_prog_gnu_ld
=no
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11085 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11086 with_gnu_ld
=$acl_cv_prog_gnu_ld
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11091 $as_echo_n "checking for shared library run path origin... " >&6; }
11092 if ${acl_cv_rpath+:} false
; then :
11093 $as_echo_n "(cached) " >&6
11096 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11097 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11099 rm -f .
/conftest.sh
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11104 $as_echo "$acl_cv_rpath" >&6; }
11106 libext
="$acl_cv_libext"
11107 shlibext
="$acl_cv_shlibext"
11108 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11109 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11110 hardcode_direct
="$acl_cv_hardcode_direct"
11111 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11112 # Check whether --enable-rpath was given.
11113 if test "${enable_rpath+set}" = set; then :
11114 enableval
=$enable_rpath; :
11128 acl_save_prefix
="$prefix"
11129 prefix
="$acl_final_prefix"
11130 acl_save_exec_prefix
="$exec_prefix"
11131 exec_prefix
="$acl_final_exec_prefix"
11133 eval additional_includedir
=\"$includedir\"
11134 eval additional_libdir
=\"$libdir\"
11136 exec_prefix
="$acl_save_exec_prefix"
11137 prefix
="$acl_save_prefix"
11140 # Check whether --with-libiconv-prefix was given.
11141 if test "${with_libiconv_prefix+set}" = set; then :
11142 withval
=$with_libiconv_prefix;
11143 if test "X$withval" = "Xno"; then
11146 if test "X$withval" = "X"; then
11148 acl_save_prefix
="$prefix"
11149 prefix
="$acl_final_prefix"
11150 acl_save_exec_prefix
="$exec_prefix"
11151 exec_prefix
="$acl_final_exec_prefix"
11153 eval additional_includedir
=\"$includedir\"
11154 eval additional_libdir
=\"$libdir\"
11156 exec_prefix
="$acl_save_exec_prefix"
11157 prefix
="$acl_save_prefix"
11160 additional_includedir
="$withval/include"
11161 additional_libdir
="$withval/lib"
11168 # Check whether --with-libiconv-type was given.
11169 if test "${with_libiconv_type+set}" = set; then :
11170 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11172 with_libiconv_type
=auto
11175 lib_type
=`eval echo \$with_libiconv_type`
11182 names_already_handled
=
11183 names_next_round
='iconv '
11184 while test -n "$names_next_round"; do
11185 names_this_round
="$names_next_round"
11187 for name
in $names_this_round; do
11189 for n
in $names_already_handled; do
11190 if test "$n" = "$name"; then
11191 already_handled
=yes
11195 if test -z "$already_handled"; then
11196 names_already_handled
="$names_already_handled $name"
11197 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11198 eval value
=\"\
$HAVE_LIB$uppername\"
11199 if test -n "$value"; then
11200 if test "$value" = yes; then
11201 eval value
=\"\
$LIB$uppername\"
11202 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11203 eval value
=\"\
$LTLIB$uppername\"
11204 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11213 if test $use_additional = yes; then
11214 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11215 found_dir
="$additional_libdir"
11216 found_so
="$additional_libdir/lib$name.$shlibext"
11217 if test -f "$additional_libdir/lib$name.la"; then
11218 found_la
="$additional_libdir/lib$name.la"
11220 elif test x
$lib_type != xshared
; then
11221 if test -f "$additional_libdir/lib$name.$libext"; then
11222 found_dir
="$additional_libdir"
11223 found_a
="$additional_libdir/lib$name.$libext"
11224 if test -f "$additional_libdir/lib$name.la"; then
11225 found_la
="$additional_libdir/lib$name.la"
11230 if test "X$found_dir" = "X"; then
11231 for x
in $LDFLAGS $LTLIBICONV; do
11233 acl_save_prefix
="$prefix"
11234 prefix
="$acl_final_prefix"
11235 acl_save_exec_prefix
="$exec_prefix"
11236 exec_prefix
="$acl_final_exec_prefix"
11238 exec_prefix
="$acl_save_exec_prefix"
11239 prefix
="$acl_save_prefix"
11243 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11244 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11246 found_so
="$dir/lib$name.$shlibext"
11247 if test -f "$dir/lib$name.la"; then
11248 found_la
="$dir/lib$name.la"
11250 elif test x
$lib_type != xshared
; then
11251 if test -f "$dir/lib$name.$libext"; then
11253 found_a
="$dir/lib$name.$libext"
11254 if test -f "$dir/lib$name.la"; then
11255 found_la
="$dir/lib$name.la"
11261 if test "X$found_dir" != "X"; then
11266 if test "X$found_dir" != "X"; then
11267 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11268 if test "X$found_so" != "X"; then
11269 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11270 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11273 for x
in $ltrpathdirs; do
11274 if test "X$x" = "X$found_dir"; then
11279 if test -z "$haveit"; then
11280 ltrpathdirs
="$ltrpathdirs $found_dir"
11282 if test "$hardcode_direct" = yes; then
11283 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11285 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11286 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11288 for x
in $rpathdirs; do
11289 if test "X$x" = "X$found_dir"; then
11294 if test -z "$haveit"; then
11295 rpathdirs
="$rpathdirs $found_dir"
11299 for x
in $LDFLAGS $LIBICONV; do
11301 acl_save_prefix
="$prefix"
11302 prefix
="$acl_final_prefix"
11303 acl_save_exec_prefix
="$exec_prefix"
11304 exec_prefix
="$acl_final_exec_prefix"
11306 exec_prefix
="$acl_save_exec_prefix"
11307 prefix
="$acl_save_prefix"
11309 if test "X$x" = "X-L$found_dir"; then
11314 if test -z "$haveit"; then
11315 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11317 if test "$hardcode_minus_L" != no
; then
11318 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11320 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11326 if test "X$found_a" != "X"; then
11327 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11329 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11332 additional_includedir
=
11333 case "$found_dir" in
11335 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11336 additional_includedir
="$basedir/include"
11339 if test "X$additional_includedir" != "X"; then
11340 if test "X$additional_includedir" != "X/usr/include"; then
11342 if test "X$additional_includedir" = "X/usr/local/include"; then
11343 if test -n "$GCC"; then
11345 linux
*) haveit
=yes;;
11349 if test -z "$haveit"; then
11350 for x
in $CPPFLAGS $INCICONV; do
11352 acl_save_prefix
="$prefix"
11353 prefix
="$acl_final_prefix"
11354 acl_save_exec_prefix
="$exec_prefix"
11355 exec_prefix
="$acl_final_exec_prefix"
11357 exec_prefix
="$acl_save_exec_prefix"
11358 prefix
="$acl_save_prefix"
11360 if test "X$x" = "X-I$additional_includedir"; then
11365 if test -z "$haveit"; then
11366 if test -d "$additional_includedir"; then
11367 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11373 if test -n "$found_la"; then
11374 save_libdir
="$libdir"
11375 case "$found_la" in
11376 */* |
*\\*) .
"$found_la" ;;
11377 *) .
"./$found_la" ;;
11379 libdir
="$save_libdir"
11380 for dep
in $dependency_libs; do
11383 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11384 if test "X$additional_libdir" != "X/usr/lib"; then
11386 if test "X$additional_libdir" = "X/usr/local/lib"; then
11387 if test -n "$GCC"; then
11389 linux
*) haveit
=yes;;
11393 if test -z "$haveit"; then
11395 for x
in $LDFLAGS $LIBICONV; do
11397 acl_save_prefix
="$prefix"
11398 prefix
="$acl_final_prefix"
11399 acl_save_exec_prefix
="$exec_prefix"
11400 exec_prefix
="$acl_final_exec_prefix"
11402 exec_prefix
="$acl_save_exec_prefix"
11403 prefix
="$acl_save_prefix"
11405 if test "X$x" = "X-L$additional_libdir"; then
11410 if test -z "$haveit"; then
11411 if test -d "$additional_libdir"; then
11412 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11416 for x
in $LDFLAGS $LTLIBICONV; do
11418 acl_save_prefix
="$prefix"
11419 prefix
="$acl_final_prefix"
11420 acl_save_exec_prefix
="$exec_prefix"
11421 exec_prefix
="$acl_final_exec_prefix"
11423 exec_prefix
="$acl_save_exec_prefix"
11424 prefix
="$acl_save_prefix"
11426 if test "X$x" = "X-L$additional_libdir"; then
11431 if test -z "$haveit"; then
11432 if test -d "$additional_libdir"; then
11433 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11440 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11441 if test "$enable_rpath" != no
; then
11443 for x
in $rpathdirs; do
11444 if test "X$x" = "X$dir"; then
11449 if test -z "$haveit"; then
11450 rpathdirs
="$rpathdirs $dir"
11453 for x
in $ltrpathdirs; do
11454 if test "X$x" = "X$dir"; then
11459 if test -z "$haveit"; then
11460 ltrpathdirs
="$ltrpathdirs $dir"
11465 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11468 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11471 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11472 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11478 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11479 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11480 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11482 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11483 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11490 if test "X$rpathdirs" != "X"; then
11491 if test -n "$hardcode_libdir_separator"; then
11493 for found_dir
in $rpathdirs; do
11494 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11496 acl_save_libdir
="$libdir"
11498 eval flag
=\"$hardcode_libdir_flag_spec\"
11499 libdir
="$acl_save_libdir"
11500 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11502 for found_dir
in $rpathdirs; do
11503 acl_save_libdir
="$libdir"
11504 libdir
="$found_dir"
11505 eval flag
=\"$hardcode_libdir_flag_spec\"
11506 libdir
="$acl_save_libdir"
11507 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11511 if test "X$ltrpathdirs" != "X"; then
11512 for found_dir
in $ltrpathdirs; do
11513 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11524 $as_echo_n "checking for iconv... " >&6; }
11525 if ${am_cv_func_iconv+:} false
; then :
11526 $as_echo_n "(cached) " >&6
11529 am_cv_func_iconv
="no, consider installing GNU libiconv"
11531 am_save_CPPFLAGS
="$CPPFLAGS"
11532 CPPFLAGS
="$CPPFLAGS $INCICONV"
11533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11535 #include <stdlib.h>
11540 iconv_t cd = iconv_open("","");
11541 iconv(cd,NULL,NULL,NULL,NULL);
11547 if ac_fn_cxx_try_link
"$LINENO"; then :
11548 am_cv_func_iconv
=yes
11550 rm -f core conftest.err conftest.
$ac_objext \
11551 conftest
$ac_exeext conftest.
$ac_ext
11552 CPPFLAGS
="$am_save_CPPFLAGS"
11554 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11555 for _libs
in .libs _libs
; do
11556 am_save_CPPFLAGS
="$CPPFLAGS"
11557 am_save_LIBS
="$LIBS"
11558 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11559 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562 #include <stdlib.h>
11567 iconv_t cd = iconv_open("","");
11568 iconv(cd,NULL,NULL,NULL,NULL);
11574 if ac_fn_cxx_try_link
"$LINENO"; then :
11575 INCICONV
="-I../libiconv/include"
11576 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11577 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11578 am_cv_lib_iconv
=yes
11579 am_cv_func_iconv
=yes
11581 rm -f core conftest.err conftest.
$ac_objext \
11582 conftest
$ac_exeext conftest.
$ac_ext
11583 CPPFLAGS
="$am_save_CPPFLAGS"
11584 LIBS
="$am_save_LIBS"
11585 if test "$am_cv_func_iconv" = "yes"; then
11591 if test "$am_cv_func_iconv" != yes; then
11592 am_save_CPPFLAGS
="$CPPFLAGS"
11593 am_save_LIBS
="$LIBS"
11594 CPPFLAGS
="$CPPFLAGS $INCICONV"
11595 LIBS
="$LIBS $LIBICONV"
11596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598 #include <stdlib.h>
11603 iconv_t cd = iconv_open("","");
11604 iconv(cd,NULL,NULL,NULL,NULL);
11610 if ac_fn_cxx_try_link
"$LINENO"; then :
11611 am_cv_lib_iconv
=yes
11612 am_cv_func_iconv
=yes
11614 rm -f core conftest.err conftest.
$ac_objext \
11615 conftest
$ac_exeext conftest.
$ac_ext
11616 CPPFLAGS
="$am_save_CPPFLAGS"
11617 LIBS
="$am_save_LIBS"
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11622 $as_echo "$am_cv_func_iconv" >&6; }
11623 if test "$am_cv_func_iconv" = yes; then
11625 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11628 if test "$am_cv_lib_iconv" = yes; then
11630 for element
in $INCICONV; do
11632 for x
in $CPPFLAGS; do
11634 acl_save_prefix
="$prefix"
11635 prefix
="$acl_final_prefix"
11636 acl_save_exec_prefix
="$exec_prefix"
11637 exec_prefix
="$acl_final_exec_prefix"
11639 exec_prefix
="$acl_save_exec_prefix"
11640 prefix
="$acl_save_prefix"
11642 if test "X$x" = "X$element"; then
11647 if test -z "$haveit"; then
11648 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11653 $as_echo_n "checking how to link with libiconv... " >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11655 $as_echo "$LIBICONV" >&6; }
11663 if test "$am_cv_func_iconv" = yes; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11665 $as_echo_n "checking for iconv declaration... " >&6; }
11666 if ${am_cv_proto_iconv+:} false
; then :
11667 $as_echo_n "(cached) " >&6
11670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11673 #include <stdlib.h>
11679 #if defined(__STDC__) || defined(__cplusplus)
11680 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11693 if ac_fn_cxx_try_compile
"$LINENO"; then :
11694 am_cv_proto_iconv_arg1
=""
11696 am_cv_proto_iconv_arg1
="const"
11698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11699 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);"
11702 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11704 }$am_cv_proto_iconv" >&5
11706 }$am_cv_proto_iconv" >&6; }
11708 cat >>confdefs.h
<<_ACEOF
11709 #define ICONV_CONST $am_cv_proto_iconv_arg1
11715 # Until we have in-tree GNU iconv:
11717 if test -f "$LTLIBICONV"; then
11718 LIBICONV_DEP
=$LTLIBICONV
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11724 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11725 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11726 $as_echo_n "(cached) " >&6
11728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730 #include <locale.h>
11739 if ac_fn_cxx_try_link
"$LINENO"; then :
11740 am_cv_val_LC_MESSAGES
=yes
11742 am_cv_val_LC_MESSAGES
=no
11744 rm -f core conftest.err conftest.
$ac_objext \
11745 conftest
$ac_exeext conftest.
$ac_ext
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11748 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11749 if test $am_cv_val_LC_MESSAGES = yes; then
11751 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11758 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11759 if ${am_cv_langinfo_codeset+:} false
; then :
11760 $as_echo_n "(cached) " >&6
11762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 #include <langinfo.h>
11768 char* cs = nl_langinfo(CODESET);
11773 if ac_fn_cxx_try_link
"$LINENO"; then :
11774 am_cv_langinfo_codeset
=yes
11776 am_cv_langinfo_codeset
=no
11778 rm -f core conftest.err conftest.
$ac_objext \
11779 conftest
$ac_exeext conftest.
$ac_ext
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11783 $as_echo "$am_cv_langinfo_codeset" >&6; }
11784 if test $am_cv_langinfo_codeset = yes; then
11786 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11791 # We will need to find libiberty.h and ansidecl.h
11792 saved_CFLAGS
="$CFLAGS"
11793 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11794 saved_CXXFLAGS
="$CXXFLAGS"
11795 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11797 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11798 # normal autoconf function for these. But force definition of
11799 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11800 # basename handling in libiberty.h.
11801 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11802 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11803 #undef HAVE_DECL_BASENAME
11804 #define HAVE_DECL_BASENAME 1
11805 #include \"ansidecl.h\"
11806 #include \"system.h\"
11808 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11814 cat >>confdefs.h
<<_ACEOF
11815 #define HAVE_DECL_BASENAME $ac_have_decl
11817 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11818 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11819 #undef HAVE_DECL_BASENAME
11820 #define HAVE_DECL_BASENAME 1
11821 #include \"ansidecl.h\"
11822 #include \"system.h\"
11824 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11830 cat >>confdefs.h
<<_ACEOF
11831 #define HAVE_DECL_STRSTR $ac_have_decl
11835 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11836 madvise stpcpy strnlen strsignal strverscmp \
11837 strtol strtoul strtoll strtoull setenv unsetenv \
11838 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11839 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
11841 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11843 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11844 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11845 $as_echo_n "(cached) " >&6
11847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11850 #define $ac_tr_decl 1
11852 #include "ansidecl.h"
11853 #include "system.h"
11859 char *(*pfn) = (char *(*)) $ac_func ;
11865 if ac_fn_cxx_try_compile
"$LINENO"; then :
11866 eval "gcc_cv_have_decl_$ac_func=yes"
11868 eval "gcc_cv_have_decl_$ac_func=no"
11870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11873 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11876 #define $ac_tr_decl 1
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11882 #define $ac_tr_decl 0
11890 for ac_func
in getrlimit setrlimit getrusage
11892 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11894 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11895 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11896 $as_echo_n "(cached) " >&6
11898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11901 #define $ac_tr_decl 1
11903 #include "ansidecl.h"
11904 #include "system.h"
11905 #ifdef HAVE_SYS_RESOURCE_H
11906 #include <sys/resource.h>
11914 char *(*pfn) = (char *(*)) $ac_func ;
11920 if ac_fn_cxx_try_compile
"$LINENO"; then :
11921 eval "gcc_cv_have_decl_$ac_func=yes"
11923 eval "gcc_cv_have_decl_$ac_func=no"
11925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11928 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11931 #define $ac_tr_decl 1
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11937 #define $ac_tr_decl 0
11945 for ac_func
in mallinfo mallinfo2
11947 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11949 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11950 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11951 $as_echo_n "(cached) " >&6
11953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11956 #define $ac_tr_decl 1
11958 #include "ansidecl.h"
11959 #include "system.h"
11960 #ifdef HAVE_MALLOC_H
11961 #include <malloc.h>
11969 char *(*pfn) = (char *(*)) $ac_func ;
11975 if ac_fn_cxx_try_compile
"$LINENO"; then :
11976 eval "gcc_cv_have_decl_$ac_func=yes"
11978 eval "gcc_cv_have_decl_$ac_func=no"
11980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11983 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11985 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11986 #define $ac_tr_decl 1
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11992 #define $ac_tr_decl 0
12000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12003 #include "ansidecl.h"
12004 #include "system.h"
12005 #ifdef HAVE_SYS_RESOURCE_H
12006 #include <sys/resource.h>
12017 if ac_fn_cxx_try_compile
"$LINENO"; then :
12021 $as_echo "#define rlim_t long" >>confdefs.h
12024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12026 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12027 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12028 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12029 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12030 for ac_func
in ldgetname
12032 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12034 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12035 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12036 $as_echo_n "(cached) " >&6
12038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12041 #define $ac_tr_decl 1
12043 #include "ansidecl.h"
12044 #include "system.h"
12045 #ifdef HAVE_LDFCN_H
12056 char *(*pfn) = (char *(*)) $ac_func ;
12062 if ac_fn_cxx_try_compile
"$LINENO"; then :
12063 eval "gcc_cv_have_decl_$ac_func=yes"
12065 eval "gcc_cv_have_decl_$ac_func=no"
12067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12070 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12073 #define $ac_tr_decl 1
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12079 #define $ac_tr_decl 0
12087 for ac_func
in times
12089 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12091 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12092 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12093 $as_echo_n "(cached) " >&6
12095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12098 #define $ac_tr_decl 1
12100 #include "ansidecl.h"
12101 #include "system.h"
12102 #ifdef HAVE_SYS_TIMES_H
12103 #include <sys/times.h>
12111 char *(*pfn) = (char *(*)) $ac_func ;
12117 if ac_fn_cxx_try_compile
"$LINENO"; then :
12118 eval "gcc_cv_have_decl_$ac_func=yes"
12120 eval "gcc_cv_have_decl_$ac_func=no"
12122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12125 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12128 #define $ac_tr_decl 1
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12134 #define $ac_tr_decl 0
12142 for ac_func
in sigaltstack
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 #include <signal.h>
12164 char *(*pfn) = (char *(*)) $ac_func ;
12170 if ac_fn_cxx_try_compile
"$LINENO"; then :
12171 eval "gcc_cv_have_decl_$ac_func=yes"
12173 eval "gcc_cv_have_decl_$ac_func=no"
12175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12178 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12181 #define $ac_tr_decl 1
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12187 #define $ac_tr_decl 0
12195 # More time-related stuff.
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12197 $as_echo_n "checking for struct tms... " >&6; }
12198 if ${ac_cv_struct_tms+:} false
; then :
12199 $as_echo_n "(cached) " >&6
12202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12205 #include "ansidecl.h"
12206 #include "system.h"
12207 #ifdef HAVE_SYS_TIMES_H
12208 #include <sys/times.h>
12219 if ac_fn_cxx_try_compile
"$LINENO"; then :
12220 ac_cv_struct_tms
=yes
12222 ac_cv_struct_tms
=no
12224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12227 $as_echo "$ac_cv_struct_tms" >&6; }
12228 if test $ac_cv_struct_tms = yes; then
12230 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12234 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12235 # revisit after autoconf 2.50.
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12237 $as_echo_n "checking for clock_t... " >&6; }
12238 if ${gcc_cv_type_clock_t+:} false
; then :
12239 $as_echo_n "(cached) " >&6
12242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12245 #include "ansidecl.h"
12246 #include "system.h"
12256 if ac_fn_cxx_try_compile
"$LINENO"; then :
12257 gcc_cv_type_clock_t
=yes
12259 gcc_cv_type_clock_t
=no
12261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12264 $as_echo "$gcc_cv_type_clock_t" >&6; }
12265 if test $gcc_cv_type_clock_t = yes; then
12267 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12271 # Check if F_SETLKW is supported by fcntl.
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12273 $as_echo_n "checking for F_SETLKW... " >&6; }
12274 if ${ac_cv_f_setlkw+:} false
; then :
12275 $as_echo_n "(cached) " >&6
12278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12291 return fcntl (1, F_SETLKW, &fl);
12296 if ac_fn_cxx_try_compile
"$LINENO"; then :
12301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12304 $as_echo "$ac_cv_f_setlkw" >&6; }
12305 if test $ac_cv_f_setlkw = yes; then
12307 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12311 # Check if O_CLOEXEC is defined by fcntl
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12313 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12314 if ${ac_cv_o_cloexec+:} false
; then :
12315 $as_echo_n "(cached) " >&6
12318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12326 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12331 if ac_fn_cxx_try_compile
"$LINENO"; then :
12332 ac_cv_o_cloexec
=yes
12336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12339 $as_echo "$ac_cv_o_cloexec" >&6; }
12340 if test $ac_cv_o_cloexec = yes; then
12342 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12346 # C++ Modules would like some networking features to provide the mapping
12347 # server. You can still use modules without them though.
12348 # The following network-related checks could probably do with some
12349 # Windows and other non-linux defenses and checking.
12351 # Local socket connectivity wants AF_UNIX networking
12352 # Check for AF_UNIX networking
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12354 $as_echo_n "checking for AF_UNIX... " >&6; }
12355 if ${ac_cv_af_unix+:} false
; then :
12356 $as_echo_n "(cached) " >&6
12359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 #include <sys/types.h>
12363 #include <sys/socket.h>
12364 #include <sys/un.h>
12365 #include <netinet/in.h>
12371 un.sun_family = AF_UNSPEC;
12372 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12373 connect (fd, (sockaddr *)&un, sizeof (un));
12378 if ac_fn_cxx_try_compile
"$LINENO"; then :
12383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12386 $as_echo "$ac_cv_af_unix" >&6; }
12387 if test $ac_cv_af_unix = yes; then
12389 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12393 # Remote socket connectivity wants AF_INET6 networking
12394 # Check for AF_INET6 networking
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12396 $as_echo_n "checking for AF_INET6... " >&6; }
12397 if ${ac_cv_af_inet6+:} false
; then :
12398 $as_echo_n "(cached) " >&6
12401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 #include <sys/types.h>
12405 #include <sys/socket.h>
12406 #include <netinet/in.h>
12413 in6.sin6_family = AF_UNSPEC;
12414 struct addrinfo *addrs = 0;
12415 struct addrinfo hints;
12416 hints.ai_flags = 0;
12417 hints.ai_family = AF_INET6;
12418 hints.ai_socktype = SOCK_STREAM;
12419 hints.ai_protocol = 0;
12420 hints.ai_canonname = 0;
12423 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12424 const char *str = gai_strerror (e);
12425 freeaddrinfo (addrs);
12426 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12427 connect (fd, (sockaddr *)&in6, sizeof (in6));
12432 if ac_fn_cxx_try_compile
"$LINENO"; then :
12437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12440 $as_echo "$ac_cv_af_inet6" >&6; }
12441 if test $ac_cv_af_inet6 = yes; then
12443 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12447 # Check if _LK_LOCK is supported by _locking
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12449 $as_echo_n "checking for _LK_LOCK... " >&6; }
12450 if ${ac_cv_lk_lock+:} false
; then :
12451 $as_echo_n "(cached) " >&6
12454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12458 #include <sys/locking.h>
12464 return _locking (fd, _LK_LOCK, 0);
12469 if ac_fn_cxx_try_compile
"$LINENO"; then :
12474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12477 $as_echo "$ac_cv_lk_lock" >&6; }
12478 if test $ac_cv_lk_lock = yes; then
12480 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12484 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12485 CFLAGS
="$saved_CFLAGS"
12486 CXXFLAGS
="$saved_CXXFLAGS"
12488 # mkdir takes a single argument on some systems.
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12490 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12491 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12492 $as_echo_n "(cached) " >&6
12494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12497 #include <sys/types.h>
12498 #ifdef HAVE_SYS_STAT_H
12499 # include <sys/stat.h>
12501 #ifdef HAVE_UNISTD_H
12502 # include <unistd.h>
12504 #ifdef HAVE_DIRECT_H
12505 # include <direct.h>
12515 if ac_fn_cxx_try_compile
"$LINENO"; then :
12516 gcc_cv_mkdir_takes_one_arg
=no
12518 gcc_cv_mkdir_takes_one_arg
=yes
12520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12523 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12524 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12526 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12537 # With Setjmp/Longjmp based exception handling.
12538 # Check whether --enable-sjlj-exceptions was given.
12539 if test "${enable_sjlj_exceptions+set}" = set; then :
12540 enableval
=$enable_sjlj_exceptions; case $target in
12542 if test $enableval != yes; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12544 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12549 force_sjlj_exceptions
=yes
12553 force_sjlj_exceptions
=yes
12557 force_sjlj_exceptions
=yes
12561 force_sjlj_exceptions
=no
12566 if test $force_sjlj_exceptions = yes; then
12567 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12569 cat >>confdefs.h
<<_ACEOF
12570 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12575 # --------------------------------------------------------
12576 # Build, host, and target specific configuration fragments
12577 # --------------------------------------------------------
12579 # Collect build-machine-specific information.
12580 .
${srcdir}/config.build ||
exit 1
12582 # Collect host-machine-specific information.
12583 .
${srcdir}/config.
host ||
exit 1
12587 # Collect target-machine-specific information.
12588 .
${srcdir}/config.gcc ||
exit 1
12590 extra_objs
="${host_extra_objs} ${extra_objs}"
12591 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12593 # Default the target-machine variables that were not explicitly set.
12594 if test x
"$tm_file" = x
12595 then tm_file
=$cpu_type/$cpu_type.h
; fi
12597 if test x
"$extra_headers" = x
12598 then extra_headers
=; fi
12600 if test x
$md_file = x
12601 then md_file
=$cpu_type/$cpu_type.md
; fi
12603 if test x
$out_file = x
12604 then out_file
=$cpu_type/$cpu_type.c
; fi
12606 if test x
"$tmake_file" = x
12607 then tmake_file
=$cpu_type/t-
$cpu_type
12610 # Support --enable-initfini-array.
12611 if test x
$enable_initfini_array != xno
; then
12612 tm_file
="${tm_file} initfini-array.h"
12615 if test x
"$dwarf2" = xyes
12616 then tm_file
="$tm_file tm-dwarf2.h"
12619 # Say what files are being used for the output code and MD file.
12620 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12621 echo "Using \`$srcdir/config/$md_file' as machine description file."
12623 # If any of the xm_file variables contain nonexistent files, warn
12624 # about them and drop them.
12627 for x
in $build_xm_file; do
12628 if test -f $srcdir/config
/$x
12630 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12631 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12634 build_xm_file
="$bx"
12637 for x
in $host_xm_file; do
12638 if test -f $srcdir/config
/$x
12640 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12641 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12647 for x
in $xm_file; do
12648 if test -f $srcdir/config
/$x
12650 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12651 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12657 for f
in $tm_file; do
12660 if test $count = ax
; then
12661 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12663 echo "Using the following target machine macro files:"
12664 for f
in $tm_file; do
12665 echo " $srcdir/config/$f"
12669 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12671 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12675 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12677 cat >>confdefs.h
<<_ACEOF
12678 #define HAVE_GNU_LD $gnu_ld_bool
12682 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12684 cat >>confdefs.h
<<_ACEOF
12685 #define HAVE_GNU_AS $gnu_as_bool
12690 for f
in $host_xm_file; do
12693 if test $count = a
; then
12695 elif test $count = ax
; then
12696 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12698 echo "Using the following host machine macro files:"
12699 for f
in $host_xm_file; do
12700 echo " $srcdir/config/$f"
12703 echo "Using ${out_host_hook_obj} for host machine hooks."
12705 if test "$host_xm_file" != "$build_xm_file"; then
12707 for f
in $build_xm_file; do
12710 if test $count = a
; then
12712 elif test $count = ax
; then
12713 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12715 echo "Using the following build machine macro files:"
12716 for f
in $build_xm_file; do
12717 echo " $srcdir/config/$f"
12722 if test -n "$configured_native_system_header_dir"; then
12723 native_system_header_dir
=$configured_native_system_header_dir
12725 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12729 powerpc
*-*-darwin*)
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12731 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12732 if ${gcc_cv_mcontext_underscores+:} false
; then :
12733 $as_echo_n "(cached) " >&6
12735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12738 #include <sys/cdefs.h>
12739 #include <sys/signal.h>
12740 #include <ucontext.h>
12741 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12744 if ac_fn_cxx_try_compile
"$LINENO"; then :
12745 gcc_cv_mcontext_underscores
=no
12747 gcc_cv_mcontext_underscores
=yes
12749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12752 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12753 if test $gcc_cv_mcontext_underscores = yes; then
12755 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12765 # Check if a valid thread package
12766 case ${enable_threads} in
12769 target_thread_file
='single'
12773 target_thread_file
='single'
12775 aix | dce | lynx | mipssde | posix | rtems | \
12776 single | tpf | vxworks | win32
)
12777 target_thread_file
=${enable_threads}
12780 echo "${enable_threads} is an unknown thread package" 1>&2
12785 if test x
${thread_file} = x
; then
12786 # No thread file set by target-specific clauses in config.gcc,
12787 # so use file chosen by default logic above
12788 thread_file
=${target_thread_file}
12796 if test x
$enable___cxa_atexit = xyes || \
12797 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12798 if test x
$host = x
$target; then
12800 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12801 # keyed to flag_use_cxa_atexit
12809 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12810 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12813 echo "__cxa_atexit can't be enabled on this target"
12819 # We can't check for __cxa_atexit when building a cross, so assume
12823 if test x
$use_cxa_atexit = xyes
; then
12825 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12830 # Look for a file containing extra machine modes.
12831 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12832 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12835 cat >>confdefs.h
<<_ACEOF
12836 #define EXTRA_MODES_FILE "config/$extra_modes"
12841 # Convert extra_options into a form suitable for Makefile use.
12844 for f
in $extra_options; do
12845 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12846 all_opt_files
="$all_opt_files $srcdir/config/$f"
12850 # auto-host.h is the file containing items generated by autoconf and is
12851 # the first file included by config.h.
12852 # If host=build, it is correct to have bconfig include auto-host.h
12853 # as well. If host!=build, we are in error and need to do more
12854 # work to find out the build config parameters.
12855 if test x
$host = x
$build
12857 build_auto
=auto-host.h
12858 HAVE_AUTO_BUILD
='# '
12860 # We create a subdir, then run autoconf in the subdir.
12861 # To prevent recursion we set host and build for the new
12862 # invocation of configure to the build for this invocation
12869 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12870 *) realsrcdir
=..
/${srcdir};;
12872 # Clearing GMPINC is necessary to prevent host headers being
12873 # used by the build compiler. Defining GENERATOR_FILE stops
12874 # system.h from including gmp.h.
12875 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12876 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12877 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12878 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
12879 ${realsrcdir}/configure \
12880 --enable-languages=${enable_languages-all} \
12881 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12882 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12883 --target=$target_alias --host=$build_alias \
12884 --build=$build_alias ||
exit # retaining $tempdir
12886 # We just finished tests for the build machine, so rename
12887 # the file auto-build.h in the gcc directory.
12888 mv auto-host.h ..
/auto-build.h
12891 build_auto
=auto-build.h
12897 tm_file
="${tm_file} defaults.h"
12898 tm_p_file
="${tm_p_file} tm-preds.h"
12899 tm_d_file
="${tm_d_file} defaults.h"
12900 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12901 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12902 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12903 # put this back in temporarily.
12904 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12910 # Compile in configure arguments.
12911 if test -f configargs.h
; then
12912 # Being re-configured.
12913 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12914 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12915 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12916 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12919 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12922 # Double all backslashes and backslash all quotes to turn
12923 # gcc_config_arguments into a C string.
12924 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12925 $gcc_config_arguments
12927 gcc_config_arguments_str
=`cat conftest.out`
12930 cat > configargs.h
<<EOF
12931 /* Generated automatically. */
12932 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12933 static const char thread_model[] = "$thread_file";
12935 static const struct {
12936 const char *name, *value;
12937 } configure_default_options[] = $configure_default_options;
12940 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12941 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12942 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12943 if test -f $srcdir/REVISION
; then
12944 gcc_REVISION
=`cat $srcdir/REVISION`
12948 cat > plugin-version.h
<<EOF
12949 #include "configargs.h"
12951 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12952 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12953 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12954 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12956 static char basever[] = "$gcc_BASEVER";
12957 static char datestamp[] = "$gcc_DATESTAMP";
12958 static char devphase[] = "$gcc_DEVPHASE";
12959 static char revision[] = "$gcc_REVISION";
12961 /* FIXME plugins: We should make the version information more precise.
12962 One way to do is to add a checksum. */
12964 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12965 devphase, revision,
12966 configuration_arguments};
12969 # Determine what GCC version number to use in filesystem paths.
12971 get_gcc_base_ver
="cat"
12973 # Check whether --with-gcc-major-version-only was given.
12974 if test "${with_gcc_major_version_only+set}" = set; then :
12975 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12976 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12984 # Internationalization
12985 # If we haven't got the data from the intl directory,
12986 # assume NLS is disabled.
12995 if test -f ..
/intl
/config.intl
; then
12996 . ..
/intl
/config.intl
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12999 $as_echo_n "checking whether NLS is requested... " >&6; }
13000 if test x
"$USE_NLS" != xyes
; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13005 $as_echo "yes" >&6; }
13007 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13011 $as_echo_n "checking for catalogs to be installed... " >&6; }
13012 # Look for .po and .gmo files in the source directory.
13015 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13016 # If there aren't any .gmo files the shell will give us the
13017 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13019 case "$cat" in *\
**)
13022 # The quadruple backslash is collapsed to a double backslash
13023 # by the backticks, then collapsed again by the double quotes,
13024 # leaving us with one backslash in the sed expression (right
13025 # before the dot that mustn't act as a wildcard).
13026 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13027 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13028 # The user is allowed to set LINGUAS to a list of languages to
13029 # install catalogs for. If it's empty that means "all of them."
13030 if test "x$LINGUAS" = x
; then
13031 CATALOGS
="$CATALOGS $cat"
13032 XLINGUAS
="$XLINGUAS $lang"
13034 case "$LINGUAS" in *$lang*)
13035 CATALOGS
="$CATALOGS $cat"
13036 XLINGUAS
="$XLINGUAS $lang"
13041 LINGUAS
="$XLINGUAS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13043 $as_echo "$LINGUAS" >&6; }
13056 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13057 # -liconv on the link line twice.
13058 case "$LIBINTL" in *$LIBICONV*)
13062 # Check whether --enable-secureplt was given.
13063 if test "${enable_secureplt+set}" = set; then :
13064 enableval
=$enable_secureplt;
13068 # Check whether --enable-mingw-wildcard was given.
13069 if test "${enable_mingw_wildcard+set}" = set; then :
13070 enableval
=$enable_mingw_wildcard;
13072 enable_mingw_wildcard
=platform
13075 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13077 cat >>confdefs.h
<<_ACEOF
13078 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13083 # Check whether --enable-large-address-aware was given.
13084 if test "${enable_large_address_aware+set}" = set; then :
13085 enableval
=$enable_large_address_aware;
13088 if test x
"$enable_large_address_aware" = xyes
; then :
13090 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13094 # Check whether --enable-leading-mingw64-underscores was given.
13095 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13096 enableval
=$enable_leading_mingw64_underscores;
13099 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13101 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13105 # Check whether --enable-cld was given.
13106 if test "${enable_cld+set}" = set; then :
13107 enableval
=$enable_cld;
13113 # Check whether --enable-frame-pointer was given.
13114 if test "${enable_frame_pointer+set}" = set; then :
13115 enableval
=$enable_frame_pointer;
13119 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13120 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13121 enable_frame_pointer
=no
13124 enable_frame_pointer
=yes
13132 i
[34567]86-*-* | x86_64-
*-*)
13133 if test "x$enable_cld" = xyes
; then
13134 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13136 if test "x$enable_frame_pointer" = xyes
; then
13137 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13142 # Windows32 Registry support for specifying GCC installation paths.
13143 # Check whether --enable-win32-registry was given.
13144 if test "${enable_win32_registry+set}" = set; then :
13145 enableval
=$enable_win32_registry;
13150 win32 | pe | cygwin
* | mingw32
*)
13151 if test "x$enable_win32_registry" != xno
; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13153 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13154 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13155 $as_echo_n "(cached) " >&6
13157 ac_func_search_save_LIBS
=$LIBS
13158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13161 /* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply. */
13167 char RegOpenKeyExA ();
13171 return RegOpenKeyExA ();
13176 for ac_lib
in '' advapi32
; do
13177 if test -z "$ac_lib"; then
13178 ac_res
="none required"
13181 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13183 if ac_fn_cxx_try_link
"$LINENO"; then :
13184 ac_cv_search_RegOpenKeyExA
=$ac_res
13186 rm -f core conftest.err conftest.
$ac_objext \
13188 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13192 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13195 ac_cv_search_RegOpenKeyExA
=no
13197 rm conftest.
$ac_ext
13198 LIBS
=$ac_func_search_save_LIBS
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13201 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13202 ac_res
=$ac_cv_search_RegOpenKeyExA
13203 if test "$ac_res" != no
; then :
13204 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13207 enable_win32_registry
=no
13212 if test "x$enable_win32_registry" != xno
; then
13214 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13217 if test "x$enable_win32_registry" != xyes \
13218 && test "x$enable_win32_registry" != x
; then
13220 cat >>confdefs.h
<<_ACEOF
13221 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13229 # Get an absolute path to the GCC top-level source directory
13230 holddir
=`${PWDCMD-pwd}`
13232 topdir
=`${PWDCMD-pwd}`
13235 # Conditionalize the makefile for this host machine.
13237 for f
in ${host_xmake_file}
13239 if test -f ${srcdir}/config
/$f
13241 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13245 # Conditionalize the makefile for this target machine.
13247 for f
in ${tmake_file}
13249 if test -f ${srcdir}/config
/$f
13251 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13254 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13256 out_object_file
=`basename $out_file .c`.o
13257 common_out_object_file
=`basename $common_out_file .c`.o
13259 tm_file_list
="options.h"
13260 tm_include_list
="options.h insn-constants.h"
13261 for f
in $tm_file; do
13264 f
=`echo $f | sed 's/^..//'`
13265 tm_file_list
="${tm_file_list} $f"
13266 tm_include_list
="${tm_include_list} $f"
13269 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13270 tm_include_list
="${tm_include_list} $f"
13273 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13274 tm_include_list
="${tm_include_list} config/$f"
13281 for f
in $tm_p_file; do
13284 tm_p_file_list
="${tm_p_file_list} $f"
13285 tm_p_include_list
="${tm_p_include_list} $f"
13288 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13289 tm_p_include_list
="${tm_p_include_list} config/$f"
13294 tm_d_include_list
="options.h insn-constants.h"
13295 for f
in $tm_d_file; do
13298 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
13299 tm_d_include_list
="${tm_d_include_list} $f"
13302 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13303 tm_d_include_list
="${tm_d_include_list} config/$f"
13310 for f
in $xm_file; do
13313 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13314 xm_include_list
="${xm_include_list} $f"
13317 xm_file_list
="${xm_file_list} $f"
13318 xm_include_list
="${xm_include_list} $f"
13321 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13322 xm_include_list
="${xm_include_list} config/$f"
13328 host_xm_include_list
=
13329 for f
in $host_xm_file; do
13332 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13333 host_xm_include_list
="${host_xm_include_list} $f"
13336 host_xm_file_list
="${host_xm_file_list} $f"
13337 host_xm_include_list
="${host_xm_include_list} $f"
13340 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13341 host_xm_include_list
="${host_xm_include_list} config/$f"
13346 build_xm_file_list
=
13347 for f
in $build_xm_file; do
13350 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13351 build_xm_include_list
="${build_xm_include_list} $f"
13353 auto-build.h | auto-host.h
)
13354 build_xm_file_list
="${build_xm_file_list} $f"
13355 build_xm_include_list
="${build_xm_include_list} $f"
13358 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13359 build_xm_include_list
="${build_xm_include_list} config/$f"
13364 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13365 # cross-compiler which does not use the native headers and libraries.
13366 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13369 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13370 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13372 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13373 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13374 if test "x$with_build_sysroot" != x
; then
13375 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13377 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13380 if test x
$host != x
$target
13382 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13384 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13385 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13386 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13389 if test "x$with_build_sysroot" != "x"; then
13390 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13391 elif test "x$with_sysroot" = x
; then
13392 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13393 elif test "x$with_sysroot" = xyes
; then
13394 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13396 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13399 target_header_dir
=${native_system_header_dir}
13402 # If this is a cross-compiler that does not
13403 # have its own set of headers then define
13406 # If this is using newlib, without having the headers available now,
13407 # then define inhibit_libc in LIBGCC2_CFLAGS.
13408 # This prevents libgcc2 from containing any code which requires libc
13410 : ${inhibit_libc=false}
13411 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13412 test x
$with_newlib = xyes
; } &&
13413 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13418 # When building gcc with a cross-compiler, we need to adjust things so
13419 # that the generator programs are still built with the native compiler.
13420 # Also, we cannot run fixincludes.
13422 # These are the normal (build=host) settings:
13423 CC_FOR_BUILD
='$(CC)'
13424 CXX_FOR_BUILD
='$(CXX)'
13425 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13426 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13427 BUILD_LDFLAGS
='$(LDFLAGS)'
13428 STMP_FIXINC
=stmp-fixinc
13430 # And these apply if build != host, or we are generating coverage data
13431 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13433 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13434 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13435 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13438 # Expand extra_headers to include complete path.
13439 # This substitutes for lots of t-* files.
13440 extra_headers_list
=
13441 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13442 for file in ${extra_headers} ; do
13443 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13446 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13447 if test x
"$use_gcc_tgmath" = xyes
13448 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13451 # Define collect2 in Makefile.
13452 case $host_can_use_collect2 in
13454 *) collect2
='collect2$(exeext)' ;;
13458 # Add a definition of USE_COLLECT2 if system wants one.
13459 case $use_collect2 in
13460 no
) use_collect2
= ;;
13463 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13464 xm_defines
="${xm_defines} USE_COLLECT2"
13465 case $host_can_use_collect2 in
13467 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13474 cat >>confdefs.h
<<_ACEOF
13475 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13479 # ---------------------------
13480 # Assembler & linker features
13481 # ---------------------------
13483 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13484 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13485 # However when ld-new is first executed from the build tree, libtool will
13486 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13487 # to the build tree. While doing this we need to use the previous-stage
13488 # linker, or we have an infinite loop. The presence of a shell script as
13489 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13490 # the gcc/collect-ld script. So we need to know how libtool works, or
13491 # exec-tool will fail.
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13497 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13502 macro_version
='2.2.7a'
13503 macro_revision
='1.3134'
13517 ltmain
="$ac_aux_dir/ltmain.sh"
13519 # Backslashify metacharacters that are still active within
13520 # double-quoted strings.
13521 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13523 # Same as above, but do not quote variable references.
13524 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13526 # Sed substitution to delay expansion of an escaped shell variable in a
13527 # double_quote_subst'ed string.
13528 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13530 # Sed substitution to delay expansion of an escaped single quote.
13531 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13533 # Sed substitution to avoid accidental globbing in evaled expressions
13534 no_glob_subst
='s/\*/\\\*/g'
13536 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13537 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13538 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13541 $as_echo_n "checking how to print strings... " >&6; }
13542 # Test print first, because it will be a builtin if present.
13543 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13544 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13546 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13549 # Use this function as a fallback that always works.
13550 func_fallback_echo ()
13552 eval 'cat <<_LTECHO_EOF
13556 ECHO='func_fallback_echo
'
13559 # func_echo_all arg...
13560 # Invoke $ECHO with all args, space-separated.
13567 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13568 $as_echo "printf" >&6; } ;;
13569 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13570 $as_echo "print -r" >&6; } ;;
13571 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13572 $as_echo "cat" >&6; } ;;
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13589 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13590 if ${ac_cv_path_SED+:} false; then :
13591 $as_echo_n "(cached) " >&6
13593 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13594 for ac_i in 1 2 3 4 5 6 7; do
13595 ac_script="$ac_script$as_nl$ac_script"
13597 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13598 { ac_script=; unset ac_script;}
13599 if test -z "$SED"; then
13600 ac_path_SED_found=false
13601 # Loop through the user's path and
test for each of PROGNAME-LIST
13602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13603 for as_dir
in $PATH
13606 test -z "$as_dir" && as_dir
=.
13607 for ac_prog
in sed gsed
; do
13608 for ac_exec_ext
in '' $ac_executable_extensions; do
13609 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13610 as_fn_executable_p
"$ac_path_SED" ||
continue
13611 # Check for GNU ac_path_SED and select it if it is found.
13612 # Check for GNU $ac_path_SED
13613 case `"$ac_path_SED" --version 2>&1` in
13615 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13618 $as_echo_n 0123456789 >"conftest.in"
13621 cat "conftest.in" "conftest.in" >"conftest.tmp"
13622 mv "conftest.tmp" "conftest.in"
13623 cp "conftest.in" "conftest.nl"
13624 $as_echo '' >> "conftest.nl"
13625 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13626 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13627 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13628 if test $ac_count -gt ${ac_path_SED_max-0}; then
13629 # Best one so far, save it but keep looking for a better one
13630 ac_cv_path_SED
="$ac_path_SED"
13631 ac_path_SED_max
=$ac_count
13633 # 10*(2^10) chars as input seems more than enough
13634 test $ac_count -gt 10 && break
13636 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13639 $ac_path_SED_found && break 3
13644 if test -z "$ac_cv_path_SED"; then
13645 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13648 ac_cv_path_SED
=$SED
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13653 $as_echo "$ac_cv_path_SED" >&6; }
13654 SED
="$ac_cv_path_SED"
13657 test -z "$SED" && SED
=sed
13658 Xsed
="$SED -e 1s/^X//"
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13671 $as_echo_n "checking for fgrep... " >&6; }
13672 if ${ac_cv_path_FGREP+:} false
; then :
13673 $as_echo_n "(cached) " >&6
13675 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13676 then ac_cv_path_FGREP
="$GREP -F"
13678 if test -z "$FGREP"; then
13679 ac_path_FGREP_found
=false
13680 # Loop through the user's path and test for each of PROGNAME-LIST
13681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13682 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13685 test -z "$as_dir" && as_dir
=.
13686 for ac_prog
in fgrep
; do
13687 for ac_exec_ext
in '' $ac_executable_extensions; do
13688 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13689 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13690 # Check for GNU ac_path_FGREP and select it if it is found.
13691 # Check for GNU $ac_path_FGREP
13692 case `"$ac_path_FGREP" --version 2>&1` in
13694 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13697 $as_echo_n 0123456789 >"conftest.in"
13700 cat "conftest.in" "conftest.in" >"conftest.tmp"
13701 mv "conftest.tmp" "conftest.in"
13702 cp "conftest.in" "conftest.nl"
13703 $as_echo 'FGREP' >> "conftest.nl"
13704 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13705 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13706 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13707 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13708 # Best one so far, save it but keep looking for a better one
13709 ac_cv_path_FGREP
="$ac_path_FGREP"
13710 ac_path_FGREP_max
=$ac_count
13712 # 10*(2^10) chars as input seems more than enough
13713 test $ac_count -gt 10 && break
13715 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13718 $ac_path_FGREP_found && break 3
13723 if test -z "$ac_cv_path_FGREP"; then
13724 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13727 ac_cv_path_FGREP
=$FGREP
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13733 $as_echo "$ac_cv_path_FGREP" >&6; }
13734 FGREP
="$ac_cv_path_FGREP"
13737 test -z "$GREP" && GREP
=grep
13757 # Check whether --with-gnu-ld was given.
13758 if test "${with_gnu_ld+set}" = set; then :
13759 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13765 if test "$GCC" = yes; then
13766 # Check if gcc -print-prog-name=ld gives a path.
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13768 $as_echo_n "checking for ld used by $CC... " >&6; }
13771 # gcc leaves a trailing carriage return which upsets mingw
13772 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13774 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13777 # Accept absolute paths.
13779 re_direlt
='/[^/][^/]*/\.\./'
13780 # Canonicalize the pathname of ld
13781 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13782 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13783 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13785 test -z "$LD" && LD
="$ac_prog"
13788 # If it fails, then pretend we aren't using GCC.
13792 # If it is relative, then search for the first ld in PATH.
13793 with_gnu_ld
=unknown
13796 elif test "$with_gnu_ld" = yes; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13798 $as_echo_n "checking for GNU ld... " >&6; }
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13801 $as_echo_n "checking for non-GNU ld... " >&6; }
13803 if ${lt_cv_path_LD+:} false
; then :
13804 $as_echo_n "(cached) " >&6
13806 if test -z "$LD"; then
13807 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13808 for ac_dir
in $PATH; do
13810 test -z "$ac_dir" && ac_dir
=.
13811 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13812 lt_cv_path_LD
="$ac_dir/$ac_prog"
13813 # Check to see if the program is GNU ld. I'd rather use --version,
13814 # but apparently some variants of GNU ld only accept -v.
13815 # Break only if it was the GNU/non-GNU ld that we prefer.
13816 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13817 *GNU
* |
*'with BFD'*)
13818 test "$with_gnu_ld" != no
&& break
13821 test "$with_gnu_ld" != yes && break
13828 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13832 LD
="$lt_cv_path_LD"
13833 if test -n "$LD"; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13835 $as_echo "$LD" >&6; }
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 $as_echo "no" >&6; }
13840 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13842 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13843 if ${lt_cv_prog_gnu_ld+:} false
; then :
13844 $as_echo_n "(cached) " >&6
13846 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13847 case `$LD -v 2>&1 </dev/null` in
13848 *GNU
* |
*'with BFD'*)
13849 lt_cv_prog_gnu_ld
=yes
13852 lt_cv_prog_gnu_ld
=no
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13857 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13858 with_gnu_ld
=$lt_cv_prog_gnu_ld
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13869 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13870 if ${lt_cv_path_NM+:} false
; then :
13871 $as_echo_n "(cached) " >&6
13873 if test -n "$NM"; then
13874 # Let the user override the test.
13875 lt_cv_path_NM
="$NM"
13877 lt_nm_to_check
="${ac_tool_prefix}nm"
13878 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13879 lt_nm_to_check
="$lt_nm_to_check nm"
13881 for lt_tmp_nm
in $lt_nm_to_check; do
13882 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13883 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13885 test -z "$ac_dir" && ac_dir
=.
13886 tmp_nm
="$ac_dir/$lt_tmp_nm"
13887 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13888 # Check to see if the nm accepts a BSD-compat flag.
13889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13890 # nm: unknown option "B" ignored
13891 # Tru64's nm complains that /dev/null is an invalid object file
13892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13893 */dev
/null
* |
*'Invalid file or object type'*)
13894 lt_cv_path_NM
="$tmp_nm -B"
13898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13900 lt_cv_path_NM
="$tmp_nm -p"
13904 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13905 continue # so that we can try to find one that supports BSD flags
13914 : ${lt_cv_path_NM=no}
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13918 $as_echo "$lt_cv_path_NM" >&6; }
13919 if test "$lt_cv_path_NM" != "no"; then
13920 NM
="$lt_cv_path_NM"
13922 # Didn't find any BSD compatible name lister, look for dumpbin.
13923 if test -n "$DUMPBIN"; then :
13924 # Let the user override the test.
13926 if test -n "$ac_tool_prefix"; then
13927 for ac_prog
in dumpbin
"link -dump"
13929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13930 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932 $as_echo_n "checking for $ac_word... " >&6; }
13933 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13934 $as_echo_n "(cached) " >&6
13936 if test -n "$DUMPBIN"; then
13937 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13940 for as_dir
in $PATH
13943 test -z "$as_dir" && as_dir
=.
13944 for ac_exec_ext
in '' $ac_executable_extensions; do
13945 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13946 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13956 DUMPBIN
=$ac_cv_prog_DUMPBIN
13957 if test -n "$DUMPBIN"; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13959 $as_echo "$DUMPBIN" >&6; }
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962 $as_echo "no" >&6; }
13966 test -n "$DUMPBIN" && break
13969 if test -z "$DUMPBIN"; then
13970 ac_ct_DUMPBIN
=$DUMPBIN
13971 for ac_prog
in dumpbin
"link -dump"
13973 # Extract the first word of "$ac_prog", so it can be a program name with args.
13974 set dummy
$ac_prog; ac_word
=$2
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976 $as_echo_n "checking for $ac_word... " >&6; }
13977 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13978 $as_echo_n "(cached) " >&6
13980 if test -n "$ac_ct_DUMPBIN"; then
13981 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13984 for as_dir
in $PATH
13987 test -z "$as_dir" && as_dir
=.
13988 for ac_exec_ext
in '' $ac_executable_extensions; do
13989 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13990 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14001 if test -n "$ac_ct_DUMPBIN"; then
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14003 $as_echo "$ac_ct_DUMPBIN" >&6; }
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006 $as_echo "no" >&6; }
14010 test -n "$ac_ct_DUMPBIN" && break
14013 if test "x$ac_ct_DUMPBIN" = x
; then
14016 case $cross_compiling:$ac_tool_warned in
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14020 ac_tool_warned
=yes ;;
14022 DUMPBIN
=$ac_ct_DUMPBIN
14026 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14028 DUMPBIN
="$DUMPBIN -symbols"
14036 if test "$DUMPBIN" != ":"; then
14040 test -z "$NM" && NM
=nm
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14048 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14049 if ${lt_cv_nm_interface+:} false
; then :
14050 $as_echo_n "(cached) " >&6
14052 lt_cv_nm_interface
="BSD nm"
14053 echo "int some_variable = 0;" > conftest.
$ac_ext
14054 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14055 (eval "$ac_compile" 2>conftest.err
)
14056 cat conftest.err
>&5
14057 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14058 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14059 cat conftest.err
>&5
14060 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14061 cat conftest.out
>&5
14062 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14063 lt_cv_nm_interface
="MS dumpbin"
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14068 $as_echo "$lt_cv_nm_interface" >&6; }
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14071 $as_echo_n "checking whether ln -s works... " >&6; }
14073 if test "$LN_S" = "ln -s"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075 $as_echo "yes" >&6; }
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14078 $as_echo "no, using $LN_S" >&6; }
14081 # find the maximum length of command line arguments
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14083 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14084 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14085 $as_echo_n "(cached) " >&6
14092 # On DJGPP, this test can blow up pretty badly due to problems in libc
14093 # (any single argument exceeding 2000 bytes causes a buffer overrun
14094 # during glob expansion). Even if it were fixed, the result of this
14095 # check would be larger than it should be.
14096 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14100 # Under GNU Hurd, this test is not required because there is
14101 # no limit to the length of command line arguments.
14102 # Libtool will interpret -1 as no limit whatsoever
14103 lt_cv_sys_max_cmd_len
=-1;
14106 cygwin
* | mingw
* | cegcc
*)
14107 # On Win9x/ME, this test blows up -- it succeeds, but takes
14108 # about 5 minutes as the teststring grows exponentially.
14109 # Worse, since 9x/ME are not pre-emptively multitasking,
14110 # you end up with a "frozen" computer, even though with patience
14111 # the test eventually succeeds (with a max line length of 256k).
14112 # Instead, let's just punt: use the minimum linelength reported by
14113 # all of the supported platforms: 8192 (on NT/2K/XP).
14114 lt_cv_sys_max_cmd_len
=8192;
14118 # On MiNT this can take a long time and run out of memory.
14119 lt_cv_sys_max_cmd_len
=8192;
14123 # On AmigaOS with pdksh, this test takes hours, literally.
14124 # So we just punt and use a minimum line length of 8192.
14125 lt_cv_sys_max_cmd_len
=8192;
14128 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14129 # This has been around since 386BSD, at least. Likely further.
14130 if test -x /sbin
/sysctl
; then
14131 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14132 elif test -x /usr
/sbin
/sysctl
; then
14133 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14135 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14137 # And add a safety zone
14138 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14139 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14143 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14144 lt_cv_sys_max_cmd_len
=196608
14148 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14149 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14150 # nice to cause kernel panics so lets avoid the loop below.
14151 # First set a reasonable default.
14152 lt_cv_sys_max_cmd_len
=16384
14154 if test -x /sbin
/sysconfig
; then
14155 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14156 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14161 lt_cv_sys_max_cmd_len
=102400
14163 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14164 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14165 if test -n "$kargmax"; then
14166 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14168 lt_cv_sys_max_cmd_len
=32768
14172 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14173 if test -n "$lt_cv_sys_max_cmd_len"; then
14174 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14175 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14177 # Make teststring a little bigger before we do anything with it.
14178 # a 1K string should be a reasonable start.
14179 for i
in 1 2 3 4 5 6 7 8 ; do
14180 teststring
=$teststring$teststring
14182 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14183 # If test is not a shell built-in, we'll probably end up computing a
14184 # maximum length that is only half of the actual maximum length, but
14186 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14187 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14188 test $i != 17 # 1/2 MB should be enough
14191 teststring
=$teststring$teststring
14193 # Only check the string length outside the loop.
14194 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14196 # Add a significant safety factor because C++ compilers can tack on
14197 # massive amounts of additional arguments before passing them to the
14198 # linker. It appears as though 1/2 is a usable value.
14199 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14206 if test -n $lt_cv_sys_max_cmd_len ; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14208 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14211 $as_echo "none" >&6; }
14213 max_cmd_len
=$lt_cv_sys_max_cmd_len
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14225 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14226 # Try some XSI features
14228 ( _lt_dummy
="a/b/c"
14229 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14231 && eval 'test $(( 1 + 1 )) -eq 2 \
14232 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14235 $as_echo "$xsi_shell" >&6; }
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14239 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14241 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14243 && lt_shell_append=yes
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14245 $as_echo "$lt_shell_append" >&6; }
14248 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14258 # test EBCDIC or ASCII
14259 case `echo X|tr X '\101'` in
14260 A) # ASCII based system
14261 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14262 lt_SP2NL='tr \040 \012'
14263 lt_NL2SP='tr \015\012 \040\040'
14265 *) # EBCDIC based system
14266 lt_SP2NL='tr \100 \n'
14267 lt_NL2SP='tr \r\n \100\100'
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14280 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14281 if ${lt_cv_ld_reload_flag+:} false; then :
14282 $as_echo_n "(cached
) " >&6
14284 lt_cv_ld_reload_flag='-r'
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14287 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14288 reload_flag=$lt_cv_ld_reload_flag
14289 case $reload_flag in
14291 *) reload_flag=" $reload_flag" ;;
14293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14296 if test "$GCC" = yes; then
14297 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14299 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14312 if test -n "$ac_tool_prefix"; then
14313 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14314 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14316 $as_echo_n "checking
for $ac_word...
" >&6; }
14317 if ${ac_cv_prog_OBJDUMP+:} false; then :
14318 $as_echo_n "(cached
) " >&6
14320 if test -n "$OBJDUMP"; then
14321 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14331 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14340 OBJDUMP=$ac_cv_prog_OBJDUMP
14341 if test -n "$OBJDUMP"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14343 $as_echo "$OBJDUMP" >&6; }
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14346 $as_echo "no
" >&6; }
14351 if test -z "$ac_cv_prog_OBJDUMP"; then
14352 ac_ct_OBJDUMP=$OBJDUMP
14353 # Extract the first word of "objdump
", so it can be a program name with args.
14354 set dummy objdump; ac_word=$2
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14356 $as_echo_n "checking
for $ac_word...
" >&6; }
14357 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14358 $as_echo_n "(cached
) " >&6
14360 if test -n "$ac_ct_OBJDUMP"; then
14361 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14367 test -z "$as_dir" && as_dir=.
14368 for ac_exec_ext in '' $ac_executable_extensions; do
14369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14370 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14371 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14380 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14381 if test -n "$ac_ct_OBJDUMP"; then
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14383 $as_echo "$ac_ct_OBJDUMP" >&6; }
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14386 $as_echo "no
" >&6; }
14389 if test "x
$ac_ct_OBJDUMP" = x; then
14392 case $cross_compiling:$ac_tool_warned in
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14395 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14396 ac_tool_warned=yes ;;
14398 OBJDUMP=$ac_ct_OBJDUMP
14401 OBJDUMP="$ac_cv_prog_OBJDUMP"
14404 test -z "$OBJDUMP" && OBJDUMP=objdump
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14415 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14416 if ${lt_cv_deplibs_check_method+:} false; then :
14417 $as_echo_n "(cached
) " >&6
14419 lt_cv_file_magic_cmd='$MAGIC_CMD'
14420 lt_cv_file_magic_test_file=
14421 lt_cv_deplibs_check_method='unknown'
14422 # Need to set the preceding variable on all platforms that support
14423 # interlibrary dependencies.
14424 # 'none' -- dependencies not supported.
14425 # `unknown' -- same as none, but documents that we really don't know.
14426 # 'pass_all' -- all dependencies passed with no checks.
14427 # 'test_compile' -- check by making test program.
14428 # 'file_magic [[regex]]' -- check by looking for files in library path
14429 # which responds to the $file_magic_cmd with a given extended regex.
14430 # If you have `file' or equivalent on your system and you're not sure
14431 # whether `pass_all' will *always* work, you probably want this one.
14435 lt_cv_deplibs_check_method=pass_all
14439 lt_cv_deplibs_check_method=pass_all
14443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14444 lt_cv_file_magic_cmd='/usr/bin/file -L'
14445 lt_cv_file_magic_test_file=/shlib/libc.so
14449 # func_win32_libid is a shell function defined in ltmain.sh
14450 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14451 lt_cv_file_magic_cmd='func_win32_libid'
14455 # Base MSYS/MinGW do not provide the 'file' command needed by
14456 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14457 # unless we find 'file', for example because we are cross-compiling.
14458 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14459 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14460 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14461 lt_cv_file_magic_cmd='func_win32_libid'
14463 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14464 lt_cv_file_magic_cmd='$OBJDUMP -f'
14469 # use the weaker test based on 'objdump'. See mingw*.
14470 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14471 lt_cv_file_magic_cmd='$OBJDUMP -f'
14474 darwin* | rhapsody*)
14475 lt_cv_deplibs_check_method=pass_all
14478 freebsd* | dragonfly*)
14479 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14482 # Not sure whether the presence of OpenBSD here was a mistake.
14483 # Let's accept both of them until this is cleared up.
14484 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14485 lt_cv_file_magic_cmd=/usr/bin/file
14486 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14490 lt_cv_deplibs_check_method=pass_all
14495 lt_cv_deplibs_check_method=pass_all
14499 lt_cv_deplibs_check_method=pass_all
14502 hpux10.20* | hpux11*)
14503 lt_cv_file_magic_cmd=/usr/bin/file
14506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14507 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14510 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]'
14511 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14515 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14521 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14525 irix5* | irix6* | nonstopux*)
14527 *-32|*"-32 ") libmagic=32-bit;;
14528 *-n32|*"-n32 ") libmagic=N32;;
14529 *-64|*"-64 ") libmagic=64-bit;;
14530 *) libmagic=never-match;;
14532 lt_cv_deplibs_check_method=pass_all
14535 # This must be Linux ELF.
14536 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14537 lt_cv_deplibs_check_method=pass_all
14541 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14550 lt_cv_file_magic_cmd=/usr/bin/file
14551 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14555 lt_cv_deplibs_check_method=pass_all
14559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14566 osf3* | osf4* | osf5*)
14567 lt_cv_deplibs_check_method=pass_all
14571 lt_cv_deplibs_check_method=pass_all
14575 lt_cv_deplibs_check_method=pass_all
14578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14579 lt_cv_deplibs_check_method=pass_all
14583 case $host_vendor in
14585 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]'
14586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14589 lt_cv_deplibs_check_method=pass_all
14592 lt_cv_file_magic_cmd='/bin/file'
14593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14596 lt_cv_file_magic_cmd='/bin/file'
14597 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14598 lt_cv_file_magic_test_file=/lib/libc.so
14601 lt_cv_deplibs_check_method=pass_all
14604 lt_cv_deplibs_check_method=pass_all
14610 lt_cv_deplibs_check_method=pass_all
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14616 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14617 file_magic_cmd=$lt_cv_file_magic_cmd
14618 deplibs_check_method=$lt_cv_deplibs_check_method
14619 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14632 if test -n "$ac_tool_prefix"; then
14633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14634 set dummy ${ac_tool_prefix}ar; ac_word=$2
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14636 $as_echo_n "checking
for $ac_word...
" >&6; }
14637 if ${ac_cv_prog_AR+:} false; then :
14638 $as_echo_n "(cached
) " >&6
14640 if test -n "$AR"; then
14641 ac_cv_prog_AR="$AR" # Let the user override the test.
14643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14644 for as_dir in $PATH
14647 test -z "$as_dir" && as_dir=.
14648 for ac_exec_ext in '' $ac_executable_extensions; do
14649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14650 ac_cv_prog_AR="${ac_tool_prefix}ar"
14651 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14661 if test -n "$AR"; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14663 $as_echo "$AR" >&6; }
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14666 $as_echo "no
" >&6; }
14671 if test -z "$ac_cv_prog_AR"; then
14673 # Extract the first word of "ar", so it can be a program name with args.
14674 set dummy ar; ac_word=$2
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14676 $as_echo_n "checking
for $ac_word...
" >&6; }
14677 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14678 $as_echo_n "(cached
) " >&6
14680 if test -n "$ac_ct_AR"; then
14681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 for as_dir in $PATH
14687 test -z "$as_dir" && as_dir=.
14688 for ac_exec_ext in '' $ac_executable_extensions; do
14689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14690 ac_cv_prog_ac_ct_AR="ar"
14691 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14701 if test -n "$ac_ct_AR"; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14703 $as_echo "$ac_ct_AR" >&6; }
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14706 $as_echo "no
" >&6; }
14709 if test "x
$ac_ct_AR" = x; then
14712 case $cross_compiling:$ac_tool_warned in
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14715 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14716 ac_tool_warned=yes ;;
14721 AR="$ac_cv_prog_AR"
14724 test -z "$AR" && AR=ar
14725 test -z "$AR_FLAGS" && AR_FLAGS=cru
14737 if test -n "$ac_tool_prefix"; then
14738 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14739 set dummy ${ac_tool_prefix}strip; ac_word=$2
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14741 $as_echo_n "checking
for $ac_word...
" >&6; }
14742 if ${ac_cv_prog_STRIP+:} false; then :
14743 $as_echo_n "(cached
) " >&6
14745 if test -n "$STRIP"; then
14746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749 for as_dir in $PATH
14752 test -z "$as_dir" && as_dir=.
14753 for ac_exec_ext in '' $ac_executable_extensions; do
14754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14765 STRIP=$ac_cv_prog_STRIP
14766 if test -n "$STRIP"; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14768 $as_echo "$STRIP" >&6; }
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14771 $as_echo "no
" >&6; }
14776 if test -z "$ac_cv_prog_STRIP"; then
14778 # Extract the first word of "strip
", so it can be a program name with args.
14779 set dummy strip; ac_word=$2
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14781 $as_echo_n "checking
for $ac_word...
" >&6; }
14782 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14783 $as_echo_n "(cached
) " >&6
14785 if test -n "$ac_ct_STRIP"; then
14786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14792 test -z "$as_dir" && as_dir=.
14793 for ac_exec_ext in '' $ac_executable_extensions; do
14794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14795 ac_cv_prog_ac_ct_STRIP="strip
"
14796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14806 if test -n "$ac_ct_STRIP"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14808 $as_echo "$ac_ct_STRIP" >&6; }
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14811 $as_echo "no
" >&6; }
14814 if test "x
$ac_ct_STRIP" = x; then
14817 case $cross_compiling:$ac_tool_warned in
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14820 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14821 ac_tool_warned=yes ;;
14826 STRIP="$ac_cv_prog_STRIP"
14829 test -z "$STRIP" && STRIP=:
14836 if test -n "$ac_tool_prefix"; then
14837 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14840 $as_echo_n "checking
for $ac_word...
" >&6; }
14841 if ${ac_cv_prog_RANLIB+:} false; then :
14842 $as_echo_n "(cached
) " >&6
14844 if test -n "$RANLIB"; then
14845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14851 test -z "$as_dir" && as_dir=.
14852 for ac_exec_ext in '' $ac_executable_extensions; do
14853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14855 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14864 RANLIB=$ac_cv_prog_RANLIB
14865 if test -n "$RANLIB"; then
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14867 $as_echo "$RANLIB" >&6; }
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14870 $as_echo "no
" >&6; }
14875 if test -z "$ac_cv_prog_RANLIB"; then
14876 ac_ct_RANLIB=$RANLIB
14877 # Extract the first word of "ranlib
", so it can be a program name with args.
14878 set dummy ranlib; ac_word=$2
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14880 $as_echo_n "checking
for $ac_word...
" >&6; }
14881 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14882 $as_echo_n "(cached
) " >&6
14884 if test -n "$ac_ct_RANLIB"; then
14885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888 for as_dir in $PATH
14891 test -z "$as_dir" && as_dir=.
14892 for ac_exec_ext in '' $ac_executable_extensions; do
14893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14894 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14895 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14905 if test -n "$ac_ct_RANLIB"; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14907 $as_echo "$ac_ct_RANLIB" >&6; }
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14910 $as_echo "no
" >&6; }
14913 if test "x
$ac_ct_RANLIB" = x; then
14916 case $cross_compiling:$ac_tool_warned in
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14919 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14920 ac_tool_warned=yes ;;
14922 RANLIB=$ac_ct_RANLIB
14925 RANLIB="$ac_cv_prog_RANLIB"
14928 test -z "$RANLIB" && RANLIB=:
14935 # Determine commands to create old-style static archives.
14936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14937 old_postinstall_cmds='chmod 644 $oldlib'
14938 old_postuninstall_cmds=
14940 if test -n "$RANLIB"; then
14943 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14946 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14949 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14954 lock_old_archive_extraction=yes ;;
14956 lock_old_archive_extraction=no ;;
14997 # If no C compiler was specified, use CC.
15000 # If no C compiler flags were specified, use CFLAGS.
15001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15003 # Allow CC to be a program name with arguments.
15007 # Check for command to grab the raw symbol name followed by C symbol from nm.
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15009 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15010 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15011 $as_echo_n "(cached
) " >&6
15014 # These are sane defaults that work on at least a few old systems.
15015 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15017 # Character class describing NM global symbol codes.
15018 symcode='[BCDEGRST]'
15020 # Regexp to match symbols that can be accessed directly from C.
15021 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15023 # Define system-specific variables.
15028 cygwin* | mingw* | pw32* | cegcc*)
15029 symcode='[ABCDGISTW]'
15032 if test "$host_cpu" = ia64; then
15033 symcode='[ABCDEGRST]'
15036 irix* | nonstopux*)
15037 symcode='[BCDEGRST]'
15040 symcode='[BCDEGQRST]'
15051 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15059 # If we're using GNU nm, then use its standard symbol codes.
15060 case `$NM -V 2>&1` in
15061 *GNU* | *'with BFD'*)
15062 symcode='[ABCDGIRSTW]' ;;
15065 # Transform an extracted symbol line into a proper C declaration.
15066 # Some systems (esp. on ia64) link data and code symbols differently,
15067 # so use this general approach.
15068 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15070 # Transform an extracted symbol line into symbol name and symbol address
15071 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15072 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'"
15074 # Handle CRLF in mingw tool chain
15078 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15082 # Try without a prefix underscore, then with it.
15083 for ac_symprfx in "" "_
"; do
15085 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15086 symxfrm="\\1 $ac_symprfx\\2 \\2"
15088 # Write the raw and C identifiers.
15089 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15090 # Fake it for dumpbin and say T for any non-static function
15091 # and D for any global variable.
15092 # Also find C++ and __fastcall symbols from MSVC++,
15093 # which start with @ or ?.
15094 lt_cv_sys_global_symbol_pipe="$AWK '"\
15095 " {last_section=section; section=\$ 3};"\
15096 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15097 " \$ 0!~/External *\|/{next};"\
15098 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15099 " {if(hide[section]) next};"\
15100 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15101 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15102 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15103 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15104 " ' prfx
=^
$ac_symprfx"
15106 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15109 # Check to see that the pipe works correctly.
15113 cat > conftest.$ac_ext <<_LT_EOF
15118 void nm_test_func(void);
15119 void nm_test_func(void){}
15123 int main(){nm_test_var='a';nm_test_func();return(0);}
15126 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15127 (eval $ac_compile) 2>&5
15129 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15130 test $ac_status = 0; }; then
15131 # Now try to grab the symbols.
15133 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15134 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15136 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15137 test $ac_status = 0; } && test -s "$nlist"; then
15138 # Try sorting and uniquifying the output.
15139 if sort "$nlist" | uniq > "$nlist"T; then
15140 mv -f "$nlist"T "$nlist"
15145 # Make sure that we snagged all the symbols we need.
15146 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15147 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15148 cat <<_LT_EOF > conftest.$ac_ext
15154 # Now generate the symbol file.
15155 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15157 cat <<_LT_EOF >> conftest.$ac_ext
15159 /* The mapping between symbol names and symbols. */
15164 lt__PROGRAM__LTX_preloaded_symbols[] =
15166 { "@PROGRAM@
", (void *) 0 },
15168 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15169 cat <<\_LT_EOF >> conftest.$ac_ext
15173 /* This works around a problem in FreeBSD linker */
15174 #ifdef FREEBSD_WORKAROUND
15175 static const void *lt_preloaded_setup() {
15176 return lt__PROGRAM__LTX_preloaded_symbols;
15184 # Now try linking the two files.
15185 mv conftest.$ac_objext conftstm.$ac_objext
15186 lt_save_LIBS="$LIBS"
15187 lt_save_CFLAGS="$CFLAGS"
15188 LIBS="conftstm.
$ac_objext"
15189 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15190 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15191 (eval $ac_link) 2>&5
15193 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15194 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15197 LIBS="$lt_save_LIBS"
15198 CFLAGS="$lt_save_CFLAGS"
15200 echo "cannot
find nm_test_func
in $nlist" >&5
15203 echo "cannot
find nm_test_var
in $nlist" >&5
15206 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15209 echo "$progname: failed program was
:" >&5
15210 cat conftest.$ac_ext >&5
15212 rm -rf conftest* conftst*
15214 # Do not use the global_symbol_pipe unless it works.
15215 if test "$pipe_works" = yes; then
15218 lt_cv_sys_global_symbol_pipe=
15224 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15225 lt_cv_sys_global_symbol_to_cdecl=
15227 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15229 $as_echo "failed
" >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15232 $as_echo "ok
" >&6; }
15256 # Check whether --enable-libtool-lock was given.
15257 if test "${enable_libtool_lock+set}" = set; then :
15258 enableval=$enable_libtool_lock;
15261 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15263 # Some flags need to be propagated to the compiler or linker for good
15267 # Find out which ABI we are using.
15268 echo 'int i;' > conftest.$ac_ext
15269 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15270 (eval $ac_compile) 2>&5
15272 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15273 test $ac_status = 0; }; then
15274 case `/usr/bin/file conftest.$ac_objext` in
15276 HPUX_IA64_MODE="32"
15279 HPUX_IA64_MODE="64"
15286 # Find out which ABI we are using.
15287 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15288 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15289 (eval $ac_compile) 2>&5
15291 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15292 test $ac_status = 0; }; then
15293 if test "$lt_cv_prog_gnu_ld" = yes; then
15294 case `/usr/bin/file conftest.$ac_objext` in
15296 LD="${LD-ld} -melf32bsmip"
15299 LD="${LD-ld} -melf32bmipn32"
15302 LD="${LD-ld} -melf64bmip"
15306 case `/usr/bin/file conftest.$ac_objext` in
15322 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15323 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15324 # Find out which ABI we are using.
15325 echo 'int i;' > conftest.$ac_ext
15326 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15327 (eval $ac_compile) 2>&5
15329 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15330 test $ac_status = 0; }; then
15331 case `/usr/bin/file conftest.o` in
15334 x86_64-*kfreebsd*-gnu)
15335 LD="${LD-ld} -m elf_i386_fbsd
"
15338 case `/usr/bin/file conftest.o` in
15340 LD="${LD-ld} -m elf32_x86_64
"
15343 LD="${LD-ld} -m elf_i386
"
15347 powerpc64le-*linux*)
15348 LD="${LD-ld} -m elf32lppclinux
"
15351 LD="${LD-ld} -m elf32ppclinux
"
15354 LD="${LD-ld} -m elf_s390
"
15357 LD="${LD-ld} -m elf32_sparc
"
15363 x86_64-*kfreebsd*-gnu)
15364 LD="${LD-ld} -m elf_x86_64_fbsd
"
15367 LD="${LD-ld} -m elf_x86_64
"
15370 LD="${LD-ld} -m elf64lppc
"
15373 LD="${LD-ld} -m elf64ppc
"
15375 s390*-*linux*|s390*-*tpf*)
15376 LD="${LD-ld} -m elf64_s390
"
15379 LD="${LD-ld} -m elf64_sparc
"
15389 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15390 SAVE_CFLAGS="$CFLAGS"
15391 CFLAGS="$CFLAGS -belf"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15393 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15394 if ${lt_cv_cc_needs_belf+:} false; then :
15395 $as_echo_n "(cached
) " >&6
15398 ac_cpp='$CPP $CPPFLAGS'
15399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15414 if ac_fn_c_try_link "$LINENO"; then :
15415 lt_cv_cc_needs_belf=yes
15417 lt_cv_cc_needs_belf=no
15419 rm -f core conftest.err conftest.$ac_objext \
15420 conftest$ac_exeext conftest.$ac_ext
15422 ac_cpp='$CPP $CPPFLAGS'
15423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15429 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15430 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15431 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15432 CFLAGS="$SAVE_CFLAGS"
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
15445 case $lt_cv_prog_gnu_ld in
15446 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15448 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15460 need_locks="$enable_libtool_lock"
15464 rhapsody* | darwin*)
15465 if test -n "$ac_tool_prefix"; then
15466 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15467 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15469 $as_echo_n "checking
for $ac_word...
" >&6; }
15470 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15471 $as_echo_n "(cached
) " >&6
15473 if test -n "$DSYMUTIL"; then
15474 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15477 for as_dir in $PATH
15480 test -z "$as_dir" && as_dir=.
15481 for ac_exec_ext in '' $ac_executable_extensions; do
15482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15483 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15484 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15493 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15494 if test -n "$DSYMUTIL"; then
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15496 $as_echo "$DSYMUTIL" >&6; }
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15499 $as_echo "no
" >&6; }
15504 if test -z "$ac_cv_prog_DSYMUTIL"; then
15505 ac_ct_DSYMUTIL=$DSYMUTIL
15506 # Extract the first word of "dsymutil
", so it can be a program name with args.
15507 set dummy dsymutil; ac_word=$2
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15509 $as_echo_n "checking
for $ac_word...
" >&6; }
15510 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15511 $as_echo_n "(cached
) " >&6
15513 if test -n "$ac_ct_DSYMUTIL"; then
15514 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517 for as_dir in $PATH
15520 test -z "$as_dir" && as_dir=.
15521 for ac_exec_ext in '' $ac_executable_extensions; do
15522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15523 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15524 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15533 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15534 if test -n "$ac_ct_DSYMUTIL"; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15536 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15539 $as_echo "no
" >&6; }
15542 if test "x
$ac_ct_DSYMUTIL" = x; then
15545 case $cross_compiling:$ac_tool_warned in
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15548 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15549 ac_tool_warned=yes ;;
15551 DSYMUTIL=$ac_ct_DSYMUTIL
15554 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15557 if test -n "$ac_tool_prefix"; then
15558 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15559 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15561 $as_echo_n "checking
for $ac_word...
" >&6; }
15562 if ${ac_cv_prog_NMEDIT+:} false; then :
15563 $as_echo_n "(cached
) " >&6
15565 if test -n "$NMEDIT"; then
15566 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15569 for as_dir in $PATH
15572 test -z "$as_dir" && as_dir=.
15573 for ac_exec_ext in '' $ac_executable_extensions; do
15574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15575 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15576 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15585 NMEDIT=$ac_cv_prog_NMEDIT
15586 if test -n "$NMEDIT"; then
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15588 $as_echo "$NMEDIT" >&6; }
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15591 $as_echo "no
" >&6; }
15596 if test -z "$ac_cv_prog_NMEDIT"; then
15597 ac_ct_NMEDIT=$NMEDIT
15598 # Extract the first word of "nmedit
", so it can be a program name with args.
15599 set dummy nmedit; ac_word=$2
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15601 $as_echo_n "checking
for $ac_word...
" >&6; }
15602 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15603 $as_echo_n "(cached
) " >&6
15605 if test -n "$ac_ct_NMEDIT"; then
15606 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15609 for as_dir in $PATH
15612 test -z "$as_dir" && as_dir=.
15613 for ac_exec_ext in '' $ac_executable_extensions; do
15614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15615 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15616 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15625 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15626 if test -n "$ac_ct_NMEDIT"; then
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15628 $as_echo "$ac_ct_NMEDIT" >&6; }
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15631 $as_echo "no
" >&6; }
15634 if test "x
$ac_ct_NMEDIT" = x; then
15637 case $cross_compiling:$ac_tool_warned in
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15640 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15641 ac_tool_warned=yes ;;
15643 NMEDIT=$ac_ct_NMEDIT
15646 NMEDIT="$ac_cv_prog_NMEDIT"
15649 if test -n "$ac_tool_prefix"; then
15650 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15651 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15653 $as_echo_n "checking
for $ac_word...
" >&6; }
15654 if ${ac_cv_prog_LIPO+:} false; then :
15655 $as_echo_n "(cached
) " >&6
15657 if test -n "$LIPO"; then
15658 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15661 for as_dir in $PATH
15664 test -z "$as_dir" && as_dir=.
15665 for ac_exec_ext in '' $ac_executable_extensions; do
15666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15667 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15668 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15677 LIPO=$ac_cv_prog_LIPO
15678 if test -n "$LIPO"; then
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15680 $as_echo "$LIPO" >&6; }
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15683 $as_echo "no
" >&6; }
15688 if test -z "$ac_cv_prog_LIPO"; then
15690 # Extract the first word of "lipo
", so it can be a program name with args.
15691 set dummy lipo; ac_word=$2
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15693 $as_echo_n "checking
for $ac_word...
" >&6; }
15694 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15695 $as_echo_n "(cached
) " >&6
15697 if test -n "$ac_ct_LIPO"; then
15698 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15701 for as_dir in $PATH
15704 test -z "$as_dir" && as_dir=.
15705 for ac_exec_ext in '' $ac_executable_extensions; do
15706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15707 ac_cv_prog_ac_ct_LIPO="lipo
"
15708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15717 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15718 if test -n "$ac_ct_LIPO"; then
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15720 $as_echo "$ac_ct_LIPO" >&6; }
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15723 $as_echo "no
" >&6; }
15726 if test "x
$ac_ct_LIPO" = x; then
15729 case $cross_compiling:$ac_tool_warned in
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15732 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15733 ac_tool_warned=yes ;;
15738 LIPO="$ac_cv_prog_LIPO"
15741 if test -n "$ac_tool_prefix"; then
15742 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15743 set dummy ${ac_tool_prefix}otool; ac_word=$2
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15745 $as_echo_n "checking
for $ac_word...
" >&6; }
15746 if ${ac_cv_prog_OTOOL+:} false; then :
15747 $as_echo_n "(cached
) " >&6
15749 if test -n "$OTOOL"; then
15750 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753 for as_dir in $PATH
15756 test -z "$as_dir" && as_dir=.
15757 for ac_exec_ext in '' $ac_executable_extensions; do
15758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15759 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15760 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15769 OTOOL=$ac_cv_prog_OTOOL
15770 if test -n "$OTOOL"; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15772 $as_echo "$OTOOL" >&6; }
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15775 $as_echo "no
" >&6; }
15780 if test -z "$ac_cv_prog_OTOOL"; then
15782 # Extract the first word of "otool
", so it can be a program name with args.
15783 set dummy otool; ac_word=$2
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15785 $as_echo_n "checking
for $ac_word...
" >&6; }
15786 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15787 $as_echo_n "(cached
) " >&6
15789 if test -n "$ac_ct_OTOOL"; then
15790 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793 for as_dir in $PATH
15796 test -z "$as_dir" && as_dir=.
15797 for ac_exec_ext in '' $ac_executable_extensions; do
15798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799 ac_cv_prog_ac_ct_OTOOL="otool
"
15800 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15809 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15810 if test -n "$ac_ct_OTOOL"; then
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15812 $as_echo "$ac_ct_OTOOL" >&6; }
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15815 $as_echo "no
" >&6; }
15818 if test "x
$ac_ct_OTOOL" = x; then
15821 case $cross_compiling:$ac_tool_warned in
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15824 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15825 ac_tool_warned=yes ;;
15830 OTOOL="$ac_cv_prog_OTOOL"
15833 if test -n "$ac_tool_prefix"; then
15834 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15835 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15837 $as_echo_n "checking
for $ac_word...
" >&6; }
15838 if ${ac_cv_prog_OTOOL64+:} false; then :
15839 $as_echo_n "(cached
) " >&6
15841 if test -n "$OTOOL64"; then
15842 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845 for as_dir in $PATH
15848 test -z "$as_dir" && as_dir=.
15849 for ac_exec_ext in '' $ac_executable_extensions; do
15850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15851 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15852 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15861 OTOOL64=$ac_cv_prog_OTOOL64
15862 if test -n "$OTOOL64"; then
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15864 $as_echo "$OTOOL64" >&6; }
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15867 $as_echo "no
" >&6; }
15872 if test -z "$ac_cv_prog_OTOOL64"; then
15873 ac_ct_OTOOL64=$OTOOL64
15874 # Extract the first word of "otool64
", so it can be a program name with args.
15875 set dummy otool64; ac_word=$2
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15877 $as_echo_n "checking
for $ac_word...
" >&6; }
15878 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15879 $as_echo_n "(cached
) " >&6
15881 if test -n "$ac_ct_OTOOL64"; then
15882 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885 for as_dir in $PATH
15888 test -z "$as_dir" && as_dir=.
15889 for ac_exec_ext in '' $ac_executable_extensions; do
15890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15891 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15892 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15901 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15902 if test -n "$ac_ct_OTOOL64"; then
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15904 $as_echo "$ac_ct_OTOOL64" >&6; }
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15907 $as_echo "no
" >&6; }
15910 if test "x
$ac_ct_OTOOL64" = x; then
15913 case $cross_compiling:$ac_tool_warned in
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15916 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15917 ac_tool_warned=yes ;;
15919 OTOOL64=$ac_ct_OTOOL64
15922 OTOOL64="$ac_cv_prog_OTOOL64"
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15952 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15953 if ${lt_cv_apple_cc_single_mod+:} false; then :
15954 $as_echo_n "(cached
) " >&6
15956 lt_cv_apple_cc_single_mod=no
15957 if test -z "${LT_MULTI_MODULE}"; then
15958 # By default we will add the -single_module flag. You can override
15959 # by either setting the environment variable LT_MULTI_MODULE
15960 # non-empty at configure time, or by adding -multi_module to the
15962 rm -rf libconftest.dylib*
15963 echo "int foo
(void
){return 1;}" > conftest.c
15964 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15965 -dynamiclib -Wl,-single_module conftest.c
" >&5
15966 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15967 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15969 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15970 lt_cv_apple_cc_single_mod=yes
15972 cat conftest.err >&5
15974 rm -rf libconftest.dylib*
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15979 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15981 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15982 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15983 $as_echo_n "(cached
) " >&6
15985 lt_cv_ld_exported_symbols_list=no
15986 save_LDFLAGS=$LDFLAGS
15987 echo "_main
" > conftest.sym
15988 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
16000 if ac_fn_c_try_link "$LINENO"; then :
16001 lt_cv_ld_exported_symbols_list=yes
16003 lt_cv_ld_exported_symbols_list=no
16005 rm -f core conftest.err conftest.$ac_objext \
16006 conftest$ac_exeext conftest.$ac_ext
16007 LDFLAGS="$save_LDFLAGS"
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16011 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16013 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16014 if ${lt_cv_ld_force_load+:} false; then :
16015 $as_echo_n "(cached
) " >&6
16017 lt_cv_ld_force_load=no
16018 cat > conftest.c << _LT_EOF
16019 int forced_loaded() { return 2;}
16021 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16022 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16023 echo "$AR cru libconftest.a conftest.o
" >&5
16024 $AR cru libconftest.a conftest.o 2>&5
16025 cat > conftest.c << _LT_EOF
16026 int main() { return 0;}
16028 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16029 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16031 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16032 lt_cv_ld_force_load=yes
16034 cat conftest.err >&5
16036 rm -f conftest.err libconftest.a conftest conftest.c
16037 rm -rf conftest.dSYM
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16041 $as_echo "$lt_cv_ld_force_load" >&6; }
16042 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16043 # build without first building modern cctools / linker.
16044 case $host_cpu-$host_os in
16045 *-rhapsody* | *-darwin1.[012])
16046 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16048 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16050 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16051 # deployment target is forced to an earlier version.
16052 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16053 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16063 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16064 _lt_dar_single_mod='$single_module'
16066 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16067 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16069 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16071 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16072 _lt_dsymutil='~$DSYMUTIL $lib || :'
16080 for ac_header in dlfcn.h
16082 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16083 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_DLFCN_H 1
16102 enable_win32_dll=no
16105 # Check whether --enable-shared was given.
16106 if test "${enable_shared+set}" = set; then :
16107 enableval=$enable_shared; p=${PACKAGE-default}
16109 yes) enable_shared=yes ;;
16110 no) enable_shared=no ;;
16113 # Look at the argument we got. We use all the common list separators.
16114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16115 for pkg in $enableval; do
16117 if test "X
$pkg" = "X
$p"; then
16136 # Check whether --enable-static was given.
16137 if test "${enable_static+set}" = set; then :
16138 enableval=$enable_static; p=${PACKAGE-default}
16140 yes) enable_static=yes ;;
16141 no) enable_static=no ;;
16144 # Look at the argument we got. We use all the common list separators.
16145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16146 for pkg in $enableval; do
16148 if test "X
$pkg" = "X
$p"; then
16168 # Check whether --with-pic was given.
16169 if test "${with_pic+set}" = set; then :
16170 withval=$with_pic; pic_mode="$withval"
16176 test -z "$pic_mode" && pic_mode=default
16184 # Check whether --enable-fast-install was given.
16185 if test "${enable_fast_install+set}" = set; then :
16186 enableval=$enable_fast_install; p=${PACKAGE-default}
16188 yes) enable_fast_install=yes ;;
16189 no) enable_fast_install=no ;;
16191 enable_fast_install=no
16192 # Look at the argument we got. We use all the common list separators.
16193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16194 for pkg in $enableval; do
16196 if test "X
$pkg" = "X
$p"; then
16197 enable_fast_install=yes
16204 enable_fast_install=yes
16217 # This can be used to rebuild libtool when needed
16218 LIBTOOL_DEPS="$ltmain"
16220 # Always use our own libtool.
16221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16248 test -z "$LN_S" && LN_S="ln -s"
16263 if test -n "${ZSH_VERSION+set}" ; then
16264 setopt NO_GLOB_SUBST
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16268 $as_echo_n "checking
for objdir...
" >&6; }
16269 if ${lt_cv_objdir+:} false; then :
16270 $as_echo_n "(cached
) " >&6
16272 rm -f .libs 2>/dev/null
16273 mkdir .libs 2>/dev/null
16274 if test -d .libs; then
16277 # MS-DOS does not allow filenames that begin with a dot.
16280 rmdir .libs 2>/dev/null
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16283 $as_echo "$lt_cv_objdir" >&6; }
16284 objdir=$lt_cv_objdir
16290 cat >>confdefs.h <<_ACEOF
16291 #define LT_OBJDIR "$lt_cv_objdir/"
16299 # AIX sometimes has problems with the GCC collect2 program. For some
16300 # reason, if we set the COLLECT_NAMES environment variable, the problems
16301 # vanish in a puff of smoke.
16302 if test "X
${COLLECT_NAMES+set}" != Xset; then
16304 export COLLECT_NAMES
16309 # Global variables:
16311 can_build_shared=yes
16313 # All known linkers require a `.a' archive for static linking (except MSVC,
16314 # which needs '.lib').
16317 with_gnu_ld="$lt_cv_prog_gnu_ld"
16320 old_CFLAGS="$CFLAGS"
16322 # Set sane defaults for various variables
16323 test -z "$CC" && CC=cc
16324 test -z "$LTCC" && LTCC=$CC
16325 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16326 test -z "$LD" && LD=ld
16327 test -z "$ac_objext" && ac_objext=o
16329 for cc_temp in $compiler""; do
16331 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16332 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16337 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16340 # Only perform the check for file, if the check method requires it
16341 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16342 case $deplibs_check_method in
16344 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16346 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16347 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16348 $as_echo_n "(cached
) " >&6
16352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16355 lt_save_MAGIC_CMD="$MAGIC_CMD"
16356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16357 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16358 for ac_dir in $ac_dummy; do
16360 test -z "$ac_dir" && ac_dir=.
16361 if test -f $ac_dir/${ac_tool_prefix}file; then
16362 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16363 if test -n "$file_magic_test_file"; then
16364 case $deplibs_check_method in
16366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16369 $EGREP "$file_magic_regex" > /dev/null; then
16374 *** Warning: the command libtool uses to detect shared libraries,
16375 *** $file_magic_cmd, produces output that libtool cannot recognize.
16376 *** The result is that libtool may fail to recognize shared libraries
16377 *** as such. This will affect the creation of libtool libraries that
16378 *** depend on shared libraries, but programs linked with such libtool
16379 *** libraries will work regardless of this problem. Nevertheless, you
16380 *** may want to report the problem to your system manager and/or to
16381 *** bug-libtool@gnu.org
16391 MAGIC_CMD="$lt_save_MAGIC_CMD"
16396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16397 if test -n "$MAGIC_CMD"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16399 $as_echo "$MAGIC_CMD" >&6; }
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16402 $as_echo "no
" >&6; }
16409 if test -z "$lt_cv_path_MAGIC_CMD"; then
16410 if test -n "$ac_tool_prefix"; then
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16412 $as_echo_n "checking
for file...
" >&6; }
16413 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16414 $as_echo_n "(cached
) " >&6
16418 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16421 lt_save_MAGIC_CMD="$MAGIC_CMD"
16422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16423 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16424 for ac_dir in $ac_dummy; do
16426 test -z "$ac_dir" && ac_dir=.
16427 if test -f $ac_dir/file; then
16428 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16429 if test -n "$file_magic_test_file"; then
16430 case $deplibs_check_method in
16432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16435 $EGREP "$file_magic_regex" > /dev/null; then
16440 *** Warning: the command libtool uses to detect shared libraries,
16441 *** $file_magic_cmd, produces output that libtool cannot recognize.
16442 *** The result is that libtool may fail to recognize shared libraries
16443 *** as such. This will affect the creation of libtool libraries that
16444 *** depend on shared libraries, but programs linked with such libtool
16445 *** libraries will work regardless of this problem. Nevertheless, you
16446 *** may want to report the problem to your system manager and/or to
16447 *** bug-libtool@gnu.org
16457 MAGIC_CMD="$lt_save_MAGIC_CMD"
16462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16463 if test -n "$MAGIC_CMD"; then
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16465 $as_echo "$MAGIC_CMD" >&6; }
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16468 $as_echo "no
" >&6; }
16481 # Use C for the default configuration in the libtool script
16485 ac_cpp='$CPP $CPPFLAGS'
16486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16491 # Source file extension for C test sources.
16494 # Object file extension for compiled C test sources.
16498 # Code to be used in simple compile tests
16499 lt_simple_compile_test_code="int some_variable
= 0;"
16501 # Code to be used in simple link tests
16502 lt_simple_link_test_code='int main(){return(0);}'
16510 # If no C compiler was specified, use CC.
16513 # If no C compiler flags were specified, use CFLAGS.
16514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16516 # Allow CC to be a program name with arguments.
16519 # Save the default compiler, since it gets overwritten when the other
16520 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16521 compiler_DEFAULT=$CC
16523 # save warnings/boilerplate of simple test code
16524 ac_outfile=conftest.$ac_objext
16525 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16527 _lt_compiler_boilerplate=`cat conftest.err`
16530 ac_outfile=conftest.$ac_objext
16531 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16533 _lt_linker_boilerplate=`cat conftest.err`
16538 ## There is no encapsulation within the following macros, do not change
16539 ## the running order or otherwise move them around unless you know exactly
16540 ## what you are doing...
16541 if test -n "$compiler"; then
16543 lt_prog_compiler_no_builtin_flag=
16545 if test "$GCC" = yes; then
16546 case $cc_basename in
16548 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16550 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16554 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16555 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16556 $as_echo_n "(cached
) " >&6
16558 lt_cv_prog_compiler_rtti_exceptions=no
16559 ac_outfile=conftest.$ac_objext
16560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16561 lt_compiler_flag="-fno-rtti -fno-exceptions"
16562 # Insert the option either (1) after the last *FLAGS variable, or
16563 # (2) before a word containing "conftest.
", or (3) at the end.
16564 # Note that $ac_compile itself does not contain backslashes and begins
16565 # with a dollar sign (not a hyphen), so the echo should work correctly.
16566 # The option is referenced via a variable to avoid confusing sed.
16567 lt_compile=`echo "$ac_compile" | $SED \
16568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16570 -e 's:$: $lt_compiler_flag:'`
16571 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16572 (eval "$lt_compile" 2>conftest.err)
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16576 if (exit $ac_status) && test -s "$ac_outfile"; then
16577 # The compiler can only warn and ignore the option if not recognized
16578 # So say no if there are warnings other than the usual output.
16579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16582 lt_cv_prog_compiler_rtti_exceptions=yes
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16589 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16591 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16604 lt_prog_compiler_wl=
16605 lt_prog_compiler_pic=
16606 lt_prog_compiler_static=
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16609 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16611 if test "$GCC" = yes; then
16612 lt_prog_compiler_wl='-Wl,'
16613 lt_prog_compiler_static='-static'
16617 # All AIX code is PIC.
16618 if test "$host_cpu" = ia64; then
16619 # AIX 5 now supports IA64 processor
16620 lt_prog_compiler_static='-Bstatic'
16622 lt_prog_compiler_pic='-fPIC'
16628 # see comment about AmigaOS4 .so support
16629 lt_prog_compiler_pic='-fPIC'
16632 # FIXME: we need at least 68020 code to build shared libraries, but
16633 # adding the `-m68020' flag to GCC prevents building anything better,
16635 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16640 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16641 # PIC is the default for these OSes.
16644 mingw* | cygwin* | pw32* | os2* | cegcc*)
16645 # This hack is so that the source file can tell whether it is being
16646 # built for inclusion in a dll (and should export symbols for example).
16647 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16648 # (--disable-auto-import) libraries
16649 lt_prog_compiler_pic='-DDLL_EXPORT'
16652 darwin* | rhapsody*)
16653 # PIC is the default on this platform
16654 # Common symbols not allowed in MH_DYLIB files
16655 lt_prog_compiler_pic='-fno-common'
16659 # PIC is the default for Haiku.
16660 # The "-static" flag exists, but is broken.
16661 lt_prog_compiler_static=
16665 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16666 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16667 # sets the default TLS model and affects inlining.
16673 lt_prog_compiler_pic='-fPIC'
16679 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16680 # Instead, we relocate shared libraries at runtime.
16684 # Just because we use GCC doesn't mean we suddenly get shared libraries
16685 # on systems that don't support them.
16686 lt_prog_compiler_can_build_shared=no
16691 # QNX uses GNU C++, but need to define -shared option too, otherwise
16692 # it will coredump.
16693 lt_prog_compiler_pic='-fPIC -shared'
16697 if test -d /usr/nec; then
16698 lt_prog_compiler_pic=-Kconform_pic
16703 lt_prog_compiler_pic='-fPIC'
16707 case $cc_basename in
16708 nvcc*) # Cuda Compiler Driver 2.2
16709 lt_prog_compiler_wl='-Xlinker '
16710 lt_prog_compiler_pic='-Xcompiler -fPIC'
16714 # PORTME Check for flag to pass linker flags through the system compiler.
16717 lt_prog_compiler_wl='-Wl,'
16718 if test "$host_cpu" = ia64; then
16719 # AIX 5 now supports IA64 processor
16720 lt_prog_compiler_static='-Bstatic'
16722 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16726 mingw* | cygwin* | pw32* | os2* | cegcc*)
16727 # This hack is so that the source file can tell whether it is being
16728 # built for inclusion in a dll (and should export symbols for example).
16729 lt_prog_compiler_pic='-DDLL_EXPORT'
16732 hpux9* | hpux10* | hpux11*)
16733 lt_prog_compiler_wl='-Wl,'
16734 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16735 # not for PA HP-UX.
16741 lt_prog_compiler_pic='+Z'
16744 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16745 lt_prog_compiler_static='${wl}-a ${wl}archive'
16748 irix5* | irix6* | nonstopux*)
16749 lt_prog_compiler_wl='-Wl,'
16750 # PIC (with -KPIC) is the default.
16751 lt_prog_compiler_static='-non_shared'
16754 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16755 case $cc_basename in
16756 # old Intel for x86_64 which still supported -KPIC.
16758 lt_prog_compiler_wl='-Wl,'
16759 lt_prog_compiler_pic='-KPIC'
16760 lt_prog_compiler_static='-static'
16762 # icc used to be incompatible with GCC.
16763 # ICC 10 doesn't accept -KPIC any more.
16765 lt_prog_compiler_wl='-Wl,'
16766 lt_prog_compiler_pic='-fPIC'
16767 lt_prog_compiler_static='-static'
16769 # Lahey Fortran 8.1.
16771 lt_prog_compiler_wl='-Wl,'
16772 lt_prog_compiler_pic='--shared'
16773 lt_prog_compiler_static='--static'
16775 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16776 # Portland Group compilers (*not* the Pentium gcc compiler,
16777 # which looks to be a dead project)
16778 lt_prog_compiler_wl='-Wl,'
16779 lt_prog_compiler_pic='-fpic'
16780 lt_prog_compiler_static='-Bstatic'
16783 lt_prog_compiler_wl='-Wl,'
16784 # All Alpha code is PIC.
16785 lt_prog_compiler_static='-non_shared'
16787 xl* | bgxl* | bgf* | mpixl*)
16788 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16789 lt_prog_compiler_wl='-Wl,'
16790 lt_prog_compiler_pic='-qpic'
16791 lt_prog_compiler_static='-qstaticlink'
16794 case `$CC -V 2>&1 | sed 5q` in
16795 *Sun\ F* | *Sun*Fortran*)
16796 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16797 lt_prog_compiler_pic='-KPIC'
16798 lt_prog_compiler_static='-Bstatic'
16799 lt_prog_compiler_wl=''
16803 lt_prog_compiler_pic='-KPIC'
16804 lt_prog_compiler_static='-Bstatic'
16805 lt_prog_compiler_wl='-Wl,'
16813 lt_prog_compiler_pic='-KPIC'
16814 lt_prog_compiler_static='-Bstatic'
16818 # QNX uses GNU C++, but need to define -shared option too, otherwise
16819 # it will coredump.
16820 lt_prog_compiler_pic='-fPIC -shared'
16823 osf3* | osf4* | osf5*)
16824 lt_prog_compiler_wl='-Wl,'
16825 # All OSF/1 code is PIC.
16826 lt_prog_compiler_static='-non_shared'
16830 lt_prog_compiler_static='-non_shared'
16834 lt_prog_compiler_pic='-KPIC'
16835 lt_prog_compiler_static='-Bstatic'
16836 case $cc_basename in
16837 f77* | f90* | f95*)
16838 lt_prog_compiler_wl='-Qoption ld ';;
16840 lt_prog_compiler_wl='-Wl,';;
16845 lt_prog_compiler_wl='-Qoption ld '
16846 lt_prog_compiler_pic='-PIC'
16847 lt_prog_compiler_static='-Bstatic'
16850 sysv4 | sysv4.2uw2* | sysv4.3*)
16851 lt_prog_compiler_wl='-Wl,'
16852 lt_prog_compiler_pic='-KPIC'
16853 lt_prog_compiler_static='-Bstatic'
16857 if test -d /usr/nec ;then
16858 lt_prog_compiler_pic='-Kconform_pic'
16859 lt_prog_compiler_static='-Bstatic'
16863 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16864 lt_prog_compiler_wl='-Wl,'
16865 lt_prog_compiler_pic='-KPIC'
16866 lt_prog_compiler_static='-Bstatic'
16870 lt_prog_compiler_wl='-Wl,'
16871 lt_prog_compiler_can_build_shared=no
16875 lt_prog_compiler_pic='-pic'
16876 lt_prog_compiler_static='-Bstatic'
16880 lt_prog_compiler_can_build_shared=no
16886 # For platforms which do not support PIC, -DPIC is meaningless:
16888 lt_prog_compiler_pic=
16891 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16895 $as_echo "$lt_prog_compiler_pic" >&6; }
16903 # Check to make sure the PIC flag actually works.
16905 if test -n "$lt_prog_compiler_pic"; then
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16907 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16908 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16909 $as_echo_n "(cached
) " >&6
16911 lt_cv_prog_compiler_pic_works=no
16912 ac_outfile=conftest.$ac_objext
16913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16914 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16915 # Insert the option either (1) after the last *FLAGS variable, or
16916 # (2) before a word containing "conftest.
", or (3) at the end.
16917 # Note that $ac_compile itself does not contain backslashes and begins
16918 # with a dollar sign (not a hyphen), so the echo should work correctly.
16919 # The option is referenced via a variable to avoid confusing sed.
16920 lt_compile=`echo "$ac_compile" | $SED \
16921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16923 -e 's:$: $lt_compiler_flag:'`
16924 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16925 (eval "$lt_compile" 2>conftest.err)
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16929 if (exit $ac_status) && test -s "$ac_outfile"; then
16930 # The compiler can only warn and ignore the option if not recognized
16931 # So say no if there are warnings other than the usual output.
16932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16935 lt_cv_prog_compiler_pic_works=yes
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16942 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16944 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16945 case $lt_prog_compiler_pic in
16947 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16950 lt_prog_compiler_pic=
16951 lt_prog_compiler_can_build_shared=no
16962 # Check to make sure the static flag actually works.
16964 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16966 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16967 if ${lt_cv_prog_compiler_static_works+:} false; then :
16968 $as_echo_n "(cached
) " >&6
16970 lt_cv_prog_compiler_static_works=no
16971 save_LDFLAGS="$LDFLAGS"
16972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16975 # The linker can only warn and ignore the option if not recognized
16976 # So say no if there are warnings
16977 if test -s conftest.err; then
16978 # Append any errors to the config.log.
16979 cat conftest.err 1>&5
16980 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16982 if diff conftest.exp conftest.er2 >/dev/null; then
16983 lt_cv_prog_compiler_static_works=yes
16986 lt_cv_prog_compiler_static_works=yes
16990 LDFLAGS="$save_LDFLAGS"
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16994 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16996 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16999 lt_prog_compiler_static=
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17009 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17010 if ${lt_cv_prog_compiler_c_o+:} false; then :
17011 $as_echo_n "(cached
) " >&6
17013 lt_cv_prog_compiler_c_o=no
17014 $RM -r conftest 2>/dev/null
17018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17020 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17021 # Insert the option either (1) after the last *FLAGS variable, or
17022 # (2) before a word containing "conftest.
", or (3) at the end.
17023 # Note that $ac_compile itself does not contain backslashes and begins
17024 # with a dollar sign (not a hyphen), so the echo should work correctly.
17025 lt_compile=`echo "$ac_compile" | $SED \
17026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17028 -e 's:$: $lt_compiler_flag:'`
17029 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17030 (eval "$lt_compile" 2>out/conftest.err)
17032 cat out/conftest.err >&5
17033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17036 # The compiler can only warn and ignore the option if not recognized
17037 # So say no if there are warnings
17038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17041 lt_cv_prog_compiler_c_o=yes
17046 # SGI C++ compiler will create directory out/ii_files/ for
17047 # template instantiation
17048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17049 $RM out/* && rmdir out
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17064 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17065 if ${lt_cv_prog_compiler_c_o+:} false; then :
17066 $as_echo_n "(cached
) " >&6
17068 lt_cv_prog_compiler_c_o=no
17069 $RM -r conftest 2>/dev/null
17073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17075 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17076 # Insert the option either (1) after the last *FLAGS variable, or
17077 # (2) before a word containing "conftest.
", or (3) at the end.
17078 # Note that $ac_compile itself does not contain backslashes and begins
17079 # with a dollar sign (not a hyphen), so the echo should work correctly.
17080 lt_compile=`echo "$ac_compile" | $SED \
17081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17083 -e 's:$: $lt_compiler_flag:'`
17084 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17085 (eval "$lt_compile" 2>out/conftest.err)
17087 cat out/conftest.err >&5
17088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17091 # The compiler can only warn and ignore the option if not recognized
17092 # So say no if there are warnings
17093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17096 lt_cv_prog_compiler_c_o=yes
17101 # SGI C++ compiler will create directory out/ii_files/ for
17102 # template instantiation
17103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17104 $RM out/* && rmdir out
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17116 hard_links="nottested
"
17117 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17118 # do not overwrite the value of need_locks provided by the user
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17120 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17125 ln conftest.a conftest.b 2>&5 || hard_links=no
17126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17128 $as_echo "$hard_links" >&6; }
17129 if test "$hard_links" = no; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17131 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17144 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17147 allow_undefined_flag=
17148 always_export_symbols=no
17150 archive_expsym_cmds=
17151 compiler_needs_object=no
17152 enable_shared_with_static_runtimes=no
17153 export_dynamic_flag_spec=
17154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17155 hardcode_automatic=no
17157 hardcode_direct_absolute=no
17158 hardcode_libdir_flag_spec=
17159 hardcode_libdir_flag_spec_ld=
17160 hardcode_libdir_separator=
17161 hardcode_minus_L=no
17162 hardcode_shlibpath_var=unsupported
17164 link_all_deplibs=unknown
17166 module_expsym_cmds=
17167 old_archive_from_new_cmds=
17168 old_archive_from_expsyms_cmds=
17169 thread_safe_flag_spec=
17170 whole_archive_flag_spec=
17171 # include_expsyms should be a list of space-separated symbols to be *always*
17172 # included in the symbol list
17174 # exclude_expsyms can be an extended regexp of symbols to exclude
17175 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17176 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17177 # as well as any symbol that contains `d'.
17178 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17179 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17180 # platforms (ab)use it in PIC code, but their linkers get confused if
17181 # the symbol is explicitly referenced. Since portable code cannot
17182 # rely on this symbol name, it's probably fine to never include it in
17183 # preloaded symbol tables.
17184 # Exclude shared library initialization/finalization symbols.
17185 extract_expsyms_cmds=
17188 cygwin* | mingw* | pw32* | cegcc*)
17189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17190 # When not using gcc, we currently assume that we are using
17191 # Microsoft Visual C++.
17192 if test "$GCC" != yes; then
17197 # we just hope/assume this is gcc and not c89 (= MSVC++)
17207 # On some targets, GNU ld is compatible enough with the native linker
17208 # that we're better off using the native interface for both.
17209 lt_use_gnu_ld_interface=no
17210 if test "$with_gnu_ld" = yes; then
17213 # The AIX port of GNU ld has always aspired to compatibility
17214 # with the native linker. However, as the warning in the GNU ld
17215 # block says, versions before 2.19.5* couldn't really create working
17216 # shared libraries, regardless of the interface used.
17217 case `$LD -v 2>&1` in
17218 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17219 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17220 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17222 lt_use_gnu_ld_interface=yes
17227 lt_use_gnu_ld_interface=yes
17232 if test "$lt_use_gnu_ld_interface" = yes; then
17233 # If archive_cmds runs LD, not CC, wlarc should be empty
17236 # Set some defaults for GNU ld with shared library support. These
17237 # are reset later if shared libraries are not supported. Putting them
17238 # here allows them to be overridden if necessary.
17239 runpath_var=LD_RUN_PATH
17240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17241 export_dynamic_flag_spec='${wl}--export-dynamic'
17242 # ancient GNU ld didn't support --whole-archive et. al.
17243 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17244 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17246 whole_archive_flag_spec=
17248 supports_anon_versioning=no
17249 case `$LD -v 2>&1` in
17250 *GNU\ gold*) supports_anon_versioning=yes ;;
17251 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17252 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17253 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17254 *\ 2.11.*) ;; # other 2.11 versions
17255 *) supports_anon_versioning=yes ;;
17258 # See if GNU ld supports shared libraries.
17261 # On AIX/PPC, the GNU linker is very broken
17262 if test "$host_cpu" != ia64; then
17266 *** Warning: the GNU linker, at least up to release 2.19, is reported
17267 *** to be unable to reliably create shared libraries on AIX.
17268 *** Therefore, libtool is disabling shared libraries support. If you
17269 *** really care for shared libraries, you may want to install binutils
17270 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17271 *** You will then need to restart the configuration process.
17280 # see comment about AmigaOS4 .so support
17281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17282 archive_expsym_cmds=''
17285 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)'
17286 hardcode_libdir_flag_spec
='-L$libdir'
17287 hardcode_minus_L
=yes
17293 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17294 allow_undefined_flag
=unsupported
17295 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17296 # support --undefined. This deserves some investigation. FIXME
17297 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17303 cygwin
* | mingw
* | pw32
* | cegcc
*)
17304 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17305 # as there is no search path for DLLs.
17306 hardcode_libdir_flag_spec
='-L$libdir'
17307 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17308 allow_undefined_flag
=unsupported
17309 always_export_symbols
=no
17310 enable_shared_with_static_runtimes
=yes
17311 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17313 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17314 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17315 # If the export-symbols file already is a .def file (1st line
17316 # is EXPORTS), use it as is; otherwise, prepend...
17317 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17318 cp $export_symbols $output_objdir/$soname.def;
17320 echo EXPORTS > $output_objdir/$soname.def;
17321 cat $export_symbols >> $output_objdir/$soname.def;
17323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17330 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17331 link_all_deplibs
=yes
17336 hardcode_shlibpath_var
=no
17337 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17338 export_dynamic_flag_spec
='${wl}-E'
17339 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17340 # Instead, shared libraries are loaded at an image base (0x10000000 by
17341 # default) and relocated if they conflict, which is a slow very memory
17342 # consuming and fragmenting process. To avoid this, we pick a random,
17343 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17344 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17345 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17346 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'
17349 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17351 if test "$host_os" = linux-dietlibc
; then
17352 case $cc_basename in
17353 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17356 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17357 && test "$tmp_diet" = no
17359 tmp_addflag
=' $pic_flag'
17360 tmp_sharedflag
='-shared'
17361 case $cc_basename,$host_cpu in
17362 pgcc
*) # Portland Group C compiler
17363 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'
17364 tmp_addflag
=' $pic_flag'
17366 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17367 # Portland Group f77 and f90 compilers
17368 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'
17369 tmp_addflag
=' $pic_flag -Mnomain' ;;
17370 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17371 tmp_addflag
=' -i_dynamic' ;;
17372 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17373 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17374 ifc
* | ifort
*) # Intel Fortran compiler
17375 tmp_addflag
=' -nofor_main' ;;
17376 lf95
*) # Lahey Fortran 8.1
17377 whole_archive_flag_spec
=
17378 tmp_sharedflag
='--shared' ;;
17379 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17380 tmp_sharedflag
='-qmkshrobj'
17382 nvcc
*) # Cuda Compiler Driver 2.2
17383 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'
17384 compiler_needs_object
=yes
17387 case `$CC -V 2>&1 | sed 5q` in
17388 *Sun\ C
*) # Sun C 5.9
17389 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'
17390 compiler_needs_object
=yes
17391 tmp_sharedflag
='-G' ;;
17392 *Sun\ F
*) # Sun Fortran 8.3
17393 tmp_sharedflag
='-G' ;;
17395 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17397 if test "x$supports_anon_versioning" = xyes
; then
17398 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17400 echo "local: *; };" >> $output_objdir/$libname.ver~
17401 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17404 case $cc_basename in
17405 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17406 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17407 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17408 hardcode_libdir_flag_spec
=
17409 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17410 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17411 if test "x$supports_anon_versioning" = xyes
; then
17412 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17413 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17414 echo "local: *; };" >> $output_objdir/$libname.ver~
17415 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17425 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17426 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17429 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17430 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17435 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17439 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17440 *** create shared libraries on Solaris systems. Therefore, libtool
17441 *** is disabling shared libraries support. We urge you to upgrade GNU
17442 *** binutils to release 2.9.1 or newer. Another option is to modify
17443 *** your PATH or compiler configuration so that the native linker is
17444 *** used, and then restart.
17447 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17448 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17449 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17455 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17456 case `$LD -v 2>&1` in
17457 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17461 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17462 *** reliably create shared libraries on SCO systems. Therefore, libtool
17463 *** is disabling shared libraries support. We urge you to upgrade GNU
17464 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17465 *** your PATH or compiler configuration so that the native linker is
17466 *** used, and then restart.
17471 # For security reasons, it is highly recommended that you always
17472 # use absolute paths for naming shared libraries, and exclude the
17473 # DT_RUNPATH tag from executables and libraries. But doing so
17474 # requires that you compile everything twice, which is a pain.
17475 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17476 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17477 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17478 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17487 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17489 hardcode_direct
=yes
17490 hardcode_shlibpath_var
=no
17494 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17495 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17496 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17503 if test "$ld_shlibs" = no
; then
17505 hardcode_libdir_flag_spec
=
17506 export_dynamic_flag_spec
=
17507 whole_archive_flag_spec
=
17510 # PORTME fill in a description of your system's linker (not GNU ld)
17513 allow_undefined_flag
=unsupported
17514 always_export_symbols
=yes
17515 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'
17516 # Note: this linker hardcodes the directories in LIBPATH if there
17517 # are no directories specified by -L.
17518 hardcode_minus_L
=yes
17519 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17520 # Neither direct hardcoding nor static linking is supported with a
17522 hardcode_direct
=unsupported
17527 if test "$host_cpu" = ia64
; then
17528 # On IA64, the linker does run time linking by default, so we don't
17529 # have to do anything special.
17530 aix_use_runtimelinking
=no
17531 exp_sym_flag
='-Bexport'
17534 # If we're using GNU nm, then we don't want the "-C" option.
17535 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17536 # Also, AIX nm treats weak defined symbols like other global
17537 # defined symbols, whereas GNU nm marks them as "W".
17538 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17539 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'
17541 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'
17543 aix_use_runtimelinking
=no
17545 # Test if we are trying to use run time linking or normal
17546 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17547 # need to do runtime linking.
17548 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17549 for ld_flag
in $LDFLAGS; do
17550 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17551 aix_use_runtimelinking
=yes
17558 exp_sym_flag
='-bexport'
17559 no_entry_flag
='-bnoentry'
17562 # When large executables or shared objects are built, AIX ld can
17563 # have problems creating the table of contents. If linking a library
17564 # or program results in "error TOC overflow" add -mminimal-toc to
17565 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17566 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17569 hardcode_direct
=yes
17570 hardcode_direct_absolute
=yes
17571 hardcode_libdir_separator
=':'
17572 link_all_deplibs
=yes
17573 file_list_spec
='${wl}-f,'
17575 if test "$GCC" = yes; then
17576 case $host_os in aix4.
[012]|aix4.
[012].
*)
17577 # We only want to do this on AIX 4.2 and lower, the check
17578 # below for broken collect2 doesn't work under 4.3+
17579 collect2name
=`${CC} -print-prog-name=collect2`
17580 if test -f "$collect2name" &&
17581 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17583 # We have reworked collect2
17586 # We have old collect2
17587 hardcode_direct
=unsupported
17588 # It fails to find uninstalled libraries when the uninstalled
17589 # path is not listed in the libpath. Setting hardcode_minus_L
17590 # to unsupported forces relinking
17591 hardcode_minus_L
=yes
17592 hardcode_libdir_flag_spec
='-L$libdir'
17593 hardcode_libdir_separator
=
17597 shared_flag
='-shared'
17598 if test "$aix_use_runtimelinking" = yes; then
17599 shared_flag
="$shared_flag "'${wl}-G'
17603 if test "$host_cpu" = ia64
; then
17604 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17605 # chokes on -Wl,-G. The following line is correct:
17608 if test "$aix_use_runtimelinking" = yes; then
17609 shared_flag
='${wl}-G'
17611 shared_flag
='${wl}-bM:SRE'
17616 export_dynamic_flag_spec
='${wl}-bexpall'
17617 # It seems that -bexpall does not export symbols beginning with
17618 # underscore (_), so it is better to generate a list of symbols to export.
17619 always_export_symbols
=yes
17620 if test "$aix_use_runtimelinking" = yes; then
17621 # Warning - without using the other runtime loading flags (-brtl),
17622 # -berok will link without error, but may produce a broken library.
17623 allow_undefined_flag
='-berok'
17624 # Determine the default libpath from the value encoded in an
17625 # empty executable.
17626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h. */
17637 if ac_fn_c_try_link
"$LINENO"; then :
17639 lt_aix_libpath_sed
='
17640 /Import File Strings/,/^$/ {
17646 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17647 # Check for a 64-bit object if we didn't find anything.
17648 if test -z "$aix_libpath"; then
17649 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17652 rm -f core conftest.err conftest.
$ac_objext \
17653 conftest
$ac_exeext conftest.
$ac_ext
17654 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17656 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17657 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"
17659 if test "$host_cpu" = ia64
; then
17660 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17661 allow_undefined_flag
="-z nodefs"
17662 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"
17664 # Determine the default libpath from the value encoded in an
17665 # empty executable.
17666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17677 if ac_fn_c_try_link
"$LINENO"; then :
17679 lt_aix_libpath_sed
='
17680 /Import File Strings/,/^$/ {
17686 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17687 # Check for a 64-bit object if we didn't find anything.
17688 if test -z "$aix_libpath"; then
17689 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17692 rm -f core conftest.err conftest.
$ac_objext \
17693 conftest
$ac_exeext conftest.
$ac_ext
17694 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17696 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17697 # Warning - without using the other run time loading flags,
17698 # -berok will link without error, but may produce a broken library.
17699 no_undefined_flag
=' ${wl}-bernotok'
17700 allow_undefined_flag
=' ${wl}-berok'
17701 if test "$with_gnu_ld" = yes; then
17702 # We only use this code for GNU lds that support --whole-archive.
17703 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17705 # Exported symbols can be pulled into shared objects from archives
17706 whole_archive_flag_spec
='$convenience'
17708 archive_cmds_need_lc
=yes
17709 # This is similar to how AIX traditionally builds its shared libraries.
17710 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'
17718 # see comment about AmigaOS4 .so support
17719 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17720 archive_expsym_cmds
=''
17723 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)'
17724 hardcode_libdir_flag_spec
='-L$libdir'
17725 hardcode_minus_L
=yes
17731 export_dynamic_flag_spec
=-rdynamic
17734 cygwin
* | mingw
* | pw32
* | cegcc
*)
17735 # When not using gcc, we currently assume that we are using
17736 # Microsoft Visual C++.
17737 # hardcode_libdir_flag_spec is actually meaningless, as there is
17738 # no search path for DLLs.
17739 hardcode_libdir_flag_spec
=' '
17740 allow_undefined_flag
=unsupported
17741 # Tell ltmain to make .lib files, not .a files.
17743 # Tell ltmain to make .dll files, not .so files.
17745 # FIXME: Setting linknames here is a bad hack.
17746 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17747 # The linker will automatically build a .lib file if we build a DLL.
17748 old_archive_from_new_cmds
='true'
17749 # FIXME: Should let the user specify the lib program.
17750 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17751 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17752 enable_shared_with_static_runtimes
=yes
17755 darwin
* | rhapsody
*)
17758 archive_cmds_need_lc
=no
17760 hardcode_automatic
=yes
17761 hardcode_shlibpath_var
=unsupported
17762 if test "$lt_cv_ld_force_load" = "yes"; then
17763 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\"`'
17765 whole_archive_flag_spec
=''
17767 link_all_deplibs
=yes
17768 allow_undefined_flag
="$_lt_dar_allow_undefined"
17769 case $cc_basename in
17770 ifort
*) _lt_dar_can_shared
=yes ;;
17771 *) _lt_dar_can_shared
=$GCC ;;
17773 if test "$_lt_dar_can_shared" = "yes"; then
17774 output_verbose_link_cmd
=func_echo_all
17775 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17776 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17777 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}"
17778 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}"
17787 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788 hardcode_libdir_flag_spec
='-L$libdir'
17789 hardcode_shlibpath_var
=no
17792 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17793 # support. Future versions do this automatically, but an explicit c++rt0.o
17794 # does not break anything, and helps significantly (at the cost of a little
17797 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17798 hardcode_libdir_flag_spec
='-R$libdir'
17799 hardcode_direct
=yes
17800 hardcode_shlibpath_var
=no
17803 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17805 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17806 hardcode_direct
=yes
17807 hardcode_minus_L
=yes
17808 hardcode_shlibpath_var
=no
17811 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17812 freebsd
* | dragonfly
*)
17813 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17814 hardcode_libdir_flag_spec
='-R$libdir'
17815 hardcode_direct
=yes
17816 hardcode_shlibpath_var
=no
17820 if test "$GCC" = yes; then
17821 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'
17823 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'
17825 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17826 hardcode_libdir_separator
=:
17827 hardcode_direct
=yes
17829 # hardcode_minus_L: Not really in the search PATH,
17830 # but as the default location of the library.
17831 hardcode_minus_L
=yes
17832 export_dynamic_flag_spec
='${wl}-E'
17836 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17837 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17839 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17841 if test "$with_gnu_ld" = no
; then
17842 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17843 hardcode_libdir_flag_spec_ld
='+b $libdir'
17844 hardcode_libdir_separator
=:
17845 hardcode_direct
=yes
17846 hardcode_direct_absolute
=yes
17847 export_dynamic_flag_spec
='${wl}-E'
17848 # hardcode_minus_L: Not really in the search PATH,
17849 # but as the default location of the library.
17850 hardcode_minus_L
=yes
17855 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17858 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17861 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17864 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17870 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17873 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17877 # Older versions of the 11.00 compiler do not understand -b yet
17878 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17880 $as_echo_n "checking if $CC understands -b... " >&6; }
17881 if ${lt_cv_prog_compiler__b+:} false
; then :
17882 $as_echo_n "(cached) " >&6
17884 lt_cv_prog_compiler__b
=no
17885 save_LDFLAGS
="$LDFLAGS"
17886 LDFLAGS
="$LDFLAGS -b"
17887 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17888 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17889 # The linker can only warn and ignore the option if not recognized
17890 # So say no if there are warnings
17891 if test -s conftest.err
; then
17892 # Append any errors to the config.log.
17893 cat conftest.err
1>&5
17894 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17895 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17896 if diff conftest.exp conftest.er2
>/dev
/null
; then
17897 lt_cv_prog_compiler__b
=yes
17900 lt_cv_prog_compiler__b
=yes
17904 LDFLAGS
="$save_LDFLAGS"
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17908 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17910 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17911 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17913 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17919 if test "$with_gnu_ld" = no
; then
17920 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17921 hardcode_libdir_separator
=:
17926 hardcode_shlibpath_var
=no
17929 hardcode_direct
=yes
17930 hardcode_direct_absolute
=yes
17931 export_dynamic_flag_spec
='${wl}-E'
17933 # hardcode_minus_L: Not really in the search PATH,
17934 # but as the default location of the library.
17935 hardcode_minus_L
=yes
17941 irix5
* | irix6
* | nonstopux
*)
17942 if test "$GCC" = yes; then
17943 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'
17944 # Try to use the -exported_symbol ld option, if it does not
17945 # work, assume that -exports_file does not work either and
17946 # implicitly export all symbols.
17947 save_LDFLAGS
="$LDFLAGS"
17948 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17953 if ac_fn_c_try_link
"$LINENO"; then :
17954 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'
17957 rm -f core conftest.err conftest.
$ac_objext \
17958 conftest
$ac_exeext conftest.
$ac_ext
17959 LDFLAGS
="$save_LDFLAGS"
17961 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'
17962 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'
17964 archive_cmds_need_lc
='no'
17965 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17966 hardcode_libdir_separator
=:
17968 link_all_deplibs
=yes
17972 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17973 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17975 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17977 hardcode_libdir_flag_spec
='-R$libdir'
17978 hardcode_direct
=yes
17979 hardcode_shlibpath_var
=no
17983 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17984 hardcode_direct
=yes
17985 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17986 hardcode_libdir_separator
=:
17987 hardcode_shlibpath_var
=no
17994 if test -f /usr
/libexec
/ld.so
; then
17995 hardcode_direct
=yes
17996 hardcode_shlibpath_var
=no
17997 hardcode_direct_absolute
=yes
17998 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17999 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18000 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18001 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18002 export_dynamic_flag_spec
='${wl}-E'
18005 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18006 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18007 hardcode_libdir_flag_spec
='-R$libdir'
18010 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18011 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18021 hardcode_libdir_flag_spec
='-L$libdir'
18022 hardcode_minus_L
=yes
18023 allow_undefined_flag
=unsupported
18024 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'
18025 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18029 if test "$GCC" = yes; then
18030 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18031 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'
18033 allow_undefined_flag
=' -expect_unresolved \*'
18034 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'
18036 archive_cmds_need_lc
='no'
18037 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18038 hardcode_libdir_separator
=:
18041 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18042 if test "$GCC" = yes; then
18043 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18044 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'
18045 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18047 allow_undefined_flag
=' -expect_unresolved \*'
18048 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'
18049 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~
18050 $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'
18052 # Both c and cxx compiler support -rpath directly
18053 hardcode_libdir_flag_spec
='-rpath $libdir'
18055 archive_cmds_need_lc
='no'
18056 hardcode_libdir_separator
=:
18060 no_undefined_flag
=' -z defs'
18061 if test "$GCC" = yes; then
18063 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18064 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18065 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18067 case `$CC -V 2>&1` in
18070 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18071 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18072 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18076 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18077 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18078 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18082 hardcode_libdir_flag_spec
='-R$libdir'
18083 hardcode_shlibpath_var
=no
18085 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18087 # The compiler driver will combine and reorder linker options,
18088 # but understands `-z linker_flag'. GCC discards it without `$wl',
18089 # but is careful enough not to reorder.
18090 # Supported since Solaris 2.6 (maybe 2.5.1?)
18091 if test "$GCC" = yes; then
18092 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18094 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18098 link_all_deplibs
=yes
18102 if test "x$host_vendor" = xsequent
; then
18103 # Use $CC to link under sequent, because it throws in some extra .o
18104 # files that make .init and .fini sections work.
18105 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18107 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18109 hardcode_libdir_flag_spec
='-L$libdir'
18110 hardcode_direct
=yes
18111 hardcode_minus_L
=yes
18112 hardcode_shlibpath_var
=no
18116 case $host_vendor in
18118 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18119 hardcode_direct
=yes # is this really true???
18122 ## LD is ld it makes a PLAMLIB
18123 ## CC just makes a GrossModule.
18124 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18125 reload_cmds
='$CC -r -o $output$reload_objs'
18129 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18130 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18133 runpath_var
='LD_RUN_PATH'
18134 hardcode_shlibpath_var
=no
18138 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18139 hardcode_shlibpath_var
=no
18140 export_dynamic_flag_spec
='-Bexport'
18144 if test -d /usr
/nec
; then
18145 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18146 hardcode_shlibpath_var
=no
18147 runpath_var
=LD_RUN_PATH
18148 hardcode_runpath_var
=yes
18153 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18154 no_undefined_flag
='${wl}-z,text'
18155 archive_cmds_need_lc
=no
18156 hardcode_shlibpath_var
=no
18157 runpath_var
='LD_RUN_PATH'
18159 if test "$GCC" = yes; then
18160 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18161 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18163 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18164 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18168 sysv5
* | sco3.2v5
* | sco5v6
*)
18169 # Note: We can NOT use -z defs as we might desire, because we do not
18170 # link with -lc, and that would cause any symbols used from libc to
18171 # always be unresolved, which means just about no library would
18172 # ever link correctly. If we're not using GNU ld we use -z text
18173 # though, which does catch some bad symbols but isn't as heavy-handed
18175 no_undefined_flag
='${wl}-z,text'
18176 allow_undefined_flag
='${wl}-z,nodefs'
18177 archive_cmds_need_lc
=no
18178 hardcode_shlibpath_var
=no
18179 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18180 hardcode_libdir_separator
=':'
18181 link_all_deplibs
=yes
18182 export_dynamic_flag_spec
='${wl}-Bexport'
18183 runpath_var
='LD_RUN_PATH'
18185 if test "$GCC" = yes; then
18186 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18187 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18189 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18190 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18195 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196 hardcode_libdir_flag_spec
='-L$libdir'
18197 hardcode_shlibpath_var
=no
18205 if test x
$host_vendor = xsni
; then
18207 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18208 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18215 $as_echo "$ld_shlibs" >&6; }
18216 test "$ld_shlibs" = no
&& can_build_shared
=no
18218 with_gnu_ld
=$with_gnu_ld
18235 # Do we need to explicitly link libc?
18237 case "x$archive_cmds_need_lc" in
18239 # Assume -lc should be added
18240 archive_cmds_need_lc
=yes
18242 if test "$enable_shared" = yes && test "$GCC" = yes; then
18243 case $archive_cmds in
18245 # FIXME: we may have to deal with multi-command sequences.
18248 # Test whether the compiler implicitly links with -lc since on some
18249 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18250 # to ld, don't add -lc before -lgcc.
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18252 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18253 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18254 $as_echo_n "(cached) " >&6
18257 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18260 (eval $ac_compile) 2>&5
18262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18263 test $ac_status = 0; } 2>conftest.err
; then
18266 libobjs
=conftest.
$ac_objext
18268 wl
=$lt_prog_compiler_wl
18269 pic_flag
=$lt_prog_compiler_pic
18275 lt_save_allow_undefined_flag
=$allow_undefined_flag
18276 allow_undefined_flag
=
18277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18278 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18281 test $ac_status = 0; }
18283 lt_cv_archive_cmds_need_lc
=no
18285 lt_cv_archive_cmds_need_lc
=yes
18287 allow_undefined_flag
=$lt_save_allow_undefined_flag
18289 cat conftest.err
1>&5
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18295 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18296 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18460 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18462 if test "$GCC" = yes; then
18464 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18465 *) lt_awk_arg
="/^libraries:/" ;;
18468 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18469 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18471 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18472 case $lt_search_path_spec in
18474 # if the path contains ";" then we assume it to be the separator
18475 # otherwise default to the standard path separator (i.e. ":") - it is
18476 # assumed that no part of a normal pathname contains ";" but that should
18477 # okay in the real world where ";" in dirpaths is itself problematic.
18478 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18481 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18484 # Ok, now we have the path, separated by spaces, we can step through it
18485 # and add multilib dir if necessary.
18486 lt_tmp_lt_search_path_spec
=
18487 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18488 for lt_sys_path
in $lt_search_path_spec; do
18489 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18490 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18492 test -d "$lt_sys_path" && \
18493 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18496 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18497 BEGIN {RS=" "; FS="/|\n";} {
18500 for (lt_i = NF; lt_i > 0; lt_i--) {
18501 if ($lt_i != "" && $lt_i != ".") {
18502 if ($lt_i == "..") {
18505 if (lt_count == 0) {
18506 lt_foo="/" $lt_i lt_foo;
18513 if (lt_foo != "") { lt_freq[lt_foo]++; }
18514 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18516 # AWK program above erroneously prepends '/' to C:/dos/paths
18519 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18520 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18522 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18524 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18526 library_names_spec
=
18527 libname_spec
='lib$name'
18531 postuninstall_cmds
=
18535 shlibpath_overrides_runpath
=unknown
18537 dynamic_linker
="$host_os ld.so"
18538 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18539 need_lib_prefix
=unknown
18540 hardcode_into_libs
=no
18542 # when you set need_version to no, make sure it does not cause -set_version
18543 # flags to be left without arguments
18544 need_version
=unknown
18549 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18550 shlibpath_var
=LIBPATH
18552 # AIX 3 has no versioning support, so we append a major version to the name.
18553 soname_spec
='${libname}${release}${shared_ext}$major'
18560 hardcode_into_libs
=yes
18561 if test "$host_cpu" = ia64
; then
18562 # AIX 5 supports IA64
18563 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18564 shlibpath_var
=LD_LIBRARY_PATH
18566 # With GCC up to 2.95.x, collect2 would create an import file
18567 # for dependence libraries. The import file would start with
18568 # the line `#! .'. This would cause the generated library to
18569 # depend on `.', always an invalid library. This was fixed in
18570 # development snapshots of GCC prior to 3.0.
18572 aix4 | aix4.
[01] | aix4.
[01].
*)
18573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18575 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18578 can_build_shared
=no
18582 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18583 # soname into executable. Probably we can add versioning support to
18584 # collect2, so additional links can be useful in future.
18585 if test "$aix_use_runtimelinking" = yes; then
18586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18587 # instead of lib<name>.a to let people know that these are not
18588 # typical AIX shared libraries.
18589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18591 # We preserve .a as extension for shared libraries through AIX4.2
18592 # and later when we are not doing run time linking.
18593 library_names_spec
='${libname}${release}.a $libname.a'
18594 soname_spec
='${libname}${release}${shared_ext}$major'
18596 shlibpath_var
=LIBPATH
18603 # Since July 2007 AmigaOS4 officially supports .so libraries.
18604 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18608 library_names_spec
='$libname.ixlibrary $libname.a'
18609 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18610 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'
18616 library_names_spec
='${libname}${shared_ext}'
18617 dynamic_linker
="$host_os ld.so"
18618 shlibpath_var
=LIBRARY_PATH
18624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 soname_spec
='${libname}${release}${shared_ext}$major'
18626 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18627 shlibpath_var
=LD_LIBRARY_PATH
18628 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18629 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18630 # the default ld.so.conf also contains /usr/contrib/lib and
18631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18632 # libtool to hard-code these into programs
18635 cygwin
* | mingw
* | pw32
* | cegcc
*)
18636 version_type
=windows
18641 case $GCC,$host_os in
18642 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18643 library_names_spec
='$libname.dll.a'
18644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18645 postinstall_cmds
='base_file=`basename \${file}`~
18646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18647 dldir=$destdir/`dirname \$dlpath`~
18648 test -d \$dldir || mkdir -p \$dldir~
18649 $install_prog $dir/$dlname \$dldir/$dlname~
18650 chmod a+x \$dldir/$dlname~
18651 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18652 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18654 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18655 dlpath=$dir/\$dldll~
18657 shlibpath_overrides_runpath
=yes
18661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18662 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18664 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18667 # MinGW DLLs use traditional 'lib' prefix
18668 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18671 # pw32 DLLs use 'pw' prefix rather than 'lib'
18672 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18678 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18681 dynamic_linker
='Win32 ld.exe'
18682 # FIXME: first we should search . and the directory the executable is in
18686 darwin
* | rhapsody
*)
18687 dynamic_linker
="$host_os dyld"
18688 version_type
=darwin
18691 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18692 soname_spec
='${libname}${release}${major}$shared_ext'
18693 shlibpath_overrides_runpath
=yes
18694 shlibpath_var
=DYLD_LIBRARY_PATH
18695 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18697 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18698 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18705 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18706 soname_spec
='${libname}${release}${shared_ext}$major'
18707 shlibpath_var
=LD_LIBRARY_PATH
18710 freebsd
* | dragonfly
*)
18711 # DragonFly does not have aout. When/if they implement a new
18712 # versioning mechanism, adjust this.
18713 if test -x /usr
/bin
/objformat
; then
18714 objformat
=`/usr/bin/objformat`
18717 freebsd
[23].
*) objformat
=aout
;;
18718 *) objformat
=elf
;;
18721 version_type
=freebsd-
$objformat
18722 case $version_type in
18724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18729 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18733 shlibpath_var
=LD_LIBRARY_PATH
18736 shlibpath_overrides_runpath
=yes
18738 freebsd3.
[01]* | freebsdelf3.
[01]*)
18739 shlibpath_overrides_runpath
=yes
18740 hardcode_into_libs
=yes
18742 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18743 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18744 shlibpath_overrides_runpath
=no
18745 hardcode_into_libs
=yes
18747 *) # from 4.6 on, and DragonFly
18748 shlibpath_overrides_runpath
=yes
18749 hardcode_into_libs
=yes
18758 dynamic_linker
="$host_os runtime_loader"
18759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18760 soname_spec
='${libname}${release}${shared_ext}$major'
18761 shlibpath_var
=LIBRARY_PATH
18762 shlibpath_overrides_runpath
=yes
18763 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18764 hardcode_into_libs
=yes
18767 hpux9
* | hpux10
* | hpux11
*)
18768 # Give a soname corresponding to the major version so that dld.sl refuses to
18769 # link against other versions.
18776 hardcode_into_libs
=yes
18777 dynamic_linker
="$host_os dld.so"
18778 shlibpath_var
=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781 soname_spec
='${libname}${release}${shared_ext}$major'
18782 if test "X$HPUX_IA64_MODE" = X32
; then
18783 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18785 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18787 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18791 hardcode_into_libs
=yes
18792 dynamic_linker
="$host_os dld.sl"
18793 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18794 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18796 soname_spec
='${libname}${release}${shared_ext}$major'
18797 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18798 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18802 dynamic_linker
="$host_os dld.sl"
18803 shlibpath_var
=SHLIB_PATH
18804 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18805 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec
='${libname}${release}${shared_ext}$major'
18809 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18810 postinstall_cmds
='chmod 555 $lib'
18811 # or fails outright, so override atomically:
18812 install_override_mode
=555
18819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18820 soname_spec
='${libname}${release}${shared_ext}$major'
18821 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18822 shlibpath_var
=LD_LIBRARY_PATH
18823 shlibpath_overrides_runpath
=no
18824 hardcode_into_libs
=yes
18827 irix5
* | irix6
* | nonstopux
*)
18829 nonstopux
*) version_type
=nonstopux
;;
18831 if test "$lt_cv_prog_gnu_ld" = yes; then
18839 soname_spec
='${libname}${release}${shared_ext}$major'
18840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18842 irix5
* | nonstopux
*)
18843 libsuff
= shlibsuff
=
18846 case $LD in # libtool.m4 will add one of these switches to LD
18847 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18848 libsuff
= shlibsuff
= libmagic
=32-bit;;
18849 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18850 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18851 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18852 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18853 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18857 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18858 shlibpath_overrides_runpath
=no
18859 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18860 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18861 hardcode_into_libs
=yes
18864 # No shared lib support for Linux oldld, aout, or coff.
18865 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18869 # This must be Linux ELF.
18871 # uclinux* changes (here and below) have been submitted to the libtool
18872 # project, but have not yet been accepted: they are GCC-local changes
18873 # for the time being. (See
18874 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18875 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
18879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18880 soname_spec
='${libname}${release}${shared_ext}$major'
18881 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18882 shlibpath_var
=LD_LIBRARY_PATH
18883 shlibpath_overrides_runpath
=no
18885 # Some binutils ld are patched to set DT_RUNPATH
18886 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18887 $as_echo_n "(cached) " >&6
18889 lt_cv_shlibpath_overrides_runpath
=no
18890 save_LDFLAGS
=$LDFLAGS
18891 save_libdir
=$libdir
18892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h. */
18905 if ac_fn_c_try_link
"$LINENO"; then :
18906 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18907 lt_cv_shlibpath_overrides_runpath
=yes
18910 rm -f core conftest.err conftest.
$ac_objext \
18911 conftest
$ac_exeext conftest.
$ac_ext
18912 LDFLAGS
=$save_LDFLAGS
18913 libdir
=$save_libdir
18917 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18919 # This implies no fast_install, which is unacceptable.
18920 # Some rework will be needed to allow for fast_install
18921 # before this can be enabled.
18922 hardcode_into_libs
=yes
18924 # Append ld.so.conf contents to the search path
18925 if test -f /etc
/ld.so.conf
; then
18926 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' ' '`
18927 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18930 # We used to test for /lib/ld.so.1 and disable shared libraries on
18931 # powerpc, because MkLinux only supported shared libraries with the
18932 # GNU dynamic linker. Since this was broken with cross compilers,
18933 # most powerpc-linux boxes support dynamic linking these days and
18934 # people can always --disable-shared, the test was removed, and we
18935 # assume the GNU/Linux dynamic linker is in use.
18936 dynamic_linker
='GNU/Linux ld.so'
18943 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18945 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18946 dynamic_linker
='NetBSD (a.out) ld.so'
18948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18949 soname_spec
='${libname}${release}${shared_ext}$major'
18950 dynamic_linker
='NetBSD ld.elf_so'
18952 shlibpath_var
=LD_LIBRARY_PATH
18953 shlibpath_overrides_runpath
=yes
18954 hardcode_into_libs
=yes
18959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18960 shlibpath_var
=LD_LIBRARY_PATH
18961 shlibpath_overrides_runpath
=yes
18968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969 soname_spec
='${libname}${release}${shared_ext}$major'
18970 shlibpath_var
=LD_LIBRARY_PATH
18971 shlibpath_overrides_runpath
=no
18972 hardcode_into_libs
=yes
18973 dynamic_linker
='ldqnx.so'
18978 sys_lib_dlsearch_path_spec
="/usr/lib"
18980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18982 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18983 *) need_version
=no
;;
18985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18986 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18987 shlibpath_var
=LD_LIBRARY_PATH
18988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18990 openbsd2.
[89] | openbsd2.
[89].
*)
18991 shlibpath_overrides_runpath
=no
18994 shlibpath_overrides_runpath
=yes
18998 shlibpath_overrides_runpath
=yes
19003 libname_spec
='$name'
19006 library_names_spec
='$libname${shared_ext} $libname.a'
19007 dynamic_linker
='OS/2 ld.exe'
19008 shlibpath_var
=LIBPATH
19011 osf3
* | osf4
* | osf5
*)
19015 soname_spec
='${libname}${release}${shared_ext}$major'
19016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19017 shlibpath_var
=LD_LIBRARY_PATH
19018 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19019 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19031 soname_spec
='${libname}${release}${shared_ext}$major'
19032 shlibpath_var
=LD_LIBRARY_PATH
19033 shlibpath_overrides_runpath
=yes
19034 hardcode_into_libs
=yes
19035 # ldd complains unless libraries are executable
19036 postinstall_cmds
='chmod +x $lib'
19041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19042 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19043 shlibpath_var
=LD_LIBRARY_PATH
19044 shlibpath_overrides_runpath
=yes
19045 if test "$with_gnu_ld" = yes; then
19053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19054 soname_spec
='${libname}${release}${shared_ext}$major'
19055 shlibpath_var
=LD_LIBRARY_PATH
19056 case $host_vendor in
19058 shlibpath_overrides_runpath
=no
19060 runpath_var
=LD_RUN_PATH
19068 shlibpath_overrides_runpath
=no
19069 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19075 if test -d /usr
/nec
;then
19077 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19078 soname_spec
='$libname${shared_ext}.$major'
19079 shlibpath_var
=LD_LIBRARY_PATH
19083 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19084 version_type
=freebsd-elf
19087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19088 soname_spec
='${libname}${release}${shared_ext}$major'
19089 shlibpath_var
=LD_LIBRARY_PATH
19090 shlibpath_overrides_runpath
=yes
19091 hardcode_into_libs
=yes
19092 if test "$with_gnu_ld" = yes; then
19093 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19095 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19098 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19102 sys_lib_dlsearch_path_spec
='/usr/lib'
19106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111 shlibpath_var
=LD_LIBRARY_PATH
19112 shlibpath_overrides_runpath
=no
19113 hardcode_into_libs
=yes
19118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19119 soname_spec
='${libname}${release}${shared_ext}$major'
19120 shlibpath_var
=LD_LIBRARY_PATH
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19128 $as_echo "$dynamic_linker" >&6; }
19129 test "$dynamic_linker" = no
&& can_build_shared
=no
19131 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19132 if test "$GCC" = yes; then
19133 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19137 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19140 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19237 if test -n "$hardcode_libdir_flag_spec" ||
19238 test -n "$runpath_var" ||
19239 test "X$hardcode_automatic" = "Xyes" ; then
19241 # We can hardcode non-existent directories.
19242 if test "$hardcode_direct" != no
&&
19243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19244 # have to relink, otherwise we might link with an installed library
19245 # when we should be linking with a yet-to-be-installed one
19246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19247 test "$hardcode_minus_L" != no
; then
19248 # Linking always hardcodes the temporary library directory.
19249 hardcode_action
=relink
19251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19252 hardcode_action
=immediate
19255 # We cannot hardcode anything, or else we can only hardcode existing
19257 hardcode_action
=unsupported
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19260 $as_echo "$hardcode_action" >&6; }
19262 if test "$hardcode_action" = relink ||
19263 test "$inherit_rpath" = yes; then
19264 # Fast installation is not supported
19265 enable_fast_install
=no
19266 elif test "$shlibpath_overrides_runpath" = yes ||
19267 test "$enable_shared" = no
; then
19268 # Fast installation is not necessary
19269 enable_fast_install
=needless
19277 if test "x$enable_dlopen" != xyes
; then
19278 enable_dlopen
=unknown
19279 enable_dlopen_self
=unknown
19280 enable_dlopen_self_static
=unknown
19287 lt_cv_dlopen
="load_add_on"
19289 lt_cv_dlopen_self
=yes
19292 mingw
* | pw32
* | cegcc
*)
19293 lt_cv_dlopen
="LoadLibrary"
19298 lt_cv_dlopen
="dlopen"
19303 # if libdl is installed we need to link against it
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19306 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19307 $as_echo_n "(cached) " >&6
19309 ac_check_lib_save_LIBS
=$LIBS
19311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19314 /* Override any GCC internal prototype to avoid an error.
19315 Use char because int might match the return type of a GCC
19316 builtin and then its argument prototype would still apply. */
19329 if ac_fn_c_try_link
"$LINENO"; then :
19330 ac_cv_lib_dl_dlopen
=yes
19332 ac_cv_lib_dl_dlopen
=no
19334 rm -f core conftest.err conftest.
$ac_objext \
19335 conftest
$ac_exeext conftest.
$ac_ext
19336 LIBS
=$ac_check_lib_save_LIBS
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19340 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19341 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19344 lt_cv_dlopen
="dyld"
19346 lt_cv_dlopen_self
=yes
19353 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19354 if test "x$ac_cv_func_shl_load" = xyes
; then :
19355 lt_cv_dlopen
="shl_load"
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19358 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19359 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19360 $as_echo_n "(cached) " >&6
19362 ac_check_lib_save_LIBS
=$LIBS
19364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19367 /* Override any GCC internal prototype to avoid an error.
19368 Use char because int might match the return type of a GCC
19369 builtin and then its argument prototype would still apply. */
19377 return shl_load ();
19382 if ac_fn_c_try_link
"$LINENO"; then :
19383 ac_cv_lib_dld_shl_load
=yes
19385 ac_cv_lib_dld_shl_load
=no
19387 rm -f core conftest.err conftest.
$ac_objext \
19388 conftest
$ac_exeext conftest.
$ac_ext
19389 LIBS
=$ac_check_lib_save_LIBS
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19392 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19393 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19394 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19396 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19397 if test "x$ac_cv_func_dlopen" = xyes
; then :
19398 lt_cv_dlopen
="dlopen"
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19402 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19403 $as_echo_n "(cached) " >&6
19405 ac_check_lib_save_LIBS
=$LIBS
19407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19410 /* Override any GCC internal prototype to avoid an error.
19411 Use char because int might match the return type of a GCC
19412 builtin and then its argument prototype would still apply. */
19425 if ac_fn_c_try_link
"$LINENO"; then :
19426 ac_cv_lib_dl_dlopen
=yes
19428 ac_cv_lib_dl_dlopen
=no
19430 rm -f core conftest.err conftest.
$ac_objext \
19431 conftest
$ac_exeext conftest.
$ac_ext
19432 LIBS
=$ac_check_lib_save_LIBS
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19436 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19437 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19440 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19441 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19442 $as_echo_n "(cached) " >&6
19444 ac_check_lib_save_LIBS
=$LIBS
19445 LIBS
="-lsvld $LIBS"
19446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h. */
19449 /* Override any GCC internal prototype to avoid an error.
19450 Use char because int might match the return type of a GCC
19451 builtin and then its argument prototype would still apply. */
19464 if ac_fn_c_try_link
"$LINENO"; then :
19465 ac_cv_lib_svld_dlopen
=yes
19467 ac_cv_lib_svld_dlopen
=no
19469 rm -f core conftest.err conftest.
$ac_objext \
19470 conftest
$ac_exeext conftest.
$ac_ext
19471 LIBS
=$ac_check_lib_save_LIBS
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19475 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19476 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19480 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19481 $as_echo_n "(cached) " >&6
19483 ac_check_lib_save_LIBS
=$LIBS
19485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h. */
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply. */
19498 return dld_link ();
19503 if ac_fn_c_try_link
"$LINENO"; then :
19504 ac_cv_lib_dld_dld_link
=yes
19506 ac_cv_lib_dld_dld_link
=no
19508 rm -f core conftest.err conftest.
$ac_objext \
19509 conftest
$ac_exeext conftest.
$ac_ext
19510 LIBS
=$ac_check_lib_save_LIBS
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19513 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19514 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19515 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19536 if test "x$lt_cv_dlopen" != xno
; then
19542 case $lt_cv_dlopen in
19544 save_CPPFLAGS
="$CPPFLAGS"
19545 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19547 save_LDFLAGS
="$LDFLAGS"
19548 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19551 LIBS
="$lt_cv_dlopen_libs $LIBS"
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19554 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19555 if ${lt_cv_dlopen_self+:} false
; then :
19556 $as_echo_n "(cached) " >&6
19558 if test "$cross_compiling" = yes; then :
19559 lt_cv_dlopen_self
=cross
19561 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19562 lt_status
=$lt_dlunknown
19563 cat > conftest.
$ac_ext <<_LT_EOF
19564 #line 19564 "configure"
19565 #include "confdefs.h"
19574 # define LT_DLGLOBAL RTLD_GLOBAL
19577 # define LT_DLGLOBAL DL_GLOBAL
19579 # define LT_DLGLOBAL 0
19583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19584 find out it does not work in some platform. */
19585 #ifndef LT_DLLAZY_OR_NOW
19587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19590 # define LT_DLLAZY_OR_NOW DL_LAZY
19593 # define LT_DLLAZY_OR_NOW RTLD_NOW
19596 # define LT_DLLAZY_OR_NOW DL_NOW
19598 # define LT_DLLAZY_OR_NOW 0
19605 /* When -fvisbility=hidden is used, assume the code has been annotated
19606 correspondingly for the symbols needed. */
19607 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19608 void fnord () __attribute__((visibility("default")));
19611 void fnord () { int i=42; }
19614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19615 int status = $lt_dlunknown;
19619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19623 else puts (dlerror ());
19625 /* dlclose (self); */
19633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19634 (eval $ac_link) 2>&5
19636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19637 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19638 (.
/conftest
; exit; ) >&5 2>/dev
/null
19640 case x
$lt_status in
19641 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19642 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19643 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19646 # compilation failed
19647 lt_cv_dlopen_self
=no
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19655 $as_echo "$lt_cv_dlopen_self" >&6; }
19657 if test "x$lt_cv_dlopen_self" = xyes
; then
19658 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19660 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19661 if ${lt_cv_dlopen_self_static+:} false
; then :
19662 $as_echo_n "(cached) " >&6
19664 if test "$cross_compiling" = yes; then :
19665 lt_cv_dlopen_self_static
=cross
19667 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19668 lt_status
=$lt_dlunknown
19669 cat > conftest.
$ac_ext <<_LT_EOF
19670 #line 19670 "configure"
19671 #include "confdefs.h"
19680 # define LT_DLGLOBAL RTLD_GLOBAL
19683 # define LT_DLGLOBAL DL_GLOBAL
19685 # define LT_DLGLOBAL 0
19689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19690 find out it does not work in some platform. */
19691 #ifndef LT_DLLAZY_OR_NOW
19693 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19696 # define LT_DLLAZY_OR_NOW DL_LAZY
19699 # define LT_DLLAZY_OR_NOW RTLD_NOW
19702 # define LT_DLLAZY_OR_NOW DL_NOW
19704 # define LT_DLLAZY_OR_NOW 0
19711 /* When -fvisbility=hidden is used, assume the code has been annotated
19712 correspondingly for the symbols needed. */
19713 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19714 void fnord () __attribute__((visibility("default")));
19717 void fnord () { int i=42; }
19720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19721 int status = $lt_dlunknown;
19725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19728 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19729 else puts (dlerror ());
19731 /* dlclose (self); */
19739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19740 (eval $ac_link) 2>&5
19742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19743 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19744 (.
/conftest
; exit; ) >&5 2>/dev
/null
19746 case x
$lt_status in
19747 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19748 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19749 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19752 # compilation failed
19753 lt_cv_dlopen_self_static
=no
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19761 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19764 CPPFLAGS
="$save_CPPFLAGS"
19765 LDFLAGS
="$save_LDFLAGS"
19770 case $lt_cv_dlopen_self in
19771 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19772 *) enable_dlopen_self
=unknown
;;
19775 case $lt_cv_dlopen_self_static in
19776 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19777 *) enable_dlopen_self_static
=unknown
;;
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19800 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19801 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19802 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19803 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19805 $as_echo "yes" >&6; }
19807 # FIXME - insert some real tests, host_os isn't really good enough
19810 if test -n "$STRIP" ; then
19811 striplib
="$STRIP -x"
19812 old_striplib
="$STRIP -S"
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814 $as_echo "yes" >&6; }
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19817 $as_echo "no" >&6; }
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19822 $as_echo "no" >&6; }
19838 # Report which library types will actually be built
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19840 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19842 $as_echo "$can_build_shared" >&6; }
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19845 $as_echo_n "checking whether to build shared libraries... " >&6; }
19846 test "$can_build_shared" = "no" && enable_shared
=no
19848 # On AIX, shared libraries and static libraries use the same namespace, and
19849 # are all built from PIC.
19852 test "$enable_shared" = yes && enable_static
=no
19853 if test -n "$RANLIB"; then
19854 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19855 postinstall_cmds
='$RANLIB $lib'
19860 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19861 test "$enable_shared" = yes && enable_static
=no
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19866 $as_echo "$enable_shared" >&6; }
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19869 $as_echo_n "checking whether to build static libraries... " >&6; }
19870 # Make sure either enable_shared or enable_static is yes.
19871 test "$enable_shared" = yes || enable_static
=yes
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19873 $as_echo "$enable_static" >&6; }
19880 ac_cpp
='$CXXCPP $CPPFLAGS'
19881 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19882 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19883 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19887 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19888 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19889 (test "X$CXX" != "Xg++"))) ; then
19891 ac_cpp
='$CXXCPP $CPPFLAGS'
19892 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19893 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19896 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19897 if test -z "$CXXCPP"; then
19898 if ${ac_cv_prog_CXXCPP+:} false
; then :
19899 $as_echo_n "(cached) " >&6
19901 # Double quotes because CXXCPP needs to be expanded
19902 for CXXCPP
in "$CXX -E" "/lib/cpp"
19904 ac_preproc_ok
=false
19905 for ac_cxx_preproc_warn_flag
in '' yes
19907 # Use a header file that comes with gcc, so configuring glibc
19908 # with a fresh cross-compiler works.
19909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19910 # <limits.h> exists even on freestanding compilers.
19911 # On the NeXT, cc -E runs the code through the compiler's parser,
19912 # not just through cpp. "Syntax error" is here to catch this case.
19913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h. */
19916 # include <limits.h>
19918 # include <assert.h>
19922 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19925 # Broken: fails on valid input.
19928 rm -f conftest.err conftest.i conftest.
$ac_ext
19930 # OK, works on sane cases. Now check whether nonexistent headers
19931 # can be detected and how.
19932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19933 /* end confdefs.h. */
19934 #include <ac_nonexistent.h>
19936 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19937 # Broken: success on invalid input.
19940 # Passes both tests.
19944 rm -f conftest.err conftest.i conftest.
$ac_ext
19947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19948 rm -f conftest.i conftest.err conftest.
$ac_ext
19949 if $ac_preproc_ok; then :
19954 ac_cv_prog_CXXCPP
=$CXXCPP
19957 CXXCPP
=$ac_cv_prog_CXXCPP
19959 ac_cv_prog_CXXCPP
=$CXXCPP
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19962 $as_echo "$CXXCPP" >&6; }
19963 ac_preproc_ok
=false
19964 for ac_cxx_preproc_warn_flag
in '' yes
19966 # Use a header file that comes with gcc, so configuring glibc
19967 # with a fresh cross-compiler works.
19968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19969 # <limits.h> exists even on freestanding compilers.
19970 # On the NeXT, cc -E runs the code through the compiler's parser,
19971 # not just through cpp. "Syntax error" is here to catch this case.
19972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h. */
19975 # include <limits.h>
19977 # include <assert.h>
19981 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19984 # Broken: fails on valid input.
19987 rm -f conftest.err conftest.i conftest.
$ac_ext
19989 # OK, works on sane cases. Now check whether nonexistent headers
19990 # can be detected and how.
19991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19992 /* end confdefs.h. */
19993 #include <ac_nonexistent.h>
19995 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19996 # Broken: success on invalid input.
19999 # Passes both tests.
20003 rm -f conftest.err conftest.i conftest.
$ac_ext
20006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20007 rm -f conftest.i conftest.err conftest.
$ac_ext
20008 if $ac_preproc_ok; then :
20011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20013 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20014 See \`config.log' for more details" "$LINENO" 5; }
20018 ac_cpp
='$CXXCPP $CPPFLAGS'
20019 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20024 _lt_caught_CXX_error
=yes
20028 ac_cpp
='$CXXCPP $CPPFLAGS'
20029 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20030 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20031 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20033 archive_cmds_need_lc_CXX
=no
20034 allow_undefined_flag_CXX
=
20035 always_export_symbols_CXX
=no
20036 archive_expsym_cmds_CXX
=
20037 compiler_needs_object_CXX
=no
20038 export_dynamic_flag_spec_CXX
=
20039 hardcode_direct_CXX
=no
20040 hardcode_direct_absolute_CXX
=no
20041 hardcode_libdir_flag_spec_CXX
=
20042 hardcode_libdir_flag_spec_ld_CXX
=
20043 hardcode_libdir_separator_CXX
=
20044 hardcode_minus_L_CXX
=no
20045 hardcode_shlibpath_var_CXX
=unsupported
20046 hardcode_automatic_CXX
=no
20047 inherit_rpath_CXX
=no
20049 module_expsym_cmds_CXX
=
20050 link_all_deplibs_CXX
=unknown
20051 old_archive_cmds_CXX
=$old_archive_cmds
20052 reload_flag_CXX
=$reload_flag
20053 reload_cmds_CXX
=$reload_cmds
20054 no_undefined_flag_CXX
=
20055 whole_archive_flag_spec_CXX
=
20056 enable_shared_with_static_runtimes_CXX
=no
20058 # Source file extension for C++ test sources.
20061 # Object file extension for compiled C++ test sources.
20065 # No sense in running all these tests if we already determined that
20066 # the CXX compiler isn't working. Some variables (like enable_shared)
20067 # are currently assumed to apply to all compilers on this platform,
20068 # and will be corrupted by setting them based on a non-working compiler.
20069 if test "$_lt_caught_CXX_error" != yes; then
20070 # Code to be used in simple compile tests
20071 lt_simple_compile_test_code
="int some_variable = 0;"
20073 # Code to be used in simple link tests
20074 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20083 # If no C compiler was specified, use CC.
20086 # If no C compiler flags were specified, use CFLAGS.
20087 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20089 # Allow CC to be a program name with arguments.
20093 # save warnings/boilerplate of simple test code
20094 ac_outfile
=conftest.
$ac_objext
20095 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20096 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20097 _lt_compiler_boilerplate
=`cat conftest.err`
20100 ac_outfile
=conftest.
$ac_objext
20101 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20102 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20103 _lt_linker_boilerplate
=`cat conftest.err`
20107 # Allow CC to be a program name with arguments.
20112 lt_save_with_gnu_ld
=$with_gnu_ld
20113 lt_save_path_LD
=$lt_cv_path_LD
20114 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20115 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20117 $as_unset lt_cv_prog_gnu_ld
20119 if test -n "${lt_cv_path_LDCXX+set}"; then
20120 lt_cv_path_LD
=$lt_cv_path_LDCXX
20122 $as_unset lt_cv_path_LD
20124 test -z "${LDCXX+set}" || LD
=$LDCXX
20128 for cc_temp
in $compiler""; do
20130 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20131 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20136 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20139 if test -n "$compiler"; then
20140 # We don't want -fno-exception when compiling C++ code, so set the
20141 # no_builtin_flag separately
20142 if test "$GXX" = yes; then
20143 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20145 lt_prog_compiler_no_builtin_flag_CXX
=
20148 if test "$GXX" = yes; then
20149 # Set up default GNU C++ configuration
20153 # Check whether --with-gnu-ld was given.
20154 if test "${with_gnu_ld+set}" = set; then :
20155 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20161 if test "$GCC" = yes; then
20162 # Check if gcc -print-prog-name=ld gives a path.
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20164 $as_echo_n "checking for ld used by $CC... " >&6; }
20167 # gcc leaves a trailing carriage return which upsets mingw
20168 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20170 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20173 # Accept absolute paths.
20175 re_direlt
='/[^/][^/]*/\.\./'
20176 # Canonicalize the pathname of ld
20177 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20178 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20179 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20181 test -z "$LD" && LD
="$ac_prog"
20184 # If it fails, then pretend we aren't using GCC.
20188 # If it is relative, then search for the first ld in PATH.
20189 with_gnu_ld
=unknown
20192 elif test "$with_gnu_ld" = yes; then
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20194 $as_echo_n "checking for GNU ld... " >&6; }
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20197 $as_echo_n "checking for non-GNU ld... " >&6; }
20199 if ${lt_cv_path_LD+:} false
; then :
20200 $as_echo_n "(cached) " >&6
20202 if test -z "$LD"; then
20203 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20204 for ac_dir
in $PATH; do
20206 test -z "$ac_dir" && ac_dir
=.
20207 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20208 lt_cv_path_LD
="$ac_dir/$ac_prog"
20209 # Check to see if the program is GNU ld. I'd rather use --version,
20210 # but apparently some variants of GNU ld only accept -v.
20211 # Break only if it was the GNU/non-GNU ld that we prefer.
20212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20213 *GNU
* |
*'with BFD'*)
20214 test "$with_gnu_ld" != no
&& break
20217 test "$with_gnu_ld" != yes && break
20224 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20228 LD
="$lt_cv_path_LD"
20229 if test -n "$LD"; then
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20231 $as_echo "$LD" >&6; }
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20234 $as_echo "no" >&6; }
20236 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20238 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20239 if ${lt_cv_prog_gnu_ld+:} false
; then :
20240 $as_echo_n "(cached) " >&6
20242 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20243 case `$LD -v 2>&1 </dev/null` in
20244 *GNU
* |
*'with BFD'*)
20245 lt_cv_prog_gnu_ld
=yes
20248 lt_cv_prog_gnu_ld
=no
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20253 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20254 with_gnu_ld
=$lt_cv_prog_gnu_ld
20262 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20263 # archiving commands below assume that GNU ld is being used.
20264 if test "$with_gnu_ld" = yes; then
20265 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20266 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'
20268 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20269 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20271 # If archive_cmds runs LD, not CC, wlarc should be empty
20272 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20273 # investigate it a little bit more. (MM)
20276 # ancient GNU ld didn't support --whole-archive et. al.
20277 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20278 $GREP 'no-whole-archive' > /dev
/null
; then
20279 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20281 whole_archive_flag_spec_CXX
=
20287 # A generic and very simple default shared library creation
20288 # command for GNU C++ for the case where it uses the native
20289 # linker, instead of GNU ld. If possible, this setting should
20290 # overridden to take advantage of the native linker features on
20291 # the platform it is being used on.
20292 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20295 # Commands to make compiler produce verbose output that lists
20296 # what "hidden" libraries, object files and flags are used when
20297 # linking a shared library.
20298 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20306 # PORTME: fill in a description of your system's C++ link characteristics
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20308 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20312 # FIXME: insert proper C++ library support
20316 if test "$host_cpu" = ia64
; then
20317 # On IA64, the linker does run time linking by default, so we don't
20318 # have to do anything special.
20319 aix_use_runtimelinking
=no
20320 exp_sym_flag
='-Bexport'
20323 aix_use_runtimelinking
=no
20325 # Test if we are trying to use run time linking or normal
20326 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20327 # need to do runtime linking.
20328 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20329 for ld_flag
in $LDFLAGS; do
20332 aix_use_runtimelinking
=yes
20340 exp_sym_flag
='-bexport'
20341 no_entry_flag
='-bnoentry'
20344 # When large executables or shared objects are built, AIX ld can
20345 # have problems creating the table of contents. If linking a library
20346 # or program results in "error TOC overflow" add -mminimal-toc to
20347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20350 archive_cmds_CXX
=''
20351 hardcode_direct_CXX
=yes
20352 hardcode_direct_absolute_CXX
=yes
20353 hardcode_libdir_separator_CXX
=':'
20354 link_all_deplibs_CXX
=yes
20355 file_list_spec_CXX
='${wl}-f,'
20357 if test "$GXX" = yes; then
20358 case $host_os in aix4.
[012]|aix4.
[012].
*)
20359 # We only want to do this on AIX 4.2 and lower, the check
20360 # below for broken collect2 doesn't work under 4.3+
20361 collect2name
=`${CC} -print-prog-name=collect2`
20362 if test -f "$collect2name" &&
20363 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20365 # We have reworked collect2
20368 # We have old collect2
20369 hardcode_direct_CXX
=unsupported
20370 # It fails to find uninstalled libraries when the uninstalled
20371 # path is not listed in the libpath. Setting hardcode_minus_L
20372 # to unsupported forces relinking
20373 hardcode_minus_L_CXX
=yes
20374 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20375 hardcode_libdir_separator_CXX
=
20378 shared_flag
='-shared'
20379 if test "$aix_use_runtimelinking" = yes; then
20380 shared_flag
="$shared_flag "'${wl}-G'
20384 if test "$host_cpu" = ia64
; then
20385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20386 # chokes on -Wl,-G. The following line is correct:
20389 if test "$aix_use_runtimelinking" = yes; then
20390 shared_flag
='${wl}-G'
20392 shared_flag
='${wl}-bM:SRE'
20397 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20398 # It seems that -bexpall does not export symbols beginning with
20399 # underscore (_), so it is better to generate a list of symbols to
20401 always_export_symbols_CXX
=yes
20402 if test "$aix_use_runtimelinking" = yes; then
20403 # Warning - without using the other runtime loading flags (-brtl),
20404 # -berok will link without error, but may produce a broken library.
20405 allow_undefined_flag_CXX
='-berok'
20406 # Determine the default libpath from the value encoded in an empty
20408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h. */
20419 if ac_fn_cxx_try_link
"$LINENO"; then :
20421 lt_aix_libpath_sed
='
20422 /Import File Strings/,/^$/ {
20428 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20429 # Check for a 64-bit object if we didn't find anything.
20430 if test -z "$aix_libpath"; then
20431 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20434 rm -f core conftest.err conftest.
$ac_objext \
20435 conftest
$ac_exeext conftest.
$ac_ext
20436 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20438 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20440 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"
20442 if test "$host_cpu" = ia64
; then
20443 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20444 allow_undefined_flag_CXX
="-z nodefs"
20445 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"
20447 # Determine the default libpath from the value encoded in an
20448 # empty executable.
20449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20450 /* end confdefs.h. */
20460 if ac_fn_cxx_try_link
"$LINENO"; then :
20462 lt_aix_libpath_sed
='
20463 /Import File Strings/,/^$/ {
20469 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20470 # Check for a 64-bit object if we didn't find anything.
20471 if test -z "$aix_libpath"; then
20472 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20475 rm -f core conftest.err conftest.
$ac_objext \
20476 conftest
$ac_exeext conftest.
$ac_ext
20477 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20479 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20480 # Warning - without using the other run time loading flags,
20481 # -berok will link without error, but may produce a broken library.
20482 no_undefined_flag_CXX
=' ${wl}-bernotok'
20483 allow_undefined_flag_CXX
=' ${wl}-berok'
20484 if test "$with_gnu_ld" = yes; then
20485 # We only use this code for GNU lds that support --whole-archive.
20486 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20488 # Exported symbols can be pulled into shared objects from archives
20489 whole_archive_flag_spec_CXX
='$convenience'
20491 archive_cmds_need_lc_CXX
=yes
20492 # This is similar to how AIX traditionally builds its shared
20494 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'
20500 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20501 allow_undefined_flag_CXX
=unsupported
20502 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20503 # support --undefined. This deserves some investigation. FIXME
20504 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20511 case $cc_basename in
20513 # FIXME: insert proper C++ library support
20519 cygwin
* | mingw
* | pw32
* | cegcc
*)
20520 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20521 # as there is no search path for DLLs.
20522 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20523 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20524 allow_undefined_flag_CXX
=unsupported
20525 always_export_symbols_CXX
=no
20526 enable_shared_with_static_runtimes_CXX
=yes
20528 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20529 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'
20530 # If the export-symbols file already is a .def file (1st line
20531 # is EXPORTS), use it as is; otherwise, prepend...
20532 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20533 cp $export_symbols $output_objdir/$soname.def;
20535 echo EXPORTS > $output_objdir/$soname.def;
20536 cat $export_symbols >> $output_objdir/$soname.def;
20538 $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'
20543 darwin
* | rhapsody
*)
20546 archive_cmds_need_lc_CXX
=no
20547 hardcode_direct_CXX
=no
20548 hardcode_automatic_CXX
=yes
20549 hardcode_shlibpath_var_CXX
=unsupported
20550 if test "$lt_cv_ld_force_load" = "yes"; then
20551 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\"`'
20553 whole_archive_flag_spec_CXX
=''
20555 link_all_deplibs_CXX
=yes
20556 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20557 case $cc_basename in
20558 ifort
*) _lt_dar_can_shared
=yes ;;
20559 *) _lt_dar_can_shared
=$GCC ;;
20561 if test "$_lt_dar_can_shared" = "yes"; then
20562 output_verbose_link_cmd
=func_echo_all
20563 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}"
20564 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20565 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}"
20566 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}"
20567 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20568 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}"
20569 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}"
20579 case $cc_basename in
20581 # FIXME: insert proper C++ library support
20585 # Green Hills C++ Compiler
20586 # FIXME: insert proper C++ library support
20590 # FIXME: insert proper C++ library support
20597 # C++ shared libraries reported to be fairly broken before
20603 archive_cmds_need_lc_CXX
=no
20606 freebsd
* | dragonfly
*)
20607 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20616 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20617 link_all_deplibs_CXX
=yes
20621 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20622 hardcode_libdir_separator_CXX
=:
20623 export_dynamic_flag_spec_CXX
='${wl}-E'
20624 hardcode_direct_CXX
=yes
20625 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20626 # but as the default
20627 # location of the library.
20629 case $cc_basename in
20631 # FIXME: insert proper C++ library support
20635 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'
20636 # Commands to make compiler produce verbose output that lists
20637 # what "hidden" libraries, object files and flags are used when
20638 # linking a shared library.
20640 # There doesn't appear to be a way to prevent this compiler from
20641 # explicitly linking system object files so we need to strip them
20642 # from the output so that they don't get included in the library
20644 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"'
20647 if test "$GXX" = yes; then
20648 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'
20650 # FIXME: insert proper C++ library support
20658 if test $with_gnu_ld = no
; then
20659 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20660 hardcode_libdir_separator_CXX
=:
20666 export_dynamic_flag_spec_CXX
='${wl}-E'
20672 hardcode_direct_CXX
=no
20673 hardcode_shlibpath_var_CXX
=no
20676 hardcode_direct_CXX
=yes
20677 hardcode_direct_absolute_CXX
=yes
20678 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20679 # but as the default
20680 # location of the library.
20684 case $cc_basename in
20686 # FIXME: insert proper C++ library support
20692 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20695 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20698 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20701 # Commands to make compiler produce verbose output that lists
20702 # what "hidden" libraries, object files and flags are used when
20703 # linking a shared library.
20705 # There doesn't appear to be a way to prevent this compiler from
20706 # explicitly linking system object files so we need to strip them
20707 # from the output so that they don't get included in the library
20709 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"'
20712 if test "$GXX" = yes; then
20713 if test $with_gnu_ld = no
; then
20716 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20719 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20722 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'
20727 # FIXME: insert proper C++ library support
20735 hardcode_direct_CXX
=no
20736 hardcode_shlibpath_var_CXX
=no
20737 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20738 export_dynamic_flag_spec_CXX
='${wl}-E'
20739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20740 # Instead, shared libraries are loaded at an image base (0x10000000 by
20741 # default) and relocated if they conflict, which is a slow very memory
20742 # consuming and fragmenting process. To avoid this, we pick a random,
20743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20745 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'
20746 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'
20749 case $cc_basename in
20752 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'
20754 # Archives containing C++ object files must be created using
20755 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20756 # necessary to make sure instantiated templates are included
20758 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20761 if test "$GXX" = yes; then
20762 if test "$with_gnu_ld" = no
; then
20763 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'
20765 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'
20768 link_all_deplibs_CXX
=yes
20771 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20772 hardcode_libdir_separator_CXX
=:
20773 inherit_rpath_CXX
=yes
20776 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20777 case $cc_basename in
20779 # Kuck and Associates, Inc. (KAI) C++ Compiler
20781 # KCC will only create a shared library if the output file
20782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20783 # to its proper name (with version) after linking.
20784 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'
20785 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'
20786 # Commands to make compiler produce verbose output that lists
20787 # what "hidden" libraries, object files and flags are used when
20788 # linking a shared library.
20790 # There doesn't appear to be a way to prevent this compiler from
20791 # explicitly linking system object files so we need to strip them
20792 # from the output so that they don't get included in the library
20794 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"'
20796 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20797 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20799 # Archives containing C++ object files must be created using
20800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20801 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20806 # version 8.0 and above of icpc choke on multiply defined symbols
20807 # if we add $predep_objects and $postdep_objects, however 7.1 and
20808 # earlier do not add the objects themselves.
20809 case `$CC -V 2>&1` in
20811 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20812 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'
20814 *) # Version 8.0 or newer
20817 ia64
*) tmp_idyn
=' -i_dynamic';;
20819 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20820 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'
20823 archive_cmds_need_lc_CXX
=no
20824 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20825 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20826 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20829 # Portland Group C++ compiler
20831 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20832 prelink_cmds_CXX
='tpldir=Template.dir~
20834 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20835 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20836 old_archive_cmds_CXX
='tpldir=Template.dir~
20838 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20839 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20841 archive_cmds_CXX
='tpldir=Template.dir~
20843 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20844 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20845 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20847 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20848 $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'
20850 *) # Version 6 and above use weak symbols
20851 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20852 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'
20856 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20857 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20858 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'
20862 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20863 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'
20865 runpath_var
=LD_RUN_PATH
20866 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20867 hardcode_libdir_separator_CXX
=:
20869 # Commands to make compiler produce verbose output that lists
20870 # what "hidden" libraries, object files and flags are used when
20871 # linking a shared library.
20873 # There doesn't appear to be a way to prevent this compiler from
20874 # explicitly linking system object files so we need to strip them
20875 # from the output so that they don't get included in the library
20877 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'
20879 xl
* | mpixl
* | bgxl
*)
20880 # IBM XL 8.0 on PPC, with GNU ld
20881 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20882 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20883 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20884 if test "x$supports_anon_versioning" = xyes
; then
20885 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20887 echo "local: *; };" >> $output_objdir/$libname.ver~
20888 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20892 case `$CC -V 2>&1 | sed 5q` in
20895 no_undefined_flag_CXX
=' -zdefs'
20896 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20897 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'
20898 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20899 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'
20900 compiler_needs_object_CXX
=yes
20902 # Not sure whether something based on
20903 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20905 output_verbose_link_cmd
='func_echo_all'
20907 # Archives containing C++ object files must be created using
20908 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20909 # necessary to make sure instantiated templates are included
20911 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20919 # FIXME: insert proper C++ library support
20924 # FIXME: insert proper C++ library support
20929 case $cc_basename in
20931 # FIXME: insert proper C++ library support
20935 # FIXME: insert proper C++ library support
20942 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20943 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20945 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20946 hardcode_direct_CXX
=yes
20947 hardcode_shlibpath_var_CXX
=no
20949 # Workaround some broken pre-1.5 toolchains
20950 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20958 # C++ shared libraries are fairly broken
20963 if test -f /usr
/libexec
/ld.so
; then
20964 hardcode_direct_CXX
=yes
20965 hardcode_shlibpath_var_CXX
=no
20966 hardcode_direct_absolute_CXX
=yes
20967 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20968 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20969 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20970 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20971 export_dynamic_flag_spec_CXX
='${wl}-E'
20972 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20974 output_verbose_link_cmd
=func_echo_all
20980 osf3
* | osf4
* | osf5
*)
20981 case $cc_basename in
20983 # Kuck and Associates, Inc. (KAI) C++ Compiler
20985 # KCC will only create a shared library if the output file
20986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20987 # to its proper name (with version) after linking.
20988 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'
20990 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20991 hardcode_libdir_separator_CXX
=:
20993 # Archives containing C++ object files must be created using
20994 # the KAI C++ compiler.
20996 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20997 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21001 # Rational C++ 2.4.1
21002 # FIXME: insert proper C++ library support
21008 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21009 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'
21010 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21013 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21014 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'
21015 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21016 echo "-hidden">> $lib.exp~
21017 $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~
21019 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21023 hardcode_libdir_separator_CXX
=:
21025 # Commands to make compiler produce verbose output that lists
21026 # what "hidden" libraries, object files and flags are used when
21027 # linking a shared library.
21029 # There doesn't appear to be a way to prevent this compiler from
21030 # explicitly linking system object files so we need to strip them
21031 # from the output so that they don't get included in the library
21033 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"'
21036 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21037 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21040 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'
21043 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'
21047 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21048 hardcode_libdir_separator_CXX
=:
21050 # Commands to make compiler produce verbose output that lists
21051 # what "hidden" libraries, object files and flags are used when
21052 # linking a shared library.
21053 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21056 # FIXME: insert proper C++ library support
21064 # FIXME: insert proper C++ library support
21069 case $cc_basename in
21072 # FIXME: insert proper C++ library support
21077 # FIXME: insert proper C++ library support
21081 # FIXME: insert proper C++ library support
21088 case $cc_basename in
21090 # Sun C++ 4.2, 5.x and Centerline C++
21091 archive_cmds_need_lc_CXX
=yes
21092 no_undefined_flag_CXX
=' -zdefs'
21093 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21094 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21095 $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'
21097 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21098 hardcode_shlibpath_var_CXX
=no
21100 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21102 # The compiler driver will combine and reorder linker options,
21103 # but understands `-z linker_flag'.
21104 # Supported since Solaris 2.6 (maybe 2.5.1?)
21105 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21108 link_all_deplibs_CXX
=yes
21110 output_verbose_link_cmd
='func_echo_all'
21112 # Archives containing C++ object files must be created using
21113 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21114 # necessary to make sure instantiated templates are included
21116 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21119 # Green Hills C++ Compiler
21120 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21122 # The C++ compiler must be used to create the archive.
21123 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21126 # GNU C++ compiler with Solaris linker
21127 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21128 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21129 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21130 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21131 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21132 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21134 # Commands to make compiler produce verbose output that lists
21135 # what "hidden" libraries, object files and flags are used when
21136 # linking a shared library.
21137 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21139 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21141 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21142 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21143 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21145 # Commands to make compiler produce verbose output that lists
21146 # what "hidden" libraries, object files and flags are used when
21147 # linking a shared library.
21148 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21151 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21153 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21155 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21163 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21164 no_undefined_flag_CXX
='${wl}-z,text'
21165 archive_cmds_need_lc_CXX
=no
21166 hardcode_shlibpath_var_CXX
=no
21167 runpath_var
='LD_RUN_PATH'
21169 case $cc_basename in
21171 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21172 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21175 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21176 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21181 sysv5
* | sco3.2v5
* | sco5v6
*)
21182 # Note: We can NOT use -z defs as we might desire, because we do not
21183 # link with -lc, and that would cause any symbols used from libc to
21184 # always be unresolved, which means just about no library would
21185 # ever link correctly. If we're not using GNU ld we use -z text
21186 # though, which does catch some bad symbols but isn't as heavy-handed
21188 no_undefined_flag_CXX
='${wl}-z,text'
21189 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21190 archive_cmds_need_lc_CXX
=no
21191 hardcode_shlibpath_var_CXX
=no
21192 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21193 hardcode_libdir_separator_CXX
=':'
21194 link_all_deplibs_CXX
=yes
21195 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21196 runpath_var
='LD_RUN_PATH'
21198 case $cc_basename in
21200 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21201 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21202 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21203 '"$old_archive_cmds_CXX"
21204 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21205 '"$reload_cmds_CXX"
21208 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21209 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21215 case $cc_basename in
21217 # NonStop-UX NCC 3.20
21218 # FIXME: insert proper C++ library support
21222 # FIXME: insert proper C++ library support
21229 # FIXME: insert proper C++ library support
21234 # FIXME: insert proper C++ library support
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21240 $as_echo "$ld_shlibs_CXX" >&6; }
21241 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21247 ## There is no encapsulation within the following macros, do not change
21248 ## the running order or otherwise move them around unless you know exactly
21249 ## what you are doing...
21250 # Dependencies to place before and after the object being linked:
21251 predep_objects_CXX
=
21252 postdep_objects_CXX
=
21255 compiler_lib_search_path_CXX
=
21257 cat > conftest.
$ac_ext <<_LT_EOF
21261 Foo (void) { a = 0; }
21267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21268 (eval $ac_compile) 2>&5
21270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21271 test $ac_status = 0; }; then
21272 # Parse the compiler output and extract the necessary
21273 # objects, libraries and library flags.
21275 # Sentinel used to keep track of whether or not we are before
21276 # the conftest object file.
21277 pre_test_object_deps_done
=no
21279 for p
in `eval "$output_verbose_link_cmd"`; do
21283 # Some compilers place space between "-{L,R}" and the path.
21284 # Remove the space.
21285 if test $p = "-L" ||
21286 test $p = "-R"; then
21293 if test "$pre_test_object_deps_done" = no
; then
21296 # Internal compiler library paths should come after those
21297 # provided the user. The postdeps already come after the
21298 # user supplied libs so there is no need to process them.
21299 if test -z "$compiler_lib_search_path_CXX"; then
21300 compiler_lib_search_path_CXX
="${prev}${p}"
21302 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21305 # The "-l" case would never come before the object being
21306 # linked, so don't bother handling this case.
21309 if test -z "$postdeps_CXX"; then
21310 postdeps_CXX
="${prev}${p}"
21312 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21318 # This assumes that the test object file only shows up
21319 # once in the compiler output.
21320 if test "$p" = "conftest.$objext"; then
21321 pre_test_object_deps_done
=yes
21325 if test "$pre_test_object_deps_done" = no
; then
21326 if test -z "$predep_objects_CXX"; then
21327 predep_objects_CXX
="$p"
21329 predep_objects_CXX
="$predep_objects_CXX $p"
21332 if test -z "$postdep_objects_CXX"; then
21333 postdep_objects_CXX
="$p"
21335 postdep_objects_CXX
="$postdep_objects_CXX $p"
21340 *) ;; # Ignore the rest.
21348 echo "libtool.m4: error: problem compiling CXX test program"
21351 $RM -f confest.
$objext
21353 # PORTME: override above test on systems where it is broken
21356 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21357 # hack all around it, let's just trust "g++" to DTRT.
21358 predep_objects_CXX
=
21359 postdep_objects_CXX
=
21364 case `$CC -V 2>&1 | sed 5q` in
21368 # The more standards-conforming stlport4 library is
21369 # incompatible with the Cstd library. Avoid specifying
21370 # it if it's in CXXFLAGS. Ignore libCrun as
21371 # -library=stlport4 depends on it.
21372 case " $CXX $CXXFLAGS " in
21373 *" -library=stlport4 "*)
21374 solaris_use_stlport4
=yes
21378 if test "$solaris_use_stlport4" != yes; then
21379 postdeps_CXX
='-library=Cstd -library=Crun'
21386 case $cc_basename in
21388 # The more standards-conforming stlport4 library is
21389 # incompatible with the Cstd library. Avoid specifying
21390 # it if it's in CXXFLAGS. Ignore libCrun as
21391 # -library=stlport4 depends on it.
21392 case " $CXX $CXXFLAGS " in
21393 *" -library=stlport4 "*)
21394 solaris_use_stlport4
=yes
21398 # Adding this requires a known-good setup of shared libraries for
21399 # Sun compiler versions before 5.6, else PIC objects from an old
21400 # archive will be linked into the output, leading to subtle bugs.
21401 if test "$solaris_use_stlport4" != yes; then
21402 postdeps_CXX
='-library=Cstd -library=Crun'
21410 case " $postdeps_CXX " in
21411 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21413 compiler_lib_search_dirs_CXX
=
21414 if test -n "${compiler_lib_search_path_CXX}"; then
21415 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21448 lt_prog_compiler_wl_CXX
=
21449 lt_prog_compiler_pic_CXX
=
21450 lt_prog_compiler_static_CXX
=
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21453 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21455 # C++ specific cases for pic, static, wl, etc.
21456 if test "$GXX" = yes; then
21457 lt_prog_compiler_wl_CXX
='-Wl,'
21458 lt_prog_compiler_static_CXX
='-static'
21462 # All AIX code is PIC.
21463 if test "$host_cpu" = ia64
; then
21464 # AIX 5 now supports IA64 processor
21465 lt_prog_compiler_static_CXX
='-Bstatic'
21467 lt_prog_compiler_pic_CXX
='-fPIC'
21473 # see comment about AmigaOS4 .so support
21474 lt_prog_compiler_pic_CXX
='-fPIC'
21477 # FIXME: we need at least 68020 code to build shared libraries, but
21478 # adding the `-m68020' flag to GCC prevents building anything better,
21480 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21485 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21486 # PIC is the default for these OSes.
21488 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21489 # This hack is so that the source file can tell whether it is being
21490 # built for inclusion in a dll (and should export symbols for example).
21491 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21492 # (--disable-auto-import) libraries
21493 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21495 darwin
* | rhapsody
*)
21496 # PIC is the default on this platform
21497 # Common symbols not allowed in MH_DYLIB files
21498 lt_prog_compiler_pic_CXX
='-fno-common'
21501 # DJGPP does not support shared libraries at all
21502 lt_prog_compiler_pic_CXX
=
21505 # PIC is the default for Haiku.
21506 # The "-static" flag exists, but is broken.
21507 lt_prog_compiler_static_CXX
=
21510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21511 # Instead, we relocate shared libraries at runtime.
21514 if test -d /usr
/nec
; then
21515 lt_prog_compiler_pic_CXX
=-Kconform_pic
21519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21521 # sets the default TLS model and affects inlining.
21526 lt_prog_compiler_pic_CXX
='-fPIC'
21531 # QNX uses GNU C++, but need to define -shared option too, otherwise
21532 # it will coredump.
21533 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21536 lt_prog_compiler_pic_CXX
='-fPIC'
21542 # All AIX code is PIC.
21543 if test "$host_cpu" = ia64
; then
21544 # AIX 5 now supports IA64 processor
21545 lt_prog_compiler_static_CXX
='-Bstatic'
21547 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21551 case $cc_basename in
21553 # Green Hills C++ Compiler
21554 # _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"
21559 case $cc_basename in
21561 lt_prog_compiler_pic_CXX
='-KPIC'
21564 # Green Hills C++ Compiler
21565 lt_prog_compiler_pic_CXX
='-pic'
21571 freebsd
* | dragonfly
*)
21572 # FreeBSD uses GNU C++
21574 hpux9
* | hpux10
* | hpux11
*)
21575 case $cc_basename in
21577 lt_prog_compiler_wl_CXX
='-Wl,'
21578 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21579 if test "$host_cpu" != ia64
; then
21580 lt_prog_compiler_pic_CXX
='+Z'
21584 lt_prog_compiler_wl_CXX
='-Wl,'
21585 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21591 lt_prog_compiler_pic_CXX
='+Z'
21600 # This is c89, which is MS Visual C++ (no shared libs)
21601 # Anyone wants to do a port?
21603 irix5
* | irix6
* | nonstopux
*)
21604 case $cc_basename in
21606 lt_prog_compiler_wl_CXX
='-Wl,'
21607 lt_prog_compiler_static_CXX
='-non_shared'
21608 # CC pic flag -KPIC is the default.
21614 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21615 case $cc_basename in
21618 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21619 lt_prog_compiler_pic_CXX
='-fPIC'
21622 # old Intel C++ for x86_64 which still supported -KPIC.
21623 lt_prog_compiler_wl_CXX
='-Wl,'
21624 lt_prog_compiler_pic_CXX
='-KPIC'
21625 lt_prog_compiler_static_CXX
='-static'
21628 # Intel C++, used to be incompatible with GCC.
21629 # ICC 10 doesn't accept -KPIC any more.
21630 lt_prog_compiler_wl_CXX
='-Wl,'
21631 lt_prog_compiler_pic_CXX
='-fPIC'
21632 lt_prog_compiler_static_CXX
='-static'
21635 # Portland Group C++ compiler
21636 lt_prog_compiler_wl_CXX
='-Wl,'
21637 lt_prog_compiler_pic_CXX
='-fpic'
21638 lt_prog_compiler_static_CXX
='-Bstatic'
21642 # Make sure the PIC flag is empty. It appears that all Alpha
21643 # Linux and Compaq Tru64 Unix objects are PIC.
21644 lt_prog_compiler_pic_CXX
=
21645 lt_prog_compiler_static_CXX
='-non_shared'
21647 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21648 # IBM XL 8.0, 9.0 on PPC and BlueGene
21649 lt_prog_compiler_wl_CXX
='-Wl,'
21650 lt_prog_compiler_pic_CXX
='-qpic'
21651 lt_prog_compiler_static_CXX
='-qstaticlink'
21654 case `$CC -V 2>&1 | sed 5q` in
21657 lt_prog_compiler_pic_CXX
='-KPIC'
21658 lt_prog_compiler_static_CXX
='-Bstatic'
21659 lt_prog_compiler_wl_CXX
='-Qoption ld '
21670 case $cc_basename in
21672 lt_prog_compiler_pic_CXX
='-W c,exportall'
21681 # QNX uses GNU C++, but need to define -shared option too, otherwise
21682 # it will coredump.
21683 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21685 osf3
* | osf4
* | osf5
*)
21686 case $cc_basename in
21688 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21691 # Rational C++ 2.4.1
21692 lt_prog_compiler_pic_CXX
='-pic'
21695 # Digital/Compaq C++
21696 lt_prog_compiler_wl_CXX
='-Wl,'
21697 # Make sure the PIC flag is empty. It appears that all Alpha
21698 # Linux and Compaq Tru64 Unix objects are PIC.
21699 lt_prog_compiler_pic_CXX
=
21700 lt_prog_compiler_static_CXX
='-non_shared'
21709 case $cc_basename in
21711 # Sun C++ 4.2, 5.x and Centerline C++
21712 lt_prog_compiler_pic_CXX
='-KPIC'
21713 lt_prog_compiler_static_CXX
='-Bstatic'
21714 lt_prog_compiler_wl_CXX
='-Qoption ld '
21717 # Green Hills C++ Compiler
21718 lt_prog_compiler_pic_CXX
='-PIC'
21725 case $cc_basename in
21728 lt_prog_compiler_pic_CXX
='-pic'
21729 lt_prog_compiler_static_CXX
='-Bstatic'
21733 lt_prog_compiler_pic_CXX
='-pic'
21739 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21740 case $cc_basename in
21742 lt_prog_compiler_wl_CXX
='-Wl,'
21743 lt_prog_compiler_pic_CXX
='-KPIC'
21744 lt_prog_compiler_static_CXX
='-Bstatic'
21749 case $cc_basename in
21751 # NonStop-UX NCC 3.20
21752 lt_prog_compiler_pic_CXX
='-KPIC'
21761 lt_prog_compiler_can_build_shared_CXX
=no
21767 # For platforms which do not support PIC, -DPIC is meaningless:
21769 lt_prog_compiler_pic_CXX
=
21772 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21776 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21781 # Check to make sure the PIC flag actually works.
21783 if test -n "$lt_prog_compiler_pic_CXX"; then
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21785 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21786 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21787 $as_echo_n "(cached) " >&6
21789 lt_cv_prog_compiler_pic_works_CXX
=no
21790 ac_outfile
=conftest.
$ac_objext
21791 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21792 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21793 # Insert the option either (1) after the last *FLAGS variable, or
21794 # (2) before a word containing "conftest.", or (3) at the end.
21795 # Note that $ac_compile itself does not contain backslashes and begins
21796 # with a dollar sign (not a hyphen), so the echo should work correctly.
21797 # The option is referenced via a variable to avoid confusing sed.
21798 lt_compile
=`echo "$ac_compile" | $SED \
21799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21801 -e 's:$: $lt_compiler_flag:'`
21802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21803 (eval "$lt_compile" 2>conftest.err
)
21805 cat conftest.err
>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 if (exit $ac_status) && test -s "$ac_outfile"; then
21808 # The compiler can only warn and ignore the option if not recognized
21809 # So say no if there are warnings other than the usual output.
21810 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21811 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21812 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21813 lt_cv_prog_compiler_pic_works_CXX
=yes
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21820 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21822 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21823 case $lt_prog_compiler_pic_CXX in
21825 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21828 lt_prog_compiler_pic_CXX
=
21829 lt_prog_compiler_can_build_shared_CXX
=no
21837 # Check to make sure the static flag actually works.
21839 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21841 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21842 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21843 $as_echo_n "(cached) " >&6
21845 lt_cv_prog_compiler_static_works_CXX
=no
21846 save_LDFLAGS
="$LDFLAGS"
21847 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21848 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21849 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21850 # The linker can only warn and ignore the option if not recognized
21851 # So say no if there are warnings
21852 if test -s conftest.err
; then
21853 # Append any errors to the config.log.
21854 cat conftest.err
1>&5
21855 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21856 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21857 if diff conftest.exp conftest.er2
>/dev
/null
; then
21858 lt_cv_prog_compiler_static_works_CXX
=yes
21861 lt_cv_prog_compiler_static_works_CXX
=yes
21865 LDFLAGS
="$save_LDFLAGS"
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21869 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21871 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21874 lt_prog_compiler_static_CXX
=
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21881 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21882 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21883 $as_echo_n "(cached) " >&6
21885 lt_cv_prog_compiler_c_o_CXX
=no
21886 $RM -r conftest
2>/dev
/null
21890 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21892 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21893 # Insert the option either (1) after the last *FLAGS variable, or
21894 # (2) before a word containing "conftest.", or (3) at the end.
21895 # Note that $ac_compile itself does not contain backslashes and begins
21896 # with a dollar sign (not a hyphen), so the echo should work correctly.
21897 lt_compile
=`echo "$ac_compile" | $SED \
21898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21900 -e 's:$: $lt_compiler_flag:'`
21901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21902 (eval "$lt_compile" 2>out
/conftest.err
)
21904 cat out
/conftest.err
>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21908 # The compiler can only warn and ignore the option if not recognized
21909 # So say no if there are warnings
21910 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21911 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21912 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21913 lt_cv_prog_compiler_c_o_CXX
=yes
21918 # SGI C++ compiler will create directory out/ii_files/ for
21919 # template instantiation
21920 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21921 $RM out
/* && rmdir out
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21928 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21933 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21934 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21935 $as_echo_n "(cached) " >&6
21937 lt_cv_prog_compiler_c_o_CXX
=no
21938 $RM -r conftest
2>/dev
/null
21942 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21944 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21945 # Insert the option either (1) after the last *FLAGS variable, or
21946 # (2) before a word containing "conftest.", or (3) at the end.
21947 # Note that $ac_compile itself does not contain backslashes and begins
21948 # with a dollar sign (not a hyphen), so the echo should work correctly.
21949 lt_compile
=`echo "$ac_compile" | $SED \
21950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21952 -e 's:$: $lt_compiler_flag:'`
21953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21954 (eval "$lt_compile" 2>out
/conftest.err
)
21956 cat out
/conftest.err
>&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21960 # The compiler can only warn and ignore the option if not recognized
21961 # So say no if there are warnings
21962 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21963 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21964 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21965 lt_cv_prog_compiler_c_o_CXX
=yes
21970 # SGI C++ compiler will create directory out/ii_files/ for
21971 # template instantiation
21972 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21973 $RM out
/* && rmdir out
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21980 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21985 hard_links
="nottested"
21986 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21987 # do not overwrite the value of need_locks provided by the user
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21989 $as_echo_n "checking if we can lock with hard links... " >&6; }
21992 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21994 ln conftest.a conftest.b
2>&5 || hard_links
=no
21995 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21997 $as_echo "$hard_links" >&6; }
21998 if test "$hard_links" = no
; then
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22000 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22012 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22015 # If we're using GNU nm, then we don't want the "-C" option.
22016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22017 # Also, AIX nm treats weak defined symbols like other global defined
22018 # symbols, whereas GNU nm marks them as "W".
22019 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22020 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'
22022 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'
22026 export_symbols_cmds_CXX
="$ltdll_cmds"
22028 cygwin
* | mingw
* | cegcc
*)
22029 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'
22032 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22035 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22038 $as_echo "$ld_shlibs_CXX" >&6; }
22039 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22041 with_gnu_ld_CXX
=$with_gnu_ld
22049 # Do we need to explicitly link libc?
22051 case "x$archive_cmds_need_lc_CXX" in
22053 # Assume -lc should be added
22054 archive_cmds_need_lc_CXX
=yes
22056 if test "$enable_shared" = yes && test "$GCC" = yes; then
22057 case $archive_cmds_CXX in
22059 # FIXME: we may have to deal with multi-command sequences.
22062 # Test whether the compiler implicitly links with -lc since on some
22063 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22064 # to ld, don't add -lc before -lgcc.
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22066 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22067 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22068 $as_echo_n "(cached) " >&6
22071 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22074 (eval $ac_compile) 2>&5
22076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22077 test $ac_status = 0; } 2>conftest.err
; then
22080 libobjs
=conftest.
$ac_objext
22082 wl
=$lt_prog_compiler_wl_CXX
22083 pic_flag
=$lt_prog_compiler_pic_CXX
22089 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22090 allow_undefined_flag_CXX
=
22091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22092 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22095 test $ac_status = 0; }
22097 lt_cv_archive_cmds_need_lc_CXX
=no
22099 lt_cv_archive_cmds_need_lc_CXX
=yes
22101 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22103 cat conftest.err
1>&5
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22109 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22110 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22181 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22183 library_names_spec
=
22184 libname_spec
='lib$name'
22188 postuninstall_cmds
=
22192 shlibpath_overrides_runpath
=unknown
22194 dynamic_linker
="$host_os ld.so"
22195 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22196 need_lib_prefix
=unknown
22197 hardcode_into_libs
=no
22199 # when you set need_version to no, make sure it does not cause -set_version
22200 # flags to be left without arguments
22201 need_version
=unknown
22206 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22207 shlibpath_var
=LIBPATH
22209 # AIX 3 has no versioning support, so we append a major version to the name.
22210 soname_spec
='${libname}${release}${shared_ext}$major'
22217 hardcode_into_libs
=yes
22218 if test "$host_cpu" = ia64
; then
22219 # AIX 5 supports IA64
22220 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22221 shlibpath_var
=LD_LIBRARY_PATH
22223 # With GCC up to 2.95.x, collect2 would create an import file
22224 # for dependence libraries. The import file would start with
22225 # the line `#! .'. This would cause the generated library to
22226 # depend on `.', always an invalid library. This was fixed in
22227 # development snapshots of GCC prior to 3.0.
22229 aix4 | aix4.
[01] | aix4.
[01].
*)
22230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22232 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22235 can_build_shared
=no
22239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22240 # soname into executable. Probably we can add versioning support to
22241 # collect2, so additional links can be useful in future.
22242 if test "$aix_use_runtimelinking" = yes; then
22243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22244 # instead of lib<name>.a to let people know that these are not
22245 # typical AIX shared libraries.
22246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22248 # We preserve .a as extension for shared libraries through AIX4.2
22249 # and later when we are not doing run time linking.
22250 library_names_spec
='${libname}${release}.a $libname.a'
22251 soname_spec
='${libname}${release}${shared_ext}$major'
22253 shlibpath_var
=LIBPATH
22260 # Since July 2007 AmigaOS4 officially supports .so libraries.
22261 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22265 library_names_spec
='$libname.ixlibrary $libname.a'
22266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22267 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'
22273 library_names_spec
='${libname}${shared_ext}'
22274 dynamic_linker
="$host_os ld.so"
22275 shlibpath_var
=LIBRARY_PATH
22281 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22282 soname_spec
='${libname}${release}${shared_ext}$major'
22283 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22284 shlibpath_var
=LD_LIBRARY_PATH
22285 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22286 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22287 # the default ld.so.conf also contains /usr/contrib/lib and
22288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22289 # libtool to hard-code these into programs
22292 cygwin
* | mingw
* | pw32
* | cegcc
*)
22293 version_type
=windows
22298 case $GCC,$host_os in
22299 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22300 library_names_spec
='$libname.dll.a'
22301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22302 postinstall_cmds
='base_file=`basename \${file}`~
22303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22304 dldir=$destdir/`dirname \$dlpath`~
22305 test -d \$dldir || mkdir -p \$dldir~
22306 $install_prog $dir/$dlname \$dldir/$dlname~
22307 chmod a+x \$dldir/$dlname~
22308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22311 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22312 dlpath=$dir/\$dldll~
22314 shlibpath_overrides_runpath
=yes
22318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22319 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22323 # MinGW DLLs use traditional 'lib' prefix
22324 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22327 # pw32 DLLs use 'pw' prefix rather than 'lib'
22328 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22334 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22337 dynamic_linker
='Win32 ld.exe'
22338 # FIXME: first we should search . and the directory the executable is in
22342 darwin
* | rhapsody
*)
22343 dynamic_linker
="$host_os dyld"
22344 version_type
=darwin
22347 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22348 soname_spec
='${libname}${release}${major}$shared_ext'
22349 shlibpath_overrides_runpath
=yes
22350 shlibpath_var
=DYLD_LIBRARY_PATH
22351 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22353 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22361 soname_spec
='${libname}${release}${shared_ext}$major'
22362 shlibpath_var
=LD_LIBRARY_PATH
22365 freebsd
* | dragonfly
*)
22366 # DragonFly does not have aout. When/if they implement a new
22367 # versioning mechanism, adjust this.
22368 if test -x /usr
/bin
/objformat
; then
22369 objformat
=`/usr/bin/objformat`
22372 freebsd
[23].
*) objformat
=aout
;;
22373 *) objformat
=elf
;;
22376 version_type
=freebsd-
$objformat
22377 case $version_type in
22379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22384 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22388 shlibpath_var
=LD_LIBRARY_PATH
22391 shlibpath_overrides_runpath
=yes
22393 freebsd3.
[01]* | freebsdelf3.
[01]*)
22394 shlibpath_overrides_runpath
=yes
22395 hardcode_into_libs
=yes
22397 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22398 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22399 shlibpath_overrides_runpath
=no
22400 hardcode_into_libs
=yes
22402 *) # from 4.6 on, and DragonFly
22403 shlibpath_overrides_runpath
=yes
22404 hardcode_into_libs
=yes
22413 dynamic_linker
="$host_os runtime_loader"
22414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22415 soname_spec
='${libname}${release}${shared_ext}$major'
22416 shlibpath_var
=LIBRARY_PATH
22417 shlibpath_overrides_runpath
=yes
22418 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22419 hardcode_into_libs
=yes
22422 hpux9
* | hpux10
* | hpux11
*)
22423 # Give a soname corresponding to the major version so that dld.sl refuses to
22424 # link against other versions.
22431 hardcode_into_libs
=yes
22432 dynamic_linker
="$host_os dld.so"
22433 shlibpath_var
=LD_LIBRARY_PATH
22434 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22436 soname_spec
='${libname}${release}${shared_ext}$major'
22437 if test "X$HPUX_IA64_MODE" = X32
; then
22438 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22440 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22442 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22446 hardcode_into_libs
=yes
22447 dynamic_linker
="$host_os dld.sl"
22448 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22449 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22451 soname_spec
='${libname}${release}${shared_ext}$major'
22452 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22453 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22457 dynamic_linker
="$host_os dld.sl"
22458 shlibpath_var
=SHLIB_PATH
22459 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22461 soname_spec
='${libname}${release}${shared_ext}$major'
22464 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22465 postinstall_cmds
='chmod 555 $lib'
22466 # or fails outright, so override atomically:
22467 install_override_mode
=555
22474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22475 soname_spec
='${libname}${release}${shared_ext}$major'
22476 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22477 shlibpath_var
=LD_LIBRARY_PATH
22478 shlibpath_overrides_runpath
=no
22479 hardcode_into_libs
=yes
22482 irix5
* | irix6
* | nonstopux
*)
22484 nonstopux
*) version_type
=nonstopux
;;
22486 if test "$lt_cv_prog_gnu_ld" = yes; then
22494 soname_spec
='${libname}${release}${shared_ext}$major'
22495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22497 irix5
* | nonstopux
*)
22498 libsuff
= shlibsuff
=
22501 case $LD in # libtool.m4 will add one of these switches to LD
22502 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22503 libsuff
= shlibsuff
= libmagic
=32-bit;;
22504 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22505 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22506 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22507 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22508 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22512 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22513 shlibpath_overrides_runpath
=no
22514 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22515 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22516 hardcode_into_libs
=yes
22519 # No shared lib support for Linux oldld, aout, or coff.
22520 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22524 # This must be Linux ELF.
22526 # uclinux* changes (here and below) have been submitted to the libtool
22527 # project, but have not yet been accepted: they are GCC-local changes
22528 # for the time being. (See
22529 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22530 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22535 soname_spec
='${libname}${release}${shared_ext}$major'
22536 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22537 shlibpath_var
=LD_LIBRARY_PATH
22538 shlibpath_overrides_runpath
=no
22540 # Some binutils ld are patched to set DT_RUNPATH
22541 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22542 $as_echo_n "(cached) " >&6
22544 lt_cv_shlibpath_overrides_runpath
=no
22545 save_LDFLAGS
=$LDFLAGS
22546 save_libdir
=$libdir
22547 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22548 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22550 /* end confdefs.h. */
22560 if ac_fn_cxx_try_link
"$LINENO"; then :
22561 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22562 lt_cv_shlibpath_overrides_runpath
=yes
22565 rm -f core conftest.err conftest.
$ac_objext \
22566 conftest
$ac_exeext conftest.
$ac_ext
22567 LDFLAGS
=$save_LDFLAGS
22568 libdir
=$save_libdir
22572 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22574 # This implies no fast_install, which is unacceptable.
22575 # Some rework will be needed to allow for fast_install
22576 # before this can be enabled.
22577 hardcode_into_libs
=yes
22579 # Append ld.so.conf contents to the search path
22580 if test -f /etc
/ld.so.conf
; then
22581 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' ' '`
22582 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22585 # We used to test for /lib/ld.so.1 and disable shared libraries on
22586 # powerpc, because MkLinux only supported shared libraries with the
22587 # GNU dynamic linker. Since this was broken with cross compilers,
22588 # most powerpc-linux boxes support dynamic linking these days and
22589 # people can always --disable-shared, the test was removed, and we
22590 # assume the GNU/Linux dynamic linker is in use.
22591 dynamic_linker
='GNU/Linux ld.so'
22598 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22600 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22601 dynamic_linker
='NetBSD (a.out) ld.so'
22603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22604 soname_spec
='${libname}${release}${shared_ext}$major'
22605 dynamic_linker
='NetBSD ld.elf_so'
22607 shlibpath_var
=LD_LIBRARY_PATH
22608 shlibpath_overrides_runpath
=yes
22609 hardcode_into_libs
=yes
22614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22615 shlibpath_var
=LD_LIBRARY_PATH
22616 shlibpath_overrides_runpath
=yes
22623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22624 soname_spec
='${libname}${release}${shared_ext}$major'
22625 shlibpath_var
=LD_LIBRARY_PATH
22626 shlibpath_overrides_runpath
=no
22627 hardcode_into_libs
=yes
22628 dynamic_linker
='ldqnx.so'
22633 sys_lib_dlsearch_path_spec
="/usr/lib"
22635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22637 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22638 *) need_version
=no
;;
22640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22641 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22642 shlibpath_var
=LD_LIBRARY_PATH
22643 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22645 openbsd2.
[89] | openbsd2.
[89].
*)
22646 shlibpath_overrides_runpath
=no
22649 shlibpath_overrides_runpath
=yes
22653 shlibpath_overrides_runpath
=yes
22658 libname_spec
='$name'
22661 library_names_spec
='$libname${shared_ext} $libname.a'
22662 dynamic_linker
='OS/2 ld.exe'
22663 shlibpath_var
=LIBPATH
22666 osf3
* | osf4
* | osf5
*)
22670 soname_spec
='${libname}${release}${shared_ext}$major'
22671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672 shlibpath_var
=LD_LIBRARY_PATH
22673 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22674 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686 soname_spec
='${libname}${release}${shared_ext}$major'
22687 shlibpath_var
=LD_LIBRARY_PATH
22688 shlibpath_overrides_runpath
=yes
22689 hardcode_into_libs
=yes
22690 # ldd complains unless libraries are executable
22691 postinstall_cmds
='chmod +x $lib'
22696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22697 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22698 shlibpath_var
=LD_LIBRARY_PATH
22699 shlibpath_overrides_runpath
=yes
22700 if test "$with_gnu_ld" = yes; then
22708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709 soname_spec
='${libname}${release}${shared_ext}$major'
22710 shlibpath_var
=LD_LIBRARY_PATH
22711 case $host_vendor in
22713 shlibpath_overrides_runpath
=no
22715 runpath_var
=LD_RUN_PATH
22723 shlibpath_overrides_runpath
=no
22724 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22730 if test -d /usr
/nec
;then
22732 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22733 soname_spec
='$libname${shared_ext}.$major'
22734 shlibpath_var
=LD_LIBRARY_PATH
22738 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22739 version_type
=freebsd-elf
22742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22743 soname_spec
='${libname}${release}${shared_ext}$major'
22744 shlibpath_var
=LD_LIBRARY_PATH
22745 shlibpath_overrides_runpath
=yes
22746 hardcode_into_libs
=yes
22747 if test "$with_gnu_ld" = yes; then
22748 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22750 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22753 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22757 sys_lib_dlsearch_path_spec
='/usr/lib'
22761 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22766 shlibpath_var
=LD_LIBRARY_PATH
22767 shlibpath_overrides_runpath
=no
22768 hardcode_into_libs
=yes
22773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22774 soname_spec
='${libname}${release}${shared_ext}$major'
22775 shlibpath_var
=LD_LIBRARY_PATH
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22783 $as_echo "$dynamic_linker" >&6; }
22784 test "$dynamic_linker" = no
&& can_build_shared
=no
22786 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22787 if test "$GCC" = yes; then
22788 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22791 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22792 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22794 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22795 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22836 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22837 hardcode_action_CXX
=
22838 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22839 test -n "$runpath_var_CXX" ||
22840 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22842 # We can hardcode non-existent directories.
22843 if test "$hardcode_direct_CXX" != no
&&
22844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22845 # have to relink, otherwise we might link with an installed library
22846 # when we should be linking with a yet-to-be-installed one
22847 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22848 test "$hardcode_minus_L_CXX" != no
; then
22849 # Linking always hardcodes the temporary library directory.
22850 hardcode_action_CXX
=relink
22852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22853 hardcode_action_CXX
=immediate
22856 # We cannot hardcode anything, or else we can only hardcode existing
22858 hardcode_action_CXX
=unsupported
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22861 $as_echo "$hardcode_action_CXX" >&6; }
22863 if test "$hardcode_action_CXX" = relink ||
22864 test "$inherit_rpath_CXX" = yes; then
22865 # Fast installation is not supported
22866 enable_fast_install
=no
22867 elif test "$shlibpath_overrides_runpath" = yes ||
22868 test "$enable_shared" = no
; then
22869 # Fast installation is not necessary
22870 enable_fast_install
=needless
22879 fi # test -n "$compiler"
22885 with_gnu_ld
=$lt_save_with_gnu_ld
22886 lt_cv_path_LDCXX
=$lt_cv_path_LD
22887 lt_cv_path_LD
=$lt_save_path_LD
22888 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22889 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22890 fi # test "$_lt_caught_CXX_error" != yes
22893 ac_cpp
='$CXXCPP $CPPFLAGS'
22894 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22895 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22896 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22913 # Only expand once:
22919 # Identify the assembler which will work hand-in-glove with the newly
22920 # built GCC, so that we can examine its features. This is the assembler
22921 # which will be driven by the driver program.
22923 # If build != host, and we aren't building gas in-tree, we identify a
22924 # build->target assembler and hope that it will have the same features
22925 # as the host->target assembler we'll be using.
22926 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22928 if ${gcc_cv_as+:} false
; then :
22932 if test -x "$DEFAULT_ASSEMBLER"; then
22933 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22934 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22935 && test -f ..
/gas
/Makefile \
22936 && test x
$build = x
$host; then
22937 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22938 elif test -x as
$build_exeext; then
22939 # Build using assembler in the current directory.
22940 gcc_cv_as
=.
/as
$build_exeext
22941 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22942 gcc_cv_as
="$AS_FOR_TARGET"
22944 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22945 set dummy
$AS_FOR_TARGET; ac_word
=$2
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22947 $as_echo_n "checking for $ac_word... " >&6; }
22948 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22949 $as_echo_n "(cached) " >&6
22953 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22957 for as_dir
in $PATH
22960 test -z "$as_dir" && as_dir
=.
22961 for ac_exec_ext
in '' $ac_executable_extensions; do
22962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22963 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22974 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22975 if test -n "$gcc_cv_as"; then
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22977 $as_echo "$gcc_cv_as" >&6; }
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22980 $as_echo "no" >&6; }
22987 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22989 case "$ORIGINAL_AS_FOR_TARGET" in
22990 .
/as | .
/as
$build_exeext) ;;
22991 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22996 # Check whether --enable-ld was given.
22997 if test "${enable_ld+set}" = set; then :
22998 enableval
=$enable_ld; case "${enableval}" in
23006 install_gold_as_default
=no
23007 # Check whether --enable-gold was given.
23008 if test "${enable_gold+set}" = set; then :
23009 enableval
=$enable_gold; case "${enableval}" in
23011 install_gold_as_default
=yes
23014 if test x
${default_ld} != x
; then
23015 install_gold_as_default
=yes
23021 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23027 # Identify the linker which will work hand-in-glove with the newly
23028 # built GCC, so that we can examine its features. This is the linker
23029 # which will be driven by the driver program.
23031 # If build != host, and we aren't building gas in-tree, we identify a
23032 # build->target linker and hope that it will have the same features
23033 # as the host->target linker we'll be using.
23034 gcc_cv_gld_major_version
=
23035 gcc_cv_gld_minor_version
=
23036 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23037 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23038 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23040 if ${gcc_cv_ld+:} false
; then :
23044 if test -x "$DEFAULT_LINKER"; then
23045 gcc_cv_ld
="$DEFAULT_LINKER"
23046 elif test $install_gold_as_default = yes \
23047 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23048 && test -f ..
/gold
/Makefile \
23049 && test x
$build = x
$host; then
23050 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23051 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23052 && test -f ..
/ld
/Makefile \
23053 && test x
$build = x
$host; then
23054 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23055 elif test -x collect-ld
$build_exeext; then
23056 # Build using linker in the current directory.
23057 gcc_cv_ld
=.
/collect-ld
$build_exeext
23058 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23059 gcc_cv_ld
="$LD_FOR_TARGET"
23061 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23062 set dummy
$LD_FOR_TARGET; ac_word
=$2
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23064 $as_echo_n "checking for $ac_word... " >&6; }
23065 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23066 $as_echo_n "(cached) " >&6
23070 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23074 for as_dir
in $PATH
23077 test -z "$as_dir" && as_dir
=.
23078 for ac_exec_ext
in '' $ac_executable_extensions; do
23079 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23080 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23091 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23092 if test -n "$gcc_cv_ld"; then
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23094 $as_echo "$gcc_cv_ld" >&6; }
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23097 $as_echo "no" >&6; }
23104 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23105 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23106 # if the PLUGIN_LD is set ld-new, just have it as ld
23107 # as that is the installed named.
23108 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23109 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23110 PLUGIN_LD_SUFFIX
=ld
23113 # Check whether --with-plugin-ld was given.
23114 if test "${with_plugin_ld+set}" = set; then :
23115 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23116 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23117 PLUGIN_LD_SUFFIX
="$withval"
23123 cat >>confdefs.h
<<_ACEOF
23124 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23128 # Check to see if we are using gold instead of ld
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23130 $as_echo_n "checking whether we are using gold... " >&6; }
23132 if test x
$gcc_cv_ld != x
; then
23133 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23134 |
grep "GNU gold" > /dev
/null
; then
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23139 $as_echo "$ld_is_gold" >&6; }
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23142 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23143 # Check to see if default ld is not gold, but gold is
23144 # available and has support for split stack. If gcc was configured
23145 # with gold then no checking is done.
23147 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23149 # For platforms other than powerpc64*, enable as appropriate.
23151 gold_non_default
=no
23152 ld_gold
=`which ${gcc_cv_ld}.gold`
23153 # Make sure this gold has minimal split stack support
23154 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23155 ld_vers
=`$ld_gold --version | sed 1q`
23156 gold_vers
=`echo $ld_vers | sed -n \
23157 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23159 # check that the gold version contains the complete split stack support
23160 # on powerpc64 big and little endian
23162 case "$gold_vers" in
23163 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23165 *) gold_non_default
=no
23171 if test $gold_non_default = yes; then
23173 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23178 $as_echo "$gold_non_default" >&6; }
23180 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23182 case "$ORIGINAL_LD_FOR_TARGET" in
23183 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23184 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23189 $as_echo_n "checking what linker to use... " >&6; }
23190 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23191 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23192 # Single tree build which includes ld. We want to prefer it
23193 # over whatever linker top-level may have detected, since
23194 # we'll use what we're building after installation anyway.
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23196 $as_echo "newly built ld" >&6; }
23198 in_tree_ld_is_elf
=no
23199 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23200 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23201 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23202 in_tree_ld_is_elf
=yes
23203 elif test "$ld_is_gold" = yes; then
23204 in_tree_ld_is_elf
=yes
23206 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
23208 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23209 if test x
$gcc_cv_gld_version != x
; then
23213 case $gcc_cv_gld_version in
23215 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23217 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23218 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23219 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23220 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23223 $as_echo "$gcc_cv_ld" >&6; }
23225 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23226 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23227 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23233 # Figure out what nm we will be using.
23234 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23235 if ${gcc_cv_nm+:} false
; then :
23239 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23240 && test -f ..
/binutils
/Makefile \
23241 && test x
$build = x
$host; then
23242 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23243 elif test -x nm
$build_exeext; then
23244 gcc_cv_nm
=.
/nm
$build_exeext
23245 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23246 gcc_cv_nm
="$NM_FOR_TARGET"
23248 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23249 set dummy
$NM_FOR_TARGET; ac_word
=$2
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23251 $as_echo_n "checking for $ac_word... " >&6; }
23252 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23253 $as_echo_n "(cached) " >&6
23257 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23261 for as_dir
in $PATH
23264 test -z "$as_dir" && as_dir
=.
23265 for ac_exec_ext
in '' $ac_executable_extensions; do
23266 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23267 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23278 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23279 if test -n "$gcc_cv_nm"; then
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23281 $as_echo "$gcc_cv_nm" >&6; }
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23284 $as_echo "no" >&6; }
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23292 $as_echo_n "checking what nm to use... " >&6; }
23293 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23294 # Single tree build which includes binutils.
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23296 $as_echo "newly built nm" >&6; }
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23300 $as_echo "$gcc_cv_nm" >&6; }
23304 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23306 case "$ORIGINAL_NM_FOR_TARGET" in
23307 .
/nm | .
/nm
$build_exeext) ;;
23308 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23313 # Figure out what objdump we will be using.
23314 if ${gcc_cv_objdump+:} false
; then :
23318 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23319 && test -f ..
/binutils
/Makefile \
23320 && test x
$build = x
$host; then
23321 # Single tree build which includes binutils.
23322 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23323 elif test -x objdump
$build_exeext; then
23324 gcc_cv_objdump
=.
/objdump
$build_exeext
23325 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23326 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23328 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23329 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23331 $as_echo_n "checking for $ac_word... " >&6; }
23332 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23333 $as_echo_n "(cached) " >&6
23335 case $gcc_cv_objdump in
23337 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23341 for as_dir
in $PATH
23344 test -z "$as_dir" && as_dir
=.
23345 for ac_exec_ext
in '' $ac_executable_extensions; do
23346 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23347 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23358 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23359 if test -n "$gcc_cv_objdump"; then
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23361 $as_echo "$gcc_cv_objdump" >&6; }
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23364 $as_echo "no" >&6; }
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23372 $as_echo_n "checking what objdump to use... " >&6; }
23373 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23374 # Single tree build which includes binutils.
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23376 $as_echo "newly built objdump" >&6; }
23377 elif test x
$gcc_cv_objdump = x
; then
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23379 $as_echo "not found" >&6; }
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23382 $as_echo "$gcc_cv_objdump" >&6; }
23385 # Figure out what readelf we will be using.
23386 if ${gcc_cv_readelf+:} false
; then :
23390 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23391 && test -f ..
/binutils
/Makefile \
23392 && test x
$build = x
$host; then
23393 # Single tree build which includes binutils.
23394 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23395 elif test -x readelf
$build_exeext; then
23396 gcc_cv_readelf
=.
/readelf
$build_exeext
23397 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23398 gcc_cv_readelf
="$READELF_FOR_TARGET"
23400 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23401 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23403 $as_echo_n "checking for $ac_word... " >&6; }
23404 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23405 $as_echo_n "(cached) " >&6
23407 case $gcc_cv_readelf in
23409 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23413 for as_dir
in $PATH
23416 test -z "$as_dir" && as_dir
=.
23417 for ac_exec_ext
in '' $ac_executable_extensions; do
23418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23419 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23430 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23431 if test -n "$gcc_cv_readelf"; then
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23433 $as_echo "$gcc_cv_readelf" >&6; }
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23436 $as_echo "no" >&6; }
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23444 $as_echo_n "checking what readelf to use... " >&6; }
23445 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23446 # Single tree build which includes binutils.
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23448 $as_echo "newly built readelf" >&6; }
23449 elif test x
$gcc_cv_readelf = x
; then
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23451 $as_echo "not found" >&6; }
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23454 $as_echo "$gcc_cv_readelf" >&6; }
23457 # Figure out what otool we will be using.
23458 if ${gcc_cv_otool+:} false
; then :
23462 if test -x otool
$build_exeext; then
23463 gcc_cv_otool
=.
/otool
$build_exeext
23464 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23465 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23467 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23468 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23470 $as_echo_n "checking for $ac_word... " >&6; }
23471 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23472 $as_echo_n "(cached) " >&6
23474 case $gcc_cv_otool in
23476 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23480 for as_dir
in $PATH
23483 test -z "$as_dir" && as_dir
=.
23484 for ac_exec_ext
in '' $ac_executable_extensions; do
23485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23486 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23497 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23498 if test -n "$gcc_cv_otool"; then
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23500 $as_echo "$gcc_cv_otool" >&6; }
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23503 $as_echo "no" >&6; }
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23511 $as_echo_n "checking what otool to use... " >&6; }
23512 if test x
$gcc_cv_otool = x
; then
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23514 $as_echo "not found" >&6; }
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23517 $as_echo "$gcc_cv_otool" >&6; }
23520 # Figure out the dsymutil we will use.
23521 if ${gcc_cv_dsymutil+:} false
; then :
23525 if test -x "$DEFAULT_DSYMUTIL"; then
23526 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23527 elif test -x dsymutil
$build_exeext; then
23528 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23529 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23530 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23531 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23532 gcc_cv_dsymutil
=$DSYMUTIL
23534 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23535 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23537 $as_echo_n "checking for $ac_word... " >&6; }
23538 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23539 $as_echo_n "(cached) " >&6
23541 case $gcc_cv_dsymutil in
23543 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23547 for as_dir
in $PATH
23550 test -z "$as_dir" && as_dir
=.
23551 for ac_exec_ext
in '' $ac_executable_extensions; do
23552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23553 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23564 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23565 if test -n "$gcc_cv_dsymutil"; then
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23567 $as_echo "$gcc_cv_dsymutil" >&6; }
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23570 $as_echo "no" >&6; }
23577 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23579 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23580 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23581 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23585 # Figure out what assembler alignment features are present.
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23587 $as_echo_n "checking assembler flags... " >&6; }
23588 if ${gcc_cv_as_flags+:} false
; then :
23589 $as_echo_n "(cached) " >&6
23592 i
[34567]86-*-linux*)
23593 gcc_cv_as_flags
=--32
23595 x86_64-
*-linux-gnux32)
23596 gcc_cv_as_flags
=--x32
23599 gcc_cv_as_flags
=--64
23601 powerpc
*-*-darwin*)
23602 gcc_cv_as_flags
="-arch ppc"
23605 gcc_cv_as_flags
=" "
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23610 $as_echo "$gcc_cv_as_flags" >&6; }
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23613 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23614 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23615 $as_echo_n "(cached) " >&6
23617 gcc_cv_as_balign_and_p2align
=no
23618 if test x
$gcc_cv_as != x
; then
23619 $as_echo '.balign 4
23620 .p2align 2' > conftest.s
23621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623 (eval $ac_try) 2>&5
23625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626 test $ac_status = 0; }; }
23628 gcc_cv_as_balign_and_p2align
=yes
23630 echo "configure: failed program was" >&5
23633 rm -f conftest.o conftest.s
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23637 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23638 if test $gcc_cv_as_balign_and_p2align = yes; then
23640 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23646 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23647 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23648 $as_echo_n "(cached) " >&6
23650 gcc_cv_as_max_skip_p2align
=no
23651 if test x
$gcc_cv_as != x
; then
23652 $as_echo '.p2align 4,,7' > conftest.s
23653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23655 (eval $ac_try) 2>&5
23657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23658 test $ac_status = 0; }; }
23660 gcc_cv_as_max_skip_p2align
=yes
23662 echo "configure: failed program was" >&5
23665 rm -f conftest.o conftest.s
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23669 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23670 if test $gcc_cv_as_max_skip_p2align = yes; then
23672 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23678 $as_echo_n "checking assembler for .literal16... " >&6; }
23679 if ${gcc_cv_as_literal16+:} false
; then :
23680 $as_echo_n "(cached) " >&6
23682 gcc_cv_as_literal16
=no
23683 if test x
$gcc_cv_as != x
; then
23684 $as_echo '.literal16' > conftest.s
23685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23687 (eval $ac_try) 2>&5
23689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23690 test $ac_status = 0; }; }
23692 gcc_cv_as_literal16
=yes
23694 echo "configure: failed program was" >&5
23697 rm -f conftest.o conftest.s
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23701 $as_echo "$gcc_cv_as_literal16" >&6; }
23702 if test $gcc_cv_as_literal16 = yes; then
23704 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23710 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23711 if ${gcc_cv_as_subsection_m1+:} false
; then :
23712 $as_echo_n "(cached) " >&6
23714 gcc_cv_as_subsection_m1
=no
23715 if test x
$gcc_cv_as != x
; then
23716 $as_echo 'conftest_label1: .word 0
23718 conftest_label2: .word 0
23719 .previous' > conftest.s
23720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23722 (eval $ac_try) 2>&5
23724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23725 test $ac_status = 0; }; }
23727 if test x
$gcc_cv_nm != x
; then
23728 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23729 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23730 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23732 else gcc_cv_as_subsection_m1
=yes
23734 rm -f conftest.nm1 conftest.nm2
23737 echo "configure: failed program was" >&5
23740 rm -f conftest.o conftest.s
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23744 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23745 if test $gcc_cv_as_subsection_m1 = yes; then
23747 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23753 $as_echo_n "checking assembler for .weak... " >&6; }
23754 if ${gcc_cv_as_weak+:} false
; then :
23755 $as_echo_n "(cached) " >&6
23758 if test x
$gcc_cv_as != x
; then
23759 $as_echo ' .weak foobar' > conftest.s
23760 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23762 (eval $ac_try) 2>&5
23764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23765 test $ac_status = 0; }; }
23769 echo "configure: failed program was" >&5
23772 rm -f conftest.o conftest.s
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23776 $as_echo "$gcc_cv_as_weak" >&6; }
23777 if test $gcc_cv_as_weak = yes; then
23779 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23785 $as_echo_n "checking assembler for .weakref... " >&6; }
23786 if ${gcc_cv_as_weakref+:} false
; then :
23787 $as_echo_n "(cached) " >&6
23789 gcc_cv_as_weakref
=no
23790 if test x
$gcc_cv_as != x
; then
23791 $as_echo ' .weakref foobar, barfnot' > conftest.s
23792 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23794 (eval $ac_try) 2>&5
23796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23797 test $ac_status = 0; }; }
23799 gcc_cv_as_weakref
=yes
23801 echo "configure: failed program was" >&5
23804 rm -f conftest.o conftest.s
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23808 $as_echo "$gcc_cv_as_weakref" >&6; }
23809 if test $gcc_cv_as_weakref = yes; then
23811 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23817 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23818 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23819 $as_echo_n "(cached) " >&6
23821 gcc_cv_as_nsubspa_comdat
=no
23822 if test x
$gcc_cv_as != x
; then
23823 $as_echo ' .SPACE $TEXT$
23824 .NSUBSPA $CODE$,COMDAT' > conftest.s
23825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23827 (eval $ac_try) 2>&5
23829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23830 test $ac_status = 0; }; }
23832 gcc_cv_as_nsubspa_comdat
=yes
23834 echo "configure: failed program was" >&5
23837 rm -f conftest.o conftest.s
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23841 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23842 if test $gcc_cv_as_nsubspa_comdat = yes; then
23844 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23849 # .hidden needs to be supported in both the assembler and the linker,
23850 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23851 # This is irritatingly difficult to feature test for; we have to check the
23852 # date string after the version number. If we've got an in-tree
23853 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23855 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23856 case "${target}" in
23858 conftest_s
=' .globl foobar,hidden'
23861 conftest_s
=' .hidden foobar
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23866 $as_echo_n "checking assembler for .hidden... " >&6; }
23867 if ${gcc_cv_as_hidden+:} false
; then :
23868 $as_echo_n "(cached) " >&6
23870 gcc_cv_as_hidden
=no
23871 if test x
$gcc_cv_as != x
; then
23872 $as_echo "$conftest_s" > conftest.s
23873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23875 (eval $ac_try) 2>&5
23877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23878 test $ac_status = 0; }; }
23880 gcc_cv_as_hidden
=yes
23882 echo "configure: failed program was" >&5
23885 rm -f conftest.o conftest.s
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23889 $as_echo "$gcc_cv_as_hidden" >&6; }
23892 case "${target}" in
23894 # Darwin as has some visibility support, though with a different syntax.
23895 gcc_cv_as_hidden
=yes
23899 # gnu_indirect_function type is an extension proposed at
23900 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23901 # selection of function implementation
23902 # Check whether --enable-gnu-indirect-function was given.
23903 if test "${enable_gnu_indirect_function+set}" = set; then :
23904 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23906 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23907 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23910 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23914 case "${target}" in
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23917 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23918 cat > conftest.s
<<EOF
23920 .type foo_resolver, @function
23923 .size foo_resolver, .-foo_resolver
23926 .type foo, %gnu_indirect_function
23927 .set foo, foo_resolver
23930 .type bar, @function
23936 if test x
$gcc_cv_as != x \
23937 && test x
$gcc_cv_ld != x \
23938 && test x
$gcc_cv_readelf != x \
23939 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23940 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23941 && $gcc_cv_readelf --relocs --wide conftest \
23942 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
23943 enable_gnu_indirect_function
=yes
23945 rm -f conftest conftest.o conftest.s
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23947 $as_echo "$enable_gnu_indirect_function" >&6; }
23951 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23953 cat >>confdefs.h
<<_ACEOF
23954 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23959 if test $in_tree_ld != yes ; then
23960 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23961 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23962 if test x
"$ld_is_gold" = xyes
; then
23963 # GNU gold --version looks like this:
23965 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23967 # We extract the binutils version which is more familiar and specific
23968 # than the gold version.
23969 ld_vers
=`echo $ld_ver | sed -n \
23970 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23972 # GNU ld --version looks like this:
23974 # GNU ld (GNU Binutils) 2.21.51.20110225
23975 ld_vers
=`echo $ld_ver | sed -n \
23976 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23978 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'`
23979 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23980 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23981 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23983 case "${target}" in
23985 # Solaris 2 ld -V output looks like this for a regular version:
23987 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23989 # but test versions add stuff at the end:
23991 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23993 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23994 # numbers can be used in ld.so.1 feature checks even if a different
23995 # linker is configured.
23996 ld_ver
=`$gcc_cv_ld -V 2>&1`
23997 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23998 ld_vers
=`echo $ld_ver | sed -n \
23999 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24000 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24001 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24009 $as_echo_n "checking linker for .hidden support... " >&6; }
24010 if ${gcc_cv_ld_hidden+:} false
; then :
24011 $as_echo_n "(cached) " >&6
24013 if test $in_tree_ld = yes ; then
24014 gcc_cv_ld_hidden
=no
24015 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 \
24016 && test $in_tree_ld_is_elf = yes; then
24017 gcc_cv_ld_hidden
=yes
24020 gcc_cv_ld_hidden
=yes
24021 if test x
"$ld_is_gold" = xyes
; then
24023 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24024 if test 0"$ld_date" -lt 20020404; then
24025 if test -n "$ld_date"; then
24026 # If there was date string, but was earlier than 2002-04-04, fail
24027 gcc_cv_ld_hidden
=no
24028 elif test -z "$ld_vers"; then
24029 # If there was no date string nor ld version number, something is wrong
24030 gcc_cv_ld_hidden
=no
24032 test -z "$ld_vers_patch" && ld_vers_patch
=0
24033 if test "$ld_vers_major" -lt 2; then
24034 gcc_cv_ld_hidden
=no
24035 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24036 gcc_cv_ld_hidden
="no"
24037 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24038 gcc_cv_ld_hidden
=no
24043 case "${target}" in
24045 gcc_cv_ld_hidden
=yes
24048 # Darwin ld has some visibility support.
24049 gcc_cv_ld_hidden
=yes
24051 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24052 gcc_cv_ld_hidden
=yes
24055 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24056 # .symbolic was only added in Solaris 9 12/02.
24057 gcc_cv_ld_hidden
=yes
24060 gcc_cv_ld_hidden
=no
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24067 $as_echo "$gcc_cv_ld_hidden" >&6; }
24068 libgcc_visibility
=no
24071 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24072 libgcc_visibility
=yes
24074 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24079 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24080 gcc_cv_ld_ro_rw_mix
=unknown
24081 if test $in_tree_ld = yes ; then
24082 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 \
24083 && test $in_tree_ld_is_elf = yes; then
24084 gcc_cv_ld_ro_rw_mix
=read-write
24086 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24087 echo '.section myfoosect, "a"' > conftest1.s
24088 echo '.section myfoosect, "aw"' > conftest2.s
24089 echo '.byte 1' >> conftest2.s
24090 echo '.section myfoosect, "a"' > conftest3.s
24091 echo '.byte 0' >> conftest3.s
24092 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24093 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24094 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
24095 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24096 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24097 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24098 | sed -e '/myfoosect/!d' -e N`
24099 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24100 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24101 gcc_cv_ld_ro_rw_mix
=read-only
24103 gcc_cv_ld_ro_rw_mix
=read-write
24107 rm -f conftest.
* conftest
[123].
*
24109 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24111 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24115 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24117 # Check whether --enable-initfini-array was given.
24118 if test "${enable_initfini_array+set}" = set; then :
24119 enableval
=$enable_initfini_array;
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24123 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24124 if ${gcc_cv_initfini_array+:} false
; then :
24125 $as_echo_n "(cached) " >&6
24127 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24128 case "${target}" in
24130 if test "$cross_compiling" = yes; then :
24131 gcc_cv_initfini_array
=no
24133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24134 /* end confdefs.h. */
24137 #error Not an ELF OS
24139 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24140 if it can be used. */
24142 int main (void) { return x; }
24143 int foo (void) { x = 0; }
24144 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24147 if ac_fn_cxx_try_run
"$LINENO"; then :
24148 gcc_cv_initfini_array
=yes
24150 gcc_cv_initfini_array
=no
24152 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24153 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24157 gcc_cv_initfini_array
=no
24158 if test $in_tree_ld = yes ; then
24159 if test "$gcc_cv_gld_major_version" -eq 2 \
24160 -a "$gcc_cv_gld_minor_version" -ge 22 \
24161 -o "$gcc_cv_gld_major_version" -gt 2 \
24162 && test $in_tree_ld_is_elf = yes; then
24163 gcc_cv_initfini_array
=yes
24165 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24166 case $target:$gas in
24169 sh_type
='%progbits'
24171 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24173 sh_type
='@progbits'
24175 sparc
*-*-solaris2*:no
)
24177 sh_type
='#progbits'
24181 case "$target:$gnu_ld" in
24183 cat > conftest.s
<<EOF
24184 .section .dtors,$sh_flags,$sh_type
24186 .byte 'A', 'A', 'A', 'A'
24187 .section .ctors,$sh_flags,$sh_type
24189 .byte 'B', 'B', 'B', 'B'
24190 .section .fini_array.65530,$sh_flags,$sh_type
24192 .byte 'C', 'C', 'C', 'C'
24193 .section .init_array.65530,$sh_flags,$sh_type
24195 .byte 'D', 'D', 'D', 'D'
24196 .section .dtors.64528,$sh_flags,$sh_type
24198 .byte 'E', 'E', 'E', 'E'
24199 .section .ctors.64528,$sh_flags,$sh_type
24201 .byte 'F', 'F', 'F', 'F'
24202 .section .fini_array.01005,$sh_flags,$sh_type
24204 .byte 'G', 'G', 'G', 'G'
24205 .section .init_array.01005,$sh_flags,$sh_type
24207 .byte 'H', 'H', 'H', 'H'
24212 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24213 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24214 && $gcc_cv_objdump -s -j .init_array conftest \
24215 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24216 && $gcc_cv_objdump -s -j .fini_array conftest \
24217 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24218 gcc_cv_initfini_array
=yes
24222 # When Solaris ld added constructor priority support, it was
24223 # decided to only handle .init_array.N/.fini_array.N since
24224 # there was no need for backwards compatibility with
24225 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24226 # sections with correct execution order resp. to
24227 # .init_array/.fini_array, while gld merges them into
24228 # .init_array/.fini_array.
24229 cat > conftest.s
<<EOF
24230 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24232 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24233 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24235 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24236 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24238 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24239 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24241 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24246 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24247 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24248 && $gcc_cv_objdump -s -j .init_array conftest \
24249 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24250 && $gcc_cv_objdump -s -j .fini_array conftest \
24251 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24252 gcc_cv_initfini_array
=yes
24256 rm -f conftest conftest.
*
24258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24259 /* end confdefs.h. */
24262 # error Not an ELF OS
24264 #include <stdlib.h>
24265 #if defined __GLIBC_PREREQ
24266 # if __GLIBC_PREREQ (2, 4)
24268 # error GLIBC 2.4 required
24271 # if defined __sun__ && defined __svr4__
24272 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24274 # error The C library not known to support .init_array/.fini_array
24279 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24282 gcc_cv_initfini_array
=no
24284 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24287 case "${target}" in
24288 aarch64
*-linux-gnu*)
24289 # AArch64 postdates glibc support for .init_array/.fini_array,
24290 # so we don't need the preprocessor test above.
24291 gcc_cv_initfini_array
=yes
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24296 $as_echo_n "checking cross compile... guessing... " >&6; }
24297 gcc_cv_initfini_array
=no
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24303 $as_echo "$gcc_cv_initfini_array" >&6; }
24304 enable_initfini_array
=$gcc_cv_initfini_array
24309 cat >>confdefs.h
<<_ACEOF
24310 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24315 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24316 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24317 # these directives, even when they appear to accept them.
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24319 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24320 if ${gcc_cv_as_leb128+:} false
; then :
24321 $as_echo_n "(cached) " >&6
24323 gcc_cv_as_leb128
=no
24324 if test x
$gcc_cv_as != x
; then
24331 .uleb128 0x8000000000000000
24333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24335 (eval $ac_try) 2>&5
24337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24338 test $ac_status = 0; }; }
24341 if test "x$gcc_cv_objdump" != x
; then
24342 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24343 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24344 gcc_cv_as_leb128
=yes
24346 elif test "x$gcc_cv_otool" != x
; then
24347 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24348 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24349 gcc_cv_as_leb128
=yes
24352 # play safe, assume the assembler is broken.
24357 echo "configure: failed program was" >&5
24360 rm -f conftest.o conftest.s
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24364 $as_echo "$gcc_cv_as_leb128" >&6; }
24365 if test $gcc_cv_as_leb128 = yes; then
24367 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24370 if test $gcc_cv_as_leb128 != yes; then
24372 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24376 # Determine if an .eh_frame section is read-only.
24377 gcc_fn_eh_frame_ro
() {
24378 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24379 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24380 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24383 # Check if we have assembler support for unwind directives.
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24385 $as_echo_n "checking assembler for cfi directives... " >&6; }
24386 if ${gcc_cv_as_cfi_directive+:} false
; then :
24387 $as_echo_n "(cached) " >&6
24389 gcc_cv_as_cfi_directive
=no
24390 if test x
$gcc_cv_as != x
; then
24396 .cfi_escape 1, 2, 3, 4, 5
24397 .cfi_endproc' > conftest.s
24398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; }
24407 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24408 # read-only and read-write sections, we need to make sure that the
24409 # assembler used emits read-write .eh_frame sections.
24410 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24411 gcc_cv_as_cfi_directive
=yes
24412 elif test "x$gcc_cv_objdump" = x
; then
24413 # No objdump, err on the side of caution.
24414 gcc_cv_as_cfi_directive
=no
24416 if test x
$gas = xyes
; then
24424 sparc
*-*-solaris2.
*)
24425 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24426 if gcc_fn_eh_frame_ro
$as_32_opt \
24427 || gcc_fn_eh_frame_ro
$as_64_opt; then
24428 gcc_cv_as_cfi_directive
=no
24430 gcc_cv_as_cfi_directive
=yes
24433 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24434 # On Solaris/x86, make sure that GCC and assembler agree on using
24435 # read-only .eh_frame sections for 64-bit.
24436 if gcc_fn_eh_frame_ro
$as_32_opt; then
24437 gcc_cv_as_cfi_directive
=no
24438 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24439 gcc_cv_as_cfi_directive
=yes
24441 gcc_cv_as_cfi_directive
=no
24448 gcc_cv_as_cfi_directive
=yes
24452 echo "configure: failed program was" >&5
24455 rm -f conftest.o conftest.s
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24459 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24462 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24464 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24465 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24466 $as_echo_n "(cached) " >&6
24468 gcc_cv_as_cfi_advance_working
=no
24469 if test x
$gcc_cv_as != x
; then
24472 .cfi_adjust_cfa_offset 64
24474 .cfi_adjust_cfa_offset 128
24475 .cfi_endproc' > conftest.s
24476 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478 (eval $ac_try) 2>&5
24480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481 test $ac_status = 0; }; }
24484 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24485 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24486 gcc_cv_as_cfi_advance_working
=yes
24490 echo "configure: failed program was" >&5
24493 rm -f conftest.o conftest.s
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24497 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24501 # no objdump, err on the side of caution
24502 gcc_cv_as_cfi_advance_working
=no
24506 cat >>confdefs.h
<<_ACEOF
24507 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24508 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24514 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24515 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24516 $as_echo_n "(cached) " >&6
24518 gcc_cv_as_cfi_personality_directive
=no
24519 if test x
$gcc_cv_as != x
; then
24522 .cfi_personality 0, symbol
24523 .cfi_endproc' > conftest.s
24524 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24531 gcc_cv_as_cfi_personality_directive
=yes
24533 echo "configure: failed program was" >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24540 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24544 cat >>confdefs.h
<<_ACEOF
24545 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24550 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24551 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24552 $as_echo_n "(cached) " >&6
24554 gcc_cv_as_cfi_sections_directive
=no
24555 if test x
$gcc_cv_as != x
; then
24557 .cfi_sections .debug_frame, .eh_frame
24559 .cfi_endproc' > conftest.s
24560 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24562 (eval $ac_try) 2>&5
24564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24565 test $ac_status = 0; }; }
24568 win32 | pe | cygwin
* | mingw32
*)
24569 # Need to check that we generated the correct relocation for the
24570 # .debug_frame section. This was fixed for binutils 2.21.
24571 gcc_cv_as_cfi_sections_directive
=no
24572 if test "x$gcc_cv_objdump" != x
; then
24573 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24574 grep secrel
> /dev
/null
; then
24575 gcc_cv_as_cfi_sections_directive
=yes
24580 gcc_cv_as_cfi_sections_directive
=yes
24584 echo "configure: failed program was" >&5
24587 rm -f conftest.o conftest.s
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24591 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24596 cat >>confdefs.h
<<_ACEOF
24597 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24601 # GAS versions up to and including 2.11.0 may mis-optimize
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24604 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24605 if ${gcc_cv_as_eh_frame+:} false
; then :
24606 $as_echo_n "(cached) " >&6
24608 gcc_cv_as_eh_frame
=no
24609 if test x
$gcc_cv_as != x
; then
24616 .section .eh_frame,"aw",@progbits
24618 .4byte .LECIE1-.LSCIE1
24632 .4byte .LEFDE1-.LASFDE1
24634 .4byte .LASFDE1-__FRAME_BEGIN__
24641 .LEFDE1:' > conftest.s
24642 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24644 (eval $ac_try) 2>&5
24646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24647 test $ac_status = 0; }; }
24649 cat > conftest.lit
<<EOF
24650 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24651 0010 01000000 12000000 18000000 00000000 ................
24652 0020 08000000 04080000 0044 .........D
24654 cat > conftest.big
<<EOF
24655 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24656 0010 00000001 00000012 00000018 00000000 ................
24657 0020 00000008 04000000 0844 .........D
24659 # If the assembler didn't choke, and we can objdump,
24660 # and we got the correct data, then succeed.
24661 # The text in the here-document typically retains its unix-style line
24662 # endings, while the output of objdump will use host line endings.
24663 # Therefore, use diff -b for the comparisons.
24664 if test x
$gcc_cv_objdump != x \
24665 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24666 |
tail -3 > conftest.got \
24667 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24668 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24670 gcc_cv_as_eh_frame
=yes
24671 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24673 (eval $ac_try) 2>&5
24675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676 test $ac_status = 0; }; }; then
24677 gcc_cv_as_eh_frame
=buggy
24679 # Uh oh, what do we do now?
24680 gcc_cv_as_eh_frame
=no
24683 echo "configure: failed program was" >&5
24686 rm -f conftest.o conftest.s
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24690 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24694 if test $gcc_cv_as_eh_frame = buggy
; then
24696 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24700 # Test if the assembler supports the section flag 'e' or #exclude for
24701 # specifying an excluded section.
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24703 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24704 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24705 $as_echo_n "(cached) " >&6
24707 gcc_cv_as_section_exclude_e
=no
24708 if test x
$gcc_cv_as != x
; then
24709 $as_echo '.section foo1,"e"
24710 .byte 0,0,0,0' > conftest.s
24711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; }
24718 gcc_cv_as_section_exclude_e
=yes
24720 echo "configure: failed program was" >&5
24723 rm -f conftest.o conftest.s
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24727 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24730 if test $gcc_cv_as_section_exclude_e = no
; then
24731 case "${target}" in
24732 # Solaris as uses #exclude instead.
24734 case "${target}" in
24735 sparc
*-*-solaris2*)
24736 conftest_s
='.section "foo1", #exclude'
24738 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24739 conftest_s
='.section foo1, #exclude'
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24745 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24746 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24747 $as_echo_n "(cached) " >&6
24749 gcc_cv_as_section_exclude_hash
=no
24750 if test x
$gcc_cv_as != x
; then
24751 $as_echo "$conftest_s
24752 .byte 0,0,0,0" > conftest.s
24753 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24755 (eval $ac_try) 2>&5
24757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24758 test $ac_status = 0; }; }
24760 gcc_cv_as_section_exclude_hash
=yes
24762 echo "configure: failed program was" >&5
24765 rm -f conftest.o conftest.s
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24769 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24774 cat >>confdefs.h
<<_ACEOF
24775 #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`
24779 # Test if the assembler supports the section flag 'R' for specifying
24780 # section with SHF_GNU_RETAIN.
24781 case "${target}" in
24782 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24783 # assembler supports the section flag 'R', it doesn't mean that
24784 # Solairs ld supports it.
24786 gcc_cv_as_shf_gnu_retain
=no
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24790 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24791 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
24792 $as_echo_n "(cached) " >&6
24794 gcc_cv_as_shf_gnu_retain
=no
24795 if test x
$gcc_cv_as != x
; then
24796 $as_echo '.section .foo,"awR",%progbits
24797 .byte 0' > conftest.s
24798 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24800 (eval $ac_try) 2>&5
24802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24803 test $ac_status = 0; }; }
24805 gcc_cv_as_shf_gnu_retain
=yes
24807 echo "configure: failed program was" >&5
24810 rm -f conftest.o conftest.s
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24814 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24820 cat >>confdefs.h
<<_ACEOF
24821 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24825 # Test if the assembler supports the section flag 'o' for specifying
24826 # section with link-order.
24827 case "${target}" in
24828 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24829 # assembler supports the section flag 'o', it doesn't mean that
24830 # Solairs ld supports it.
24832 gcc_cv_as_section_link_order
=no
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24836 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24837 if ${gcc_cv_as_section_link_order+:} false
; then :
24838 $as_echo_n "(cached) " >&6
24840 gcc_cv_as_section_link_order
=no
24841 if test x
$gcc_cv_as != x
; then
24842 $as_echo '.section .foo,"a"
24844 .section __patchable_function_entries,"awo",%progbits,.foo
24845 .byte 0' > conftest.s
24846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848 (eval $ac_try) 2>&5
24850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851 test $ac_status = 0; }; }
24853 gcc_cv_as_section_link_order
=yes
24855 echo "configure: failed program was" >&5
24858 rm -f conftest.o conftest.s
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24862 $as_echo "$gcc_cv_as_section_link_order" >&6; }
24868 cat >>confdefs.h
<<_ACEOF
24869 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24874 $as_echo_n "checking assembler for section merging support... " >&6; }
24875 if ${gcc_cv_as_shf_merge+:} false
; then :
24876 $as_echo_n "(cached) " >&6
24878 gcc_cv_as_shf_merge
=no
24879 if test x
$gcc_cv_as != x
; then
24880 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_shf_merge
=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_shf_merge" >&5
24897 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24900 if test $gcc_cv_as_shf_merge = no
; then
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24902 $as_echo_n "checking assembler for section merging support... " >&6; }
24903 if ${gcc_cv_as_shf_merge+:} false
; then :
24904 $as_echo_n "(cached) " >&6
24906 gcc_cv_as_shf_merge
=no
24907 if test x
$gcc_cv_as != x
; then
24908 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911 (eval $ac_try) 2>&5
24913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914 test $ac_status = 0; }; }
24916 gcc_cv_as_shf_merge
=yes
24918 echo "configure: failed program was" >&5
24921 rm -f conftest.o conftest.s
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24925 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24930 cat >>confdefs.h
<<_ACEOF
24931 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24935 gcc_cv_ld_aligned_shf_merge
=yes
24937 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24939 sparc
*-*-solaris2.11
*)
24940 if test x
"$gnu_ld" = xno \
24941 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24942 gcc_cv_ld_aligned_shf_merge
=no
24947 cat >>confdefs.h
<<_ACEOF
24948 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24953 $as_echo_n "checking assembler for stabs directive... " >&6; }
24954 if ${gcc_cv_as_stabs_directive+:} false
; then :
24955 $as_echo_n "(cached) " >&6
24957 gcc_cv_as_stabs_directive
=no
24958 if test x
$gcc_cv_as != x
; then
24959 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24962 (eval $ac_try) 2>&5
24964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24965 test $ac_status = 0; }; }
24967 gcc_cv_as_stabs_directive
=yes
24969 echo "configure: failed program was" >&5
24972 rm -f conftest.o conftest.s
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24976 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24977 if test $gcc_cv_as_stabs_directive = yes; then
24979 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24985 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24986 if ${gcc_cv_as_comdat_group+:} false
; then :
24987 $as_echo_n "(cached) " >&6
24989 gcc_cv_as_comdat_group
=no
24990 if test x
$gcc_cv_as != x
; then
24991 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24992 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24994 (eval $ac_try) 2>&5
24996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24997 test $ac_status = 0; }; }
24999 gcc_cv_as_comdat_group
=yes
25001 echo "configure: failed program was" >&5
25004 rm -f conftest.o conftest.s
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25008 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25011 if test $gcc_cv_as_comdat_group = yes; then
25012 gcc_cv_as_comdat_group_percent
=no
25013 gcc_cv_as_comdat_group_group
=no
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25016 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25017 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25018 $as_echo_n "(cached) " >&6
25020 gcc_cv_as_comdat_group_percent
=no
25021 if test x
$gcc_cv_as != x
; then
25022 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25023 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25025 (eval $ac_try) 2>&5
25027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25028 test $ac_status = 0; }; }
25030 gcc_cv_as_comdat_group_percent
=yes
25032 echo "configure: failed program was" >&5
25035 rm -f conftest.o conftest.s
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25039 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25042 if test $gcc_cv_as_comdat_group_percent = yes; then
25043 gcc_cv_as_comdat_group_group
=no
25045 case "${target}" in
25046 # Sun as uses a completely different syntax.
25048 case "${target}" in
25049 sparc
*-*-solaris2*)
25051 .group foo,".text%foo",#comdat
25052 .section ".text%foo", #alloc,#execinstr,#progbits
25057 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25059 .group foo,.text%foo,#comdat
25060 .section .text%foo, "ax", @progbits
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25067 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25068 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25069 $as_echo_n "(cached) " >&6
25071 gcc_cv_as_comdat_group_group
=no
25072 if test x
$gcc_cv_as != x
; then
25073 $as_echo "$conftest_s" > conftest.s
25074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25081 gcc_cv_as_comdat_group_group
=yes
25083 echo "configure: failed program was" >&5
25086 rm -f conftest.o conftest.s
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25090 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25095 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25096 gcc_cv_as_comdat_group_group
=no
25100 if test x
"$ld_is_gold" = xyes
; then
25102 elif test $in_tree_ld = yes ; then
25104 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 \
25105 && test $in_tree_ld_is_elf = yes; then
25108 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25110 if test 0"$ld_date" -lt 20050308; then
25111 if test -n "$ld_date"; then
25112 # If there was date string, but was earlier than 2005-03-08, fail
25114 elif test "$ld_vers_major" -lt 2; then
25116 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25121 case "${target}" in
25122 *-*-solaris2.1
[1-9]*)
25124 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25125 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25128 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25129 # least ld version 1.2267.
25130 if test "$ld_vers_major" -gt 1; then
25132 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25134 elif test "$ld_vers_minor" -ge 2267; then
25139 # Assume linkers other than GNU ld don't support COMDAT group.
25144 # Allow overriding the automatic COMDAT group tests above.
25145 # Check whether --enable-comdat was given.
25146 if test "${enable_comdat+set}" = set; then :
25147 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25150 if test $comdat_group = no
; then
25151 gcc_cv_as_comdat_group
=no
25152 gcc_cv_as_comdat_group_percent
=no
25153 gcc_cv_as_comdat_group_group
=no
25156 cat >>confdefs.h
<<_ACEOF
25157 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25158 || test $gcc_cv_as_comdat_group_percent = yes \
25159 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25163 # Restrict this test to Solaris/x86: other targets define this statically.
25164 case "${target}" in
25165 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25167 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25168 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25169 hidden_linkonce
=yes
25171 case "${target}" in
25172 # Full support for hidden thunks in linkonce sections only appeared in
25173 # Solaris 11/OpenSolaris.
25174 *-*-solaris2.1
[1-9]*)
25175 hidden_linkonce
=yes
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25183 $as_echo "$hidden_linkonce" >&6; }
25185 cat >>confdefs.h
<<_ACEOF
25186 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25193 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25194 if ${gcc_cv_as_is_stmt+:} false
; then :
25195 $as_echo_n "(cached) " >&6
25197 gcc_cv_as_is_stmt
=no
25198 if test x
$gcc_cv_as != x
; then
25201 .loc 1 1 0 is_stmt 1' > 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_is_stmt
=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_is_stmt" >&5
25218 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25219 if test $gcc_cv_as_is_stmt = yes; then
25221 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25227 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25228 if ${gcc_cv_as_discriminator+:} false
; then :
25229 $as_echo_n "(cached) " >&6
25231 gcc_cv_as_discriminator
=no
25232 if test x
$gcc_cv_as != x
; then
25235 .loc 1 1 0 discriminator 1' > conftest.s
25236 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25238 (eval $ac_try) 2>&5
25240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25241 test $ac_status = 0; }; }
25243 gcc_cv_as_discriminator
=yes
25245 echo "configure: failed program was" >&5
25248 rm -f conftest.o conftest.s
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25252 $as_echo "$gcc_cv_as_discriminator" >&6; }
25253 if test $gcc_cv_as_discriminator = yes; then
25255 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25260 # Catch the newlib flag of the same name so we can gate GCC features on it.
25261 # Check whether --enable-newlib-nano-formatted-io was given.
25262 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25263 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25267 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25273 # Thread-local storage - the check is heavily parameterized.
25279 .section ".tdata","awT",@progbits
25282 ldq $27,__tls_get_addr($29) !literal!1
25283 lda $16,foo($29) !tlsgd!1
25284 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25285 ldq $27,__tls_get_addr($29) !literal!2
25286 lda $16,foo($29) !tlsldm!2
25287 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25288 ldq $1,foo($29) !gotdtprel
25289 ldah $2,foo($29) !dtprelhi
25290 lda $3,foo($2) !dtprello
25291 lda $4,foo($29) !dtprel
25292 ldq $1,foo($29) !gottprel
25293 ldah $2,foo($29) !tprelhi
25294 lda $3,foo($2) !tprello
25295 lda $4,foo($29) !tprel'
25296 tls_as_opt
=--fatal-warnings
25300 add_s r0,r0, @foo@tpoff'
25302 cris-
*-*|crisv32-
*-*)
25304 .section ".tdata","awT",@progbits
25309 tls_as_opt
=--fatal-warnings
25313 .section ".tdata","awT",@progbits
25316 call #gettlsoff(x)'
25323 .section ".tdata","awT",@progbits
25327 addil LT%foo-$tls_gdidx$,gp
25328 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25331 addil LT%foo-$tls_ldidx$,gp
25333 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25334 addil LR%foo-$tls_dtpoff$,%ret0
25335 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25337 addil LT%foo-$tls_ieoff$,gp
25338 ldw RT%foo-$tls_ieoff$(%r1),%t2
25341 addil LR%foo-$tls_leoff$,%t1
25342 ldo RR%foo-$tls_leoff$(%r1),%t2'
25343 tls_as_opt
=--fatal-warnings
25347 .section ".tdata","awT",%progbits
25350 .word foo(gottpoff)
25356 i
[34567]86-*-* | x86_64-
*-*)
25358 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25365 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25367 .section .tdata,"awt",@progbits'
25370 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25374 .section ".tdata","awT",@progbits'
25376 tls_as_opt
="--fatal-warnings"
25380 if test x
$on_solaris = xyes
; then
25382 yes) tls_as_opt
="$tls_as_opt --32" ;;
25385 conftest_s
="$conftest_s
25389 leal foo@tlsgd(,%ebx,1), %eax
25390 leal foo@tlsldm(%ebx), %eax
25391 leal foo@dtpoff(%eax), %edx
25392 movl foo@gottpoff(%ebx), %eax
25393 subl foo@gottpoff(%ebx), %eax
25394 addl foo@gotntpoff(%ebx), %eax
25395 movl foo@indntpoff, %eax
25396 movl \$foo@tpoff, %eax
25397 subl \$foo@tpoff, %eax
25398 leal foo@ntpoff(%ecx), %eax"
25401 if test x
$on_solaris = xyes
; then
25403 yes) tls_as_opt
="$tls_as_opt --64" ;;
25404 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25407 conftest_s
="$conftest_s
25411 leaq foo@tlsgd(%rip), %rdi
25412 leaq foo@tlsld(%rip), %rdi
25413 leaq foo@dtpoff(%rax), %rdx
25414 movq foo@gottpoff(%rip), %rax
25415 movq \$foo@tpoff, %rax"
25421 .section ".tdata","awT",@progbits
25424 addl r16 = @ltoff(@dtpmod(foo#)), gp
25425 addl r17 = @ltoff(@dtprel(foo#)), gp
25426 addl r18 = @ltoff(@tprel(foo#)), gp
25427 addl r19 = @dtprel(foo#), gp
25428 adds r21 = @dtprel(foo#), r13
25429 movl r23 = @dtprel(foo#)
25430 addl r20 = @tprel(foo#), gp
25431 adds r22 = @tprel(foo#), r13
25432 movl r24 = @tprel(foo#)'
25433 tls_as_opt
=--fatal-warnings
25437 .section .tdata,"awT",@progbits
25441 addik r5,r20,x@TLSGD
25442 addik r5,r20,x@TLSLDM'
25443 tls_as_opt
='--fatal-warnings'
25447 .section .tdata,"awT",@progbits
25451 addiu $4, $28, %tlsgd(x)
25452 addiu $4, $28, %tlsldm(x)
25453 lui $4, %dtprel_hi(x)
25454 addiu $4, $4, %dtprel_lo(x)
25455 lw $4, %gottprel(x)($28)
25456 lui $4, %tprel_hi(x)
25457 addiu $4, $4, %tprel_lo(x)'
25458 tls_as_opt
='-32 --fatal-warnings'
25462 .section .tdata,"awT",@progbits
25467 move.l x@TLSGD(%a5),%a0
25468 move.l x@TLSLDM(%a5),%a0
25469 move.l x@TLSLDO(%a5),%a0
25470 move.l x@TLSIE(%a5),%a0
25471 move.l x@TLSLE(%a5),%a0'
25472 tls_as_opt
='--fatal-warnings'
25476 .section ".tdata","awT",@progbits'
25477 tls_as_opt
="--fatal-warnings"
25481 .section ".tdata","awT",%progbits
25485 add x0, x0, #:tlsgd_lo12:x
25488 tls_as_opt
='--fatal-warnings'
25492 .section ".tdata","awT",@progbits
25495 l.movhi r3, tpoffha(foo)
25497 l.lwz r4, tpofflo(foo)(r3)'
25498 tls_as_opt
=--fatal-warnings
25502 .extern __get_tpointer
25518 .section ".tdata","awT",@progbits
25526 addi 3,2,ld0@got@tlsgd
25532 addi 3,2,x1@got@tlsld
25538 addis 9,3,x2@dtprel@ha
25539 addi 9,9,x2@dtprel@l
25542 ld 9,x3@got@dtprel(2)
25546 tls_as_opt
="-a64 --fatal-warnings"
25550 .section ".tdata","awT",@progbits
25558 addi 3,31,ld0@got@tlsgd
25560 addi 3,31,x1@got@tlsld
25563 addis 9,3,x2@dtprel@ha
25564 addi 9,9,x2@dtprel@l
25565 lwz 9,x3@got@tprel(31)
25568 addis 9,2,x2@tprel@ha
25569 addi 9,9,x2@tprel@l'
25570 tls_as_opt
="-a32 --fatal-warnings"
25574 .section .tdata,"awT",@progbits
25578 call __tls_get_addr'
25579 tls_as_opt
='--fatal-warnings'
25583 .section ".tdata","awT",@progbits
25590 .long foo@GOTNTPOFF
25591 .long foo@INDNTPOFF
25592 l %r1,foo@GOTNTPOFF(%r12)
25593 l %r1,0(%r1):tls_load:foo
25594 bas %r14,0(%r1,%r13):tls_gdcall:foo
25595 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25596 tls_as_opt
="-m31 --fatal-warnings"
25600 .section ".tdata","awT",@progbits
25607 .quad foo@GOTNTPOFF
25608 lg %r1,foo@GOTNTPOFF(%r12)
25609 larl %r1,foo@INDNTPOFF
25610 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25611 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25612 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25614 sh-
*-* | sh
[123456789lbe
]*-*-*)
25616 .section ".tdata","awT",@progbits
25624 tls_as_opt
=--fatal-warnings
25628 sparc
*-sun-solaris2.
*)
25635 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25637 .section ".tdata",#alloc,#write,#tls'
25640 .section ".tdata","awT",@progbits'
25641 tls_as_opt
="-32 --fatal-warnings"
25643 conftest_s
="$conftest_s
25646 sethi %tgd_hi22(foo), %o0
25647 add %o0, %tgd_lo10(foo), %o1
25648 add %l7, %o1, %o0, %tgd_add(foo)
25649 call __tls_get_addr, %tgd_call(foo)
25650 sethi %tldm_hi22(foo), %l1
25651 add %l1, %tldm_lo10(foo), %l2
25652 add %l7, %l2, %o0, %tldm_add(foo)
25653 call __tls_get_addr, %tldm_call(foo)
25654 sethi %tldo_hix22(foo), %l3
25655 xor %l3, %tldo_lox10(foo), %l4
25656 add %o0, %l4, %l5, %tldo_add(foo)
25657 sethi %tie_hi22(foo), %o3
25658 add %o3, %tie_lo10(foo), %o3
25659 ld [%l7 + %o3], %o2, %tie_ld(foo)
25660 add %g7, %o2, %o4, %tie_add(foo)
25661 sethi %tle_hix22(foo), %l1
25662 xor %l1, %tle_lox10(foo), %o5
25663 ld [%g7 + %o5], %o1"
25667 .section ".tdata","awT",@progbits
25670 addli r0, zero, tls_gd(foo)
25671 auli r0, zero, tls_gd_ha16(foo)
25672 addli r0, r0, tls_gd_lo16(foo)
25674 addli r0, zero, tls_ie(foo)
25675 auli r0, r0, tls_ie_ha16(foo)
25676 addli r0, r0, tls_ie_lo16(foo)'
25677 tls_as_opt
="--fatal-warnings"
25681 .section ".tdata","awT",@progbits
25684 shl16insli r0, zero, hw0_last_tls_gd(foo)
25685 shl16insli r0, zero, hw1_last_tls_gd(foo)
25686 shl16insli r0, r0, hw0_tls_gd(foo)
25688 shl16insli r0, zero, hw1_last_tls_ie(foo)
25689 shl16insli r0, r0, hw0_tls_ie(foo)'
25690 tls_as_opt
="--fatal-warnings"
25694 .section ".tdata","awT",@progbits
25697 movi a8, foo@TLSFUNC
25698 movi a10, foo@TLSARG
25699 callx8.tls a8, foo@TLSCALL'
25703 if test "x$enable_tls" = xno
; then
25704 : # TLS explicitly disabled.
25705 elif test "x$enable_tls" = xyes
; then
25706 set_have_as_tls
=yes # TLS explicitly enabled.
25707 elif test -z "$conftest_s"; then
25708 : # If we don't have a check, assume no support.
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25711 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25712 if ${gcc_cv_as_tls+:} false
; then :
25713 $as_echo_n "(cached) " >&6
25716 if test x
$gcc_cv_as != x
; then
25717 $as_echo "$conftest_s" > conftest.s
25718 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25720 (eval $ac_try) 2>&5
25722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723 test $ac_status = 0; }; }
25727 echo "configure: failed program was" >&5
25730 rm -f conftest.o conftest.s
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25734 $as_echo "$gcc_cv_as_tls" >&6; }
25735 if test $gcc_cv_as_tls = yes; then
25736 set_have_as_tls
=yes
25740 if test $set_have_as_tls = yes ; then
25742 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25746 # Target-specific assembler checks.
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25749 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25750 gcc_cv_ld_static_dynamic
=no
25751 gcc_cv_ld_static_option
='-Bstatic'
25752 gcc_cv_ld_dynamic_option
='-Bdynamic'
25753 if test $in_tree_ld = yes ; then
25754 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
25755 gcc_cv_ld_static_dynamic
=yes
25757 elif test x
$gcc_cv_ld != x
; then
25758 # Check if linker supports -Bstatic/-Bdynamic option
25759 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25760 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25761 gcc_cv_ld_static_dynamic
=yes
25764 # AIX ld uses -b flags
25765 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25766 gcc_cv_ld_static_dynamic
=yes
25767 gcc_cv_ld_static_option
="-bstatic"
25768 gcc_cv_ld_dynamic_option
="-bdynamic"
25770 # HP-UX ld uses -a flags to select between shared and archive.
25772 if test x
"$gnu_ld" = xno
; then
25773 gcc_cv_ld_static_dynamic
=yes
25774 gcc_cv_ld_static_option
="-aarchive_shared"
25775 gcc_cv_ld_dynamic_option
="-adefault"
25778 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25780 gcc_cv_ld_static_dynamic
=yes
25785 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25787 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25790 cat >>confdefs.h
<<_ACEOF
25791 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25795 cat >>confdefs.h
<<_ACEOF
25796 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25801 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25804 $as_echo_n "checking linker --version-script option... " >&6; }
25805 gcc_cv_ld_version_script
=no
25806 ld_version_script_option
=''
25807 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25808 gcc_cv_ld_version_script
=yes
25809 ld_version_script_option
='--version-script'
25810 elif test x
$gcc_cv_ld != x
; then
25812 # Solaris 2 ld always supports -M. It also supports a subset of
25813 # --version-script since Solaris 11.4, but requires
25814 # -z gnu-version-script-compat to activate.
25816 gcc_cv_ld_version_script
=yes
25817 ld_version_script_option
='-M'
25821 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25823 $as_echo "$gcc_cv_ld_version_script" >&6; }
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25827 $as_echo_n "checking linker soname option... " >&6; }
25828 gcc_cv_ld_soname
=no
25829 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25830 gcc_cv_ld_soname
=yes
25831 ld_soname_option
='-soname'
25832 elif test x
$gcc_cv_ld != x
; then
25835 gcc_cv_ld_soname
=yes
25836 ld_soname_option
='-install_name'
25838 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25839 # ld compatiblity since some Solaris 10 update.
25841 gcc_cv_ld_soname
=yes
25842 ld_soname_option
='-h'
25846 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25848 $as_echo "$gcc_cv_ld_soname" >&6; }
25851 if test x
"$demangler_in_ld" = xyes
; then
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25853 $as_echo_n "checking linker --demangle support... " >&6; }
25854 gcc_cv_ld_demangle
=no
25855 if test $in_tree_ld = yes; then
25856 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 \
25857 gcc_cv_ld_demangle
=yes
25859 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25860 # Check if the GNU linker supports --demangle option
25861 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25862 gcc_cv_ld_demangle
=yes
25865 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25867 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25871 $as_echo "$gcc_cv_ld_demangle" >&6; }
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25875 $as_echo_n "checking linker plugin support... " >&6; }
25876 gcc_cv_lto_plugin
=0
25877 if test -f liblto_plugin.la
; then
25878 save_ld_ver
="$ld_ver"
25879 save_ld_vers_major
="$ld_vers_major"
25880 save_ld_vers_minor
="$ld_vers_minor"
25881 save_ld_is_gold
="$ld_is_gold"
25885 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25887 # FIXME: ld_is_gold?
25888 ld_vers_major
="$gcc_cv_gld_major_version"
25889 ld_vers_minor
="$gcc_cv_gld_minor_version"
25891 # Determine plugin linker version.
25892 # FIXME: Partial duplicate from above, generalize.
25893 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25894 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25895 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25897 ld_vers
=`echo $ld_ver | sed -n \
25898 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25900 ld_vers
=`echo $ld_ver | sed -n \
25901 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25903 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25904 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25908 # Determine plugin support.
25909 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25910 # Require GNU ld or gold 2.21+ for plugin support by default.
25911 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25912 gcc_cv_lto_plugin
=2
25913 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25914 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25915 gcc_cv_lto_plugin
=1
25919 ld_ver
="$save_ld_ver"
25920 ld_vers_major
="$save_ld_vers_major"
25921 ld_vers_minor
="$save_ld_vers_minor"
25922 ld_is_gold
="$save_ld_is_gold"
25925 cat >>confdefs.h
<<_ACEOF
25926 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25930 $as_echo "$gcc_cv_lto_plugin" >&6; }
25932 # Target OS-specific assembler checks.
25934 case "$target_os" in
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25937 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25938 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25939 $as_echo_n "(cached) " >&6
25941 gcc_cv_as_mmacosx_version_min
=no
25942 if test x
$gcc_cv_as != x
; then
25943 $as_echo '.text' > conftest.s
25944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25946 (eval $ac_try) 2>&5
25948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25949 test $ac_status = 0; }; }
25951 gcc_cv_as_mmacosx_version_min
=yes
25953 echo "configure: failed program was" >&5
25956 rm -f conftest.o conftest.s
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25960 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25961 if test $gcc_cv_as_mmacosx_version_min = yes; then
25963 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25970 # Target CPU-specific assembler checks.
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25975 $as_echo_n "checking assembler for -mabi option... " >&6; }
25976 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25977 $as_echo_n "(cached) " >&6
25979 gcc_cv_as_aarch64_mabi
=no
25980 if test x
$gcc_cv_as != x
; then
25981 $as_echo '.text' > conftest.s
25982 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25984 (eval $ac_try) 2>&5
25986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25987 test $ac_status = 0; }; }
25989 gcc_cv_as_aarch64_mabi
=yes
25991 echo "configure: failed program was" >&5
25994 rm -f conftest.o conftest.s
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25998 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26001 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26003 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26006 if test x
$with_abi = xilp32
; then
26007 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26008 Upgrade the Assembler." "$LINENO" 5
26010 if test x
"$with_multilib_list" = xdefault
; then
26011 TM_MULTILIB_CONFIG
=lp64
26013 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26014 for aarch64_multilib
in ${aarch64_multilibs}; do
26015 case ${aarch64_multilib} in
26017 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26018 Upgrade the Assembler." "$LINENO" 5
26026 # Check if we have binutils support for relocations types needed by -fpic
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26028 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26029 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26030 $as_echo_n "(cached) " >&6
26032 gcc_cv_as_aarch64_picreloc
=no
26033 if test x
$gcc_cv_as != x
; then
26036 ldr x0, [x2, #:gotpage_lo15:globalsym]
26038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26040 (eval $ac_try) 2>&5
26042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26043 test $ac_status = 0; }; }
26045 gcc_cv_as_aarch64_picreloc
=yes
26047 echo "configure: failed program was" >&5
26050 rm -f conftest.o conftest.s
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26054 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26055 if test $gcc_cv_as_aarch64_picreloc = yes; then
26057 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26061 # Enable Branch Target Identification Mechanism and Return Address
26062 # Signing by default.
26063 # Check whether --enable-standard-branch-protection was given.
26064 if test "${enable_standard_branch_protection+set}" = set; then :
26065 enableval
=$enable_standard_branch_protection;
26068 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26073 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26074 Valid choices are 'yes' and 'no'." "$LINENO" 5
26080 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26081 # Check whether --enable-fix-cortex-a53-835769 was given.
26082 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26083 enableval
=$enable_fix_cortex_a53_835769;
26086 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26091 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26092 Valid choices are 'yes' and 'no'." "$LINENO" 5
26099 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26100 # Check whether --enable-fix-cortex-a53-843419 was given.
26101 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26102 enableval
=$enable_fix_cortex_a53_843419;
26105 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26110 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26111 Valid choices are 'yes' and 'no'." "$LINENO" 5
26120 # All TARGET_ABI_OSF targets.
26121 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26123 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26124 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26125 $as_echo_n "(cached) " >&6
26127 gcc_cv_as_alpha_explicit_relocs
=no
26128 if test x
$gcc_cv_as != x
; then
26129 $as_echo ' .set nomacro
26131 extbl $3, $2, $3 !lituse_bytoff!1
26132 ldq $2, a($29) !literal!1
26133 ldq $4, b($29) !literal!2
26134 ldq_u $3, 0($2) !lituse_base!1
26135 ldq $27, f($29) !literal!5
26136 jsr $26, ($27), f !lituse_jsr!5
26137 ldah $29, 0($26) !gpdisp!3
26138 lda $0, c($29) !gprel
26139 ldah $1, d($29) !gprelhigh
26140 lda $1, d($1) !gprellow
26141 lda $29, 0($29) !gpdisp!3' > conftest.s
26142 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26144 (eval $ac_try) 2>&5
26146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26147 test $ac_status = 0; }; }
26149 gcc_cv_as_alpha_explicit_relocs
=yes
26151 echo "configure: failed program was" >&5
26154 rm -f conftest.o conftest.s
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26158 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26159 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26161 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26166 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26167 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26168 $as_echo_n "(cached) " >&6
26170 gcc_cv_as_alpha_jsrdirect_relocs
=no
26171 if test x
$gcc_cv_as != x
; then
26172 $as_echo ' .set nomacro
26174 ldq $27, a($29) !literal!1
26175 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26176 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178 (eval $ac_try) 2>&5
26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }; }
26183 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26185 echo "configure: failed program was" >&5
26188 rm -f conftest.o conftest.s
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26192 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26193 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26195 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26203 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26204 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26205 $as_echo_n "(cached) " >&6
26207 gcc_cv_as_avr_mlink_relax
=no
26208 if test x
$gcc_cv_as != x
; then
26209 $as_echo '.text' > conftest.s
26210 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26212 (eval $ac_try) 2>&5
26214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26215 test $ac_status = 0; }; }
26217 gcc_cv_as_avr_mlink_relax
=yes
26219 echo "configure: failed program was" >&5
26222 rm -f conftest.o conftest.s
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26226 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26227 if test $gcc_cv_as_avr_mlink_relax = yes; then
26229 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26235 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26236 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26237 $as_echo_n "(cached) " >&6
26239 gcc_cv_as_avr_mrmw
=no
26240 if test x
$gcc_cv_as != x
; then
26241 $as_echo '.text' > conftest.s
26242 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26244 (eval $ac_try) 2>&5
26246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26247 test $ac_status = 0; }; }
26249 gcc_cv_as_avr_mrmw
=yes
26251 echo "configure: failed program was" >&5
26254 rm -f conftest.o conftest.s
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26258 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26259 if test $gcc_cv_as_avr_mrmw = yes; then
26261 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26267 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26268 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26269 $as_echo_n "(cached) " >&6
26271 gcc_cv_as_avr_mgccisr
=no
26272 if test x
$gcc_cv_as != x
; then
26278 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26280 (eval $ac_try) 2>&5
26282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26283 test $ac_status = 0; }; }
26285 gcc_cv_as_avr_mgccisr
=yes
26287 echo "configure: failed program was" >&5
26290 rm -f conftest.o conftest.s
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26294 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26295 if test $gcc_cv_as_avr_mgccisr = yes; then
26297 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26302 # Check how default linker description file implements .rodata for
26303 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26304 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26306 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26307 cat > conftest.s
<<EOF
26308 .section .rodata,"a",@progbits
26310 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26315 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317 (eval $ac_try) 2>&5
26319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320 test $ac_status = 0; }; }
26321 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26323 (eval $ac_try) 2>&5
26325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26326 test $ac_status = 0; }; }
26327 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26329 (eval $ac_try) 2>&5
26331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26332 test $ac_status = 0; }; }
26333 if test -s conftest.nm
26335 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26337 $as_echo "yes" >&6; }
26339 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26343 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26344 echo "$as_me: nm output was" >&5
26345 cat conftest.nm
>&5
26346 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26347 { $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
26348 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26352 $as_echo "test failed" >&6; }
26353 echo "$as_me: failed program was" >&5
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26356 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26358 rm -f conftest.s conftest.o conftest.elf conftest.nm
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26363 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26364 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26365 $as_echo_n "(cached) " >&6
26367 gcc_cv_as_cris_no_mul_bug
=no
26368 if test x
$gcc_cv_as != x
; then
26369 $as_echo '.text' > conftest.s
26370 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26372 (eval $ac_try) 2>&5
26374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26375 test $ac_status = 0; }; }
26377 gcc_cv_as_cris_no_mul_bug
=yes
26379 echo "configure: failed program was" >&5
26382 rm -f conftest.o conftest.s
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26386 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26387 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26389 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26397 $as_echo_n "checking assembler for -relax option... " >&6; }
26398 if ${gcc_cv_as_sparc_relax+:} false
; then :
26399 $as_echo_n "(cached) " >&6
26401 gcc_cv_as_sparc_relax
=no
26402 if test x
$gcc_cv_as != x
; then
26403 $as_echo '.text' > conftest.s
26404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26406 (eval $ac_try) 2>&5
26408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26409 test $ac_status = 0; }; }
26411 gcc_cv_as_sparc_relax
=yes
26413 echo "configure: failed program was" >&5
26416 rm -f conftest.o conftest.s
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26420 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26421 if test $gcc_cv_as_sparc_relax = yes; then
26423 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26429 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26430 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26431 $as_echo_n "(cached) " >&6
26433 gcc_cv_as_sparc_gotdata_op
=no
26434 if test x
$gcc_cv_as != x
; then
26440 sethi %gdop_hix22(foo), %g1
26441 xor %g1, %gdop_lox10(foo), %g1
26442 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26443 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26445 (eval $ac_try) 2>&5
26447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26448 test $ac_status = 0; }; }
26450 if test x
$gcc_cv_ld != x \
26451 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26452 if test x
$gcc_cv_objdump != x
; then
26453 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26454 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26455 gcc_cv_as_sparc_gotdata_op
=no
26457 gcc_cv_as_sparc_gotdata_op
=yes
26463 echo "configure: failed program was" >&5
26466 rm -f conftest.o conftest.s
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26470 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26471 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26473 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26479 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26480 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26481 $as_echo_n "(cached) " >&6
26483 gcc_cv_as_sparc_ua_pcrel
=no
26484 if test x
$gcc_cv_as != x
; then
26491 .uaword %r_disp32(foo)' > conftest.s
26492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26494 (eval $ac_try) 2>&5
26496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26497 test $ac_status = 0; }; }
26499 if test x
$gcc_cv_ld != x \
26500 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26501 gcc_cv_as_sparc_ua_pcrel
=yes
26505 echo "configure: failed program was" >&5
26508 rm -f conftest.o conftest.s
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26512 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26513 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26515 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26519 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26520 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26521 $as_echo_n "(cached) " >&6
26523 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26524 if test x
$gcc_cv_as != x
; then
26528 .uaword %r_disp32(foo)
26529 .byte 0x32, 0x33, 0x34
26533 .skip 4' > conftest.s
26534 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26536 (eval $ac_try) 2>&5
26538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26539 test $ac_status = 0; }; }
26541 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26542 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26543 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26544 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26545 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26546 |
grep 'DISP32' > /dev
/null
2>&1; then
26549 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26554 echo "configure: failed program was" >&5
26557 rm -f conftest.o conftest.s
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26561 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26562 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26564 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26570 # unaligned pcrel relocs
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26573 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26574 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26575 $as_echo_n "(cached) " >&6
26577 gcc_cv_as_sparc_offsetable_lo10
=no
26578 if test x
$gcc_cv_as != x
; then
26580 or %g1, %lo(ab) + 12, %g1
26581 or %g1, %lo(ab + 12), %g1' > conftest.s
26582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26584 (eval $ac_try) 2>&5
26586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26587 test $ac_status = 0; }; }
26589 if test x
$gcc_cv_objdump != x \
26590 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26591 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26592 gcc_cv_as_sparc_offsetable_lo10
=yes
26595 echo "configure: failed program was" >&5
26598 rm -f conftest.o conftest.s
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26602 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26603 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26605 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26611 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26612 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26613 $as_echo_n "(cached) " >&6
26615 gcc_cv_as_sparc_fmaf
=no
26616 if test x
$gcc_cv_as != x
; then
26618 .register %g2, #scratch
26619 .register %g3, #scratch
26621 fmaddd %f0, %f2, %f4, %f6
26622 addxccc %g1, %g2, %g3
26623 fsrl32 %f2, %f4, %f8
26624 fnaddd %f10, %f12, %f14' > conftest.s
26625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; }
26632 gcc_cv_as_sparc_fmaf
=yes
26634 echo "configure: failed program was" >&5
26637 rm -f conftest.o conftest.s
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26641 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26642 if test $gcc_cv_as_sparc_fmaf = yes; then
26644 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26650 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26651 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26652 $as_echo_n "(cached) " >&6
26654 gcc_cv_as_sparc_sparc4
=no
26655 if test x
$gcc_cv_as != x
; then
26657 .register %g2, #scratch
26658 .register %g3, #scratch
26661 1: cwbneg %g2, %g3, 1f
26664 aes_kexpand0 %f4, %f6, %f8
26665 des_round %f38, %f40, %f42, %f44
26666 camellia_f %f54, %f56, %f58, %f60
26667 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26668 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26670 (eval $ac_try) 2>&5
26672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26673 test $ac_status = 0; }; }
26675 gcc_cv_as_sparc_sparc4
=yes
26677 echo "configure: failed program was" >&5
26680 rm -f conftest.o conftest.s
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26684 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26685 if test $gcc_cv_as_sparc_sparc4 = yes; then
26687 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26693 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26694 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26695 $as_echo_n "(cached) " >&6
26697 gcc_cv_as_sparc_sparc5
=no
26698 if test x
$gcc_cv_as != x
; then
26700 .register %g2, #scratch
26701 .register %g3, #scratch
26703 subxc %g1, %g2, %g3
26704 fpadd8 %f0, %f2, %f4' > conftest.s
26705 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26707 (eval $ac_try) 2>&5
26709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26710 test $ac_status = 0; }; }
26712 gcc_cv_as_sparc_sparc5
=yes
26714 echo "configure: failed program was" >&5
26717 rm -f conftest.o conftest.s
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26721 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26722 if test $gcc_cv_as_sparc_sparc5 = yes; then
26724 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26730 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26731 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26732 $as_echo_n "(cached) " >&6
26734 gcc_cv_as_sparc_sparc6
=no
26735 if test x
$gcc_cv_as != x
; then
26737 .register %g2, #scratch
26738 .register %g3, #scratch
26741 fpsll64x %f0, %f2, %f4' > conftest.s
26742 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; }
26749 gcc_cv_as_sparc_sparc6
=yes
26751 echo "configure: failed program was" >&5
26754 rm -f conftest.o conftest.s
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26758 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26759 if test $gcc_cv_as_sparc_sparc6 = yes; then
26761 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26767 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26768 if ${gcc_cv_as_sparc_leon+:} false
; then :
26769 $as_echo_n "(cached) " >&6
26771 gcc_cv_as_sparc_leon
=no
26772 if test x
$gcc_cv_as != x
; then
26774 .register %g2, #scratch
26775 .register %g3, #scratch
26779 casa [%g2] 0xb, %g3, %g1' > conftest.s
26780 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26782 (eval $ac_try) 2>&5
26784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26785 test $ac_status = 0; }; }
26787 gcc_cv_as_sparc_leon
=yes
26789 echo "configure: failed program was" >&5
26792 rm -f conftest.o conftest.s
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26796 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26797 if test $gcc_cv_as_sparc_leon = yes; then
26799 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26805 i
[34567]86-*-* | x86_64-
*-*)
26808 # Full C++ conformance when using a shared libstdc++-v3 requires some
26809 # support from the Cygwin DLL, which in more recent versions exports
26810 # wrappers to aid in interposing and redirecting operators new, delete,
26811 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26812 # are configuring for a version of Cygwin that exports the wrappers.
26813 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26814 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26815 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26816 gcc_ac_cygwin_dll_wrappers
=yes
26818 gcc_ac_cygwin_dll_wrappers
=no
26822 # Can't check presence of libc functions during cross-compile, so
26823 # we just have to assume we're building for an up-to-date target.
26824 gcc_ac_cygwin_dll_wrappers
=yes
26827 cat >>confdefs.h
<<_ACEOF
26828 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26833 cygwin
* | pe | mingw32
*)
26834 # Recent binutils allows the three-operand form of ".comm" on PE. This
26835 # definition is used unconditionally to initialise the default state of
26836 # the target option variable that governs usage of the feature.
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26838 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26839 if ${gcc_cv_as_comm_has_align+:} false
; then :
26840 $as_echo_n "(cached) " >&6
26842 gcc_cv_as_comm_has_align
=no
26843 if test x
$gcc_cv_as != x
; then
26844 $as_echo '.comm foo,1,32' > conftest.s
26845 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26847 (eval $ac_try) 2>&5
26849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26850 test $ac_status = 0; }; }
26852 gcc_cv_as_comm_has_align
=yes
26854 echo "configure: failed program was" >&5
26857 rm -f conftest.o conftest.s
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26861 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26865 cat >>confdefs.h
<<_ACEOF
26866 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26869 # Used for DWARF 2 in PE
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26871 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26872 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26873 $as_echo_n "(cached) " >&6
26875 gcc_cv_as_ix86_pe_secrel32
=no
26876 if test x
$gcc_cv_as != x
; then
26880 .secrel32 foo' > conftest.s
26881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26883 (eval $ac_try) 2>&5
26885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26886 test $ac_status = 0; }; }
26888 if test x
$gcc_cv_ld != x \
26889 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26890 gcc_cv_as_ix86_pe_secrel32
=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_ix86_pe_secrel32" >&5
26901 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26902 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26904 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26908 # Test if the assembler supports the extended form of the .section
26909 # directive that specifies section alignment. LTO support uses this,
26910 # but normally only after installation, so we warn but don't fail the
26911 # configure if LTO is enabled but the assembler does not support it.
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26913 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26914 if ${gcc_cv_as_section_has_align+:} false
; then :
26915 $as_echo_n "(cached) " >&6
26917 gcc_cv_as_section_has_align
=no
26918 if test x
$gcc_cv_as != x
; then
26919 $as_echo '.section lto_test,"dr0"' > conftest.s
26920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26922 (eval $ac_try) 2>&5
26924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26925 test $ac_status = 0; }; }
26927 gcc_cv_as_section_has_align
=yes
26929 echo "configure: failed program was" >&5
26932 rm -f conftest.o conftest.s
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26936 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26939 if test x
$gcc_cv_as_section_has_align != xyes
; then
26940 case ",$enable_languages," in
26942 { $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
26943 $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;}
26950 darwin2
[0-9]* | darwin19
*)
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
26952 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
26953 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
26954 $as_echo_n "(cached) " >&6
26956 gcc_cv_as_mllvm_x86_pad_for_align
=no
26957 if test x
$gcc_cv_as != x
; then
26958 $as_echo '.text' > conftest.s
26959 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
26960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26961 (eval $ac_try) 2>&5
26963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26964 test $ac_status = 0; }; }
26966 gcc_cv_as_mllvm_x86_pad_for_align
=yes
26968 echo "configure: failed program was" >&5
26971 rm -f conftest.o conftest.s
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
26975 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
26976 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
26978 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26986 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26987 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26988 $as_echo_n "(cached) " >&6
26990 gcc_cv_as_ix86_xbrace_comment
=no
26991 if test x
$gcc_cv_as != x
; then
26992 $as_echo '.text' > conftest.s
26993 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26995 (eval $ac_try) 2>&5
26997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26998 test $ac_status = 0; }; }
27000 gcc_cv_as_ix86_xbrace_comment
=yes
27002 echo "configure: failed program was" >&5
27005 rm -f conftest.o conftest.s
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27009 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27010 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27012 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27018 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27019 if ${gcc_cv_as_ix86_filds+:} false
; then :
27020 $as_echo_n "(cached) " >&6
27022 gcc_cv_as_ix86_filds
=no
27023 if test x
$gcc_cv_as != x
; then
27024 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27027 (eval $ac_try) 2>&5
27029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030 test $ac_status = 0; }; }
27032 gcc_cv_as_ix86_filds
=yes
27034 echo "configure: failed program was" >&5
27037 rm -f conftest.o conftest.s
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27041 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27042 if test $gcc_cv_as_ix86_filds = yes; then
27044 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27050 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27051 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27052 $as_echo_n "(cached) " >&6
27054 gcc_cv_as_ix86_fildq
=no
27055 if test x
$gcc_cv_as != x
; then
27056 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27059 (eval $ac_try) 2>&5
27061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27062 test $ac_status = 0; }; }
27064 gcc_cv_as_ix86_fildq
=yes
27066 echo "configure: failed program was" >&5
27069 rm -f conftest.o conftest.s
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27073 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27074 if test $gcc_cv_as_ix86_fildq = yes; then
27076 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27082 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27083 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27084 $as_echo_n "(cached) " >&6
27086 gcc_cv_as_ix86_cmov_sun_syntax
=no
27087 if test x
$gcc_cv_as != x
; then
27088 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27089 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27091 (eval $ac_try) 2>&5
27093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27094 test $ac_status = 0; }; }
27096 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27098 echo "configure: failed program was" >&5
27101 rm -f conftest.o conftest.s
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27105 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27106 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27108 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27114 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27115 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27116 $as_echo_n "(cached) " >&6
27118 gcc_cv_as_ix86_ffreep
=no
27119 if test x
$gcc_cv_as != x
; then
27120 $as_echo 'ffreep %st(1)' > conftest.s
27121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27123 (eval $ac_try) 2>&5
27125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27126 test $ac_status = 0; }; }
27128 gcc_cv_as_ix86_ffreep
=yes
27130 echo "configure: failed program was" >&5
27133 rm -f conftest.o conftest.s
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27137 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27138 if test $gcc_cv_as_ix86_ffreep = yes; then
27140 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27146 $as_echo_n "checking assembler for .quad directive... " >&6; }
27147 if ${gcc_cv_as_ix86_quad+:} false
; then :
27148 $as_echo_n "(cached) " >&6
27150 gcc_cv_as_ix86_quad
=no
27151 if test x
$gcc_cv_as != x
; then
27152 $as_echo '.quad 0' > conftest.s
27153 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27155 (eval $ac_try) 2>&5
27157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27158 test $ac_status = 0; }; }
27160 gcc_cv_as_ix86_quad
=yes
27162 echo "configure: failed program was" >&5
27165 rm -f conftest.o conftest.s
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27169 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27170 if test $gcc_cv_as_ix86_quad = yes; then
27172 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27178 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27179 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27180 $as_echo_n "(cached) " >&6
27182 gcc_cv_as_ix86_sahf
=no
27183 if test x
$gcc_cv_as != x
; then
27186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27188 (eval $ac_try) 2>&5
27190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27191 test $ac_status = 0; }; }
27193 gcc_cv_as_ix86_sahf
=yes
27195 echo "configure: failed program was" >&5
27198 rm -f conftest.o conftest.s
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27202 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27203 if test $gcc_cv_as_ix86_sahf = yes; then
27205 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27211 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27212 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27213 $as_echo_n "(cached) " >&6
27215 gcc_cv_as_ix86_interunit_movq
=no
27216 if test x
$gcc_cv_as != x
; then
27219 movq %rax, %xmm0' > conftest.s
27220 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27222 (eval $ac_try) 2>&5
27224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27225 test $ac_status = 0; }; }
27227 gcc_cv_as_ix86_interunit_movq
=yes
27229 echo "configure: failed program was" >&5
27232 rm -f conftest.o conftest.s
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27236 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27240 cat >>confdefs.h
<<_ACEOF
27241 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27246 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27247 if ${gcc_cv_as_ix86_hle+:} false
; then :
27248 $as_echo_n "(cached) " >&6
27250 gcc_cv_as_ix86_hle
=no
27251 if test x
$gcc_cv_as != x
; then
27252 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27253 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; }
27260 gcc_cv_as_ix86_hle
=yes
27262 echo "configure: failed program was" >&5
27265 rm -f conftest.o conftest.s
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27269 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27270 if test $gcc_cv_as_ix86_hle = yes; then
27272 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27278 $as_echo_n "checking assembler for swap suffix... " >&6; }
27279 if ${gcc_cv_as_ix86_swap+:} false
; then :
27280 $as_echo_n "(cached) " >&6
27282 gcc_cv_as_ix86_swap
=no
27283 if test x
$gcc_cv_as != x
; then
27284 $as_echo 'movl.s %esp, %ebp' > conftest.s
27285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27287 (eval $ac_try) 2>&5
27289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27290 test $ac_status = 0; }; }
27292 gcc_cv_as_ix86_swap
=yes
27294 echo "configure: failed program was" >&5
27297 rm -f conftest.o conftest.s
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27301 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27302 if test $gcc_cv_as_ix86_swap = yes; then
27304 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27310 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27311 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27312 $as_echo_n "(cached) " >&6
27314 gcc_cv_as_ix86_diff_sect_delta
=no
27315 if test x
$gcc_cv_as != x
; then
27316 $as_echo '.section .rodata
27322 .L2: nop' > conftest.s
27323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27325 (eval $ac_try) 2>&5
27327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27328 test $ac_status = 0; }; }
27330 gcc_cv_as_ix86_diff_sect_delta
=yes
27332 echo "configure: failed program was" >&5
27335 rm -f conftest.o conftest.s
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27339 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27340 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27342 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27348 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27349 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27350 $as_echo_n "(cached) " >&6
27352 gcc_cv_as_ix86_rep_lock_prefix
=no
27353 if test x
$gcc_cv_as != x
; then
27354 $as_echo 'rep movsl
27359 lock addl %edi, (%eax,%esi)
27360 lock orl $0, (%esp)' > conftest.s
27361 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27363 (eval $ac_try) 2>&5
27365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366 test $ac_status = 0; }; }
27368 gcc_cv_as_ix86_rep_lock_prefix
=yes
27370 echo "configure: failed program was" >&5
27373 rm -f conftest.o conftest.s
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27377 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27378 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27380 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27386 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27387 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27388 $as_echo_n "(cached) " >&6
27390 gcc_cv_as_ix86_ud2
=no
27391 if test x
$gcc_cv_as != x
; then
27392 $as_echo 'ud2' > conftest.s
27393 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27395 (eval $ac_try) 2>&5
27397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27398 test $ac_status = 0; }; }
27400 gcc_cv_as_ix86_ud2
=yes
27402 echo "configure: failed program was" >&5
27405 rm -f conftest.o conftest.s
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27409 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27410 if test $gcc_cv_as_ix86_ud2 = yes; then
27412 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27417 # Enforce 32-bit output with gas and gld.
27418 if test x
$gas = xyes
; then
27419 as_ix86_gas_32_opt
="--32"
27421 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27422 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27423 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27425 ld_ix86_gld_32_opt
="-melf_i386"
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27430 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27431 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27432 $as_echo_n "(cached) " >&6
27434 gcc_cv_as_ix86_tlsgdplt
=no
27435 if test x
$gcc_cv_as != x
; then
27436 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27437 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27439 (eval $ac_try) 2>&5
27441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27442 test $ac_status = 0; }; }
27444 if test x
$gcc_cv_ld != x \
27445 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27446 gcc_cv_as_ix86_tlsgdplt
=yes
27450 echo "configure: failed program was" >&5
27453 rm -f conftest.o conftest.s
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27457 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27458 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27460 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27466 .section .tdata,"aw'$tls_section_flag'",@progbits
27468 .section .text,"ax",@progbits
27469 call tls_ld@tlsldmplt'
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27472 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27473 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27474 $as_echo_n "(cached) " >&6
27476 gcc_cv_as_ix86_tlsldmplt
=no
27477 if test x
$gcc_cv_as != x
; then
27478 $as_echo "$conftest_s" > conftest.s
27479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27481 (eval $ac_try) 2>&5
27483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27484 test $ac_status = 0; }; }
27486 if test x
$gcc_cv_ld != x \
27487 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27488 gcc_cv_as_ix86_tlsldmplt
=yes
27492 echo "configure: failed program was" >&5
27495 rm -f conftest.o conftest.s
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27499 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27503 cat >>confdefs.h
<<_ACEOF
27504 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27509 .section .text,"ax",@progbits
27511 .type _start, @function
27513 leal value@tlsldm(%ebx), %eax
27514 call ___tls_get_addr@plt
27516 .section .tdata,"aw'$tls_section_flag'",@progbits
27517 .type value, @object
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27520 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27521 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27522 $as_echo_n "(cached) " >&6
27524 gcc_cv_as_ix86_tlsldm
=no
27525 if test x
$gcc_cv_as != x
; then
27526 $as_echo "$conftest_s" > conftest.s
27527 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27529 (eval $ac_try) 2>&5
27531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27532 test $ac_status = 0; }; }
27534 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27535 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27536 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27537 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27538 gcc_cv_as_ix86_tlsldm
=yes
27543 echo "configure: failed program was" >&5
27546 rm -f conftest.o conftest.s
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27550 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27554 cat >>confdefs.h
<<_ACEOF
27555 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27569 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27570 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27571 $as_echo_n "(cached) " >&6
27573 gcc_cv_as_ix86_got32x
=no
27574 if test x
$gcc_cv_as != x
; then
27575 $as_echo "$conftest_s" > conftest.s
27576 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27578 (eval $ac_try) 2>&5
27580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27581 test $ac_status = 0; }; }
27583 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27584 && test x
$gcc_cv_readelf != x \
27585 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27586 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27587 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27588 if $gcc_cv_objdump -dw conftest
2>&1 \
27589 |
grep 0xffffff > /dev
/null
2>&1; then
27590 gcc_cv_as_ix86_got32x
=no
27592 gcc_cv_as_ix86_got32x
=yes
27597 echo "configure: failed program was" >&5
27600 rm -f conftest.o conftest.s
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27604 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27608 cat >>confdefs.h
<<_ACEOF
27609 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27614 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27615 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27616 $as_echo_n "(cached) " >&6
27618 gcc_cv_as_ix86_gotoff_in_data
=no
27619 if test x
$gcc_cv_as != x
; then
27624 .long .L0@GOTOFF' > conftest.s
27625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27627 (eval $ac_try) 2>&5
27629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27630 test $ac_status = 0; }; }
27632 gcc_cv_as_ix86_gotoff_in_data
=yes
27634 echo "configure: failed program was" >&5
27637 rm -f conftest.o conftest.s
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27641 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27645 cat >>confdefs.h
<<_ACEOF
27646 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27651 .section .text,"ax",@progbits
27653 .type _start, @function
27655 leal ld@tlsldm(%ecx), %eax
27656 call *___tls_get_addr@GOT(%ecx)
27657 leal gd@tlsgd(%ecx), %eax
27658 call *___tls_get_addr@GOT(%ecx)
27660 .section .tdata,"aw'$tls_section_flag'",@progbits
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27669 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27670 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27671 $as_echo_n "(cached) " >&6
27673 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27674 if test x
$gcc_cv_as != x
; then
27675 $as_echo "$conftest_s" > conftest.s
27676 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27678 (eval $ac_try) 2>&5
27680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27681 test $ac_status = 0; }; }
27683 if test x
$gcc_cv_ld != x \
27684 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27685 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27689 echo "configure: failed program was" >&5
27692 rm -f conftest.o conftest.s
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27696 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27700 cat >>confdefs.h
<<_ACEOF
27701 #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`
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27708 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27709 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27710 $as_echo_n "(cached) " >&6
27712 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27713 if test x
$gcc_cv_as != x
; then
27715 addl r15 = @ltoffx(x#), gp
27717 ld8.mov r16 = [r15], x#
27719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27728 echo "configure: failed program was" >&5
27731 rm -f conftest.o conftest.s
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27735 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27736 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27738 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27750 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27751 if ${gcc_cv_as_machine_directive+:} false
; then :
27752 $as_echo_n "(cached) " >&6
27754 gcc_cv_as_machine_directive
=no
27755 if test x
$gcc_cv_as != x
; then
27756 $as_echo ' .machine ppc7400' > conftest.s
27757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27759 (eval $ac_try) 2>&5
27761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27762 test $ac_status = 0; }; }
27764 gcc_cv_as_machine_directive
=yes
27766 echo "configure: failed program was" >&5
27769 rm -f conftest.o conftest.s
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27773 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27776 if test x
$gcc_cv_as_machine_directive != xyes
; then
27777 echo "*** This target requires an assembler supporting \".machine\"" >&2
27778 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27779 test x
$build = x
$target && exit 1
27785 *-*-aix*) conftest_s
=' .machine "pwr5"
27788 *-*-darwin*) conftest_s
=' .text
27790 *) conftest_s
=' .machine power4
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27796 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27797 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27798 $as_echo_n "(cached) " >&6
27800 gcc_cv_as_powerpc_mfcrf
=no
27801 if test x
$gcc_cv_as != x
; then
27802 $as_echo "$conftest_s" > conftest.s
27803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27805 (eval $ac_try) 2>&5
27807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27808 test $ac_status = 0; }; }
27810 gcc_cv_as_powerpc_mfcrf
=yes
27812 echo "configure: failed program was" >&5
27815 rm -f conftest.o conftest.s
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27819 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27820 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27822 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27828 *-*-aix*) conftest_s
=' .csect .text[PR]
27830 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27834 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27835 *) conftest_s
=' .text
27837 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27841 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27842 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27843 $as_echo_n "(cached) " >&6
27845 gcc_cv_as_powerpc_rel16
=no
27846 if test x
$gcc_cv_as != x
; then
27847 $as_echo "$conftest_s" > conftest.s
27848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27850 (eval $ac_try) 2>&5
27852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27853 test $ac_status = 0; }; }
27855 gcc_cv_as_powerpc_rel16
=yes
27857 echo "configure: failed program was" >&5
27860 rm -f conftest.o conftest.s
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27864 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27865 if test $gcc_cv_as_powerpc_rel16 = yes; then
27867 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27873 *-*-aix*) conftest_s
=' .machine "pwr7"
27876 *) conftest_s
=' .machine power7
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27882 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27883 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27884 $as_echo_n "(cached) " >&6
27886 gcc_cv_as_powerpc_vsx
=no
27887 if test x
$gcc_cv_as != x
; then
27888 $as_echo "$conftest_s" > conftest.s
27889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27891 (eval $ac_try) 2>&5
27893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27894 test $ac_status = 0; }; }
27896 gcc_cv_as_powerpc_vsx
=yes
27898 echo "configure: failed program was" >&5
27901 rm -f conftest.o conftest.s
27904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27905 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27906 if test $gcc_cv_as_powerpc_vsx = yes; then
27908 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27914 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27915 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27916 $as_echo_n "(cached) " >&6
27918 gcc_cv_as_powerpc_gnu_attribute
=no
27919 if test x
$gcc_cv_as != x
; then
27920 $as_echo '.gnu_attribute 4,1' > conftest.s
27921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27923 (eval $ac_try) 2>&5
27925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27926 test $ac_status = 0; }; }
27928 gcc_cv_as_powerpc_gnu_attribute
=yes
27930 echo "configure: failed program was" >&5
27933 rm -f conftest.o conftest.s
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27937 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27938 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27940 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27946 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27947 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27948 $as_echo_n "(cached) " >&6
27950 gcc_cv_as_powerpc_entry_markers
=no
27951 if test x
$gcc_cv_as != x
; then
27952 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27955 (eval $ac_try) 2>&5
27957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27958 test $ac_status = 0; }; }
27960 gcc_cv_as_powerpc_entry_markers
=yes
27962 echo "configure: failed program was" >&5
27965 rm -f conftest.o conftest.s
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27969 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27970 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27972 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27978 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27979 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27980 $as_echo_n "(cached) " >&6
27982 gcc_cv_as_powerpc_pltseq_markers
=no
27983 if test x
$gcc_cv_as != x
; then
27984 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27985 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27987 (eval $ac_try) 2>&5
27989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27990 test $ac_status = 0; }; }
27992 gcc_cv_as_powerpc_pltseq_markers
=yes
27994 echo "configure: failed program was" >&5
27997 rm -f conftest.o conftest.s
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28001 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28002 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28004 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28012 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28013 if ${gcc_cv_as_aix_ref+:} false
; then :
28014 $as_echo_n "(cached) " >&6
28016 gcc_cv_as_aix_ref
=no
28017 if test x
$gcc_cv_as != x
; then
28018 $as_echo ' .csect stuff[rw]
28024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28026 (eval $ac_try) 2>&5
28028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28029 test $ac_status = 0; }; }
28031 gcc_cv_as_aix_ref
=yes
28033 echo "configure: failed program was" >&5
28036 rm -f conftest.o conftest.s
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28040 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28041 if test $gcc_cv_as_aix_ref = yes; then
28043 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28049 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28050 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28051 $as_echo_n "(cached) " >&6
28053 gcc_cv_as_aix_dwloc
=no
28054 if test x
$gcc_cv_as != x
; then
28055 $as_echo ' .dwsect 0xA0000
28059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28061 (eval $ac_try) 2>&5
28063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28064 test $ac_status = 0; }; }
28066 gcc_cv_as_aix_dwloc
=yes
28068 echo "configure: failed program was" >&5
28071 rm -f conftest.o conftest.s
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28075 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28076 if test $gcc_cv_as_aix_dwloc = yes; then
28078 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28088 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28089 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28090 $as_echo_n "(cached) " >&6
28092 gcc_cv_as_mips_explicit_relocs
=no
28093 if test x
$gcc_cv_as != x
; then
28094 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28097 (eval $ac_try) 2>&5
28099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28100 test $ac_status = 0; }; }
28102 gcc_cv_as_mips_explicit_relocs
=yes
28104 echo "configure: failed program was" >&5
28107 rm -f conftest.o conftest.s
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28111 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28112 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28113 if test x
$target_cpu_default = x
28114 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28115 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28121 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28122 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28123 $as_echo_n "(cached) " >&6
28125 gcc_cv_as_mips_no_shared
=no
28126 if test x
$gcc_cv_as != x
; then
28127 $as_echo 'nop' > conftest.s
28128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -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_mips_no_shared
=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_mips_no_shared" >&5
28144 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28145 if test $gcc_cv_as_mips_no_shared = yes; then
28147 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28153 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28154 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28155 $as_echo_n "(cached) " >&6
28157 gcc_cv_as_mips_gnu_attribute
=no
28158 if test x
$gcc_cv_as != x
; then
28159 $as_echo '.gnu_attribute 4,1' > conftest.s
28160 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28162 (eval $ac_try) 2>&5
28164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28165 test $ac_status = 0; }; }
28167 gcc_cv_as_mips_gnu_attribute
=yes
28169 echo "configure: failed program was" >&5
28172 rm -f conftest.o conftest.s
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28176 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28177 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28179 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28185 $as_echo_n "checking assembler for .module support... " >&6; }
28186 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28187 $as_echo_n "(cached) " >&6
28189 gcc_cv_as_mips_dot_module
=no
28190 if test x
$gcc_cv_as != x
; then
28191 $as_echo '.module mips2
28192 .module fp=xx' > conftest.s
28193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28195 (eval $ac_try) 2>&5
28197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28198 test $ac_status = 0; }; }
28200 gcc_cv_as_mips_dot_module
=yes
28202 echo "configure: failed program was" >&5
28205 rm -f conftest.o conftest.s
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28209 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28210 if test $gcc_cv_as_mips_dot_module = yes; then
28212 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28216 if test x
$gcc_cv_as_mips_dot_module = xno \
28217 && test x
$with_fp_32 != x
; then
28218 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28222 $as_echo_n "checking assembler for .micromips support... " >&6; }
28223 if ${gcc_cv_as_micromips_support+:} false
; then :
28224 $as_echo_n "(cached) " >&6
28226 gcc_cv_as_micromips_support
=no
28227 if test x
$gcc_cv_as != x
; then
28228 $as_echo '.set micromips' > conftest.s
28229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28231 (eval $ac_try) 2>&5
28233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28234 test $ac_status = 0; }; }
28236 gcc_cv_as_micromips_support
=yes
28238 echo "configure: failed program was" >&5
28241 rm -f conftest.o conftest.s
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28245 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28246 if test $gcc_cv_as_micromips_support = yes; then
28248 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28254 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28255 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28256 $as_echo_n "(cached) " >&6
28258 gcc_cv_as_mips_dtprelword
=no
28259 if test x
$gcc_cv_as != x
; then
28260 $as_echo '.section .tdata,"awT",@progbits
28264 .dtprelword x+0x8000' > conftest.s
28265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28267 (eval $ac_try) 2>&5
28269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28270 test $ac_status = 0; }; }
28272 gcc_cv_as_mips_dtprelword
=yes
28274 echo "configure: failed program was" >&5
28277 rm -f conftest.o conftest.s
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28281 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28282 if test $gcc_cv_as_mips_dtprelword = yes; then
28284 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28290 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28291 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28292 $as_echo_n "(cached) " >&6
28294 gcc_cv_as_mips_dspr1_mult
=no
28295 if test x
$gcc_cv_as != x
; then
28296 $as_echo ' .set mips32r2
28304 multu $ac3,$4,$5' > conftest.s
28305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28307 (eval $ac_try) 2>&5
28309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28310 test $ac_status = 0; }; }
28312 gcc_cv_as_mips_dspr1_mult
=yes
28314 echo "configure: failed program was" >&5
28317 rm -f conftest.o conftest.s
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28321 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28322 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28324 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28330 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28331 gcc_cv_as_ld_jalr_reloc
=no
28332 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28333 if test $in_tree_ld = yes ; then
28334 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 \
28335 && test $in_tree_ld_is_elf = yes; then
28336 gcc_cv_as_ld_jalr_reloc
=yes
28338 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28339 echo ' .ent x' > conftest.s
28340 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28341 echo ' lw $25,%call16(y)($28)' >> conftest.s
28342 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28343 echo '1: jalr $25' >> conftest.s
28344 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28345 echo '1: jalr $25' >> conftest.s
28346 echo ' .end x' >> conftest.s
28347 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28348 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28349 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28350 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28351 gcc_cv_as_ld_jalr_reloc
=yes
28357 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28358 if test x
$target_cpu_default = x
; then
28359 target_cpu_default
=MASK_RELAX_PIC_CALLS
28361 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28365 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28368 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28369 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28370 $as_echo_n "(cached) " >&6
28372 gcc_cv_ld_mips_personality_relaxation
=no
28373 if test $in_tree_ld = yes ; then
28374 if test "$gcc_cv_gld_major_version" -eq 2 \
28375 -a "$gcc_cv_gld_minor_version" -ge 21 \
28376 -o "$gcc_cv_gld_major_version" -gt 2; then
28377 gcc_cv_ld_mips_personality_relaxation
=yes
28379 elif test x
$gcc_cv_as != x \
28380 -a x
$gcc_cv_ld != x \
28381 -a x
$gcc_cv_readelf != x
; then
28382 cat > conftest.s
<<EOF
28384 .cfi_personality 0x80,indirect_ptr
28391 .section .data,"aw",@progbits
28395 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28396 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28397 if $gcc_cv_readelf -d conftest
2>&1 \
28398 |
grep TEXTREL
> /dev
/null
2>&1; then
28400 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28401 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28404 gcc_cv_ld_mips_personality_relaxation
=yes
28408 rm -f conftest.s conftest.o conftest
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28411 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28412 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28414 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28419 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28420 if ${gcc_cv_as_mips_nan+:} false
; then :
28421 $as_echo_n "(cached) " >&6
28423 gcc_cv_as_mips_nan
=no
28424 if test x
$gcc_cv_as != x
; then
28425 $as_echo '' > conftest.s
28426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28428 (eval $ac_try) 2>&5
28430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28431 test $ac_status = 0; }; }
28433 gcc_cv_as_mips_nan
=yes
28435 echo "configure: failed program was" >&5
28438 rm -f conftest.o conftest.s
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28442 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28443 if test $gcc_cv_as_mips_nan = yes; then
28445 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28449 if test x
$gcc_cv_as_mips_nan = xno \
28450 && test x
$with_nan != x
; then
28451 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28455 # Earlier GAS versions generically support .gnu_attribute, but the
28456 # msp430 assembler will not do anything with it.
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28458 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28459 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28460 $as_echo_n "(cached) " >&6
28462 gcc_cv_as_msp430_gnu_attribute
=no
28463 if test x
$gcc_cv_as != x
; then
28464 $as_echo '.gnu_attribute 4,1' > conftest.s
28465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28467 (eval $ac_try) 2>&5
28469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28470 test $ac_status = 0; }; }
28472 gcc_cv_as_msp430_gnu_attribute
=yes
28474 echo "configure: failed program was" >&5
28477 rm -f conftest.o conftest.s
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28481 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28482 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28484 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28489 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28490 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28491 $as_echo_n "(cached) " >&6
28493 gcc_cv_as_msp430_mspabi_attribute
=no
28494 if test x
$gcc_cv_as != x
; then
28495 $as_echo '.mspabi_attribute 4,2' > conftest.s
28496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28498 (eval $ac_try) 2>&5
28500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28501 test $ac_status = 0; }; }
28503 gcc_cv_as_msp430_mspabi_attribute
=yes
28505 echo "configure: failed program was" >&5
28508 rm -f conftest.o conftest.s
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28512 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28513 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28515 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28519 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28521 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28526 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28527 # syntax that is documented in the ABI specification.
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28529 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28530 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28531 $as_echo_n "(cached) " >&6
28533 gcc_cv_as_nios2_gotoff_relocation
=no
28534 if test x
$gcc_cv_as != x
; then
28535 $as_echo ' .extern foo
28537 .long %gotoff(foo)' > conftest.s
28538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28540 (eval $ac_try) 2>&5
28542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28543 test $ac_status = 0; }; }
28545 gcc_cv_as_nios2_gotoff_relocation
=yes
28547 echo "configure: failed program was" >&5
28550 rm -f conftest.o conftest.s
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28554 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28555 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28557 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28564 $as_echo_n "checking assembler for .attribute support... " >&6; }
28565 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28566 $as_echo_n "(cached) " >&6
28568 gcc_cv_as_riscv_attribute
=no
28569 if test x
$gcc_cv_as != x
; then
28570 $as_echo '.attribute stack_align,4' > conftest.s
28571 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28573 (eval $ac_try) 2>&5
28575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28576 test $ac_status = 0; }; }
28578 gcc_cv_as_riscv_attribute
=yes
28580 echo "configure: failed program was" >&5
28583 rm -f conftest.o conftest.s
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28587 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28588 if test $gcc_cv_as_riscv_attribute = yes; then
28590 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28595 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28596 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28597 $as_echo_n "(cached) " >&6
28599 gcc_cv_as_riscv_isa_spec
=no
28600 if test x
$gcc_cv_as != x
; then
28601 $as_echo '' > conftest.s
28602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28604 (eval $ac_try) 2>&5
28606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28607 test $ac_status = 0; }; }
28609 gcc_cv_as_riscv_isa_spec
=yes
28611 echo "configure: failed program was" >&5
28614 rm -f conftest.o conftest.s
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28618 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28619 if test $gcc_cv_as_riscv_isa_spec = yes; then
28621 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28626 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28627 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28628 $as_echo_n "(cached) " >&6
28630 gcc_cv_as_riscv_march_zifencei
=no
28631 if test x
$gcc_cv_as != x
; then
28632 $as_echo '' > conftest.s
28633 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -o conftest.o conftest.s >&5'
28634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28635 (eval $ac_try) 2>&5
28637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28638 test $ac_status = 0; }; }
28640 gcc_cv_as_riscv_march_zifencei
=yes
28642 echo "configure: failed program was" >&5
28645 rm -f conftest.o conftest.s
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28649 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28650 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28652 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28659 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28660 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28661 $as_echo_n "(cached) " >&6
28663 gcc_cv_as_s390_gnu_attribute
=no
28664 if test x
$gcc_cv_as != x
; then
28665 $as_echo '.gnu_attribute 8,1' > conftest.s
28666 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28668 (eval $ac_try) 2>&5
28670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28671 test $ac_status = 0; }; }
28673 gcc_cv_as_s390_gnu_attribute
=yes
28675 echo "configure: failed program was" >&5
28678 rm -f conftest.o conftest.s
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28682 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28683 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28685 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28690 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28691 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28692 $as_echo_n "(cached) " >&6
28694 gcc_cv_as_s390_machine_machinemode
=no
28695 if test x
$gcc_cv_as != x
; then
28696 $as_echo ' .machinemode push
28699 .machine pop' > conftest.s
28700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28702 (eval $ac_try) 2>&5
28704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28705 test $ac_status = 0; }; }
28707 gcc_cv_as_s390_machine_machinemode
=yes
28709 echo "configure: failed program was" >&5
28712 rm -f conftest.o conftest.s
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28716 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28717 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28719 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28724 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28725 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28726 $as_echo_n "(cached) " >&6
28728 gcc_cv_as_s390_architecture_modifiers
=no
28729 if test x
$gcc_cv_as != x
; then
28730 $as_echo ' .machine z13+vx ' > conftest.s
28731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28733 (eval $ac_try) 2>&5
28735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28736 test $ac_status = 0; }; }
28738 gcc_cv_as_s390_architecture_modifiers
=yes
28740 echo "configure: failed program was" >&5
28743 rm -f conftest.o conftest.s
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28747 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28748 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28750 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28755 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28756 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28757 $as_echo_n "(cached) " >&6
28759 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28760 if test x
$gcc_cv_as != x
; then
28761 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28764 (eval $ac_try) 2>&5
28766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28767 test $ac_status = 0; }; }
28769 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28771 echo "configure: failed program was" >&5
28774 rm -f conftest.o conftest.s
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28778 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28779 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28781 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28786 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28787 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
28788 $as_echo_n "(cached) " >&6
28790 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
28791 if test x
$gcc_cv_as != x
; then
28792 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28795 (eval $ac_try) 2>&5
28797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28798 test $ac_status = 0; }; }
28800 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
28802 echo "configure: failed program was" >&5
28805 rm -f conftest.o conftest.s
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28809 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28810 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28812 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28820 # Mips and HP-UX need the GNU assembler.
28821 # Linux on IA64 might be able to use the Intel assembler.
28824 mips
*-*-* |
*-*-hpux* )
28825 if test x
$gas_flag = xyes \
28826 ||
test x
"$host" != x
"$build" \
28827 ||
test ! -x "$gcc_cv_as" \
28828 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
28831 echo "*** This configuration requires the GNU assembler" >&2
28837 # This tests if the assembler supports two registers for global_load functions
28838 # (like in LLVM versions <12) or one register (like in LLVM 12).
28841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5
28842 $as_echo_n "checking assembler fix for global_load functions... " >&6; }
28843 gcc_cv_as_gcn_global_load_fixed
=yes
28844 if test x
$gcc_cv_as != x
; then
28845 cat > conftest.s
<<EOF
28846 global_store_dwordx2 v[1:2], v[4:5], s[14:15]
28848 if $gcc_cv_as -triple=amdgcn--amdhsa
-filetype=obj
-mcpu=gfx900
-o conftest.o conftest.s
> /dev
/null
2>&1; then
28849 gcc_cv_as_gcn_global_load_fixed
=no
28851 rm -f conftest.s conftest.o conftest
28853 global_load_fixed
=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
28855 cat >>confdefs.h
<<_ACEOF
28856 #define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5
28860 $as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; }
28866 # Test the LLVM assembler syntax dialect; they have made a number of
28867 # changes between LLVM 12 & 13 without any backward compatibility.
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v2/3 syntax" >&5
28869 $as_echo_n "checking assembler for assembler amdgcn_target v2/3 syntax... " >&6; }
28870 if ${gcc_cv_as_gcn_asm_v3_syntax+:} false
; then :
28871 $as_echo_n "(cached) " >&6
28873 gcc_cv_as_gcn_asm_v3_syntax
=no
28874 if test x
$gcc_cv_as != x
; then
28875 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"' > conftest.s
28876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack -o conftest.o conftest.s >&5'
28877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28878 (eval $ac_try) 2>&5
28880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28881 test $ac_status = 0; }; }
28883 gcc_cv_as_gcn_asm_v3_syntax
=yes
28885 echo "configure: failed program was" >&5
28888 rm -f conftest.o conftest.s
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v3_syntax" >&5
28892 $as_echo "$gcc_cv_as_gcn_asm_v3_syntax" >&6; }
28893 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
28895 $as_echo "#define HAVE_GCN_ASM_V3_SYNTAX 1" >>confdefs.h
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v4 syntax" >&5
28900 $as_echo_n "checking assembler for assembler amdgcn_target v4 syntax... " >&6; }
28901 if ${gcc_cv_as_gcn_asm_v4_syntax+:} false
; then :
28902 $as_echo_n "(cached) " >&6
28904 gcc_cv_as_gcn_asm_v4_syntax
=no
28905 if test x
$gcc_cv_as != x
; then
28906 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"' > conftest.s
28907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack -o conftest.o conftest.s >&5'
28908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28909 (eval $ac_try) 2>&5
28911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28912 test $ac_status = 0; }; }
28914 gcc_cv_as_gcn_asm_v4_syntax
=yes
28916 echo "configure: failed program was" >&5
28919 rm -f conftest.o conftest.s
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v4_syntax" >&5
28923 $as_echo "$gcc_cv_as_gcn_asm_v4_syntax" >&6; }
28924 if test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
28926 $as_echo "#define HAVE_GCN_ASM_V4_SYNTAX 1" >>confdefs.h
28931 # Some attribute names changed in the move to v4 ...
28932 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
28933 sramopt
="+sram-ecc"
28934 sramattr
="+sram-ecc"
28936 elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
28938 sramattr
=":sramecc+"
28939 xnackattr
=":xnack+"
28941 as_fn_error $?
"Unrecognised assembler version" "$LINENO" 5
28944 # Test whether the LLVM assembler accepts -mattr=+xnack without any
28945 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
28946 # LLVM 12+ throws a warning for GPUs without support.
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for fiji" >&5
28948 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for fiji... " >&6; }
28949 if ${gcc_cv_as_gcn_xnack_ecc_fiji+:} false
; then :
28950 $as_echo_n "(cached) " >&6
28952 gcc_cv_as_gcn_xnack_ecc_fiji
=no
28953 if test x
$gcc_cv_as != x
; then
28954 $as_echo '' > conftest.s
28955 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'
28956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28957 (eval $ac_try) 2>&5
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; }
28962 grep "." conftest.err
>&5 \
28963 || gcc_cv_as_gcn_xnack_ecc_fiji
=yes
28965 echo "configure: failed program was" >&5
28968 rm -f conftest.o conftest.s
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_fiji" >&5
28972 $as_echo "$gcc_cv_as_gcn_xnack_ecc_fiji" >&6; }
28973 if test $gcc_cv_as_gcn_xnack_ecc_fiji = yes; then
28975 $as_echo "#define HAVE_GCN_XNACK_FIJI 1" >>confdefs.h
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx900" >&5
28981 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx900... " >&6; }
28982 if ${gcc_cv_as_gcn_xnack_ecc_gfx900+:} false
; then :
28983 $as_echo_n "(cached) " >&6
28985 gcc_cv_as_gcn_xnack_ecc_gfx900
=no
28986 if test x
$gcc_cv_as != x
; then
28987 $as_echo '' > conftest.s
28988 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'
28989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28990 (eval $ac_try) 2>&5
28992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28993 test $ac_status = 0; }; }
28995 grep "." conftest.err
>&5 \
28996 || gcc_cv_as_gcn_xnack_ecc_gfx900
=yes
28998 echo "configure: failed program was" >&5
29001 rm -f conftest.o conftest.s
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx900" >&5
29005 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx900" >&6; }
29006 if test $gcc_cv_as_gcn_xnack_ecc_gfx900 = yes; then
29008 $as_echo "#define HAVE_GCN_XNACK_GFX900 1" >>confdefs.h
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx906" >&5
29014 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx906... " >&6; }
29015 if ${gcc_cv_as_gcn_xnack_ecc_gfx906+:} false
; then :
29016 $as_echo_n "(cached) " >&6
29018 gcc_cv_as_gcn_xnack_ecc_gfx906
=no
29019 if test x
$gcc_cv_as != x
; then
29020 $as_echo '' > conftest.s
29021 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'
29022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29023 (eval $ac_try) 2>&5
29025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29026 test $ac_status = 0; }; }
29028 grep "." conftest.err
>&5 \
29029 || gcc_cv_as_gcn_xnack_ecc_gfx906
=yes
29031 echo "configure: failed program was" >&5
29034 rm -f conftest.o conftest.s
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx906" >&5
29038 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx906" >&6; }
29039 if test $gcc_cv_as_gcn_xnack_ecc_gfx906 = yes; then
29041 $as_echo "#define HAVE_GCN_XNACK_GFX906 1" >>confdefs.h
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx908" >&5
29047 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx908... " >&6; }
29048 if ${gcc_cv_as_gcn_xnack_ecc_gfx908+:} false
; then :
29049 $as_echo_n "(cached) " >&6
29051 gcc_cv_as_gcn_xnack_ecc_gfx908
=no
29052 if test x
$gcc_cv_as != x
; then
29053 $as_echo '' > conftest.s
29054 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'
29055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29056 (eval $ac_try) 2>&5
29058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29059 test $ac_status = 0; }; }
29061 grep "." conftest.err
>&5 \
29062 || gcc_cv_as_gcn_xnack_ecc_gfx908
=yes
29064 echo "configure: failed program was" >&5
29067 rm -f conftest.o conftest.s
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx908" >&5
29071 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx908" >&6; }
29072 if test $gcc_cv_as_gcn_xnack_ecc_gfx908 = yes; then
29074 $as_echo "#define HAVE_GCN_XNACK_GFX908 1" >>confdefs.h
29080 # Test whether the LLVM assembler accepts -mattr=+sramecc without any
29081 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
29082 # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning
29083 # for GPUs without support.
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for fiji" >&5
29085 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for fiji... " >&6; }
29086 if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false
; then :
29087 $as_echo_n "(cached) " >&6
29089 gcc_cv_as_gcn_sram_ecc_fiji
=no
29090 if test x
$gcc_cv_as != x
; then
29091 $as_echo '' > conftest.s
29092 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'
29093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29094 (eval $ac_try) 2>&5
29096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29097 test $ac_status = 0; }; }
29099 grep "." conftest.err
>&5 \
29100 || gcc_cv_as_gcn_sram_ecc_fiji
=yes
29102 echo "configure: failed program was" >&5
29105 rm -f conftest.o conftest.s
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5
29109 $as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; }
29110 if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then
29112 $as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx900" >&5
29118 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx900... " >&6; }
29119 if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false
; then :
29120 $as_echo_n "(cached) " >&6
29122 gcc_cv_as_gcn_sram_ecc_gfx900
=no
29123 if test x
$gcc_cv_as != x
; then
29124 $as_echo '' > conftest.s
29125 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'
29126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29127 (eval $ac_try) 2>&5
29129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29130 test $ac_status = 0; }; }
29132 grep "." conftest.err
>&5 \
29133 || gcc_cv_as_gcn_sram_ecc_gfx900
=yes
29135 echo "configure: failed program was" >&5
29138 rm -f conftest.o conftest.s
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5
29142 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; }
29143 if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then
29145 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx906" >&5
29151 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx906... " >&6; }
29152 if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false
; then :
29153 $as_echo_n "(cached) " >&6
29155 gcc_cv_as_gcn_sram_ecc_gfx906
=no
29156 if test x
$gcc_cv_as != x
; then
29157 $as_echo '' > conftest.s
29158 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'
29159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29160 (eval $ac_try) 2>&5
29162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29163 test $ac_status = 0; }; }
29165 grep "." conftest.err
>&5 \
29166 || gcc_cv_as_gcn_sram_ecc_gfx906
=yes
29168 echo "configure: failed program was" >&5
29171 rm -f conftest.o conftest.s
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5
29175 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; }
29176 if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then
29178 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx908" >&5
29184 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx908... " >&6; }
29185 if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false
; then :
29186 $as_echo_n "(cached) " >&6
29188 gcc_cv_as_gcn_sram_ecc_gfx908
=no
29189 if test x
$gcc_cv_as != x
; then
29190 $as_echo '' > conftest.s
29191 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'
29192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29193 (eval $ac_try) 2>&5
29195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29196 test $ac_status = 0; }; }
29198 grep "." conftest.err
>&5 \
29199 || gcc_cv_as_gcn_sram_ecc_gfx908
=yes
29201 echo "configure: failed program was" >&5
29204 rm -f conftest.o conftest.s
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5
29208 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; }
29209 if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then
29211 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h
29218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29219 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29220 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29221 $as_echo_n "(cached) " >&6
29223 gcc_cv_as_arm_option_extensions
=no
29224 if test x
$gcc_cv_as != x
; then
29228 vmov.f32 s0, s1' > conftest.s
29229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29231 (eval $ac_try) 2>&5
29233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29234 test $ac_status = 0; }; }
29236 gcc_cv_as_arm_option_extensions
=yes
29238 echo "configure: failed program was" >&5
29241 rm -f conftest.o conftest.s
29244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29245 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29246 if test $gcc_cv_as_arm_option_extensions = yes; then
29248 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29254 # ??? Not all targets support dwarf2 debug_line, even within a version
29255 # of gas. Moreover, we need to emit a valid instruction to trigger any
29256 # info to the output file. So, as supported targets are added to gas 2.11,
29257 # add some instruction here to (also) show we expect this might work.
29258 # ??? Once 2.11 is released, probably need to add first known working
29259 # version to the per-target configury.
29260 case "$cpu_type" in
29261 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
29262 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29263 | tilegx | tilepro | visium | xstormy16 | xtensa
)
29273 if test x
"$insn" != x
; then
29275 .file 1 \"conftest.s\"
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29279 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29280 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29281 $as_echo_n "(cached) " >&6
29283 gcc_cv_as_dwarf2_debug_line
=no
29284 if test x
$gcc_cv_as != x
; then
29285 $as_echo "$conftest_s" > conftest.s
29286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29288 (eval $ac_try) 2>&5
29290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29291 test $ac_status = 0; }; }
29293 if test x
$gcc_cv_objdump != x \
29294 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29295 |
grep debug_line
> /dev
/null
2>&1; then
29296 gcc_cv_as_dwarf2_debug_line
=yes
29297 elif test x
$gcc_cv_otool != x \
29298 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29299 |
grep debug_line
> /dev
/null
2>&1; then
29300 gcc_cv_as_dwarf2_debug_line
=yes
29303 echo "configure: failed program was" >&5
29306 rm -f conftest.o conftest.s
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29310 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29314 # The .debug_line file table must be in the exact order that
29315 # we specified the files, since these indices are also used
29316 # by DW_AT_decl_file. Approximate this test by testing if
29317 # the assembler bitches if the same index is assigned twice.
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29319 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29320 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29321 $as_echo_n "(cached) " >&6
29323 gcc_cv_as_dwarf2_file_buggy
=no
29324 if test x
$gcc_cv_as != x
; then
29325 $as_echo ' .file 1 "foo.s"
29326 .file 1 "bar.s"' > conftest.s
29327 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29329 (eval $ac_try) 2>&5
29331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29332 test $ac_status = 0; }; }
29334 gcc_cv_as_dwarf2_file_buggy
=yes
29336 echo "configure: failed program was" >&5
29339 rm -f conftest.o conftest.s
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29343 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29347 if test $gcc_cv_as_dwarf2_debug_line = yes \
29348 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29350 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29353 if test $gcc_cv_as_leb128 = yes; then
29355 .file 1 \"conftest.s\"
29356 .loc 1 3 0 view .LVU1
29362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29363 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29364 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29365 $as_echo_n "(cached) " >&6
29367 gcc_cv_as_dwarf2_debug_view
=no
29368 if test x
$gcc_cv_as != x
; then
29369 $as_echo "$conftest_s" > conftest.s
29370 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29372 (eval $ac_try) 2>&5
29374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29375 test $ac_status = 0; }; }
29377 gcc_cv_as_dwarf2_debug_view
=yes
29379 echo "configure: failed program was" >&5
29382 rm -f conftest.o conftest.s
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29386 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29387 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29389 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29397 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29398 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29399 $as_echo_n "(cached) " >&6
29401 gcc_cv_as_gdwarf2_flag
=no
29402 if test x
$gcc_cv_as != x
; then
29403 $as_echo "$insn" > conftest.s
29404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29406 (eval $ac_try) 2>&5
29408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29409 test $ac_status = 0; }; }
29411 gcc_cv_as_gdwarf2_flag
=yes
29413 echo "configure: failed program was" >&5
29416 rm -f conftest.o conftest.s
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29420 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29421 if test $gcc_cv_as_gdwarf2_flag = yes; then
29423 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29429 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29430 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29431 $as_echo_n "(cached) " >&6
29433 gcc_cv_as_gdwarf_5_flag
=no
29434 if test x
$gcc_cv_as != x
; then
29435 $as_echo "$insn" > conftest.s
29436 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29438 (eval $ac_try) 2>&5
29440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29441 test $ac_status = 0; }; }
29443 if test x
$gcc_cv_objdump != x \
29444 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29445 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29446 gcc_cv_as_gdwarf_5_flag
=yes;
29449 echo "configure: failed program was" >&5
29452 rm -f conftest.o conftest.s
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29456 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29457 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29459 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29465 win32 | pe | cygwin
* | mingw32
*)
29466 section_flags
=\"dr
\"
29467 function_type
=".def foo; .scl 2; .type 32; .endef"
29470 section_flags
=\"\",%progbits
29471 function_type
=".type foo, %function"
29472 function_size
=".size foo, .-foo";;
29474 dwarf4_debug_info_size
=0x46
29475 dwarf4_high_pc_form
=7
29476 dwarf4_debug_aranges_size
=0x2c
29478 for dwarf4_addr_size
in 8 4; do
29494 .section .debug_info,$section_flags
29496 .4byte $dwarf4_debug_info_size
29498 .4byte .Ldebug_abbrev0
29499 .byte 0x$dwarf4_addr_size
29501 .ascii \"GNU C17\\0\"
29505 .${dwarf4_addr_size}byte .Ltext0
29506 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29507 .4byte .Ldebug_line0
29513 .${dwarf4_addr_size}byte .LFB0
29514 .${dwarf4_addr_size}byte .LFE0-.LFB0
29518 .section .debug_abbrev,$section_flags
29534 .byte 0x$dwarf4_high_pc_form
29555 .byte 0x$dwarf4_high_pc_form
29561 .section .debug_aranges,$section_flags
29562 .4byte $dwarf4_debug_aranges_size
29564 .4byte .Ldebug_info0
29569 .${dwarf4_addr_size}byte .Ltext0
29570 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29571 .${dwarf4_addr_size}byte 0
29572 .${dwarf4_addr_size}byte 0
29573 .section .debug_line,$section_flags
29575 .4byte .LELT0-.LSLT0
29578 .4byte .LELTP0-.LASLTP0
29606 .byte 0x$dwarf4_line_sz
29608 .${dwarf4_addr_size}byte .LM1
29613 .byte 0x$dwarf4_line_sz
29615 .${dwarf4_addr_size}byte .LM2
29620 .byte 0x$dwarf4_line_sz
29622 .${dwarf4_addr_size}byte .Letext0
29627 .section .debug_str,$section_flags
29631 if test $dwarf4_addr_size = 4; then
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29633 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29634 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29635 $as_echo_n "(cached) " >&6
29637 gcc_cv_as_debug_line_32_flag
=no
29638 if test x
$gcc_cv_as != x
; then
29639 $as_echo "$conftest_s" > conftest.s
29640 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29642 (eval $ac_try) 2>&5
29644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29645 test $ac_status = 0; }; }
29647 gcc_cv_as_debug_line_32_flag
=yes
29649 echo "configure: failed program was" >&5
29652 rm -f conftest.o conftest.s
29655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29656 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29657 if test $gcc_cv_as_debug_line_32_flag = yes; then
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29663 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29664 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29665 $as_echo_n "(cached) " >&6
29667 gcc_cv_as_debug_line_64_flag
=no
29668 if test x
$gcc_cv_as != x
; then
29669 $as_echo "$conftest_s" > conftest.s
29670 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29672 (eval $ac_try) 2>&5
29674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29675 test $ac_status = 0; }; }
29677 gcc_cv_as_debug_line_64_flag
=yes
29679 echo "configure: failed program was" >&5
29682 rm -f conftest.o conftest.s
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29686 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29687 if test $gcc_cv_as_debug_line_64_flag = yes; then
29692 if test $dwarf4_success = yes; then
29694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29695 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29696 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29697 $as_echo_n "(cached) " >&6
29699 gcc_cv_as_dwarf_4_debug_line_flag
=no
29700 if test x
$gcc_cv_as != x
; then
29701 $as_echo "$conftest_s" > conftest.s
29702 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29704 (eval $ac_try) 2>&5
29706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29707 test $ac_status = 0; }; }
29709 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29711 echo "configure: failed program was" >&5
29714 rm -f conftest.o conftest.s
29717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29718 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29719 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29725 dwarf4_debug_info_size
=0x36
29726 dwarf4_high_pc_form
=6
29727 dwarf4_debug_aranges_size
=0x1c
29731 if test $dwarf4_success = yes; then
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29750 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29751 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29752 $as_echo_n "(cached) " >&6
29754 gcc_cv_as_dwarf_4_app_flag
=no
29755 if test x
$gcc_cv_as != x
; then
29756 $as_echo "$conftest_s" > conftest.s
29757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29759 (eval $ac_try) 2>&5
29761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29762 test $ac_status = 0; }; }
29764 gcc_cv_as_dwarf_4_app_flag
=yes
29766 echo "configure: failed program was" >&5
29769 rm -f conftest.o conftest.s
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29773 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29774 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29780 if test $dwarf4_success = yes; then
29790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29791 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29792 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29793 $as_echo_n "(cached) " >&6
29795 gcc_cv_as_working_gdwarf_n_flag
=no
29796 if test x
$gcc_cv_as != x
; then
29797 $as_echo "$conftest_s" > conftest.s
29798 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29800 (eval $ac_try) 2>&5
29802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29803 test $ac_status = 0; }; }
29805 if test x
$gcc_cv_objdump != x \
29806 && $gcc_cv_objdump -W conftest.o
2>&1 \
29807 |
grep conftest.s
> /dev
/null
2>&1; then
29808 gcc_cv_as_working_gdwarf_n_flag
=no
29810 gcc_cv_as_working_gdwarf_n_flag
=yes
29813 echo "configure: failed program was" >&5
29816 rm -f conftest.o conftest.s
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29820 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29823 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29825 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29831 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29832 if ${gcc_cv_as_gstabs_flag+:} false
; then :
29833 $as_echo_n "(cached) " >&6
29835 gcc_cv_as_gstabs_flag
=no
29836 if test x
$gcc_cv_as != x
; then
29837 $as_echo "$insn" > conftest.s
29838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29840 (eval $ac_try) 2>&5
29842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29843 test $ac_status = 0; }; }
29845 gcc_cv_as_gstabs_flag
=yes
29847 echo "configure: failed program was" >&5
29850 rm -f conftest.o conftest.s
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29854 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29855 if test $gcc_cv_as_gstabs_flag = yes; then
29857 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29863 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29864 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29865 $as_echo_n "(cached) " >&6
29867 gcc_cv_as_debug_prefix_map_flag
=no
29868 if test x
$gcc_cv_as != x
; then
29869 $as_echo "$insn" > conftest.s
29870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29872 (eval $ac_try) 2>&5
29874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29875 test $ac_status = 0; }; }
29877 gcc_cv_as_debug_prefix_map_flag
=yes
29879 echo "configure: failed program was" >&5
29882 rm -f conftest.o conftest.s
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29886 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29887 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29889 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29896 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29897 if ${gcc_cv_as_compress_debug+:} false
; then :
29898 $as_echo_n "(cached) " >&6
29900 gcc_cv_as_compress_debug
=no
29901 if test x
$gcc_cv_as != x
; then
29902 $as_echo '' > conftest.s
29903 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29905 (eval $ac_try) 2>&5
29907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29908 test $ac_status = 0; }; }
29910 # gas compiled without zlib cannot compress debug sections and warns
29911 # about it, but still exits successfully. So check for this, too.
29912 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29914 gcc_cv_as_compress_debug
=0
29915 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29916 # defaulting to the ELF gABI format.
29917 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
29919 gcc_cv_as_compress_debug
=2
29920 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29921 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29922 # Before binutils 2.26, gas only supported --compress-debug-options and
29923 # emitted the traditional GNU format.
29924 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
29926 gcc_cv_as_compress_debug
=1
29927 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29928 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29930 gcc_cv_as_compress_debug
=0
29933 echo "configure: failed program was" >&5
29936 rm -f conftest.o conftest.s
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29940 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29944 cat >>confdefs.h
<<_ACEOF
29945 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29949 cat >>confdefs.h
<<_ACEOF
29950 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29954 cat >>confdefs.h
<<_ACEOF
29955 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29960 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29961 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29962 $as_echo_n "(cached) " >&6
29964 gcc_cv_as_lcomm_with_alignment
=no
29965 if test x
$gcc_cv_as != x
; then
29966 $as_echo '.lcomm bar,4,16' > conftest.s
29967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29969 (eval $ac_try) 2>&5
29971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29972 test $ac_status = 0; }; }
29974 gcc_cv_as_lcomm_with_alignment
=yes
29976 echo "configure: failed program was" >&5
29979 rm -f conftest.o conftest.s
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29983 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29984 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29986 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29991 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29992 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29993 && test "$prefix" != "NONE"; then
29995 cat >>confdefs.h
<<_ACEOF
29996 #define PREFIX_INCLUDE_DIR "$prefix/include"
30001 # Determine the version of glibc, if any, used on the target.
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30003 $as_echo_n "checking for target glibc version... " >&6; }
30005 # Check whether --with-glibc-version was given.
30006 if test "${with_glibc_version+set}" = set; then :
30007 withval
=$with_glibc_version;
30008 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30009 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30010 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30012 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
30016 glibc_version_major
=0
30017 glibc_version_minor
=0
30018 if test -f $target_header_dir/features.h \
30019 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30020 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30021 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30022 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30027 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30029 cat >>confdefs.h
<<_ACEOF
30030 #define TARGET_GLIBC_MAJOR $glibc_version_major
30034 cat >>confdefs.h
<<_ACEOF
30035 #define TARGET_GLIBC_MINOR $glibc_version_minor
30039 # Check whether --enable-gnu-unique-object was given.
30040 if test "${enable_gnu_unique_object+set}" = set; then :
30041 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30043 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30044 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30048 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30049 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
30050 $as_echo_n "(cached) " >&6
30052 gcc_cv_as_gnu_unique_object
=no
30053 if test x
$gcc_cv_as != x
; then
30054 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30055 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30057 (eval $ac_try) 2>&5
30059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30060 test $ac_status = 0; }; }
30062 gcc_cv_as_gnu_unique_object
=yes
30064 echo "configure: failed program was" >&5
30067 rm -f conftest.o conftest.s
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30071 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30072 if test $gcc_cv_as_gnu_unique_object = yes; then
30073 # We need to unquote above to to use the definition from config.gcc.
30074 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30076 if test $glibc_version_major -gt 2 \
30077 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30078 enable_gnu_unique_object
=yes
30085 if test x
$enable_gnu_unique_object = xyes
; then
30087 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30092 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30093 if ${gcc_cv_as_line_zero+:} false
; then :
30094 $as_echo_n "(cached) " >&6
30096 gcc_cv_as_line_zero
=no
30097 if test "x$gcc_cv_as" != x
; then
30098 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30099 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30101 (eval $ac_try) 2>&5
30103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30104 test $ac_status = 0; }; } &&
30105 test "x`cat conftest.out`" = x
30107 gcc_cv_as_line_zero
=yes
30109 echo "configure: failed program was" >&5
30111 echo "configure: error output was" >&5
30112 cat conftest.out
>&5
30114 rm -f conftest.o conftest.s conftest.out
30117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30118 $as_echo "$gcc_cv_as_line_zero" >&6; }
30119 if test "x$gcc_cv_as_line_zero" = xyes
; then
30121 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30126 $as_echo_n "checking support for thin archives... " >&6; }
30127 thin_archive_support
=no
30128 echo 'int main (void) { return 0; }' > conftest.c
30129 if ($AR --version |
sed 1q |
grep "GNU ar" \
30130 && $CC $CFLAGS -c conftest.c \
30131 && $AR rcT conftest.a conftest.o \
30132 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30133 thin_archive_support
=yes
30135 rm -f conftest.c conftest.o conftest.a conftest
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30137 $as_echo "$thin_archive_support" >&6; }
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30141 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30142 gcc_cv_ld_eh_frame_hdr
=no
30143 if test $in_tree_ld = yes ; then
30144 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 \
30145 && test $in_tree_ld_is_elf = yes; then
30146 gcc_cv_ld_eh_frame_hdr
=yes
30148 elif test x
$gcc_cv_ld != x
; then
30149 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30150 # Check if linker supports --eh-frame-hdr option
30151 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30152 gcc_cv_ld_eh_frame_hdr
=yes
30157 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30158 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30159 gcc_cv_ld_eh_frame_hdr
=yes
30166 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30168 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30172 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30175 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30176 gcc_cv_ld_eh_frame_ciev3
=no
30177 if test $in_tree_ld = yes ; then
30178 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 \
30179 && test $in_tree_ld_is_elf = yes; then
30180 gcc_cv_ld_eh_frame_ciev3
=yes
30182 elif test x
$gcc_cv_ld != x
; then
30183 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30184 gcc_cv_ld_eh_frame_ciev3
=yes
30185 if test 0"$ld_date" -lt 20040513; then
30186 if test -n "$ld_date"; then
30187 # If there was date string, but was earlier than 2004-05-13, fail
30188 gcc_cv_ld_eh_frame_ciev3
=no
30189 elif test "$ld_vers_major" -lt 2; then
30190 gcc_cv_ld_eh_frame_ciev3
=no
30191 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30192 gcc_cv_ld_eh_frame_ciev3
=no
30198 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30199 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30200 gcc_cv_ld_eh_frame_ciev3
=yes
30207 cat >>confdefs.h
<<_ACEOF
30208 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30212 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30215 $as_echo_n "checking linker position independent executable support... " >&6; }
30217 if test $in_tree_ld = yes ; then
30219 # Full PIE support on Solaris was only introduced in gld 2.26.
30220 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30221 *) gcc_gld_pie_min_version
=15 ;;
30223 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 \
30224 && test $in_tree_ld_is_elf = yes; then
30227 elif test x
$gcc_cv_ld != x
; then
30228 # Check if linker supports -pie option
30229 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30233 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30234 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30241 *-*-solaris2.1
[1-9]*)
30242 # Solaris 11.3 added PIE support.
30243 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30250 if test x
"$gcc_cv_ld_pie" = xyes
; then
30252 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30256 $as_echo "$gcc_cv_ld_pie" >&6; }
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30259 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30260 gcc_cv_ld_pie_copyreloc
=no
30261 if test $gcc_cv_ld_pie = yes ; then
30262 if test $in_tree_ld = yes ; then
30263 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
30264 gcc_cv_ld_pie_copyreloc
=yes
30266 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30267 # Check if linker supports -pie option with copy reloc
30269 i?
86-*-linux* | x86_64-
*-linux*)
30270 cat > conftest1.s
<<EOF
30273 .type a_glob, @object
30278 cat > conftest2.s
<<EOF
30281 .type main, @function
30283 movl %eax, a_glob(%rip)
30286 .section .data.rel,"aw",@progbits
30291 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30292 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30293 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30294 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30295 gcc_cv_ld_pie_copyreloc
=yes
30297 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30303 cat >>confdefs.h
<<_ACEOF
30304 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30308 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30311 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30312 gcc_cv_ld_eh_gc_sections
=no
30313 if test $in_tree_ld = yes ; then
30314 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 \
30315 && test $in_tree_ld_is_elf = yes; then
30316 gcc_cv_ld_eh_gc_sections
=yes
30318 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30319 cat > conftest.s
<<EOF
30322 .type _start, @function
30325 .size _start, .-_start
30326 .section .text.foo,"ax",@progbits
30327 .type foo, @function
30331 .section .gcc_except_table.foo,"a",@progbits
30334 .section .eh_frame,"a",@progbits
30337 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30338 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30339 |
grep "gc-sections option ignored" > /dev
/null
; then
30340 gcc_cv_ld_eh_gc_sections
=no
30341 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30342 |
grep gcc_except_table
> /dev
/null
; then
30343 gcc_cv_ld_eh_gc_sections
=yes
30344 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30345 if test x
$gcc_cv_as_comdat_group != xyes
; then
30346 gcc_cv_ld_eh_gc_sections
=no
30347 cat > conftest.s
<<EOF
30350 .type _start, @function
30353 .size _start, .-_start
30354 .section .gnu.linkonce.t.foo,"ax",@progbits
30355 .type foo, @function
30359 .section .gcc_except_table.foo,"a",@progbits
30362 .section .eh_frame,"a",@progbits
30365 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30366 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30367 |
grep "gc-sections option ignored" > /dev
/null
; then
30368 gcc_cv_ld_eh_gc_sections
=no
30369 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30370 |
grep gcc_except_table
> /dev
/null
; then
30371 gcc_cv_ld_eh_gc_sections
=yes
30377 rm -f conftest.s conftest.o conftest
30381 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30382 gcc_cv_ld_eh_gc_sections
=no
30385 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30387 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30391 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30394 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30395 gcc_cv_ld_eh_gc_sections_bug
=no
30396 if test $in_tree_ld = yes ; then
30397 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 \
30398 && test $in_tree_ld_is_elf = yes; then
30399 gcc_cv_ld_eh_gc_sections_bug
=yes
30401 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
30402 gcc_cv_ld_eh_gc_sections_bug
=yes
30403 cat > conftest.s
<<EOF
30406 .type _start, @function
30409 .size _start, .-_start
30410 .section .text.startup.foo,"ax",@progbits
30411 .type foo, @function
30415 .section .gcc_except_table.foo,"a",@progbits
30418 .section .eh_frame,"a",@progbits
30421 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30422 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30423 |
grep "gc-sections option ignored" > /dev
/null
; then
30425 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30426 |
grep gcc_except_table
> /dev
/null
; then
30427 gcc_cv_ld_eh_gc_sections_bug
=no
30430 rm -f conftest.s conftest.o conftest
30432 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30434 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30438 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30441 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30442 # gold/gld support compressed debug sections since binutils 2.19/2.21
30443 # In binutils 2.26, gld gained support for the ELF gABI format.
30444 if test $in_tree_ld = yes ; then
30445 gcc_cv_ld_compress_debug
=0
30446 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
30447 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30448 gcc_cv_ld_compress_debug
=2
30449 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30450 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 \
30451 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
30452 gcc_cv_ld_compress_debug
=3
30453 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30454 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 \
30455 && test $in_tree_ld_is_elf = yes; then
30456 gcc_cv_ld_compress_debug
=1
30458 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30459 if test "$ld_vers_major" -lt 2 \
30460 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30461 gcc_cv_ld_compress_debug
=0
30462 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30463 gcc_cv_ld_compress_debug
=1
30465 gcc_cv_ld_compress_debug
=3
30466 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30468 if test $ld_is_gold = yes; then
30469 gcc_cv_ld_compress_debug
=2
30470 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30473 case "${target}" in
30475 # Introduced in Solaris 11.2.
30476 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30477 gcc_cv_ld_compress_debug
=3
30478 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30480 gcc_cv_ld_compress_debug
=0
30484 # Assume linkers other than GNU ld don't support compessed debug
30486 gcc_cv_ld_compress_debug
=0
30491 cat >>confdefs.h
<<_ACEOF
30492 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30496 cat >>confdefs.h
<<_ACEOF
30497 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30501 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30503 if test x
"$ld64_flag" = x
"yes"; then
30505 # Set defaults for possibly untestable items.
30506 gcc_cv_ld64_export_dynamic
=0
30507 gcc_cv_ld64_platform_version
=0
30509 if test "$build" = "$host"; then
30515 # On Darwin, because of FAT library support, it is often possible to execute
30516 # exes from compatible archs even when the host differs from the build system.
30517 case "$build","$host" in
30518 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30519 darwin_try_test
=1;;
30523 # If the configurer specified a minimum ld64 version to be supported, then use
30524 # that to determine feature support.
30525 if test x
"${gcc_cv_ld64_version}" != x
; then
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30527 $as_echo_n "checking ld64 specified version... " >&6; }
30528 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30530 $as_echo "$gcc_cv_ld64_major" >&6; }
30531 if test "$gcc_cv_ld64_major" -ge 236; then
30532 gcc_cv_ld64_export_dynamic
=1
30534 if test "$gcc_cv_ld64_major" -ge 512; then
30535 gcc_cv_ld64_platform_version
=1
30537 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30538 # If the version was not specified, try to find it.
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30540 $as_echo_n "checking linker version... " >&6; }
30541 if test x
"${gcc_cv_ld64_version}" = x
; then
30542 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30545 $as_echo "$gcc_cv_ld64_version" >&6; }
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30548 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30549 gcc_cv_ld64_export_dynamic
=1
30550 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30551 gcc_cv_ld64_export_dynamic
=0
30553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30554 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30557 $as_echo_n "checking linker for -platform_version support... " >&6; }
30558 gcc_cv_ld64_platform_version
=1
30559 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30560 gcc_cv_ld64_platform_version
=0
30562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30563 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30566 if test x
"${gcc_cv_ld64_version}" != x
; then
30568 cat >>confdefs.h
<<_ACEOF
30569 #define LD64_VERSION "${gcc_cv_ld64_version}"
30575 cat >>confdefs.h
<<_ACEOF
30576 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30581 cat >>confdefs.h
<<_ACEOF
30582 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30587 if test x
"$dsymutil_flag" = x
"yes"; then
30589 # If the user specified a dsymutil path, then we will already have the
30590 # version string, otherwise, pick it up.
30591 if test x
"$gcc_cv_dsymutil" = x
; then
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30593 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30594 dsymutil_vers
="tool unspecified"
30595 elif test x
"$dsymutil_vers" = x
; then
30596 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30599 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30601 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30602 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30603 dsymutil_kind
=DWARFUTILS
30604 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30605 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30606 dsymutil_kind
=CLANG
30607 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30608 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30610 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30612 dsymutil_kind
=UNKNOWN
30613 dsymutil_vers
="0.0"
30615 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30616 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30617 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30618 if test x
"${dsymutil_minor}" = x
; then
30621 if test x
"${dsymutil_tiny}" = x
; then
30625 cat >>confdefs.h
<<_ACEOF
30626 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30630 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30634 win32 | pe | cygwin* | mingw32*)
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30636 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30637 gcc_cv_ld_broken_pe_dwarf5=yes
30638 if test $in_tree_ld = yes ; then
30639 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30640 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30641 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30642 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30643 gcc_cv_ld_broken_pe_dwarf5=no
30646 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30647 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30648 gcc_cv_ld_broken_pe_dwarf5=no
30651 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30653 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30657 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30660 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30661 gcc_cv_ld_disable_dynamicbase
=no
30662 if test $in_tree_ld = yes; then
30663 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 \
30664 gcc_cv_ld_disable_dynamicbase
=yes
30667 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30668 gcc_cv_ld_disable_dynamicbase
=yes
30671 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30673 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30677 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30686 $as_echo_n "checking linker --as-needed support... " >&6; }
30687 if ${gcc_cv_ld_as_needed+:} false
; then :
30688 $as_echo_n "(cached) " >&6
30690 gcc_cv_ld_as_needed
=no
30691 gcc_cv_ld_as_needed_option
='--as-needed'
30692 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30693 if test $in_tree_ld = yes ; then
30694 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 \
30695 && test $in_tree_ld_is_elf = yes; then
30696 gcc_cv_ld_as_needed
=yes
30697 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30698 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30699 gcc_cv_ld_no_as_needed_option
='--pop-state'
30702 elif test x
$gcc_cv_ld != x
; then
30703 # Check if linker supports --as-needed and --no-as-needed options
30704 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30705 gcc_cv_ld_as_needed
=yes
30706 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30707 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30708 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30709 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30710 # Use these options only when both ld.bfd and ld.gold support
30711 # --push-state/--pop-state, which unfortunately wasn't added
30712 # at the same time.
30713 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30714 gcc_cv_ld_no_as_needed_option
='--pop-state'
30717 case "$target:$gnu_ld" in
30719 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30721 gcc_cv_ld_as_needed
=yes
30722 gcc_cv_ld_as_needed_option
="-z ignore"
30723 gcc_cv_ld_no_as_needed_option
="-z record"
30727 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30728 # dl_iterate_phdr, i.e. since Solaris 11.
30730 *-*-solaris2.1
[1-9]*)
30732 i?
86-*-* | x86_64-
*-*)
30733 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30734 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30735 gcc_cv_ld_as_needed
=no
30741 gcc_cv_ld_as_needed
=no
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30747 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30748 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30750 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30753 cat >>confdefs.h
<<_ACEOF
30754 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30758 cat >>confdefs.h
<<_ACEOF
30759 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30765 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30766 saved_LDFLAGS
="$LDFLAGS"
30767 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30768 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30770 /* end confdefs.h. */
30771 int main(void) {return 0;}
30773 if ac_fn_cxx_try_link
"$LINENO"; then :
30774 gcc_cv_ld_clearcap
=yes; break
30776 gcc_cv_ld_clearcap
=no
30778 rm -f core conftest.err conftest.
$ac_objext \
30779 conftest
$ac_exeext conftest.
$ac_ext
30781 LDFLAGS
="$saved_LDFLAGS"
30782 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30784 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30786 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30790 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30796 emul_name
="-melf32lppc"
30799 emul_name
="-melf32ppc"
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30803 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30804 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30805 $as_echo_n "(cached) " >&6
30807 gcc_cv_ld_ppc_attr
=no
30808 if test x
"$ld_is_gold" = xyes
; then
30809 gcc_cv_ld_ppc_attr
=yes
30810 elif test $in_tree_ld = yes ; then
30811 if test "$gcc_cv_gld_major_version" -eq 2 \
30812 -a "$gcc_cv_gld_minor_version" -ge 28 \
30813 -o "$gcc_cv_gld_major_version" -gt 2; then
30814 gcc_cv_ld_ppc_attr
=yes
30816 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30817 # check that merging the long double .gnu_attribute doesn't warn
30818 cat > conftest1.s
<<EOF
30821 cat > conftest2.s
<<EOF
30824 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30825 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30826 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30827 && test ! -s conftest.err
; then
30828 gcc_cv_ld_ppc_attr
=yes
30830 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30835 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30836 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30838 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30844 case "$target:$tm_file" in
30845 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30848 emul_name
="-melf64lppc"
30851 emul_name
="-melf64ppc"
30854 emul_name
="-melf64lppc_fbsd"
30857 emul_name
="-melf64ppc_fbsd"
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30861 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30862 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30863 $as_echo_n "(cached) " >&6
30865 gcc_cv_ld_no_dot_syms
=no
30866 if test x
"$ld_is_gold" = xyes
; then
30867 gcc_cv_ld_no_dot_syms
=yes
30868 elif test $in_tree_ld = yes ; then
30869 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
30870 gcc_cv_ld_no_dot_syms
=yes
30872 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30873 cat > conftest1.s
<<EOF
30877 cat > conftest2.s
<<EOF
30878 .section ".opd","aw"
30881 .type foo,@function
30883 .quad .LEfoo,.TOC.@tocbase,0
30889 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30890 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30891 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30892 gcc_cv_ld_no_dot_syms
=yes
30894 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30899 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30900 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30902 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30907 $as_echo_n "checking linker large toc support... " >&6; }
30908 if ${gcc_cv_ld_large_toc+:} false
; then :
30909 $as_echo_n "(cached) " >&6
30911 gcc_cv_ld_large_toc
=no
30912 if test x
"$ld_is_gold" = xyes
; then
30913 gcc_cv_ld_large_toc
=yes
30914 elif test $in_tree_ld = yes ; then
30915 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
30916 gcc_cv_ld_large_toc
=yes
30918 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30919 cat > conftest.s
<<EOF
30920 .section ".tbss","awT",@nobits
30926 addis 9,13,ie0@got@tprel@ha
30927 ld 9,ie0@got@tprel@l(9)
30929 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30930 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
30931 gcc_cv_ld_large_toc
=yes
30933 rm -f conftest conftest.o conftest.s
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30938 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30939 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30941 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30946 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30947 if ${gcc_cv_ld_toc_align+:} false
; then :
30948 $as_echo_n "(cached) " >&6
30950 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30951 cat > conftest.s
<<EOF
30956 .section .data.rel.ro,"aw",@progbits
30961 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30962 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30963 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)) }'`
30965 rm -f conftest conftest.o conftest.s
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30970 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30971 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30973 cat >>confdefs.h
<<_ACEOF
30974 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30984 $as_echo_n "checking linker large toc support... " >&6; }
30985 if ${gcc_cv_ld_large_toc+:} false
; then :
30986 $as_echo_n "(cached) " >&6
30988 gcc_cv_ld_large_toc
=no
30989 if test x
$gcc_cv_as != x
; then
30990 cat > conftest.s
<<EOF
31000 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
31001 gcc_cv_ld_large_toc
=yes
31003 rm -f conftest conftest.o conftest.s
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31008 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31009 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31011 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31018 $as_echo_n "checking linker --build-id support... " >&6; }
31019 if ${gcc_cv_ld_buildid+:} false
; then :
31020 $as_echo_n "(cached) " >&6
31022 gcc_cv_ld_buildid
=no
31023 if test $in_tree_ld = yes ; then
31024 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31025 "$gcc_cv_gld_minor_version" -ge 18 -o \
31026 "$gcc_cv_gld_major_version" -gt 2 \
31027 && test $in_tree_ld_is_elf = yes; then
31028 gcc_cv_ld_buildid
=yes
31030 elif test x
$gcc_cv_ld != x
; then
31031 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
31032 gcc_cv_ld_buildid
=yes
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31037 $as_echo "$gcc_cv_ld_buildid" >&6; }
31038 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31040 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31044 # Check whether --enable-linker-build-id was given.
31045 if test "${enable_linker_build_id+set}" = set; then :
31046 enableval
=$enable_linker_build_id;
31048 enable_linker_build_id
=no
31052 if test x
"$enable_linker_build_id" = xyes
; then
31053 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31055 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31059 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31063 # In binutils 2.21, GNU ld gained support for new emulations fully
31064 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31066 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31067 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
31068 $as_echo_n "(cached) " >&6
31070 gcc_cv_ld_sol2_emulation
=no
31071 if test $in_tree_ld = yes ; then
31072 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31073 "$gcc_cv_gld_minor_version" -ge 21 -o \
31074 "$gcc_cv_gld_major_version" -gt 2 \
31075 && test $in_tree_ld_is_elf = yes; then
31076 gcc_cv_ld_sol2_emulation
=yes
31078 elif test x
$gcc_cv_ld != x
; then
31079 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
31080 grep _sol2
> /dev
/null
; then
31081 gcc_cv_ld_sol2_emulation
=yes
31085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31086 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31087 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31089 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31094 $as_echo_n "checking linker --sysroot support... " >&6; }
31095 if ${gcc_cv_ld_sysroot+:} false
; then :
31096 $as_echo_n "(cached) " >&6
31098 gcc_cv_ld_sysroot
=no
31099 if test $in_tree_ld = yes ; then
31100 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
31101 gcc_cv_ld_sysroot
=yes
31103 elif test x
$gcc_cv_ld != x
; then
31104 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31105 gcc_cv_ld_sysroot
=yes
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31110 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31111 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31113 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31119 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31121 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31122 if ${gcc_cv_solaris_crts+:} false
; then :
31123 $as_echo_n "(cached) " >&6
31125 gcc_cv_solaris_crts
=no
31126 if test x
$host != x
$target; then
31127 if test "x$with_sysroot" = xyes
; then
31128 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31130 target_sysroot
="${with_sysroot}"
31133 target_libdir
="$target_sysroot/usr/lib"
31134 # At the time they were added, gcrt1.o became a symlink for backwards
31135 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31137 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31138 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31140 sparc
*-*-solaris2*)
31141 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31146 $as_echo "$gcc_cv_solaris_crts" >&6; }
31149 if test x
$gcc_cv_solaris_crts = xyes
; then
31151 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31155 # Check whether --enable-libssp was given.
31156 if test "${enable_libssp+set}" = set; then :
31157 enableval
=$enable_libssp; case "${enableval}" in
31161 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31167 # Test for stack protector support in target C library.
31168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31169 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31170 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31171 $as_echo_n "(cached) " >&6
31173 gcc_cv_libc_provides_ssp
=no
31174 if test "x$enable_libssp" = "xno"; then
31175 gcc_cv_libc_provides_ssp
=yes
31176 elif test "x$enable_libssp" = "xyes"; then
31177 gcc_cv_libc_provides_ssp
=no
31181 # All versions of musl provide stack protector
31182 gcc_cv_libc_provides_ssp
=yes;;
31183 *-*-linux* |
*-*-kfreebsd*-gnu)
31184 # glibc 2.4 and later provides __stack_chk_fail and
31185 # either __stack_chk_guard, or TLS access to stack guard canary.
31187 if test $glibc_version_major -gt 2 \
31188 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31189 gcc_cv_libc_provides_ssp
=yes
31192 if test -f $target_header_dir/features.h \
31193 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31194 $target_header_dir/features.h
> /dev
/null
; then
31195 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31196 $target_header_dir/features.h
> /dev
/null
&& \
31197 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31198 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31199 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31200 gcc_cv_libc_provides_ssp
=yes
31202 # all versions of Bionic support stack protector
31203 elif test -f $target_header_dir/sys
/cdefs.h \
31204 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31205 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31206 gcc_cv_libc_provides_ssp
=yes
31211 # Avoid complicated tests (see
31212 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31213 # simply assert that glibc does provide this, which is true for all
31214 # realistically usable GNU/Hurd configurations.
31215 # All supported versions of musl provide it as well
31216 gcc_cv_libc_provides_ssp
=yes;;
31217 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31218 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31219 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31220 gcc_cv_libc_provides_ssp
=yes
31222 echo "no __stack_chk_fail on this target"
31226 *) gcc_cv_libc_provides_ssp
=no
;;
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31231 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31233 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31235 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31239 # Check whether --enable-default-ssp was given.
31240 # Check whether --enable-default-ssp was given.
31241 if test "${enable_default_ssp+set}" = set; then :
31242 enableval
=$enable_default_ssp;
31243 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31245 ia64
*-*-*) enable_default_ssp
=no
;;
31246 *) enable_default_ssp
=$enableval ;;
31249 enable_default_ssp
=no
31252 enable_default_ssp
=no
31255 if test x
$enable_default_ssp = xyes
; then
31257 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31262 # Test for <sys/sdt.h> on the target.
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31265 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31267 if test -f $target_header_dir/sys
/sdt.h
; then
31270 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31274 $as_echo "$have_sys_sdt_h" >&6; }
31276 # Check if TFmode long double should be used by default or not.
31277 # Some glibc targets used DFmode long double, but with glibc 2.4
31278 # and later they can use TFmode.
31280 powerpc
*-*-linux* | \
31281 sparc
*-*-linux* | \
31285 # Check whether --with-long-double-128 was given.
31286 if test "${with_long_double_128+set}" = set; then :
31287 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31291 s390
*-*-linux-musl*)
31292 gcc_cv_target_ldbl128
=yes
31294 powerpc
*-*-linux-musl*)
31295 gcc_cv_target_ldbl128
=no
31299 if test $glibc_version_major -gt 2 \
31300 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31301 gcc_cv_target_ldbl128
=yes
31304 gcc_cv_target_ldbl128
=no
31305 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31306 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31307 && gcc_cv_target_ldbl128
=yes
31318 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31320 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31324 # Check if TFmode long double target should use the IBM extended double or IEEE
31325 # 128-bit floating point formats if long doubles are 128-bits long. The long
31326 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31327 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31330 # Check whether --with-long-double-format was given.
31331 if test "${with_long_double_format+set}" = set; then :
31332 withval
=$with_long_double_format;
31333 case "$target:$with_long_double_format" in
31334 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31337 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31338 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31339 case "$with_cpu" in
31340 power7 | power8 | power9 | power1
*)
31344 as_fn_error $?
"Configuration option --with-long-double-format is only \
31345 supported if the default cpu is power7 or newer" "$LINENO" 5
31346 with_long_double_format
=""
31350 powerpc64
*-*-linux*:*)
31351 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31352 with_long_double_format
=""
31355 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31356 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31357 with_long_double_format
=""
31363 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31364 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31365 gcc_cv_libc_provides_hwcap_in_tcb
=no
31369 if test $glibc_version_major -gt 2 \
31370 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31371 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31375 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31377 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31381 # Check if the target LIBC handles PT_GNU_STACK.
31382 gcc_cv_libc_gnustack
=unknown
31384 mips
*-*-linux-musl*)
31385 gcc_cv_libc_gnustack
=yes
31389 if test $glibc_version_major -gt 2 \
31390 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31391 gcc_cv_libc_gnustack
=yes
31395 if test x
$gcc_cv_libc_gnustack = xyes
; then
31397 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31402 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31403 gcc_cv_target_dl_iterate_phdr
=unknown
31406 # <link.h> needs both a dl_iterate_phdr declaration and support for
31407 # compilation with largefile support.
31408 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31409 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31410 gcc_cv_target_dl_iterate_phdr
=yes
31412 gcc_cv_target_dl_iterate_phdr
=no
31415 *-*-dragonfly* |
*-*-freebsd*)
31416 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31417 gcc_cv_target_dl_iterate_phdr
=yes
31419 gcc_cv_target_dl_iterate_phdr
=no
31423 gcc_cv_target_dl_iterate_phdr
=yes
31427 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31429 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31433 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31435 # We no longer support different GC mechanisms. Emit an error if
31436 # the user configures with --with-gc.
31438 # Check whether --with-gc was given.
31439 if test "${with_gc+set}" = set; then :
31440 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31444 # Libraries to use on the host. This will normally be set by the top
31445 # level Makefile. Here we simply capture the value for our Makefile.
31446 if test -z "${HOST_LIBS+set}"; then
31451 # Use the system's zlib library.
31453 # Use the system's zlib library.
31454 zlibdir
="-L\$(top_builddir)/../zlib"
31455 zlibinc
="-I\$(top_srcdir)/../zlib"
31457 # Check whether --with-system-zlib was given.
31458 if test "${with_system_zlib+set}" = set; then :
31459 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31472 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31473 # Check whether --enable-maintainer-mode was given.
31474 if test "${enable_maintainer_mode+set}" = set; then :
31475 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31482 $as_echo "$maintainer_mode" >&6; }
31484 if test "$maintainer_mode" = "yes"; then
31490 if test -z "$CTAGS"; then
31494 if test -z "$ETAGS"; then
31498 if test -z "$CSCOPE"; then
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31505 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31506 # Check whether --enable-link-mutex was given.
31507 if test "${enable_link_mutex+set}" = set; then :
31508 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31514 $as_echo "$do_link_mutex" >&6; }
31516 if test "$do_link_mutex" = "yes"; then
31519 DO_LINK_MUTEX
=false
31524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31525 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31526 # Check whether --enable-link-serialization was given.
31527 if test "${enable_link_serialization+set}" = set; then :
31528 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31530 do_link_serialization
=no
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31534 $as_echo "$do_link_serialization" >&6; }
31536 case "$do_link_serialization" in
31538 DO_LINK_SERIALIZATION
=1;;
31539 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31540 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31542 DO_LINK_SERIALIZATION
=;;
31544 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31552 # Make empty files to contain the specs and options for each language.
31553 # Then add #include lines to for a compiler that has specs and/or options.
31559 # These (without "all_") are set in each config-lang.in.
31560 # `language' must be a single word so is spelled singularly.
31563 all_outputs
='Makefile'
31564 # List of language configure and makefile fragments.
31565 all_lang_configurefrags
=
31566 all_lang_makefrags
=
31567 # Additional files for gengtype
31568 all_gtfiles
="$target_gtfiles"
31570 # These are the languages that are set in --enable-languages,
31571 # and are available in the GCC tree.
31572 all_selected_languages
=
31574 # Add the language fragments.
31575 # Languages are added via two mechanisms. Some information must be
31576 # recorded in makefile variables, these are defined in config-lang.in.
31577 # We accumulate them and plug them into the main Makefile.
31578 # The other mechanism is a set of hooks for each of the main targets
31579 # like `clean', `install', etc.
31581 language_hooks
="Make-hooks"
31583 for lang
in ${srcdir}/*/config-lang.
in
31585 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31587 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31588 if test "x$lang_alias" = x
31590 echo "$lang doesn't set \$language." 1>&2
31593 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31594 subdirs
="$subdirs $subdir"
31596 # $gcc_subdir is where the gcc integration files are to be found
31597 # for a language, both for internal compiler purposes (compiler
31598 # sources implementing front-end to GCC tree converters), and for
31599 # build infrastructure purposes (Make-lang.in, etc.)
31601 # This will be <subdir> (relative to $srcdir) if a line like
31602 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31603 # is found in <langdir>/config-lang.in, and will remain <langdir>
31606 # Except for the language alias (fetched above), the regular
31607 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31608 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31609 # only this and the language alias.
31611 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31612 if [ "$gcc_subdir" = "" ]; then
31613 gcc_subdir
="$subdir"
31616 case ",$enable_languages," in
31618 all_selected_languages
="$all_selected_languages $lang_alias"
31619 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31620 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31631 .
${srcdir}/$gcc_subdir/config-lang.
in
31632 if test "x$language" = x
31634 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31639 case ",$enable_languages," in
31640 *,$lang_alias,*) ;;
31642 for i
in $subdir_requires; do
31643 test -f "${srcdir}/$i/config-lang.in" && continue
31651 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31652 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31653 # Put c/Make-lang.in fragment first to match serialization languages order.
31654 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31656 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31658 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31659 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31660 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31662 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31663 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31665 all_languages
="$all_languages $language"
31666 all_compilers
="$all_compilers $compilers"
31667 all_outputs
="$all_outputs $outputs"
31668 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31669 case ",$enable_languages," in
31672 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31682 for language
in $all_selected_languages
31684 check_languages
="$check_languages check-$language"
31687 selftest_languages
=
31688 for language
in $all_selected_languages
31690 selftest_languages
="$selftest_languages selftest-$language"
31693 # We link each language in with a set of hooks, reached indirectly via
31694 # lang.${target}. Only do so for selected languages.
31698 target_list
="all.cross start.encap rest.encap tags \
31699 install-common install-man install-info install-dvi install-pdf \
31700 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31701 mostlyclean clean distclean maintainer-clean install-plugin"
31703 for t
in $target_list
31706 for lang
in $all_selected_languages
31710 echo "lang.$t: $x" >> Make-hooks
31713 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31714 echo "SERIAL_LIST =" >> Make-hooks
31715 echo else >> Make-hooks
31719 serialization_languages
=c
31720 for lang
in $all_selected_languages
31722 test $lang = c
&& continue
31723 if test $lang = lto
; then
31724 serialization_languages
="$serialization_languages lto1 lto2"
31726 serialization_languages
="$serialization_languages $lang"
31729 for lang
in $serialization_languages
31731 test $lang = c
&& continue
31732 lang_cnt
=`expr $lang_cnt + 1`
31733 lang_list
=" $prev$lang_list"
31736 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31737 echo endif
>> Make-hooks
31738 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31739 echo "INDEX.c = 0" >> Make-hooks
31741 for lang
in $serialization_languages
31743 test $lang = c
&& continue
31744 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31745 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31746 lang_cnt
=`expr $lang_cnt - 1`
31747 lang_idx
=`expr $lang_idx + 1`
31751 # Option include files
31754 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31755 option_includes
="option-includes.mk"
31764 echo "dir ." > .gdbinit
31765 echo "dir ${srcdir}" >> .gdbinit
31766 if test x
$gdb_needs_out_file_path = xyes
31768 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31770 if test "x$subdirs" != x
; then
31773 echo "dir ${srcdir}/$s" >> .gdbinit
31776 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31777 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31779 # Put a breakpoint on __asan_report_error to help with debugging buffer
31782 *-fsanitize=address
*)
31783 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31787 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31791 # Find a directory in which to install a shared libgcc.
31793 # Check whether --enable-version-specific-runtime-libs was given.
31794 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31795 enableval
=$enable_version_specific_runtime_libs;
31799 # Substitute configuration variables
31870 if test x
${build} = x
${host} ; then
31871 if test x
${host} = x
${target} ; then
31872 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31874 echo "Links are now set up to build a cross-compiler" 1>&2
31875 echo " from ${host} to ${target}." 1>&2
31878 if test x
${host} = x
${target} ; then
31879 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31880 echo " for ${target}." 1>&2
31882 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31883 echo " from ${host} to ${target}." 1>&2
31892 if test "x${ISLLIBS}" != "x" ; then
31894 $as_echo "#define HAVE_isl 1" >>confdefs.h
31898 # Check for plugin support
31899 # Check whether --enable-plugin was given.
31900 if test "${enable_plugin+set}" = set; then :
31901 enableval
=$enable_plugin; enable_plugin
=$enableval
31903 enable_plugin
=yes; default_plugin
=yes
31912 # Since plugin support under MinGW is not as straightforward as on
31913 # other platforms (e.g., we have to link import library, etc), we
31914 # only enable it if explicitly requested.
31915 if test x
"$default_plugin" = x
"yes"; then
31917 elif test x
"$enable_plugin" = x
"yes"; then
31918 # Use make's target variable to derive import library name.
31919 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31924 if test x
$build = x
$host; then
31925 export_sym_check
="nm${exeext} -g"
31926 elif test x
$host = x
$target; then
31927 export_sym_check
="$gcc_cv_nm -g"
31933 if test x
$build = x
$host; then
31934 export_sym_check
="objdump${exeext} -T"
31935 elif test x
$host = x
$target; then
31936 export_sym_check
="$gcc_cv_objdump -T"
31943 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31946 $as_echo_n "checking for exported symbols... " >&6; }
31947 if test "x$export_sym_check" != x
; then
31948 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31949 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31950 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31951 : # No need to use a flag
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31953 $as_echo "yes" >&6; }
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31956 $as_echo "yes" >&6; }
31957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31958 $as_echo_n "checking for -rdynamic... " >&6; }
31959 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31960 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31961 plugin_rdynamic
=yes
31962 pluginlibs
="-rdynamic"
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31968 $as_echo "$plugin_rdynamic" >&6; }
31971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31972 $as_echo "unable to check" >&6; }
31977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31978 $as_echo_n "checking for library containing dlopen... " >&6; }
31979 if ${ac_cv_search_dlopen+:} false
; then :
31980 $as_echo_n "(cached) " >&6
31982 ac_func_search_save_LIBS
=$LIBS
31983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31984 /* end confdefs.h. */
31986 /* Override any GCC internal prototype to avoid an error.
31987 Use char because int might match the return type of a GCC
31988 builtin and then its argument prototype would still apply. */
32001 for ac_lib
in '' dl
; do
32002 if test -z "$ac_lib"; then
32003 ac_res
="none required"
32006 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
32008 if ac_fn_cxx_try_link
"$LINENO"; then :
32009 ac_cv_search_dlopen
=$ac_res
32011 rm -f core conftest.err conftest.
$ac_objext \
32013 if ${ac_cv_search_dlopen+:} false
; then :
32017 if ${ac_cv_search_dlopen+:} false
; then :
32020 ac_cv_search_dlopen
=no
32022 rm conftest.
$ac_ext
32023 LIBS
=$ac_func_search_save_LIBS
32025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32026 $as_echo "$ac_cv_search_dlopen" >&6; }
32027 ac_res
=$ac_cv_search_dlopen
32028 if test "$ac_res" != no
; then :
32029 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
32033 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
32034 pluginlibs
="$pluginlibs -ldl"
32038 # Check that we can build shared objects with -fPIC -shared
32039 saved_LDFLAGS
="$LDFLAGS"
32040 saved_CFLAGS
="$CFLAGS"
32043 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32044 CFLAGS
="$CFLAGS -fPIC"
32045 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
32048 CFLAGS
="$CFLAGS -fPIC"
32049 LDFLAGS
="$LDFLAGS -fPIC -shared"
32052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32053 $as_echo_n "checking for -fPIC -shared... " >&6; }
32054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32055 /* end confdefs.h. */
32065 if ac_fn_cxx_try_link
"$LINENO"; then :
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32067 $as_echo "yes" >&6; }; have_pic_shared
=yes
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32070 $as_echo "no" >&6; }; have_pic_shared
=no
32072 rm -f core conftest.err conftest.
$ac_objext \
32073 conftest
$ac_exeext conftest.
$ac_ext
32074 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32078 LDFLAGS
="$saved_LDFLAGS"
32079 CFLAGS
="$saved_CFLAGS"
32081 # If plugin support had been requested but not available, fail.
32082 if test x
"$enable_plugin" = x
"no" ; then
32083 if test x
"$default_plugin" != x
"yes"; then
32085 Building GCC with plugin support requires a host that supports
32086 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32093 if test x
"$enable_plugin" = x
"yes"; then
32095 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32100 # Enable --enable-host-shared
32101 # Check whether --enable-host-shared was given.
32102 if test "${enable_host_shared+set}" = set; then :
32103 enableval
=$enable_host_shared; PICFLAG
=-fPIC
32112 # Check whether --enable-libquadmath-support was given.
32113 if test "${enable_libquadmath_support+set}" = set; then :
32114 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32116 ENABLE_LIBQUADMATH_SUPPORT
=yes
32119 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32121 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32126 # Specify what hash style to use by default.
32128 # Check whether --with-linker-hash-style was given.
32129 if test "${with_linker_hash_style+set}" = set; then :
32130 withval
=$with_linker_hash_style; case x
"$withval" in
32132 LINKER_HASH_STYLE
=sysv
32135 LINKER_HASH_STYLE
=gnu
32138 LINKER_HASH_STYLE
=both
32141 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32145 LINKER_HASH_STYLE
=''
32148 if test x
"${LINKER_HASH_STYLE}" != x
; then
32150 cat >>confdefs.h
<<_ACEOF
32151 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32156 # Specify what should be the default of -fdiagnostics-color option.
32158 # Check whether --with-diagnostics-color was given.
32159 if test "${with_diagnostics_color+set}" = set; then :
32160 withval
=$with_diagnostics_color; case x
"$withval" in
32162 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32165 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32168 DIAGNOSTICS_COLOR_DEFAULT
=-1
32171 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32174 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32178 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32182 cat >>confdefs.h
<<_ACEOF
32183 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32187 # Specify what should be the default of -fdiagnostics-urls option.
32189 # Check whether --with-diagnostics-urls was given.
32190 if test "${with_diagnostics_urls+set}" = set; then :
32191 withval
=$with_diagnostics_urls; case x
"$withval" in
32193 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32196 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32199 DIAGNOSTICS_URLS_DEFAULT
=-1
32202 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32205 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32209 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32213 cat >>confdefs.h
<<_ACEOF
32214 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32218 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32219 # of jit/jit-playback.c.
32220 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32221 echo "gcc_driver_version: ${gcc_driver_version}"
32222 cat > gcc-driver-name.h
<<EOF
32223 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32226 # Check whether --enable-default-pie was given.
32227 # Check whether --enable-default-pie was given.
32228 if test "${enable_default_pie+set}" = set; then :
32229 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32231 enable_default_pie
=no
32234 if test x
$enable_default_pie = xyes
; then
32236 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32241 # Check if -fno-PIE works.
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32243 $as_echo_n "checking for -fno-PIE option... " >&6; }
32244 if ${gcc_cv_c_no_fpie+:} false
; then :
32245 $as_echo_n "(cached) " >&6
32247 saved_CXXFLAGS
="$CXXFLAGS"
32248 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32250 /* end confdefs.h. */
32251 int main(void) {return 0;}
32253 if ac_fn_cxx_try_compile
"$LINENO"; then :
32254 gcc_cv_c_no_fpie
=yes
32256 gcc_cv_c_no_fpie
=no
32258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32259 CXXFLAGS
="$saved_CXXFLAGS"
32261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32262 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32263 if test "$gcc_cv_c_no_fpie" = "yes"; then
32264 NO_PIE_CFLAGS
="-fno-PIE"
32268 # Check if -no-pie works.
32269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32270 $as_echo_n "checking for -no-pie option... " >&6; }
32271 if ${gcc_cv_no_pie+:} false
; then :
32272 $as_echo_n "(cached) " >&6
32274 saved_LDFLAGS
="$LDFLAGS"
32275 LDFLAGS
="$LDFLAGS -no-pie"
32276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32277 /* end confdefs.h. */
32278 int main(void) {return 0;}
32280 if ac_fn_cxx_try_link
"$LINENO"; then :
32285 rm -f core conftest.err conftest.
$ac_objext \
32286 conftest
$ac_exeext conftest.
$ac_ext
32287 LDFLAGS
="$saved_LDFLAGS"
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32290 $as_echo "$gcc_cv_no_pie" >&6; }
32291 if test "$gcc_cv_no_pie" = "yes"; then
32292 NO_PIE_FLAG
="-no-pie"
32296 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32297 # Check whether --enable-cet was given.
32298 if test "${enable_cet+set}" = set; then :
32299 enableval
=$enable_cet;
32300 case "$enableval" in
32302 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32311 $as_echo_n "checking for CET support... " >&6; }
32314 i
[34567]86-*-linux* | x86_64-
*-linux*)
32316 cet_save_CFLAGS
="$CFLAGS"
32317 CFLAGS
="$CFLAGS -fcf-protection"
32318 case "$enable_cet" in
32320 # Check if target supports multi-byte NOPs
32321 # and if compiler and assembler support CET.
32322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32323 /* end confdefs.h. */
32329 #if !defined(__SSE2__)
32330 #error target does not support multi-byte NOPs
32339 if ac_fn_cxx_try_compile
"$LINENO"; then :
32344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32347 # Check if compiler and assembler support CET.
32348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32349 /* end confdefs.h. */
32359 if ac_fn_cxx_try_compile
"$LINENO"; then :
32364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32365 if test $support_cet = "no"; then
32366 if test x
$enable_bootstrap != xno \
32367 && test -z "${with_build_subdir}" \
32368 && (test ! -f ..
/stage_current \
32369 ||
test `cat ../stage_current` != "stage1"); then
32370 # Require CET support only for the final GCC build.
32371 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32373 # Don't enable CET without CET support for non-bootstrap
32374 # build, in stage1 nor for build support.
32380 CFLAGS
="$cet_save_CFLAGS"
32388 cet_save_CFLAGS
="$CFLAGS"
32389 CFLAGS
="$CFLAGS -fcf-protection=none"
32390 cet_save_LDFLAGS
="$LDFLAGS"
32391 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32392 if test x
$may_have_cet = xyes
; then
32393 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32395 /* end confdefs.h. */
32405 if ac_fn_cxx_try_link
"$LINENO"; then :
32410 rm -f core conftest.err conftest.
$ac_objext \
32411 conftest
$ac_exeext conftest.
$ac_ext
32414 if test x
$may_have_cet = xyes
; then
32415 if test x
$cross_compiling = xno
; then
32416 if test "$cross_compiling" = yes; then :
32417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32419 as_fn_error $?
"cannot run test program while cross compiling
32420 See \`config.log' for more details" "$LINENO" 5; }
32422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32423 /* end confdefs.h. */
32433 if ac_fn_cxx_try_run
"$LINENO"; then :
32434 have_multi_byte_nop
=yes
32436 have_multi_byte_nop
=no
32438 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32439 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32443 if test x
$have_multi_byte_nop = xyes
; then
32444 if test "$cross_compiling" = yes; then :
32445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32447 as_fn_error $?
"cannot run test program while cross compiling
32448 See \`config.log' for more details" "$LINENO" 5; }
32450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32451 /* end confdefs.h. */
32459 __attribute__ ((noinline, noclone))
32460 xxx (void (*f) (void))
32466 __attribute__ ((noinline, noclone))
32480 if ac_fn_cxx_try_run
"$LINENO"; then :
32485 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32486 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32490 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32491 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32495 # Enable CET in cross compiler if possible so that it will run on both
32496 # CET and non-CET hosts.
32499 if test x
$enable_cet = xyes
; then
32500 CET_HOST_FLAGS
="-fcf-protection"
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32502 $as_echo "yes" >&6; }
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32505 $as_echo "no" >&6; }
32507 CFLAGS
="$cet_save_CFLAGS"
32508 LDFLAGS
="$cet_save_LDFLAGS"
32510 case x
$enable_languages in
32519 # Check linker supports '-z bndplt'
32520 ld_bndplt_support
=no
32521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32522 $as_echo_n "checking linker -z bndplt option... " >&6; }
32523 if test x
"$ld_is_gold" = xno
; then
32524 if test $in_tree_ld = yes ; then
32525 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
32526 ld_bndplt_support
=yes
32528 elif test x
$gcc_cv_ld != x
; then
32529 # Check if linker supports -a bndplt option
32530 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32531 ld_bndplt_support
=yes
32535 if test x
"$ld_bndplt_support" = xyes
; then
32537 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32541 $as_echo "$ld_bndplt_support" >&6; }
32543 # Check linker supports '--push-state'/'--pop-state'
32544 ld_pushpopstate_support
=no
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32546 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32547 if test x
"$ld_is_gold" = xno
; then
32548 if test $in_tree_ld = yes ; then
32549 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
32550 ld_pushpopstate_support
=yes
32552 elif test x
$gcc_cv_ld != x
; then
32553 # Check if linker supports --push-state/--pop-state options
32554 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32555 ld_pushpopstate_support
=yes
32559 if test x
"$ld_pushpopstate_support" = xyes
; then
32561 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32565 $as_echo "$ld_pushpopstate_support" >&6; }
32567 # On s390, float_t has historically been statically defined as double for no
32568 # good reason. To comply with the C standard in the light of this definition,
32569 # gcc has evaluated float expressions in double precision when in
32570 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32571 # a smooth transition towards the new model used by most architectures, where
32572 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32573 # float_t from that, this behavior can be configured with
32574 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32575 # the old model. When omitted, native builds and cross compiles that have target
32576 # libc headers will detect whether libc clamps float_t to double and in that
32577 # case maintain the old model. Otherwise, they will default to the new model.
32578 # Check whether --enable-s390-excess-float-precision was given.
32579 if test "${enable_s390_excess_float_precision+set}" = set; then :
32580 enableval
=$enable_s390_excess_float_precision;
32582 enable_s390_excess_float_precision
=auto
32588 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32589 # Can we autodetect the behavior of the target libc?
32590 if test "$target" = "$host" -a "$host" = "$build"; then
32591 enable_s390_excess_float_precision
=autodetect
32592 elif test "x$with_headers" != xno
; then
32593 # cross build. are target headers available?
32594 # carefully coerce the build-system compiler to use target headers
32595 saved_CXXFLAGS
="$CXXFLAGS"
32596 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32597 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32598 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32600 /* end confdefs.h. */
32605 if ac_fn_cxx_try_compile
"$LINENO"; then :
32606 enable_s390_excess_float_precision
=autodetect
32608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32609 CXXFLAGS
="$saved_CXXFLAGS"
32612 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32613 saved_CXXFLAGS
="$CXXFLAGS"
32614 if ! test "$target" = "$host" -a "$host" = "$build"; then
32615 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32616 unset CROSS_TEST_CXXFLAGS
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32619 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32620 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32621 $as_echo_n "(cached) " >&6
32624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32625 /* end confdefs.h. */
32627 #define __FLT_EVAL_METHOD__ 0
32629 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32632 if ac_fn_cxx_try_compile
"$LINENO"; then :
32633 gcc_cv_float_t_clamped_to_double
=yes
32635 gcc_cv_float_t_clamped_to_double
=no
32637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32640 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32641 CXXFLAGS
="$saved_CXXFLAGS"
32642 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32644 # no way to detect behavior of target libc, default to new model
32645 enable_s390_excess_float_precision
=no
32650 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32652 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32658 # Configure the subdirectories
32659 # AC_CONFIG_SUBDIRS($subdirs)
32661 # Create the Makefile
32662 # and configure language subdirectories
32663 ac_config_files
="$ac_config_files $all_outputs"
32666 ac_config_commands
="$ac_config_commands default"
32668 cat >confcache
<<\_ACEOF
32669 # This file is a shell script that caches the results of configure
32670 # tests run on this system so they can be shared between configure
32671 # scripts and configure runs, see configure's option --config-cache.
32672 # It is not useful on other systems. If it contains results you don't
32673 # want to keep, you may remove or edit it.
32675 # config.status only pays attention to the cache file if you give it
32676 # the --recheck option to rerun configure.
32678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32680 # following values.
32684 # The following way of writing the cache mishandles newlines in values,
32685 # but we know of no workaround that is simple, portable, and efficient.
32686 # So, we kill variables containing newlines.
32687 # Ultrix sh set writes to stderr and can't be redirected directly,
32688 # and sets the high bit in the cache file unless we assign to the vars.
32690 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32691 eval ac_val
=\$
$ac_var
32695 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32699 _ | IFS | as_nl
) ;; #(
32700 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32701 *) { eval $ac_var=; unset $ac_var;} ;;
32707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32708 *${as_nl}ac_space
=\
*)
32709 # `set' does not quote correctly, so add quotes: double-quote
32710 # substitution turns \\\\ into \\, and sed turns \\ into \.
32713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32716 # `set' quotes correctly as required by POSIX, so do not add quotes.
32717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32730 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32731 if test -w "$cache_file"; then
32732 if test "x$cache_file" != "x/dev/null"; then
32733 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32734 $as_echo "$as_me: updating cache $cache_file" >&6;}
32735 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32736 cat confcache
>"$cache_file"
32738 case $cache_file in #(
32740 mv -f confcache
"$cache_file"$$
&&
32741 mv -f "$cache_file"$$
"$cache_file" ;; #(
32743 mv -f confcache
"$cache_file" ;;
32748 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32749 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32754 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32755 # Let make expand exec_prefix.
32756 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32758 DEFS
=-DHAVE_CONFIG_H
32763 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32764 # 1. Remove the extension, and $U if already installed.
32765 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32766 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32768 # will be set to the directory where LIBOBJS objects are built.
32769 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32770 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32772 LIBOBJS
=$ac_libobjs
32774 LTLIBOBJS
=$ac_ltlibobjs
32779 : "${CONFIG_STATUS=./config.status}"
32781 ac_clean_files_save
=$ac_clean_files
32782 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32784 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32786 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32788 # Generated by $as_me.
32789 # Run this file to recreate the current configuration.
32790 # Compiler output produced by configure, useful for debugging
32791 # configure, is in config.log if it exists.
32794 ac_cs_recheck=false
32797 SHELL=\${CONFIG_SHELL-$SHELL}
32800 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32801 ## -------------------- ##
32802 ## M4sh Initialization. ##
32803 ## -------------------- ##
32805 # Be more Bourne compatible
32806 DUALCASE
=1; export DUALCASE
# for MKS sh
32807 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32810 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32811 # is contrary to our usage. Disable this feature.
32812 alias -g '${1+"$@"}'='"$@"'
32813 setopt NO_GLOB_SUBST
32815 case `(set -o) 2>/dev/null` in #(
32827 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32828 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32829 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32830 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32831 # Prefer a ksh shell builtin over an external printf program on Solaris,
32832 # but without wasting forks for bash or zsh.
32833 if test -z "$BASH_VERSION$ZSH_VERSION" \
32834 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32835 as_echo='print
-r --'
32836 as_echo_n='print
-rn --'
32837 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32838 as_echo='printf %s
\n'
32839 as_echo_n='printf %s
'
32841 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32842 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32843 as_echo_n='/usr
/ucb
/echo -n'
32845 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32846 as_echo_n_body='eval
32850 expr "X$arg" : "X\\(.*\\)$as_nl";
32851 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32853 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32855 export as_echo_n_body
32856 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32858 export as_echo_body
32859 as_echo='sh
-c $as_echo_body as_echo
'
32862 # The user is always right.
32863 if test "${PATH_SEPARATOR+set}" != set; then
32865 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32866 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32873 # We need space, tab and new line, in precisely that order. Quoting is
32874 # there to prevent editors from complaining about space-tab.
32875 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32876 # splitting by setting IFS to empty value.)
32879 # Find who we are. Look in the path if we contain no directory separator.
32882 *[\\/]* ) as_myself=$0 ;;
32883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32884 for as_dir in $PATH
32887 test -z "$as_dir" && as_dir=.
32888 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32894 # We did not find ourselves, most probably we were run as `sh COMMAND'
32895 # in which case we are not to be found in the path.
32896 if test "x$as_myself" = x
; then
32899 if test ! -f "$as_myself"; then
32900 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32904 # Unset variables that we do not need and which cause bugs (e.g. in
32905 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32906 # suppresses any "Segmentation fault" message there. '((' could
32907 # trigger a bug in pdksh 5.2.14.
32908 for as_var
in BASH_ENV ENV MAIL MAILPATH
32909 do eval test x\
${$as_var+set} = xset \
32910 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32923 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32926 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32927 # ----------------------------------------
32928 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32929 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32930 # script with STATUS, using 1 if that was 0.
32933 as_status
=$1; test $as_status -eq 0 && as_status
=1
32935 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32936 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32938 $as_echo "$as_me: error: $2" >&2
32939 as_fn_exit
$as_status
32943 # as_fn_set_status STATUS
32944 # -----------------------
32945 # Set $? to STATUS, without forking.
32946 as_fn_set_status
()
32949 } # as_fn_set_status
32951 # as_fn_exit STATUS
32952 # -----------------
32953 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32957 as_fn_set_status
$1
32963 # Portably unset VAR.
32966 { eval $1=; unset $1;}
32968 as_unset
=as_fn_unset
32969 # as_fn_append VAR VALUE
32970 # ----------------------
32971 # Append the text in VALUE to the end of the definition contained in VAR. Take
32972 # advantage of any shell optimizations that allow amortized linear growth over
32973 # repeated appends, instead of the typical quadratic growth present in naive
32975 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32976 eval 'as_fn_append ()
32987 # as_fn_arith ARG...
32988 # ------------------
32989 # Perform arithmetic evaluation on the ARGs, and store the result in the
32990 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32991 # must be portable across $(()) and expr.
32992 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32993 eval 'as_fn_arith ()
33000 as_val
=`expr "$@" || test $? -eq 1`
33005 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33006 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33012 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33013 as_basename
=basename
33018 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33024 as_me
=`$as_basename -- "$0" ||
33025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33026 X"$0" : 'X\(//\)$' \| \
33027 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33029 sed '/^.*\/\([^/][^/]*\)\/*$/{
33043 # Avoid depending upon Character Ranges.
33044 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33045 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33046 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33047 as_cr_digits
='0123456789'
33048 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33050 ECHO_C
= ECHO_N
= ECHO_T
=
33051 case `echo -n x` in #(((((
33053 case `echo 'xy\c'` in
33054 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33056 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33063 rm -f conf$$ conf$$.exe conf$$.
file
33064 if test -d conf$$.dir
; then
33065 rm -f conf$$.dir
/conf$$.
file
33068 mkdir conf$$.dir
2>/dev
/null
33070 if (echo >conf$$.
file) 2>/dev
/null
; then
33071 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33073 # ... but there are two gotchas:
33074 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33075 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33076 # In both cases, we have to default to `cp -pR'.
33077 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33079 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33087 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33088 rmdir conf$$.dir
2>/dev
/null
33093 # Create "$as_dir" as a directory, including parents if necessary.
33098 -*) as_dir
=.
/$as_dir;;
33100 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33104 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33105 *) as_qdir
=$as_dir;;
33107 as_dirs
="'$as_qdir' $as_dirs"
33108 as_dir
=`$as_dirname -- "$as_dir" ||
33109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33110 X"$as_dir" : 'X\(//\)[^/]' \| \
33111 X"$as_dir" : 'X\(//\)$' \| \
33112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33113 $as_echo X"$as_dir" |
33114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33118 /^X\(\/\/\)[^/].*/{
33131 test -d "$as_dir" && break
33133 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33134 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33138 if mkdir
-p .
2>/dev
/null
; then
33139 as_mkdir_p
='mkdir -p "$as_dir"'
33141 test -d .
/-p && rmdir .
/-p
33146 # as_fn_executable_p FILE
33147 # -----------------------
33148 # Test if FILE is an executable regular file.
33149 as_fn_executable_p
()
33151 test -f "$1" && test -x "$1"
33152 } # as_fn_executable_p
33153 as_test_x
='test -x'
33154 as_executable_p
=as_fn_executable_p
33156 # Sed expression to map a string onto a valid CPP name.
33157 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33159 # Sed expression to map a string onto a valid variable name.
33160 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33164 ## ----------------------------------- ##
33165 ## Main body of $CONFIG_STATUS script. ##
33166 ## ----------------------------------- ##
33168 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33171 # Save the log message, to keep $0 and so on meaningful, and to
33172 # report actual input values of CONFIG_FILES etc. instead of their
33173 # values after options handling.
33175 This file was extended by $as_me, which was
33176 generated by GNU Autoconf 2.69. Invocation command line was
33178 CONFIG_FILES = $CONFIG_FILES
33179 CONFIG_HEADERS = $CONFIG_HEADERS
33180 CONFIG_LINKS = $CONFIG_LINKS
33181 CONFIG_COMMANDS = $CONFIG_COMMANDS
33184 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33189 case $ac_config_files in *"
33190 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33193 case $ac_config_headers in *"
33194 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33199 # Files that config.status was made for.
33200 config_files="$ac_config_files"
33201 config_headers="$ac_config_headers"
33202 config_links="$ac_config_links"
33203 config_commands="$ac_config_commands"
33207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33209 \`$as_me' instantiates files and other configuration actions
33210 from templates according to the current configuration. Unless the files
33211 and actions are specified as TAGs, all are instantiated by default.
33213 Usage: $0 [OPTION]... [TAG]...
33215 -h, --help print this help, then exit
33216 -V, --version print version number and configuration settings, then exit
33217 --config print configuration, then exit
33218 -q, --quiet, --silent
33219 do not print progress messages
33220 -d, --debug don't remove temporary files
33221 --recheck update $as_me by reconfiguring in the same conditions
33222 --file=FILE[:TEMPLATE]
33223 instantiate the configuration file FILE
33224 --header=FILE[:TEMPLATE]
33225 instantiate the configuration header FILE
33227 Configuration files:
33230 Configuration headers:
33233 Configuration links:
33236 Configuration commands:
33239 Report bugs to the package provider."
33242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33243 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33246 configured by $0, generated by GNU Autoconf 2.69,
33247 with options \\"\$ac_cs_config\\"
33249 Copyright (C) 2012 Free Software Foundation, Inc.
33250 This config.status script is free software; the Free Software Foundation
33251 gives unlimited permission to copy, distribute and modify it."
33256 test -n "\$AWK" || AWK=awk
33259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33260 # The default lists apply if the user does not specify any file.
33266 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33267 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33271 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33283 # Handling of the options.
33284 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33286 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33287 $as_echo "$ac_cs_version"; exit ;;
33288 --config |
--confi |
--conf |
--con |
--co |
--c )
33289 $as_echo "$ac_cs_config"; exit ;;
33290 --debug |
--debu |
--deb |
--de |
--d |
-d )
33292 --file |
--fil |
--fi |
--f )
33295 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33296 '') as_fn_error $?
"missing file argument" ;;
33298 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33299 ac_need_defaults
=false
;;
33300 --header |
--heade |
--head |
--hea )
33303 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33305 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33306 ac_need_defaults
=false
;;
33308 # Conflict between --help and --header
33309 as_fn_error $?
"ambiguous option: \`$1'
33310 Try \`$0 --help' for more information.";;
33311 --help |
--hel |
-h )
33312 $as_echo "$ac_cs_usage"; exit ;;
33313 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33314 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33317 # This is an error.
33318 -*) as_fn_error $?
"unrecognized option: \`$1'
33319 Try \`$0 --help' for more information." ;;
33321 *) as_fn_append ac_config_targets
" $1"
33322 ac_need_defaults
=false
;;
33328 ac_configure_extra_args
=
33330 if $ac_cs_silent; then
33332 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33337 if \$ac_cs_recheck; then
33338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33341 CONFIG_SHELL='$SHELL'
33342 export CONFIG_SHELL
33347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33352 ## Running $as_me. ##
33358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33362 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33363 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33370 # Handling of arguments.
33371 for ac_config_target
in $ac_config_targets
33373 case $ac_config_target in
33374 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33375 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33376 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33377 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33378 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33379 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33380 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33381 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33382 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33383 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33385 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33390 # If the user did not use the arguments to specify the items to instantiate,
33391 # then the envvar interface is used. Set only those that are not.
33392 # We use the long form for the default assignment because of an extremely
33393 # bizarre bug on SunOS 4.1.3.
33394 if $ac_need_defaults; then
33395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33397 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33401 # Have a temporary directory for convenience. Make it in the build tree
33402 # simply because there is no reason against having it here, and in addition,
33403 # creating and moving files from /tmp can sometimes cause problems.
33404 # Hook for its removal unless debugging.
33405 # Note that there is a small window in which the directory will not be cleaned:
33406 # after its creation but before its name has been assigned to `$tmp'.
33410 trap 'exit_status=$?
33411 : "${ac_tmp:=$tmp}"
33412 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33414 trap 'as_fn_exit 1' 1 2 13 15
33416 # Create a (secure) tmp directory for tmp files.
33419 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33423 tmp
=.
/conf$$
-$RANDOM
33424 (umask 077 && mkdir
"$tmp")
33425 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33428 # Set up the scripts for CONFIG_FILES section.
33429 # No need to generate them if there are no CONFIG_FILES.
33430 # This happens for instance with `./config.status config.h'.
33431 if test -n "$CONFIG_FILES"; then
33433 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33434 ac_cs_awk_getline
=:
33435 ac_cs_awk_pipe_init
=
33436 ac_cs_awk_read_file
='
33437 while ((getline aline < (F[key])) > 0)
33440 ac_cs_awk_pipe_fini
=
33442 ac_cs_awk_getline
=false
33443 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33444 ac_cs_awk_read_file
='
33446 print "cat " F[key] " &&"
33447 '$ac_cs_awk_pipe_init
33448 # The final `:' finishes the AND list.
33449 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33451 ac_cr
=`echo X | tr X '\015'`
33452 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33453 # But we know of no other shell where ac_cr would be empty at this
33454 # point, so we can use a bashism as a fallback.
33455 if test "x$ac_cr" = x
; then
33456 eval ac_cr
=\$
\'\\r
\'
33458 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33459 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33462 ac_cs_awk_cr
=$ac_cr
33465 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33468 # Create commands to substitute file output variables.
33470 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33471 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33472 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33475 } >conf$
$files.sh
&&
33476 . .
/conf$
$files.sh ||
33477 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33478 rm -f conf$
$files.sh
33481 echo "cat >conf$$subs.awk <<_ACEOF" &&
33482 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33484 } >conf$$subs.sh ||
33485 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33486 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33488 for ac_last_try in false false false false false :; do
33489 . ./conf$$subs.sh ||
33490 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33492 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33493 if test $ac_delim_n = $ac_delim_num; then
33495 elif $ac_last_try; then
33496 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33498 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33501 rm -f conf$$subs.sh
33503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33504 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33508 s/^/S["/; s
/!.
*/"]=/
33518 s/\(.\{148\}\)..*/\1/
33520 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33525 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33532 s/\(.\{148\}\)..*/\1/
33534 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33538 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33543 ' <conf$$subs.awk | sed '
33548 ' >>$CONFIG_STATUS || ac_write_fail=1
33549 rm -f conf$$subs.awk
33550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33552 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33553 for (key in S) S_is_set[key] = 1
33555 \$ac_cs_awk_pipe_init
33559 nfields = split(line, field, "@
")
33561 len = length(field[1])
33562 for (i = 2; i < nfields; i++) {
33564 keylen = length(key)
33565 if (S_is_set[key]) {
33567 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33568 len += length(value) + length(field[++i])
33573 if (nfields == 3 && !substed) {
33575 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33576 \$ac_cs_awk_read_file
33582 \$ac_cs_awk_pipe_fini
33585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33586 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33587 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33590 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33591 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33594 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33595 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33596 # trailing colons and then remove the whole line if VPATH becomes empty
33597 # (actually we leave an empty line to preserve line numbers).
33598 if test "x
$srcdir" = x.; then
33599 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33618 fi # test -n "$CONFIG_FILES"
33620 # Set up the scripts for CONFIG_HEADERS section.
33621 # No need to generate them if there are no CONFIG_HEADERS.
33622 # This happens for instance with `./config.status Makefile'.
33623 if test -n "$CONFIG_HEADERS"; then
33624 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33628 # Transform confdefs.h into an awk script `defines.awk', embedded as
33629 # here-document in config.status, that substitutes the proper values into
33630 # config.h.in to produce config.h.
33632 # Create a delimiter string that does not exist in confdefs.h, to ease
33633 # handling of long lines.
33635 for ac_last_try in false false :; do
33636 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33637 if test -z "$ac_tt"; then
33639 elif $ac_last_try; then
33640 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33642 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33646 # For the awk script, D is an array of macro values keyed by name,
33647 # likewise P contains macro parameters if any. Preserve backslash
33648 # newline sequences.
33650 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33652 s/.\{148\}/&'"$ac_delim"'/g
33655 s/^[ ]*#[ ]*define[ ][ ]*/ /
33662 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33664 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33668 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33669 D["\
1"]=" \
3\\\\\\n
"\\/p
33671 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33676 s/.\{148\}/&'"$ac_delim"'/g
33681 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33684 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33686 ' <confdefs.h | sed '
33687 s/'"$ac_delim"'/"\\\
33688 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33691 for (key in D) D_is_set[key] = 1
33694 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33696 split(line, arg, " ")
33697 if (arg[1] == "#") {
33701 defundef
= substr
(arg
[1], 2)
33704 split(mac1
, mac2
, "(") #)
33706 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33707 if (D_is_set
[macro
]) {
33708 # Preserve the white space surrounding the "#".
33709 print prefix
"define", macro P
[macro
] D
[macro
]
33712 # Replace #undef with comments. This is necessary, for example,
33713 # in the case of _POSIX_SOURCE, which is predefined and required
33714 # on some systems where configure will not decide to define it.
33715 if (defundef
== "undef") {
33716 print
"/*", prefix defundef
, macro
, "*/"
33724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33725 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33726 fi # test -n "$CONFIG_HEADERS"
33729 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33734 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33736 case $ac_mode$ac_tag in
33738 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33739 :[FH
]-) ac_tag
=-:-;;
33740 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33757 -) ac_f
="$ac_tmp/stdin";;
33758 *) # Look for the file first in the build tree, then in the source tree
33759 # (if the path is not absolute). The absolute path cannot be DOS-style,
33760 # because $ac_f cannot contain `:'.
33764 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33766 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33768 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33769 as_fn_append ac_file_inputs
" '$ac_f'"
33772 # Let's still pretend it is `configure' which instantiates (i.e., don't
33773 # use $as_me), people would be surprised to read:
33774 # /* config.h. Generated by config.status. */
33775 configure_input
='Generated from '`
33776 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33778 if test x
"$ac_file" != x-
; then
33779 configure_input
="$ac_file. $configure_input"
33780 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33781 $as_echo "$as_me: creating $ac_file" >&6;}
33783 # Neutralize special characters interpreted by sed in replacement strings.
33784 case $configure_input in #(
33785 *\
&* |
*\|
* |
*\\* )
33786 ac_sed_conf_input
=`$as_echo "$configure_input" |
33787 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33788 *) ac_sed_conf_input
=$configure_input;;
33792 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33793 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33798 ac_dir
=`$as_dirname -- "$ac_file" ||
33799 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33800 X"$ac_file" : 'X\(//\)[^/]' \| \
33801 X"$ac_file" : 'X\(//\)$' \| \
33802 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33803 $as_echo X"$ac_file" |
33804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33808 /^X\(\/\/\)[^/].*/{
33821 as_dir
="$ac_dir"; as_fn_mkdir_p
33825 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33827 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33828 # A ".." for each directory in $ac_dir_suffix.
33829 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33830 case $ac_top_builddir_sub in
33831 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33832 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33835 ac_abs_top_builddir
=$ac_pwd
33836 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33837 # for backward compatibility:
33838 ac_top_builddir
=$ac_top_build_prefix
33841 .
) # We are building in place.
33843 ac_top_srcdir
=$ac_top_builddir_sub
33844 ac_abs_top_srcdir
=$ac_pwd ;;
33845 [\\/]* | ?
:[\\/]* ) # Absolute name.
33846 ac_srcdir
=$srcdir$ac_dir_suffix;
33847 ac_top_srcdir
=$srcdir
33848 ac_abs_top_srcdir
=$srcdir ;;
33849 *) # Relative name.
33850 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33851 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33852 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33854 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33866 # If the template does not know about datarootdir, expand it.
33867 # FIXME: This hack should be removed a few years after 2.60.
33868 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33880 *datarootdir
*) ac_datarootdir_seen
=yes;;
33881 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33886 ac_datarootdir_hack='
33887 s&@datadir@&$datadir&g
33888 s&@docdir@&$docdir&g
33889 s&@infodir@&$infodir&g
33890 s&@localedir@&$localedir&g
33891 s&@mandir@&$mandir&g
33892 s&\\\${datarootdir}&$datarootdir&g' ;;
33896 # Neutralize VPATH when `$srcdir' = `.'.
33897 # Shell code in configure.ac might set extrasub.
33898 # FIXME: do we really want to maintain this feature?
33899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33900 ac_sed_extra="$ac_vpsub
33903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33905 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33906 s|@configure_input@|
$ac_sed_conf_input|
;t t
33907 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33908 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33909 s
&@srcdir@
&$ac_srcdir&;t t
33910 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33911 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33912 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33913 s
&@builddir@
&$ac_builddir&;t t
33914 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33915 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33916 $ac_datarootdir_hack
33918 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33919 if $ac_cs_awk_getline; then
33920 $AWK -f "$ac_tmp/subs.
awk"
33922 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33924 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33926 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33927 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33929 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33931 which seems to be undefined. Please make sure it is defined" >&5
33932 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33933 which seems to be undefined. Please make sure it is defined" >&2;}
33935 rm -f "$ac_tmp/stdin"
33937 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33938 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33946 if test x"$ac_file" != x-; then
33948 $as_echo "/* $configure_input */" \
33949 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33950 } >"$ac_tmp/config.h" \
33951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33952 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33953 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33954 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33957 mv "$ac_tmp/config.h" "$ac_file" \
33958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33961 $as_echo "/* $configure_input */" \
33962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33963 || as_fn_error $? "could not create -" "$LINENO" 5
33971 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33974 # Prefer the file from the source tree if names are identical.
33975 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33976 ac_source=$srcdir/$ac_source
33979 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33980 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33982 if test ! -r "$ac_source"; then
33983 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33987 # Try a relative symlink, then a hard link, then a copy.
33989 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33990 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33992 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33993 ln "$ac_source" "$ac_file" 2>/dev/null ||
33994 cp -p "$ac_source" "$ac_file" ||
33995 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33998 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33999 $as_echo "$as_me: executing $ac_file commands" >&6;}
34004 case $ac_file$ac_mode in
34005 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34007 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34008 for lang in $subdirs c-family common analyzer rtl-ssa
34010 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34012 "as":F) chmod +x as ;;
34013 "collect-ld":F) chmod +x collect-ld ;;
34014 "nm":F) chmod +x nm ;;
34015 "dsymutil":F) chmod +x dsymutil ;;
34017 case ${CONFIG_HEADERS} in
34018 *auto-host.h:config.in*)
34021 # Make sure all the subdirs exist.
34022 for d in $subdirs doc build common c-family
34024 test -d $d || mkdir $d
34034 ac_clean_files=$ac_clean_files_save
34036 test $ac_write_fail = 0 ||
34037 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34040 # configure is writing to config.log, and then calls config.status.
34041 # config.status does its own redirection, appending to config.log.
34042 # Unfortunately, on DOS this fails, as config.log is still kept open
34043 # by configure, so config.status won't be able to
write to it
; its
34044 # output is simply discarded. So we exec the FD to /dev/null,
34045 # effectively closing config.log, so it can be properly (re)opened and
34046 # appended to by config.status. When coming back to configure, we
34047 # need to make the FD available again.
34048 if test "$no_create" != yes; then
34050 ac_config_status_args
=
34051 test "$silent" = yes &&
34052 ac_config_status_args
="$ac_config_status_args --quiet"
34054 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34056 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34057 # would make configure fail if this is the last instruction.
34058 $ac_cs_success || as_fn_exit
1
34060 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34062 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}