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_include_dir_add_sysroot
685 user_headers_inc_next_post
686 user_headers_inc_next_pre
688 TM_MULTILIB_EXCEPTIONS_CONFIG
698 build_xm_include_list
700 build_install_headers_dir
702 all_selected_languages
705 all_lang_configurefrags
721 ld_version_script_option
726 ORIGINAL_NM_FOR_TARGET
728 ORIGINAL_LD_GOLD_FOR_TARGET
729 ORIGINAL_LD_BFD_FOR_TARGET
730 ORIGINAL_LD_FOR_TARGET
731 ORIGINAL_PLUGIN_LD_FOR_TARGET
733 ORIGINAL_AS_FOR_TARGET
751 NO_PIE_FLAG_FOR_BUILD
752 NO_PIE_CFLAGS_FOR_BUILD
762 BUILD_SYSTEM_HEADER_DIR
782 NATIVE_SYSTEM_HEADER_DIR
817 omp_device_property_deps
818 omp_device_properties
820 real_target_noncanonical
821 enable_as_accelerator
837 valgrind_path_defines
868 CROSS_SYSTEM_HEADER_DIR
869 TARGET_SYSTEM_ROOT_DEFINE
871 SYSROOT_CFLAGS_FOR_TARGET
917 program_transform_name
928 ac_subst_files
='option_includes
931 enable_option_checking
934 with_native_system_header_dir
939 enable_generated_files_in_srcdir
946 enable_build_format_warnings
950 enable_gather_detailed_mem_stats
951 enable_valgrind_annotations
955 with_stack_clash_protection_guard_size
970 with_documentation_root_url
971 with_changes_root_url
980 enable_sjlj_exceptions
981 with_gcc_major_version_only
983 enable_mingw_wildcard
984 enable_large_address_aware
985 enable_leading_mingw64_underscores
988 enable_win32_registry
996 enable_gnu_indirect_function
997 enable_initfini_array
999 enable_newlib_nano_formatted_io
1000 enable_standard_branch_protection
1001 enable_fix_cortex_a53_835769
1002 enable_fix_cortex_a53_843419
1004 enable_gnu_unique_object
1005 enable_linker_build_id
1008 with_long_double_128
1009 with_long_double_format
1012 enable_maintainer_mode
1014 enable_version_specific_runtime_libs
1017 enable_libquadmath_support
1018 with_linker_hash_style
1019 with_diagnostics_color
1020 with_diagnostics_urls
1024 ac_precious_vars
='build_alias
1043 # Initialize some variables set by options.
1045 ac_init_version
=false
1046 ac_unrecognized_opts
=
1047 ac_unrecognized_sep
=
1048 # The variables have the same names as the options, with
1049 # dashes changed to underlines.
1050 cache_file
=/dev
/null
1057 program_transform_name
=s
,x
,x
,
1065 # Installation directory options.
1066 # These are left unexpanded so users can "make install exec_prefix=/foo"
1067 # and all the variables that are supposed to be based on exec_prefix
1068 # by default will actually change.
1069 # Use braces instead of parens because sh, perl, etc. also accept them.
1070 # (The list follows the same order as the GNU Coding Standards.)
1071 bindir
='${exec_prefix}/bin'
1072 sbindir
='${exec_prefix}/sbin'
1073 libexecdir
='${exec_prefix}/libexec'
1074 datarootdir
='${prefix}/share'
1075 datadir
='${datarootdir}'
1076 sysconfdir
='${prefix}/etc'
1077 sharedstatedir
='${prefix}/com'
1078 localstatedir
='${prefix}/var'
1079 includedir
='${prefix}/include'
1080 oldincludedir
='/usr/include'
1081 docdir
='${datarootdir}/doc/${PACKAGE}'
1082 infodir
='${datarootdir}/info'
1087 libdir
='${exec_prefix}/lib'
1088 localedir
='${datarootdir}/locale'
1089 mandir
='${datarootdir}/man'
1095 # If the previous option needs an argument, assign it.
1096 if test -n "$ac_prev"; then
1097 eval $ac_prev=\
$ac_option
1103 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1108 # Accept the important Cygnus configure options, so we can diagnose typos.
1110 case $ac_dashdash$ac_option in
1114 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1116 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1117 bindir
=$ac_optarg ;;
1119 -build |
--build |
--buil |
--bui |
--bu)
1120 ac_prev
=build_alias
;;
1121 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1122 build_alias
=$ac_optarg ;;
1124 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1125 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1126 ac_prev
=cache_file
;;
1127 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1128 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1129 cache_file
=$ac_optarg ;;
1131 --config-cache |
-C)
1132 cache_file
=config.cache
;;
1134 -datadir |
--datadir |
--datadi |
--datad)
1136 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1137 datadir
=$ac_optarg ;;
1139 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1140 |
--dataroo |
--dataro |
--datar)
1141 ac_prev
=datarootdir
;;
1142 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1143 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1144 datarootdir
=$ac_optarg ;;
1146 -disable-* |
--disable-*)
1147 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1150 as_fn_error $?
"invalid feature name: $ac_useropt"
1151 ac_useropt_orig
=$ac_useropt
1152 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "enable_
$ac_useropt"
1157 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1158 ac_unrecognized_sep
=', ';;
1160 eval enable_
$ac_useropt=no
;;
1162 -docdir |
--docdir |
--docdi |
--doc |
--do)
1164 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1165 docdir
=$ac_optarg ;;
1167 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1169 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1170 dvidir
=$ac_optarg ;;
1172 -enable-* |
--enable-*)
1173 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1176 as_fn_error $?
"invalid feature name: $ac_useropt"
1177 ac_useropt_orig
=$ac_useropt
1178 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "enable_
$ac_useropt"
1183 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1184 ac_unrecognized_sep
=', ';;
1186 eval enable_
$ac_useropt=\
$ac_optarg ;;
1188 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1189 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1190 |
--exec |
--exe |
--ex)
1191 ac_prev
=exec_prefix
;;
1192 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1193 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1194 |
--exec=* |
--exe=* |
--ex=*)
1195 exec_prefix
=$ac_optarg ;;
1197 -gas |
--gas |
--ga |
--g)
1198 # Obsolete; use --with-gas.
1201 -help |
--help |
--hel |
--he |
-h)
1202 ac_init_help
=long
;;
1203 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1204 ac_init_help
=recursive
;;
1205 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1206 ac_init_help
=short
;;
1208 -host |
--host |
--hos |
--ho)
1209 ac_prev
=host_alias
;;
1210 -host=* |
--host=* |
--hos=* |
--ho=*)
1211 host_alias
=$ac_optarg ;;
1213 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1215 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1217 htmldir
=$ac_optarg ;;
1219 -includedir |
--includedir |
--includedi |
--included |
--include \
1220 |
--includ |
--inclu |
--incl |
--inc)
1221 ac_prev
=includedir
;;
1222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1224 includedir
=$ac_optarg ;;
1226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1229 infodir
=$ac_optarg ;;
1231 -libdir |
--libdir |
--libdi |
--libd)
1233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1234 libdir
=$ac_optarg ;;
1236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1237 |
--libexe |
--libex |
--libe)
1238 ac_prev
=libexecdir
;;
1239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1240 |
--libexe=* |
--libex=* |
--libe=*)
1241 libexecdir
=$ac_optarg ;;
1243 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1244 ac_prev
=localedir
;;
1245 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1246 localedir
=$ac_optarg ;;
1248 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1249 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1250 ac_prev
=localstatedir
;;
1251 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1252 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1253 localstatedir
=$ac_optarg ;;
1255 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1257 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1258 mandir
=$ac_optarg ;;
1260 -nfp |
--nfp |
--nf)
1261 # Obsolete; use --without-fp.
1264 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1265 |
--no-cr |
--no-c |
-n)
1268 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1269 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1272 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1273 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1274 |
--oldin |
--oldi |
--old |
--ol |
--o)
1275 ac_prev
=oldincludedir
;;
1276 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1277 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1278 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1279 oldincludedir
=$ac_optarg ;;
1281 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1283 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1284 prefix
=$ac_optarg ;;
1286 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1287 |
--program-pre |
--program-pr |
--program-p)
1288 ac_prev
=program_prefix
;;
1289 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1290 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1291 program_prefix
=$ac_optarg ;;
1293 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1294 |
--program-suf |
--program-su |
--program-s)
1295 ac_prev
=program_suffix
;;
1296 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1297 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1298 program_suffix
=$ac_optarg ;;
1300 -program-transform-name |
--program-transform-name \
1301 |
--program-transform-nam |
--program-transform-na \
1302 |
--program-transform-n |
--program-transform- \
1303 |
--program-transform |
--program-transfor \
1304 |
--program-transfo |
--program-transf \
1305 |
--program-trans |
--program-tran \
1306 |
--progr-tra |
--program-tr |
--program-t)
1307 ac_prev
=program_transform_name
;;
1308 -program-transform-name=* |
--program-transform-name=* \
1309 |
--program-transform-nam=* |
--program-transform-na=* \
1310 |
--program-transform-n=* |
--program-transform-=* \
1311 |
--program-transform=* |
--program-transfor=* \
1312 |
--program-transfo=* |
--program-transf=* \
1313 |
--program-trans=* |
--program-tran=* \
1314 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1315 program_transform_name
=$ac_optarg ;;
1317 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1319 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1320 pdfdir
=$ac_optarg ;;
1322 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1324 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1327 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1328 |
-silent |
--silent |
--silen |
--sile |
--sil)
1331 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1333 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1335 sbindir
=$ac_optarg ;;
1337 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1338 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1339 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1341 ac_prev
=sharedstatedir
;;
1342 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1343 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1344 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1346 sharedstatedir
=$ac_optarg ;;
1348 -site |
--site |
--sit)
1350 -site=* |
--site=* |
--sit=*)
1353 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1355 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1356 srcdir
=$ac_optarg ;;
1358 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1359 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1360 ac_prev
=sysconfdir
;;
1361 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1362 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1363 sysconfdir
=$ac_optarg ;;
1365 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1366 ac_prev
=target_alias
;;
1367 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1368 target_alias
=$ac_optarg ;;
1370 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1373 -version |
--version |
--versio |
--versi |
--vers |
-V)
1374 ac_init_version
=: ;;
1377 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1378 # Reject names that are not valid shell variable names.
1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1380 as_fn_error $?
"invalid package name: $ac_useropt"
1381 ac_useropt_orig
=$ac_useropt
1382 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1383 case $ac_user_opts in
1387 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1388 ac_unrecognized_sep
=', ';;
1390 eval with_
$ac_useropt=\
$ac_optarg ;;
1392 -without-* |
--without-*)
1393 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1396 as_fn_error $?
"invalid package name: $ac_useropt"
1397 ac_useropt_orig
=$ac_useropt
1398 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399 case $ac_user_opts in
1403 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1404 ac_unrecognized_sep
=', ';;
1406 eval with_
$ac_useropt=no
;;
1409 # Obsolete; use --with-x.
1412 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1413 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1414 ac_prev
=x_includes
;;
1415 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1416 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1417 x_includes
=$ac_optarg ;;
1419 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1420 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1421 ac_prev
=x_libraries
;;
1422 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1423 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1424 x_libraries
=$ac_optarg ;;
1426 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1427 Try \`$0 --help' for more information"
1431 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1432 # Reject names that are not valid shell variable names.
1433 case $ac_envvar in #(
1434 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1435 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1437 eval $ac_envvar=\
$ac_optarg
1438 export $ac_envvar ;;
1441 # FIXME: should be removed in autoconf 3.0.
1442 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1443 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1444 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1445 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1451 if test -n "$ac_prev"; then
1452 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1453 as_fn_error $?
"missing argument to $ac_option"
1456 if test -n "$ac_unrecognized_opts"; then
1457 case $enable_option_checking in
1459 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1460 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1464 # Check all directory arguments for consistency.
1465 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1466 datadir sysconfdir sharedstatedir localstatedir includedir \
1467 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1468 libdir localedir mandir
1470 eval ac_val
=\$
$ac_var
1471 # Remove trailing slashes.
1474 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1475 eval $ac_var=\
$ac_val;;
1477 # Be sure to have absolute directory names.
1479 [\\/$
]* | ?
:[\\/]* ) continue;;
1480 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1482 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1485 # There might be people who depend on the old broken behavior: `$host'
1486 # used to hold the argument of --host etc.
1487 # FIXME: To remove some day.
1490 target
=$target_alias
1492 # FIXME: To remove some day.
1493 if test "x$host_alias" != x
; then
1494 if test "x$build_alias" = x
; then
1495 cross_compiling
=maybe
1496 elif test "x$build_alias" != "x$host_alias"; then
1502 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1504 test "$silent" = yes && exec 6>/dev
/null
1507 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1508 ac_ls_di
=`ls -di .` &&
1509 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1510 as_fn_error $?
"working directory cannot be determined"
1511 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1512 as_fn_error $?
"pwd does not report name of working directory"
1515 # Find the source files, if location was not specified.
1516 if test -z "$srcdir"; then
1517 ac_srcdir_defaulted
=yes
1518 # Try the directory containing this script, then the parent directory.
1519 ac_confdir
=`$as_dirname -- "$as_myself" ||
1520 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521 X"$as_myself" : 'X\(//\)[^/]' \| \
1522 X"$as_myself" : 'X\(//\)$' \| \
1523 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1524 $as_echo X"$as_myself" |
1525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1543 if test ! -r "$srcdir/$ac_unique_file"; then
1547 ac_srcdir_defaulted
=no
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1550 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1551 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1553 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1565 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567 for ac_var
in $ac_precious_vars; do
1568 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1569 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1570 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1571 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1575 # Report the --help message.
1577 if test "$ac_init_help" = "long"; then
1578 # Omit some internal or obsolete options to make the list less imposing.
1579 # This message is too long to be a string in the A/UX 3.1 sh.
1581 \`configure' configures this package to adapt to many kinds of systems.
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE. See below for descriptions of some of the useful variables.
1588 Defaults for the options are specified in brackets.
1591 -h, --help display this help and exit
1592 --help=short display options specific to this package
1593 --help=recursive display the short help of all the included packages
1594 -V, --version display version information and exit
1595 -q, --quiet, --silent do not print \`checking ...' messages
1596 --cache-file=FILE cache test results in FILE [disabled]
1597 -C, --config-cache alias for \`--cache-file=config.cache'
1598 -n, --no-create do not create output files
1599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1601 Installation directories:
1602 --prefix=PREFIX install architecture-independent files in PREFIX
1603 [$ac_default_prefix]
1604 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1612 For better control, use the options below.
1614 Fine tuning of the installation directories:
1615 --bindir=DIR user executables [EPREFIX/bin]
1616 --sbindir=DIR system admin executables [EPREFIX/sbin]
1617 --libexecdir=DIR program executables [EPREFIX/libexec]
1618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1621 --libdir=DIR object code libraries [EPREFIX/lib]
1622 --includedir=DIR C header files [PREFIX/include]
1623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1624 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1625 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1626 --infodir=DIR info documentation [DATAROOTDIR/info]
1627 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1628 --mandir=DIR man documentation [DATAROOTDIR/man]
1629 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1630 --htmldir=DIR html documentation [DOCDIR]
1631 --dvidir=DIR dvi documentation [DOCDIR]
1632 --pdfdir=DIR pdf documentation [DOCDIR]
1633 --psdir=DIR ps documentation [DOCDIR]
1639 --program-prefix=PREFIX prepend PREFIX to installed program names
1640 --program-suffix=SUFFIX append SUFFIX to installed program names
1641 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1644 --build=BUILD configure
for building on BUILD
[guessed
]
1645 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1646 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1650 if test -n "$ac_init_help"; then
1655 --disable-option-checking ignore unrecognized
--enable/--with options
1656 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1657 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1658 --enable-generated-files-in-srcdir
1659 put copies of generated files
in source dir intended
1660 for creating
source tarballs
for users without
1661 texinfo bison or flex
1662 --disable-largefile omit support
for large files
1663 --disable-build-format-warnings
1664 don
't use -Wformat while building GCC
1665 --enable-werror-always enable -Werror despite compiler version
1666 --enable-checking[=LIST]
1667 enable expensive run-time checks. With LIST, enable
1668 only specific categories of checks. Categories are:
1669 yes,no,all,none,release. Flags are:
1670 assert,df,extra,fold,gc,gcac,gimple,misc,
1671 rtlflag,rtl,runtime,tree,valgrind,types
1672 --enable-coverage[=LEVEL]
1673 enable compiler's code coverage collection. Use to
1674 measure compiler performance and
locate unused parts
1675 of the compiler. With LEVEL
, specify optimization.
1676 Values are opt
, noopt
, default is noopt
1677 --enable-gather-detailed-mem-stats
1678 enable detailed memory allocation stats gathering
1679 --enable-valgrind-annotations
1680 enable valgrind runtime interaction
1681 --enable-multilib enable library support
for multiple ABIs
1682 --enable-multiarch enable support
for multiarch paths
1683 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1684 --enable-decimal-float={no
,yes,bid
,dpd
}
1685 enable decimal float extension to C. Selecting
'bid'
1686 or
'dpd' choses
which decimal floating point format
1688 --enable-fixed-point enable fixed-point arithmetic extension to C
1689 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1691 --enable-tls enable or disable generation of tls code overriding
1692 the assembler check
for tls support
1693 --enable-vtable-verify enable vtable verification feature
1694 --disable-analyzer disable
-fanalyzer static analyzer
1695 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1696 GNU Objective-C runtime
1697 --disable-shared don't provide a shared libgcc
1698 --disable-gcov don
't provide libgcov and related host tools
1699 --enable-languages=LIST specify which front-ends to build
1700 --disable-rpath do not hardcode runtime library paths
1701 --enable-sjlj-exceptions
1702 arrange to use setjmp/longjmp exception handling
1703 --enable-secureplt enable -msecure-plt by default for PowerPC
1704 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1705 Default to platform configuration
1706 --enable-large-address-aware
1707 Link mingw executables with --large-address-aware
1708 --enable-leading-mingw64-underscores
1709 enable leading underscores on 64 bit mingw targets
1710 --enable-cld enable -mcld by default for 32bit x86
1711 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1712 --disable-win32-registry
1713 disable lookup of installation paths in the Registry
1715 --enable-win32-registry enable registry lookup (default)
1716 --enable-win32-registry=KEY
1717 use KEY instead of GCC version as the last portion
1719 --enable-shared[=PKGS] build shared libraries [default=yes]
1720 --enable-static[=PKGS] build static libraries [default=yes]
1721 --enable-fast-install[=PKGS]
1722 optimize for fast installation [default=yes]
1723 --disable-libtool-lock avoid locking (might break parallel builds)
1724 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1725 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1726 --enable-gnu-indirect-function
1727 enable the use of the @gnu_indirect_function to
1729 --enable-initfini-array use .init_array/.fini_array sections
1730 --enable-comdat enable COMDAT group support
1731 --enable-newlib-nano-formatted-io
1732 Use nano version formatted IO
1734 --enable-standard-branch-protection
1735 enable Branch Target Identification Mechanism and
1736 Return Address Signing by default for AArch64
1737 --disable-standard-branch-protection
1738 disable Branch Target Identification Mechanism and
1739 Return Address Signing by default for AArch64
1742 --enable-fix-cortex-a53-835769
1743 enable workaround for AArch64 Cortex-A53 erratum
1745 --disable-fix-cortex-a53-835769
1746 disable workaround for AArch64 Cortex-A53 erratum
1750 --enable-fix-cortex-a53-843419
1751 enable workaround for AArch64 Cortex-A53 erratum
1753 --disable-fix-cortex-a53-843419
1754 disable workaround for AArch64 Cortex-A53 erratum
1757 --enable-gnu-unique-object
1758 enable the use of the @gnu_unique_object ELF
1759 extension on glibc systems
1760 --enable-linker-build-id
1761 compiler will always pass --build-id to linker
1762 --enable-libssp enable linking against libssp
1763 --enable-default-ssp enable Stack Smashing Protection as default
1764 --enable-maintainer-mode
1765 enable make rules and dependencies not useful (and
1766 sometimes confusing) to the casual installer
1767 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1768 thrashing on the build machine
1769 --enable-version-specific-runtime-libs
1770 specify that runtime libraries should be installed
1771 in a compiler-specific directory
1772 --enable-plugin enable plugin support
1773 --enable-host-shared build host code as shared libraries
1774 --disable-libquadmath-support
1775 disable libquadmath support for Fortran
1776 --enable-default-pie enable Position Independent Executable as default
1777 --enable-cet enable Intel CET in host libraries [default=auto]
1780 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1781 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1782 --with-build-libsubdir=DIR Directory where to find libraries for build system
1783 --with-local-prefix=DIR specifies directory to put local include
1784 --with-native-system-header-dir=dir
1785 use dir as the directory to look for standard
1786 system header files in. Defaults to /usr/include.
1787 --with-build-sysroot=sysroot
1788 use sysroot as the system root during the build
1789 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1790 --with-gxx-include-dir=DIR
1791 specifies directory to put g++ header files
1792 --with-cpp-install-dir=DIR
1793 install the user visible C preprocessor in DIR
1794 (relative to PREFIX) as well as PREFIX/bin
1795 --with-gnu-ld arrange to work with GNU ld
1796 --with-ld arrange to use the specified ld (full pathname)
1797 --with-demangler-in-ld try to use demangler in GNU ld
1798 --with-gnu-as arrange to work with GNU as
1799 --with-as arrange to use the specified as (full pathname)
1800 --with-stabs arrange to use stabs instead of host debug format
1801 --with-stack-clash-protection-guard-size=size
1802 Set the default stack clash protection guard size
1803 for specific targets as a power of two in bytes.
1804 --with-dwarf2 force the default debug format to be DWARF 2
1805 --with-specs=SPECS add SPECS to driver command-line processing
1806 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1807 --with-bugurl=URL Direct users to URL to report a bug
1808 --with-documentation-root-url=URL
1809 Root for documentation URLs
1810 --with-changes-root-url=URL
1811 Root for GCC changes URLs
1812 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1813 --with-zstd=PATH specify prefix directory for installed zstd library.
1814 Equivalent to --with-zstd-include=PATH/include plus
1815 --with-zstd-lib=PATH/lib
1816 --with-zstd-include=PATH
1817 specify directory for installed zstd include files
1818 --with-zstd-lib=PATH specify directory for the installed zstd library
1819 --with-gnu-ld assume the C compiler uses GNU ld default=no
1820 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1821 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1822 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1823 --with-gcc-major-version-only
1824 use only GCC major number
in filesystem paths
1825 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1827 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1828 --with-plugin-ld=[ARG
] specify the plugin linker
1829 --with-glibc-version=M.N
1830 assume GCC used with glibc version M.N or later
1831 --with-long-double-128 use
128-bit long double by default
1832 --with-long-double-format={ieee
,ibm
}
1833 Specify whether PowerPC long double uses IEEE or IBM format
1835 --with-gc={page
,zone
} this option is not supported anymore. It used to
1836 choose the garbage collection mechanism to use with
1838 --with-system-zlib use installed libz
1839 --with-linker-hash-style={sysv
,gnu
,both
}
1840 specify the linker
hash style
1841 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1842 specify the default of
-fdiagnostics-color option
1843 auto-if-env stands
for -fdiagnostics-color=auto
if
1844 GCC_COLOR environment variable is present and
1845 -fdiagnostics-color=never otherwise
1846 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1847 specify the default of
-fdiagnostics-urls option
1848 auto-if-env stands
for -fdiagnostics-urls=auto
if
1849 GCC_URLS or TERM_URLS environment variable is
1850 present and
-fdiagnostics-urls=never otherwise
1852 Some influential environment variables
:
1853 CC C compiler
command
1854 CFLAGS C compiler flags
1855 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1856 nonstandard directory
<lib dir
>
1857 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1858 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1859 you have headers
in a nonstandard directory
<include dir
>
1860 CXX C
++ compiler
command
1861 CXXFLAGS C
++ compiler flags
1862 CXXCPP C
++ preprocessor
1864 GMPLIBS How to link GMP
1865 GMPINC How to
find GMP include files
1866 ISLLIBS How to link isl
1867 ISLINC How to
find isl include files
1869 Use these variables to override the choices made by
`configure' or to help
1870 it to find libraries and programs with nonstandard names/locations.
1872 Report bugs to the package provider.
1877 if test "$ac_init_help" = "recursive"; then
1878 # If there are subdirs, report their specific --help.
1879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1880 test -d "$ac_dir" ||
1881 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1888 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1889 # A ".." for each directory in $ac_dir_suffix.
1890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1891 case $ac_top_builddir_sub in
1892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1896 ac_abs_top_builddir=$ac_pwd
1897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1898 # for backward compatibility:
1899 ac_top_builddir=$ac_top_build_prefix
1902 .) # We are building in place.
1904 ac_top_srcdir=$ac_top_builddir_sub
1905 ac_abs_top_srcdir=$ac_pwd ;;
1906 [\\/]* | ?:[\\/]* ) # Absolute name.
1907 ac_srcdir=$srcdir$ac_dir_suffix;
1908 ac_top_srcdir=$srcdir
1909 ac_abs_top_srcdir=$srcdir ;;
1911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1912 ac_top_srcdir=$ac_top_build_prefix$srcdir
1913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1917 cd "$ac_dir" || { ac_status=$?; continue; }
1918 # Check for guested configure.
1919 if test -f "$ac_srcdir/configure.gnu"; then
1921 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1922 elif test -f "$ac_srcdir/configure"; then
1924 $SHELL "$ac_srcdir/configure" --help=recursive
1926 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1928 cd "$ac_pwd" || { ac_status=$?; break; }
1932 test -n "$ac_init_help" && exit $ac_status
1933 if $ac_init_version; then
1936 generated by GNU Autoconf 2.69
1938 Copyright (C) 2012 Free Software Foundation, Inc.
1939 This configure script is free software; the Free Software Foundation
1940 gives unlimited permission to copy, distribute and modify it.
1945 ## ------------------------ ##
1946 ## Autoconf initialization. ##
1947 ## ------------------------ ##
1949 # ac_fn_c_try_compile LINENO
1950 # --------------------------
1951 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_c_try_compile ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 rm -f conftest.$ac_objext
1956 if { { ac_try="$ac_compile"
1958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1959 *) ac_try_echo
=$ac_try;;
1961 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_compile") 2>conftest.err
1965 if test -s conftest.err
; then
1966 grep -v '^ *+' conftest.err
>conftest.er1
1967 cat conftest.er1
>&5
1968 mv -f conftest.er1 conftest.err
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && {
1972 test -z "$ac_c_werror_flag" ||
1973 test ! -s conftest.err
1974 } && test -s conftest.
$ac_objext; then :
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.
$ac_ext >&5
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status
$ac_retval
1985 } # ac_fn_c_try_compile
1987 # ac_fn_cxx_try_compile LINENO
1988 # ----------------------------
1989 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_compile
()
1992 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1993 rm -f conftest.
$ac_objext
1994 if { { ac_try
="$ac_compile"
1996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_compile") 2>conftest.err
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_cxx_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest.$ac_objext; then :
2015 $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2023 } # ac_fn_cxx_try_compile
2025 # ac_fn_cxx_try_cpp LINENO
2026 # ------------------------
2027 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_cxx_try_cpp ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2034 *) ac_try_echo
=$ac_try;;
2036 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2040 if test -s conftest.err
; then
2041 grep -v '^ *+' conftest.err
>conftest.er1
2042 cat conftest.er1
>&5
2043 mv -f conftest.er1 conftest.err
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } > conftest.i
&& {
2047 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2048 test ! -s conftest.err
2052 $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.
$ac_ext >&5
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status
$ac_retval
2060 } # ac_fn_cxx_try_cpp
2062 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2063 # ---------------------------------------------------------
2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065 # the include files in INCLUDES and setting the cache variable VAR
2067 ac_fn_cxx_check_header_mongrel
()
2069 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2070 if eval \
${$3+:} false
; then :
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \
${$3+:} false
; then :
2074 $as_echo_n "(cached) " >&6
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 # Is the header compilable?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082 $as_echo_n "checking $2 usability... " >&6; }
2083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2088 if ac_fn_cxx_try_compile
"$LINENO"; then :
2089 ac_header_compiler
=yes
2091 ac_header_compiler
=no
2093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095 $as_echo "$ac_header_compiler" >&6; }
2097 # Is the header present?
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099 $as_echo_n "checking $2 presence... " >&6; }
2100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2105 ac_header_preproc
=yes
2107 ac_header_preproc
=no
2109 rm -f conftest.err conftest.i conftest.
$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111 $as_echo "$ac_header_preproc" >&6; }
2113 # So? What about this header?
2114 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135 $as_echo_n "checking for $2... " >&6; }
2136 if eval \
${$3+:} false
; then :
2137 $as_echo_n "(cached) " >&6
2139 eval "$3=\$ac_header_compiler"
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143 $as_echo "$ac_res" >&6; }
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147 } # ac_fn_cxx_check_header_mongrel
2149 # ac_fn_cxx_try_run LINENO
2150 # ------------------------
2151 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2152 # that executables *can* be run.
2153 ac_fn_cxx_try_run
()
2155 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2156 if { { ac_try
="$ac_link"
2158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_link") 2>&5
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2167 { { case "(($ac_try" in
2168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2169 *) ac_try_echo
=$ac_try;;
2171 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172 $as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_try") 2>&5
2175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2176 test $ac_status = 0; }; }; then :
2179 $as_echo "$as_me: program exited with status $ac_status" >&5
2180 $as_echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.
$ac_ext >&5
2183 ac_retval
=$ac_status
2185 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 as_fn_set_status
$ac_retval
2189 } # ac_fn_cxx_try_run
2191 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2192 # ---------------------------------------------------------
2193 # Tests whether HEADER exists and can be compiled using the include files in
2194 # INCLUDES, setting the cache variable VAR accordingly.
2195 ac_fn_cxx_check_header_compile
()
2197 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if eval \
${$3+:} false
; then :
2201 $as_echo_n "(cached) " >&6
2203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2208 if ac_fn_cxx_try_compile
"$LINENO"; then :
2213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 } # ac_fn_cxx_check_header_compile
2222 # ac_fn_c_try_cpp LINENO
2223 # ----------------------
2224 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2227 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2228 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } > conftest.i && {
2244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2245 test ! -s conftest.err
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 as_fn_set_status $ac_retval
2259 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2260 # ----------------------------------------------
2261 # Tries to find the compile-time value of EXPR in a program that includes
2262 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2264 ac_fn_cxx_compute_int ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if test "$cross_compiling" = yes; then
2268 # Depending upon the size, compute the lo and hi bounds.
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) >= 0)];
2277 return test_array [0];
2283 if ac_fn_cxx_try_compile "$LINENO"; then :
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2292 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2294 return test_array [0];
2300 if ac_fn_cxx_try_compile "$LINENO"; then :
2301 ac_hi=$ac_mid; break
2303 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2304 if test $ac_lo -le $ac_mid; then
2308 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 static int test_array [1 - 2 * !(($2) < 0)];
2321 return test_array [0];
2327 if ac_fn_cxx_try_compile "$LINENO"; then :
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2336 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2338 return test_array [0];
2344 if ac_fn_cxx_try_compile "$LINENO"; then :
2345 ac_lo=$ac_mid; break
2347 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2348 if test $ac_mid -le $ac_hi; then
2352 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 # Binary search between lo and hi bounds.
2363 while test "x$ac_lo" != "x$ac_hi"; do
2364 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2371 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2373 return test_array [0];
2379 if ac_fn_cxx_try_compile "$LINENO"; then :
2382 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2394 static long int longval () { return $2; }
2395 static unsigned long int ulongval () { return $2; }
2402 FILE *f = fopen ("conftest.val", "w");
2407 long int i = longval ();
2410 fprintf (f, "%ld", i);
2414 unsigned long int i = ulongval ();
2417 fprintf (f, "%lu", i);
2419 /* Do not output a trailing newline, as this causes \r\n confusion
2420 on some platforms. */
2421 return ferror (f) || fclose (f) != 0;
2427 if ac_fn_cxx_try_run "$LINENO"; then :
2428 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2433 conftest.$ac_objext conftest.beam conftest.$ac_ext
2437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438 as_fn_set_status $ac_retval
2440 } # ac_fn_cxx_compute_int
2442 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2443 # ---------------------------------------------
2444 # Tests whether TYPE exists after having included INCLUDES, setting cache
2445 # variable VAR accordingly.
2446 ac_fn_cxx_check_type ()
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2450 $as_echo_n "checking for $2... " >&6; }
2451 if eval \${$3+:} false; then :
2452 $as_echo_n "(cached) " >&6
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2467 if ac_fn_cxx_try_compile "$LINENO"; then :
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2480 if ac_fn_cxx_try_compile "$LINENO"; then :
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 } # ac_fn_cxx_check_type
2496 # ac_fn_c_find_intX_t LINENO BITS VAR
2497 # -----------------------------------
2498 # Finds a signed integer type with width BITS, setting cache variable VAR
2500 ac_fn_c_find_intX_t ()
2502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2504 $as_echo_n "checking for int$2_t... " >&6; }
2505 if eval \${$3+:} false; then :
2506 $as_echo_n "(cached) " >&6
2509 # Order is important - never check a type that is potentially smaller
2510 # than half of the expected target width.
2511 for ac_type in int$2_t 'int' 'long int' \
2512 'long long int' 'short int' 'signed char'; do
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 $ac_includes_default
2516 enum { N = $2 / 2 - 1 };
2520 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2522 return test_array [0];
2528 if ac_fn_cxx_try_compile "$LINENO"; then :
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2531 $ac_includes_default
2532 enum { N = $2 / 2 - 1 };
2536 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2537 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2539 return test_array [0];
2545 if ac_fn_cxx_try_compile "$LINENO"; then :
2552 eval "$3=\$ac_type" ;;
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 if eval test \"x\$"$3"\" = x"no"; then :
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2570 } # ac_fn_c_find_intX_t
2572 # ac_fn_cxx_try_link LINENO
2573 # -------------------------
2574 # Try to link conftest.$ac_ext, and return whether this succeeded.
2575 ac_fn_cxx_try_link ()
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 rm -f conftest.$ac_objext conftest$ac_exeext
2579 if { { ac_try="$ac_link"
2581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2582 *) ac_try_echo
=$ac_try;;
2584 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2585 $as_echo "$ac_try_echo"; } >&5
2586 (eval "$ac_link") 2>conftest.err
2588 if test -s conftest.err
; then
2589 grep -v '^ *+' conftest.err
>conftest.er1
2590 cat conftest.er1
>&5
2591 mv -f conftest.er1 conftest.err
2593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2594 test $ac_status = 0; } && {
2595 test -z "$ac_cxx_werror_flag" ||
2596 test ! -s conftest.err
2597 } && test -s conftest
$ac_exeext && {
2598 test "$cross_compiling" = yes ||
2599 test -x conftest
$ac_exeext
2603 $as_echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.
$ac_ext >&5
2608 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2609 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2610 # interfere with the next link command; also delete a directory that is
2611 # left behind by Apple's compiler. We do this before executing the actions.
2612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2614 as_fn_set_status
$ac_retval
2616 } # ac_fn_cxx_try_link
2618 # ac_fn_c_find_uintX_t LINENO BITS VAR
2619 # ------------------------------------
2620 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2622 ac_fn_c_find_uintX_t
()
2624 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2626 $as_echo_n "checking for uint$2_t... " >&6; }
2627 if eval \
${$3+:} false
; then :
2628 $as_echo_n "(cached) " >&6
2631 # Order is important - never check a type that is potentially smaller
2632 # than half of the expected target width.
2633 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2634 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2637 $ac_includes_default
2641 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2643 return test_array [0];
2649 if ac_fn_cxx_try_compile
"$LINENO"; then :
2654 eval "$3=\$ac_type" ;;
2657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2658 if eval test \"x\$
"$3"\" = x
"no"; then :
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670 } # ac_fn_c_find_uintX_t
2672 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2673 # ------------------------------------------------
2674 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2675 ac_fn_cxx_check_header_preproc
()
2677 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2679 $as_echo_n "checking for $2... " >&6; }
2680 if eval \
${$3+:} false
; then :
2681 $as_echo_n "(cached) " >&6
2683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2687 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2692 rm -f conftest.err conftest.i conftest.
$ac_ext
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696 $as_echo "$ac_res" >&6; }
2697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2699 } # ac_fn_cxx_check_header_preproc
2701 # ac_fn_cxx_check_func LINENO FUNC VAR
2702 # ------------------------------------
2703 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2704 ac_fn_cxx_check_func
()
2706 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \
${$3+:} false
; then :
2710 $as_echo_n "(cached) " >&6
2712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2716 #define $2 innocuous_$2
2718 /* System header to define __stub macros and hopefully few prototypes,
2719 which can conflict with char $2 (); below.
2720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2721 <limits.h> exists even on freestanding compilers. */
2724 # include <limits.h>
2726 # include <assert.h>
2731 /* Override any GCC internal prototype to avoid an error.
2732 Use char because int might match the return type of a GCC
2733 builtin and then its argument prototype would still apply. */
2738 /* The GNU C library defines this for functions which it implements
2739 to always fail with ENOSYS. Some functions are actually named
2740 something starting with __ and the normal name is an alias. */
2741 #if defined __stub_$2 || defined __stub___$2
2753 if ac_fn_cxx_try_link
"$LINENO"; then :
2758 rm -f core conftest.err conftest.
$ac_objext \
2759 conftest
$ac_exeext conftest.
$ac_ext
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2766 } # ac_fn_cxx_check_func
2768 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2769 # -----------------------------------------------
2770 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2772 ac_fn_cxx_check_decl
()
2774 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2775 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2776 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2778 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2779 if eval \
${$3+:} false
; then :
2780 $as_echo_n "(cached) " >&6
2782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2788 #ifndef $as_decl_name
2790 (void) $as_decl_use;
2792 (void) $as_decl_name;
2800 if ac_fn_cxx_try_compile
"$LINENO"; then :
2805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2809 $as_echo "$ac_res" >&6; }
2810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2812 } # ac_fn_cxx_check_decl
2814 # ac_fn_c_try_link LINENO
2815 # -----------------------
2816 # Try to link conftest.$ac_ext, and return whether this succeeded.
2819 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2820 rm -f conftest.
$ac_objext conftest
$ac_exeext
2821 if { { ac_try
="$ac_link"
2823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827 $as_echo "$ac_try_echo"; } >&5
2828 (eval "$ac_link") 2>conftest.err
2830 if test -s conftest.err; then
2831 grep -v '^ *+' conftest.err >conftest.er1
2832 cat conftest.er1 >&5
2833 mv -f conftest.er1 conftest.err
2835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836 test $ac_status = 0; } && {
2837 test -z "$ac_c_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest$ac_exeext && {
2840 test "$cross_compiling" = yes ||
2841 test -x conftest$ac_exeext
2845 $as_echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2852 # interfere with the next link command; also delete a directory that is
2853 # left behind by Apple's compiler. We do this before executing the actions.
2854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2856 as_fn_set_status $ac_retval
2858 } # ac_fn_c_try_link
2860 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2861 # ----------------------------------------------
2862 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2863 ac_fn_c_check_header_preproc ()
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if eval \${$3+:} false; then :
2869 $as_echo_n "(cached) " >&6
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2875 if ac_fn_c_try_cpp "$LINENO"; then :
2880 rm -f conftest.err conftest.i conftest.$ac_ext
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2884 $as_echo "$ac_res" >&6; }
2885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2887 } # ac_fn_c_check_header_preproc
2889 # ac_fn_c_check_func LINENO FUNC VAR
2890 # ----------------------------------
2891 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2892 ac_fn_c_check_func ()
2894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2896 $as_echo_n "checking for $2... " >&6; }
2897 if eval \${$3+:} false; then :
2898 $as_echo_n "(cached) " >&6
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2904 #define $2 innocuous_$2
2906 /* System header to define __stub macros and hopefully few prototypes,
2907 which can conflict with char $2 (); below.
2908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2909 <limits.h> exists even on freestanding compilers. */
2912 # include <limits.h>
2914 # include <assert.h>
2919 /* Override any GCC internal prototype to avoid an error.
2920 Use char because int might match the return type of a GCC
2921 builtin and then its argument prototype would still apply. */
2926 /* The GNU C library defines this for functions which it implements
2927 to always fail with ENOSYS. Some functions are actually named
2928 something starting with __ and the normal name is an alias. */
2929 #if defined __stub_$2 || defined __stub___$2
2941 if ac_fn_c_try_link "$LINENO"; then :
2946 rm -f core conftest.err conftest.$ac_objext \
2947 conftest$ac_exeext conftest.$ac_ext
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2951 $as_echo "$ac_res" >&6; }
2952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2954 } # ac_fn_c_check_func
2955 cat >config.log <<_ACEOF
2956 This file contains any messages produced by compilers while
2957 running configure, to aid debugging if configure makes a mistake.
2959 It was created by $as_me, which was
2960 generated by GNU Autoconf 2.69. Invocation command line was
2972 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2973 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2974 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2975 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2976 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2978 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2979 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2981 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2982 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2983 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2984 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2985 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2986 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2987 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir=.
2996 $as_echo "PATH: $as_dir"
3012 # Keep a trace of the command line.
3013 # Strip out --no-create and --no-recursion so they do not pile up.
3014 # Strip out --silent because we don't want to record it for future runs.
3015 # Also quote any args containing shell meta-characters.
3016 # Make two passes to allow for proper duplicate-argument suppression.
3020 ac_must_keep_next=false
3026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3028 | -silent | --silent | --silen | --sile | --sil)
3031 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3036 as_fn_append ac_configure_args1 " '$ac_arg'"
3037 if test $ac_must_keep_next = true; then
3038 ac_must_keep_next=false # Got value, back to normal.
3041 *=* | --config-cache | -C | -disable-* | --disable-* \
3042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3044 | -with-* | --with-* | -without-* | --without-* | --x)
3045 case "$ac_configure_args0 " in
3046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3049 -* ) ac_must_keep_next=true ;;
3052 as_fn_append ac_configure_args " '$ac_arg'"
3057 { ac_configure_args0=; unset ac_configure_args0;}
3058 { ac_configure_args1=; unset ac_configure_args1;}
3060 # When interrupted or exit'd, cleanup temporary files, and complete
3061 # config.log. We remove comments because anyway the quotes in there
3062 # would cause problems or look ugly.
3063 # WARNING: Use '\'' to represent an apostrophe within the trap.
3064 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3065 trap 'exit_status=$?
3066 # Save into config.log some information that might help in debugging.
3070 $as_echo "## ---------------- ##
3071 ## Cache variables. ##
3072 ## ---------------- ##"
3074 # The following way of writing the cache mishandles newlines in values,
3076 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3077 eval ac_val=\$$ac_var
3081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3085 _ | IFS | as_nl) ;; #(
3086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3087 *) { eval $ac_var=; unset $ac_var;} ;;
3092 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3093 *${as_nl}ac_space=\ *)
3095 "s/'\''/'\''\\\\'\'''\''/g;
3096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3106 $as_echo "## ----------------- ##
3107 ## Output variables. ##
3108 ## ----------------- ##"
3110 for ac_var in $ac_subst_vars
3112 eval ac_val=\$$ac_var
3114 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3116 $as_echo "$ac_var='\''$ac_val'\''"
3120 if test -n "$ac_subst_files"; then
3121 $as_echo "## ------------------- ##
3122 ## File substitutions. ##
3123 ## ------------------- ##"
3125 for ac_var in $ac_subst_files
3127 eval ac_val=\$$ac_var
3129 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3131 $as_echo "$ac_var='\''$ac_val'\''"
3136 if test -s confdefs.h; then
3137 $as_echo "## ----------- ##
3144 test "$ac_signal" != 0 &&
3145 $as_echo "$as_me: caught signal $ac_signal"
3146 $as_echo "$as_me: exit $exit_status"
3148 rm -f core *.core core.conftest.* &&
3149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3152 for ac_signal in 1 2 13 15; do
3153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3158 rm -f -r conftest* confdefs.h
3160 $as_echo "/* confdefs.h */" > confdefs.h
3162 # Predefined preprocessor variables.
3164 cat >>confdefs.h <<_ACEOF
3165 #define PACKAGE_NAME "$PACKAGE_NAME"
3168 cat >>confdefs.h <<_ACEOF
3169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3172 cat >>confdefs.h <<_ACEOF
3173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3176 cat >>confdefs.h <<_ACEOF
3177 #define PACKAGE_STRING "$PACKAGE_STRING"
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_URL "$PACKAGE_URL"
3189 # Let the site file select an alternate cache file if it wants to.
3190 # Prefer an explicitly selected file to automatically selected ones.
3193 if test -n "$CONFIG_SITE"; then
3194 # We do not want a PATH search for config.site.
3195 case $CONFIG_SITE in #((
3196 -*) ac_site_file1=./$CONFIG_SITE;;
3197 */*) ac_site_file1=$CONFIG_SITE;;
3198 *) ac_site_file1=./$CONFIG_SITE;;
3200 elif test "x$prefix" != xNONE; then
3201 ac_site_file1=$prefix/share/config.site
3202 ac_site_file2=$prefix/etc/config.site
3204 ac_site_file1=$ac_default_prefix/share/config.site
3205 ac_site_file2=$ac_default_prefix/etc/config.site
3207 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3209 test "x$ac_site_file" = xNONE && continue
3210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3213 sed 's/^/| /' "$ac_site_file" >&5
3215 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error $? "failed to load site
script $ac_site_file
3218 See \
`config.log' for more details" "$LINENO" 5; }
3222 if test -r "$cache_file"; then
3223 # Some versions of bash will fail to source /dev/null (special files
3224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3227 $as_echo "$as_me: loading cache $cache_file" >&6;}
3229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3230 *) . "./$cache_file";;
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3235 $as_echo "$as_me: creating cache $cache_file" >&6;}
3239 # Check that the precious variables saved in the cache have kept the same
3241 ac_cache_corrupted=false
3242 for ac_var in $ac_precious_vars; do
3243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3244 eval ac_new_set=\$ac_env_${ac_var}_set
3245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3246 eval ac_new_val=\$ac_env_${ac_var}_value
3247 case $ac_old_set,$ac_new_set in
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3250 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3251 ac_cache_corrupted=: ;;
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3254 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3255 ac_cache_corrupted=: ;;
3258 if test "x$ac_old_val" != "x$ac_new_val"; then
3259 # differences in whitespace do not lead to failure.
3260 ac_old_val_w=`echo x
$ac_old_val`
3261 ac_new_val_w=`echo x
$ac_new_val`
3262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3265 ac_cache_corrupted=:
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3269 eval $ac_var=\$ac_old_val
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3272 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3277 # Pass precious variables to config.status.
3278 if test "$ac_new_set" = set; then
3280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3281 *) ac_arg=$ac_var=$ac_new_val ;;
3283 case " $ac_configure_args " in
3284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3289 if $ac_cache_corrupted; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3294 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3296 ## -------------------- ##
3297 ## Main body of script. ##
3298 ## -------------------- ##
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3314 gcc_version=`cat $srcdir/BASE-VER
`
3316 # Determine the host, build, and target systems
3318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3319 if test -f "$ac_dir/install-sh"; then
3321 ac_install_sh="$ac_aux_dir/install-sh -c"
3323 elif test -f "$ac_dir/install.sh"; then
3325 ac_install_sh="$ac_aux_dir/install.sh -c"
3327 elif test -f "$ac_dir/shtool"; then
3329 ac_install_sh="$ac_aux_dir/shtool install -c"
3333 if test -z "$ac_aux_dir"; then
3334 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3337 # These three variables are undocumented and unsupported,
3338 # and are intended to be withdrawn in a future Autoconf release.
3339 # They can cause serious problems if a builder's source tree is in a directory
3340 # whose full name contains unusual characters.
3341 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3342 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3343 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3346 # Make sure we can run config.sub.
3347 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3348 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3351 $as_echo_n "checking build system type... " >&6; }
3352 if ${ac_cv_build+:} false; then :
3353 $as_echo_n "(cached) " >&6
3355 ac_build_alias=$build_alias
3356 test "x$ac_build_alias" = x &&
3357 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3358 test "x$ac_build_alias" = x &&
3359 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3360 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3365 $as_echo "$ac_cv_build" >&6; }
3366 case $ac_cv_build in
3368 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3371 ac_save_IFS=$IFS; IFS='-'
3377 # Remember, the first character of IFS is used to create $*,
3378 # except with old shells:
3381 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3385 $as_echo_n "checking host system type... " >&6; }
3386 if ${ac_cv_host+:} false; then :
3387 $as_echo_n "(cached) " >&6
3389 if test "x$host_alias" = x; then
3390 ac_cv_host=$ac_cv_build
3392 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3398 $as_echo "$ac_cv_host" >&6; }
3401 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3404 ac_save_IFS=$IFS; IFS='-'
3410 # Remember, the first character of IFS is used to create $*,
3411 # except with old shells:
3414 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3418 $as_echo_n "checking target system type... " >&6; }
3419 if ${ac_cv_target+:} false; then :
3420 $as_echo_n "(cached) " >&6
3422 if test "x$target_alias" = x; then
3423 ac_cv_target=$ac_cv_host
3425 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3431 $as_echo "$ac_cv_target" >&6; }
3432 case $ac_cv_target in
3434 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3436 target=$ac_cv_target
3437 ac_save_IFS=$IFS; IFS='-'
3443 # Remember, the first character of IFS is used to create $*,
3444 # except with old shells:
3447 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3450 # The aliases save the names the user supplied, while $host etc.
3451 # will get canonicalized.
3452 test -n "$target_alias" &&
3453 test "$program_prefix$program_suffix$program_transform_name" = \
3455 program_prefix=${target_alias}-
3457 # Determine the noncanonical host name, for Ada.
3458 case ${build_alias} in
3459 "") build_noncanonical=${build} ;;
3460 *) build_noncanonical=${build_alias} ;;
3463 case ${host_alias} in
3464 "") host_noncanonical=${build_noncanonical} ;;
3465 *) host_noncanonical=${host_alias} ;;
3471 # Determine the noncanonical target name, for directory use.
3472 case ${target_alias} in
3473 "") target_noncanonical=${host_noncanonical} ;;
3474 *) target_noncanonical=${target_alias} ;;
3480 # Used for constructing correct paths for offload compilers.
3481 real_target_noncanonical=${target_noncanonical}
3484 # Determine the target- and build-specific subdirectories
3486 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3487 # have matching libraries, they should use host libraries: Makefile.tpl
3488 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3489 # However, they still use the build modules, because the corresponding
3490 # host modules (e.g. bison) are only built for the host when bootstrap
3492 # - build_subdir is where we find build modules, and never changes.
3493 # - build_libsubdir is where we find build libraries, and can be overridden.
3495 # Prefix 'build-' so this never conflicts with target_subdir.
3496 build_subdir="build-${build_noncanonical}"
3498 # Check whether --with-build-libsubdir was given.
3499 if test "${with_build_libsubdir+set}" = set; then :
3500 withval=$with_build_libsubdir; build_libsubdir="$withval"
3502 build_libsubdir="$build_subdir"
3505 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3506 if ( test $srcdir = . && test -d gcc ) \
3507 || test -d $srcdir/../host-${host_noncanonical}; then
3508 host_subdir="host-${host_noncanonical}"
3513 target_subdir=${target_noncanonical}
3516 # Set program_transform_name
3517 test "$program_prefix" != NONE &&
3518 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3519 # Use a double $ so make ignores it.
3520 test "$program_suffix" != NONE &&
3521 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3522 # Double any \ or $.
3523 # By default was `s
,x
,x
', remove it if useless.
3524 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3525 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3528 # Check for bogus environment variables.
3529 # Test if LIBRARY_PATH contains the notation for the current directory
3530 # since this would lead to problems installing/building glibc.
3531 # LIBRARY_PATH contains the current directory if one of the following
3533 # - one of the terminals (":" and ";") is the first or last sign
3534 # - two terminals occur directly after each other
3535 # - the path contains an element with a dot in it
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3537 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3538 case ${LIBRARY_PATH} in
3539 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3540 library_path_setting="contains current directory"
3543 library_path_setting="ok"
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3547 $as_echo "$library_path_setting" >&6; }
3548 if test "$library_path_setting" != "ok"; then
3550 *** LIBRARY_PATH shouldn't contain the current directory when
3551 *** building gcc. Please change the environment variable
3552 *** and run configure again.
" "$LINENO" 5
3555 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3556 # since this would lead to problems installing/building glibc.
3557 # GCC_EXEC_PREFIX contains the current directory if one of the following
3559 # - one of the terminals (":" and ";") is the first or last sign
3560 # - two terminals occur directly after each other
3561 # - the path contains an element with a dot in it
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3563 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3564 case ${GCC_EXEC_PREFIX} in
3565 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3566 gcc_exec_prefix_setting="contains current directory
"
3569 gcc_exec_prefix_setting="ok
"
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3573 $as_echo "$gcc_exec_prefix_setting" >&6; }
3574 if test "$gcc_exec_prefix_setting" != "ok
"; then
3576 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3577 *** building gcc. Please change the environment variable
3578 *** and run configure again." "$LINENO" 5
3585 # Specify the local prefix
3588 # Check whether --with-local-prefix was given.
3589 if test "${with_local_prefix+set}" = set; then :
3590 withval=$with_local_prefix; case "${withval}" in
3591 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3593 *) local_prefix=$with_local_prefix ;;
3598 # Default local prefix if it is empty
3599 if test x$local_prefix = x; then
3600 local_prefix=/usr/local
3604 # Check whether --with-native-system-header-dir was given.
3605 if test "${with_native_system_header_dir+set}" = set; then :
3606 withval=$with_native_system_header_dir;
3607 case ${with_native_system_header_dir} in
3608 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3609 /* | [A-Za-z]:[\\/]*) ;;
3610 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3612 configured_native_system_header_dir="${withval}"
3615 configured_native_system_header_dir=
3620 # Check whether --with-build-sysroot was given.
3621 if test "${with_build_sysroot+set}" = set; then :
3622 withval=$with_build_sysroot; if test x"$withval" != x ; then
3623 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3626 SYSROOT_CFLAGS_FOR_TARGET=
3631 if test "x$prefix" = xNONE; then
3632 test_prefix=/usr/local
3636 if test "x$exec_prefix" = xNONE; then
3637 test_exec_prefix=$test_prefix
3639 test_exec_prefix=$exec_prefix
3643 # Check whether --with-sysroot was given.
3644 if test "${with_sysroot+set}" = set; then :
3645 withval=$with_sysroot;
3646 case ${with_sysroot} in
3648 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3650 case ${with_sysroot} in
3651 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3652 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3655 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3656 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3658 case ${TARGET_SYSTEM_ROOT} in
3659 "${test_prefix}"|"${test_prefix}/"*|\
3660 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3661 '${prefix}'|'${prefix}/'*|\
3662 '${exec_prefix}'|'${exec_prefix}/'*)
3663 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3664 TARGET_SYSTEM_ROOT_DEFINE="$t"
3671 TARGET_SYSTEM_ROOT_DEFINE=
3672 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3680 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3681 # passed in by the toplevel make and thus we'd get different behavior
3682 # depending on where we built the sources.
3683 gcc_gxx_include_dir
=
3684 # Specify the g++ header file directory
3686 # Check whether --with-gxx-include-dir was given.
3687 if test "${with_gxx_include_dir+set}" = set; then :
3688 withval
=$with_gxx_include_dir; case "${withval}" in
3689 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3691 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3696 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3697 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3698 # relative to the sysroot.
3699 gcc_gxx_include_dir_add_sysroot
=0
3701 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3702 if test x
${gcc_gxx_include_dir} = x
; then
3703 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3704 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3706 libstdcxx_incdir
='include/c++/$(version)'
3707 if test x
$host != x
$target; then
3708 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3710 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3712 elif test "${with_sysroot+set}" = set; then
3713 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3714 if test "${gcc_gxx_without_sysroot}"; then
3715 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3716 gcc_gxx_include_dir_add_sysroot
=1
3721 # Check whether --with-cpp_install_dir was given.
3722 if test "${with_cpp_install_dir+set}" = set; then :
3723 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3724 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3725 elif test x
$withval != xno
; then
3726 cpp_install_dir
=$withval
3731 # We would like to our source tree to be readonly. However when releases or
3732 # pre-releases are generated, the flex/bison generated files as well as the
3733 # various formats of manuals need to be included along with the rest of the
3734 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3738 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3739 # Check whether --enable-generated-files-in-srcdir was given.
3740 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3741 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3743 generated_files_in_srcdir
=no
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3748 $as_echo "$generated_files_in_srcdir" >&6; }
3750 if test "$generated_files_in_srcdir" = "yes"; then
3757 # -------------------
3758 # Find default linker
3759 # -------------------
3763 # Check whether --with-gnu-ld was given.
3764 if test "${with_gnu_ld+set}" = set; then :
3765 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3772 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3776 # With pre-defined ld
3778 # Check whether --with-ld was given.
3779 if test "${with_ld+set}" = set; then :
3780 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3783 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3784 if test ! -x "$DEFAULT_LINKER"; then
3785 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3786 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3788 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3792 cat >>confdefs.h
<<_ACEOF
3793 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3799 $as_echo_n "checking whether a default linker was specified... " >&6; }
3800 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3801 if test x
"$gnu_ld_flag" = x
"no"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3803 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3806 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3813 # With demangler in GNU ld
3815 # Check whether --with-demangler-in-ld was given.
3816 if test "${with_demangler_in_ld+set}" = set; then :
3817 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3823 # ----------------------
3824 # Find default assembler
3825 # ----------------------
3829 # Check whether --with-gnu-as was given.
3830 if test "${with_gnu_as+set}" = set; then :
3831 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3838 # Check whether --with-as was given.
3839 if test "${with_as+set}" = set; then :
3840 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3843 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3844 if test ! -x "$DEFAULT_ASSEMBLER"; then
3845 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3846 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3850 cat >>confdefs.h
<<_ACEOF
3851 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3857 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3858 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3859 if test x
"$gas_flag" = x
"no"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3861 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3864 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3875 # If a non-executable a.out is present (e.g. created by GNU as above even if
3876 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3877 # file, even when creating an executable, so an execution test fails.
3878 # Remove possible default executable files to avoid this.
3880 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3881 # Autoconf includes it.
3882 rm -f a.out a.exe b.out
3884 # Find the native compiler
3886 ac_cpp
='$CPP $CPPFLAGS'
3887 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3890 if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3892 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_prog_CC+:} false
; then :
3896 $as_echo_n "(cached) " >&6
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC
="$CC" # Let the user override the test.
3901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir
=.
3906 for ac_exec_ext
in '' $ac_executable_extensions; do
3907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 if test -n "$CC"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3921 $as_echo "$CC" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3929 if test -z "$ac_cv_prog_CC"; then
3931 # Extract the first word of "gcc", so it can be a program name with args.
3932 set dummy gcc
; ac_word
=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3936 $as_echo_n "(cached) " >&6
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir
=.
3946 for ac_exec_ext
in '' $ac_executable_extensions; do
3947 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_ac_ct_CC
="gcc"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3959 if test -n "$ac_ct_CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961 $as_echo "$ac_ct_CC" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3967 if test "x$ac_ct_CC" = x
; then
3970 case $cross_compiling:$ac_tool_warned in
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned
=yes ;;
3982 if test -z "$CC"; then
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3985 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_CC+:} false
; then :
3989 $as_echo_n "(cached) " >&6
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC
="$CC" # Let the user override the test.
3994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir
=.
3999 for ac_exec_ext
in '' $ac_executable_extensions; do
4000 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4023 if test -z "$CC"; then
4024 # Extract the first word of "cc", so it can be a program name with args.
4025 set dummy cc
; ac_word
=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_CC+:} false
; then :
4029 $as_echo_n "(cached) " >&6
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC
="$CC" # Let the user override the test.
4035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir
=.
4040 for ac_exec_ext
in '' $ac_executable_extensions; do
4041 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4043 ac_prog_rejected
=yes
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 if test $ac_prog_rejected = yes; then
4055 # We found a bogon in the path, so make sure we never use it.
4056 set dummy
$ac_cv_prog_CC
4058 if test $# != 0; then
4059 # We chose a different compiler from the bogus one.
4060 # However, it has the same basename, so the bogon will be chosen
4061 # first if we set CC to just the basename; use the full file name.
4063 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4069 if test -n "$CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071 $as_echo "$CC" >&6; }
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4079 if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
4081 for ac_prog
in cl.exe
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if ${ac_cv_prog_CC+:} false
; then :
4088 $as_echo_n "(cached) " >&6
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC
="$CC" # Let the user override the test.
4093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir
=.
4098 for ac_exec_ext
in '' $ac_executable_extensions; do
4099 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 if test -n "$CC"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 $as_echo "$CC" >&6; }
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4120 test -n "$CC" && break
4123 if test -z "$CC"; then
4125 for ac_prog
in cl.exe
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy
$ac_prog; ac_word
=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4132 $as_echo_n "(cached) " >&6
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir
=.
4142 for ac_exec_ext
in '' $ac_executable_extensions; do
4143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_ac_ct_CC
="$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4155 if test -n "$ac_ct_CC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4157 $as_echo "$ac_ct_CC" >&6; }
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4164 test -n "$ac_ct_CC" && break
4167 if test "x$ac_ct_CC" = x
; then
4170 case $cross_compiling:$ac_tool_warned in
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174 ac_tool_warned
=yes ;;
4183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185 as_fn_error $?
"no acceptable C compiler found in \$PATH
4186 See \`config.log' for more details" "$LINENO" 5; }
4188 # Provide some information about the compiler.
4189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4192 for ac_option
in --version -v -V -qversion; do
4193 { { ac_try
="$ac_compiler $ac_option >&5"
4195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 $as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4202 if test -s conftest.err; then
4204 ... rest of stderr output deleted ...
4205 10q' conftest.err >conftest.er1
4206 cat conftest.er1 >&5
4208 rm -f conftest.er1 conftest.err
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4224 ac_clean_files_save=$ac_clean_files
4225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4226 # Try to create an executable without -o first, disregard a.out.
4227 # It will help us diagnose broken compilers, and finding out an intuition
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4230 $as_echo_n "checking whether the C compiler works... " >&6; }
4231 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4233 # The possible output files:
4234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4237 for ac_file in $ac_files
4240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4246 if { { ac_try="$ac_link_default"
4248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4249 *) ac_try_echo
=$ac_try;;
4251 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_link_default") 2>&5
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }; then :
4257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4258 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4259 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4260 # so that the user can short-circuit this test for compilers unknown to
4262 for ac_file
in $ac_files ''
4264 test -f "$ac_file" ||
continue
4266 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4269 # We found the default executable, but exeext='' is most
4273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4275 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4277 # We set ac_cv_exeext here because the later test for it is not
4278 # safe: cross compilers may not add the suffix if given an `-o'
4279 # argument, so we may need to know it at that point already.
4280 # Even if this section looks crufty: it has the advantage of
4287 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4292 if test -z "$ac_file"; then :
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.
$ac_ext >&5
4298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error
77 "C compiler cannot create executables
4301 See \`config.log' for more details" "$LINENO" 5; }
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4304 $as_echo "yes" >&6; }
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4307 $as_echo_n "checking for C compiler default output file name... " >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4309 $as_echo "$ac_file" >&6; }
4310 ac_exeext
=$ac_cv_exeext
4312 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4313 ac_clean_files
=$ac_clean_files_save
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4315 $as_echo_n "checking for suffix of executables... " >&6; }
4316 if { { ac_try
="$ac_link"
4318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_link") 2>&5
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }; then :
4327 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4328 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4329 # work properly (i.e., refer to `conftest.exe'), while it won't with
4331 for ac_file
in conftest.exe conftest conftest.
*; do
4332 test -f "$ac_file" ||
continue
4334 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4335 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4343 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4344 See \`config.log' for more details" "$LINENO" 5; }
4346 rm -f conftest conftest
$ac_cv_exeext
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4348 $as_echo "$ac_cv_exeext" >&6; }
4350 rm -f conftest.
$ac_ext
4351 EXEEXT
=$ac_cv_exeext
4353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4359 FILE *f = fopen ("conftest.out", "w");
4360 return ferror (f) || fclose (f) != 0;
4366 ac_clean_files
="$ac_clean_files conftest.out"
4367 # Check that the compiler produces executables we can run. If not, either
4368 # the compiler is broken, or we cross compile.
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4370 $as_echo_n "checking whether we are cross compiling... " >&6; }
4371 if test "$cross_compiling" != yes; then
4372 { { ac_try
="$ac_link"
4374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_link") 2>&5
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }
4383 if { ac_try='./conftest$ac_cv_exeext'
4384 { { case "(($ac_try" in
4385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4386 *) ac_try_echo
=$ac_try;;
4388 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 $as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_try") 2>&5
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }; }; then
4396 if test "$cross_compiling" = maybe
; then
4399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401 as_fn_error $?
"cannot run C compiled programs.
4402 If you meant to cross compile, use \`--host'.
4403 See \`config.log' for more details" "$LINENO" 5; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4408 $as_echo "$cross_compiling" >&6; }
4410 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4411 ac_clean_files
=$ac_clean_files_save
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4413 $as_echo_n "checking for suffix of object files... " >&6; }
4414 if ${ac_cv_objext+:} false
; then :
4415 $as_echo_n "(cached) " >&6
4417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4428 rm -f conftest.o conftest.obj
4429 if { { ac_try
="$ac_compile"
4431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_compile") 2>&5
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }; then :
4440 for ac_file in conftest.o conftest.obj conftest.*; do
4441 test -f "$ac_file" || continue;
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4449 $as_echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
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 object files
: cannot compile
4455 See \
`config.log' for more details" "$LINENO" 5; }
4457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4460 $as_echo "$ac_cv_objext" >&6; }
4461 OBJEXT=$ac_cv_objext
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4465 if ${ac_cv_c_compiler_gnu+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4482 if ac_fn_c_try_compile "$LINENO"; then :
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4493 if test $ac_compiler_gnu = yes; then
4498 ac_test_CFLAGS=${CFLAGS+set}
4499 ac_save_CFLAGS=$CFLAGS
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4502 if ${ac_cv_prog_cc_g+:} false; then :
4503 $as_echo_n "(cached) " >&6
4505 ac_save_c_werror_flag=$ac_c_werror_flag
4506 ac_c_werror_flag=yes
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4520 if ac_fn_c_try_compile "$LINENO"; then :
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4535 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_c_werror_flag=$ac_save_c_werror_flag
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4551 if ac_fn_c_try_compile "$LINENO"; then :
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 ac_c_werror_flag=$ac_save_c_werror_flag
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4562 $as_echo "$ac_cv_prog_cc_g" >&6; }
4563 if test "$ac_test_CFLAGS" = set; then
4564 CFLAGS=$ac_save_CFLAGS
4565 elif test $ac_cv_prog_cc_g = yes; then
4566 if test "$GCC" = yes; then
4572 if test "$GCC" = yes; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4580 if ${ac_cv_prog_cc_c89+:} false; then :
4581 $as_echo_n "(cached) " >&6
4583 ac_cv_prog_cc_c89=no
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4591 struct buf { int x; };
4592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4593 static char *e (p, i)
4599 static char *f (char * (*g) (char **, int), char **p, ...)
4604 s = g (p, va_arg (v,int));
4609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4610 function prototypes and stuff, but not '\xHH' hex character constants.
4611 These don't provoke an error unfortunately, instead are silently treated
4612 as 'x'. The following induces an error, until -std is added to get
4613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4614 array size at least. It's necessary to write '\x00'==0 to get something
4615 that's true only with -std. */
4616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4619 inside strings and character constants. */
4621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4623 int test (int i, double x);
4624 struct s1 {int (*f) (int a);};
4625 struct s2 {int (*f) (double a);};
4626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4640 CC="$ac_save_CC $ac_arg"
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_cv_prog_cc_c89=$ac_arg
4644 rm -f core conftest.err conftest.$ac_objext
4645 test "x$ac_cv_prog_cc_c89" != "xno" && break
4647 rm -f conftest.$ac_ext
4652 case "x$ac_cv_prog_cc_c89" in
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4655 $as_echo "none needed" >&6; } ;;
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4658 $as_echo "unsupported" >&6; } ;;
4660 CC="$CC $ac_cv_prog_cc_c89"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4664 if test "x$ac_cv_prog_cc_c89" != xno; then :
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 ac_cpp='$CXXCPP $CPPFLAGS'
4676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4679 if test -z "$CXX"; then
4680 if test -n "$CCC"; then
4683 if test -n "$ac_tool_prefix"; then
4684 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_CXX+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -n "$CXX"; then
4694 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 if test -n "$CXX"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4716 $as_echo "$CXX" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4723 test -n "$CXX" && break
4726 if test -z "$CXX"; then
4728 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4730 # Extract the first word of "$ac_prog", so it can be a program name with args.
4731 set dummy $ac_prog; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 if test -n "$ac_ct_CXX"; then
4738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_ac_ct_CXX="$ac_prog"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4758 if test -n "$ac_ct_CXX"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4760 $as_echo "$ac_ct_CXX" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4767 test -n "$ac_ct_CXX" && break
4770 if test "x$ac_ct_CXX" = x; then
4773 case $cross_compiling:$ac_tool_warned in
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4785 # Provide some information about the compiler.
4786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4789 for ac_option in --version -v -V -qversion; do
4790 { { ac_try="$ac_compiler $ac_option >&5"
4792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4793 *) ac_try_echo
=$ac_try;;
4795 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796 $as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4799 if test -s conftest.err
; then
4801 ... rest of stderr output deleted ...
4802 10q' conftest.err
>conftest.er1
4803 cat conftest.er1
>&5
4805 rm -f conftest.er1 conftest.err
4806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4811 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4812 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4813 $as_echo_n "(cached) " >&6
4815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4829 if ac_fn_cxx_try_compile
"$LINENO"; then :
4834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4835 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4839 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4840 if test $ac_compiler_gnu = yes; then
4845 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4846 ac_save_CXXFLAGS
=$CXXFLAGS
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4848 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4849 if ${ac_cv_prog_cxx_g+:} false
; then :
4850 $as_echo_n "(cached) " >&6
4852 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4853 ac_cxx_werror_flag
=yes
4856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4867 if ac_fn_cxx_try_compile
"$LINENO"; then :
4868 ac_cv_prog_cxx_g
=yes
4871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4882 if ac_fn_cxx_try_compile
"$LINENO"; then :
4885 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4898 if ac_fn_cxx_try_compile
"$LINENO"; then :
4899 ac_cv_prog_cxx_g
=yes
4901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4909 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4910 if test "$ac_test_CXXFLAGS" = set; then
4911 CXXFLAGS
=$ac_save_CXXFLAGS
4912 elif test $ac_cv_prog_cxx_g = yes; then
4913 if test "$GXX" = yes; then
4919 if test "$GXX" = yes; then
4926 ac_cpp
='$CPP $CPPFLAGS'
4927 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4936 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_GNATBIND+:} false
; then :
4940 $as_echo_n "(cached) " >&6
4942 if test -n "$GNATBIND"; then
4943 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir
=.
4950 for ac_exec_ext
in '' $ac_executable_extensions; do
4951 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 GNATBIND
=$ac_cv_prog_GNATBIND
4963 if test -n "$GNATBIND"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4965 $as_echo "$GNATBIND" >&6; }
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4973 if test -z "$ac_cv_prog_GNATBIND"; then
4974 ac_ct_GNATBIND
=$GNATBIND
4975 # Extract the first word of "gnatbind", so it can be a program name with args.
4976 set dummy gnatbind
; ac_word
=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4980 $as_echo_n "(cached) " >&6
4982 if test -n "$ac_ct_GNATBIND"; then
4983 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir
=.
4990 for ac_exec_ext
in '' $ac_executable_extensions; do
4991 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5003 if test -n "$ac_ct_GNATBIND"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5005 $as_echo "$ac_ct_GNATBIND" >&6; }
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5011 if test "x$ac_ct_GNATBIND" = x
; then
5014 case $cross_compiling:$ac_tool_warned in
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned
=yes ;;
5020 GNATBIND
=$ac_ct_GNATBIND
5023 GNATBIND
="$ac_cv_prog_GNATBIND"
5026 if test -n "$ac_tool_prefix"; then
5027 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5028 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5032 $as_echo_n "(cached) " >&6
5034 if test -n "$GNATMAKE"; then
5035 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir
=.
5042 for ac_exec_ext
in '' $ac_executable_extensions; do
5043 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 GNATMAKE
=$ac_cv_prog_GNATMAKE
5055 if test -n "$GNATMAKE"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5057 $as_echo "$GNATMAKE" >&6; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5065 if test -z "$ac_cv_prog_GNATMAKE"; then
5066 ac_ct_GNATMAKE
=$GNATMAKE
5067 # Extract the first word of "gnatmake", so it can be a program name with args.
5068 set dummy gnatmake
; ac_word
=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5072 $as_echo_n "(cached) " >&6
5074 if test -n "$ac_ct_GNATMAKE"; then
5075 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir
=.
5082 for ac_exec_ext
in '' $ac_executable_extensions; do
5083 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5095 if test -n "$ac_ct_GNATMAKE"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5097 $as_echo "$ac_ct_GNATMAKE" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5103 if test "x$ac_ct_GNATMAKE" = x
; then
5106 case $cross_compiling:$ac_tool_warned in
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110 ac_tool_warned
=yes ;;
5112 GNATMAKE
=$ac_ct_GNATMAKE
5115 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5119 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5120 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5121 $as_echo_n "(cached) " >&6
5123 cat >conftest.adb
<<EOF
5124 procedure conftest is begin null; end conftest;
5126 acx_cv_cc_gcc_supports_ada
=no
5127 # There is a bug in old released versions of GCC which causes the
5128 # driver to exit successfully when the appropriate language module
5129 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5130 # Therefore we must check for the error message as well as an
5131 # unsuccessful exit.
5132 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5133 # given a .adb file, but produce no object file. So we must check
5134 # if an object file was really produced to guard against this.
5135 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5136 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5137 acx_cv_cc_gcc_supports_ada
=yes
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5142 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5144 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5151 # Do configure tests with the C++ compiler, since that's what we build with.
5153 ac_cpp
='$CXXCPP $CPPFLAGS'
5154 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5159 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5160 # optimizations to be activated explicitly by the toplevel.
5162 */prev-gcc
/xgcc
*) ;;
5163 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5164 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5169 # Determine PICFLAG for target gnatlib.
5175 # PIC is the default on some targets or must not be used.
5177 # For darwin, common symbols are not allowed in MH_DYLIB files
5179 # If we are using a compiler supporting mdynamic-no-pic
5180 # and the option has been tested as safe to add, then cancel
5181 # it here, since the code generated is incompatible with shared
5183 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5184 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5188 # PIC is the default.
5191 # PIC is the default for 64-bit PA HP-UX.
5193 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5195 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5197 i
[34567]86-*-interix[3-9]*)
5198 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5199 # Instead, we relocate shared libraries at runtime.
5201 i
[34567]86-*-nto-qnx*)
5202 # QNX uses GNU C++, but need to define -shared option too, otherwise
5204 PICFLAG_FOR_TARGET
='-fPIC -shared'
5206 i
[34567]86-pc-msdosdjgpp*)
5207 # DJGPP does not support shared libraries at all.
5210 # On IA64 HP-UX, PIC is the default but the pic flag
5211 # sets the default TLS model and affects inlining.
5212 PICFLAG_FOR_TARGET
=-fPIC
5215 # PIC is the default.
5217 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5218 # All AIX code is PIC.
5221 # Some targets support both -fPIC and -fpic, but prefer the latter.
5223 i
[34567]86-*-* | x86_64-
*-*)
5224 PICFLAG_FOR_TARGET
=-fpic
5226 # FIXME: Override -fPIC default in libgcc only?
5227 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5228 PICFLAG_FOR_TARGET
=-fpic
5230 # FIXME: Simplify to sh*-*-netbsd*?
5231 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5232 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5233 PICFLAG_FOR_TARGET
=-fpic
5235 # Default to -fPIC unless specified otherwise.
5237 PICFLAG_FOR_TARGET
=-fPIC
5241 # If the user explicitly uses -fpic/-fPIC, keep that.
5242 case "${CFLAGS_FOR_TARGET}" in
5244 PICFLAG_FOR_TARGET
=-fpic
5247 PICFLAG_FOR_TARGET
=-fPIC
5253 # -------------------------
5254 # Check C compiler features
5255 # -------------------------
5259 ac_cpp
='$CXXCPP $CPPFLAGS'
5260 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5264 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5265 if test -z "$CXXCPP"; then
5266 if ${ac_cv_prog_CXXCPP+:} false
; then :
5267 $as_echo_n "(cached) " >&6
5269 # Double quotes because CXXCPP needs to be expanded
5270 for CXXCPP
in "$CXX -E" "/lib/cpp"
5273 for ac_cxx_preproc_warn_flag
in '' yes
5275 # Use a header file that comes with gcc, so configuring glibc
5276 # with a fresh cross-compiler works.
5277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5278 # <limits.h> exists even on freestanding compilers.
5279 # On the NeXT, cc -E runs the code through the compiler's parser,
5280 # not just through cpp. "Syntax error" is here to catch this case.
5281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5284 # include <limits.h>
5286 # include <assert.h>
5290 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5293 # Broken: fails on valid input.
5296 rm -f conftest.err conftest.i conftest.
$ac_ext
5298 # OK, works on sane cases. Now check whether nonexistent headers
5299 # can be detected and how.
5300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 #include <ac_nonexistent.h>
5304 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5305 # Broken: success on invalid input.
5308 # Passes both tests.
5312 rm -f conftest.err conftest.i conftest.
$ac_ext
5315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5316 rm -f conftest.i conftest.err conftest.
$ac_ext
5317 if $ac_preproc_ok; then :
5322 ac_cv_prog_CXXCPP
=$CXXCPP
5325 CXXCPP
=$ac_cv_prog_CXXCPP
5327 ac_cv_prog_CXXCPP
=$CXXCPP
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5330 $as_echo "$CXXCPP" >&6; }
5332 for ac_cxx_preproc_warn_flag
in '' yes
5334 # Use a header file that comes with gcc, so configuring glibc
5335 # with a fresh cross-compiler works.
5336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5337 # <limits.h> exists even on freestanding compilers.
5338 # On the NeXT, cc -E runs the code through the compiler's parser,
5339 # not just through cpp. "Syntax error" is here to catch this case.
5340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5343 # include <limits.h>
5345 # include <assert.h>
5349 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5352 # Broken: fails on valid input.
5355 rm -f conftest.err conftest.i conftest.
$ac_ext
5357 # OK, works on sane cases. Now check whether nonexistent headers
5358 # can be detected and how.
5359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <ac_nonexistent.h>
5363 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5364 # Broken: success on invalid input.
5367 # Passes both tests.
5371 rm -f conftest.err conftest.i conftest.
$ac_ext
5374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5375 rm -f conftest.i conftest.err conftest.
$ac_ext
5376 if $ac_preproc_ok; then :
5379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5381 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5382 See \`config.log' for more details" "$LINENO" 5; }
5386 ac_cpp
='$CXXCPP $CPPFLAGS'
5387 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5393 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5394 if ${ac_cv_path_GREP+:} false
; then :
5395 $as_echo_n "(cached) " >&6
5397 if test -z "$GREP"; then
5398 ac_path_GREP_found
=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5401 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5404 test -z "$as_dir" && as_dir
=.
5405 for ac_prog
in grep ggrep
; do
5406 for ac_exec_ext
in '' $ac_executable_extensions; do
5407 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5408 as_fn_executable_p
"$ac_path_GREP" ||
continue
5409 # Check for GNU ac_path_GREP and select it if it is found.
5410 # Check for GNU $ac_path_GREP
5411 case `"$ac_path_GREP" --version 2>&1` in
5413 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5416 $as_echo_n 0123456789 >"conftest.in"
5419 cat "conftest.in" "conftest.in" >"conftest.tmp"
5420 mv "conftest.tmp" "conftest.in"
5421 cp "conftest.in" "conftest.nl"
5422 $as_echo 'GREP' >> "conftest.nl"
5423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5424 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5425 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5427 # Best one so far, save it but keep looking for a better one
5428 ac_cv_path_GREP
="$ac_path_GREP"
5429 ac_path_GREP_max
=$ac_count
5431 # 10*(2^10) chars as input seems more than enough
5432 test $ac_count -gt 10 && break
5434 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5437 $ac_path_GREP_found && break 3
5442 if test -z "$ac_cv_path_GREP"; then
5443 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5446 ac_cv_path_GREP
=$GREP
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5451 $as_echo "$ac_cv_path_GREP" >&6; }
5452 GREP
="$ac_cv_path_GREP"
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5456 $as_echo_n "checking for egrep... " >&6; }
5457 if ${ac_cv_path_EGREP+:} false
; then :
5458 $as_echo_n "(cached) " >&6
5460 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5461 then ac_cv_path_EGREP
="$GREP -E"
5463 if test -z "$EGREP"; then
5464 ac_path_EGREP_found
=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5467 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5470 test -z "$as_dir" && as_dir
=.
5471 for ac_prog
in egrep; do
5472 for ac_exec_ext
in '' $ac_executable_extensions; do
5473 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5474 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5475 # Check for GNU ac_path_EGREP and select it if it is found.
5476 # Check for GNU $ac_path_EGREP
5477 case `"$ac_path_EGREP" --version 2>&1` in
5479 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5482 $as_echo_n 0123456789 >"conftest.in"
5485 cat "conftest.in" "conftest.in" >"conftest.tmp"
5486 mv "conftest.tmp" "conftest.in"
5487 cp "conftest.in" "conftest.nl"
5488 $as_echo 'EGREP' >> "conftest.nl"
5489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5490 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5491 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5493 # Best one so far, save it but keep looking for a better one
5494 ac_cv_path_EGREP
="$ac_path_EGREP"
5495 ac_path_EGREP_max
=$ac_count
5497 # 10*(2^10) chars as input seems more than enough
5498 test $ac_count -gt 10 && break
5500 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5503 $ac_path_EGREP_found && break 3
5508 if test -z "$ac_cv_path_EGREP"; then
5509 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5512 ac_cv_path_EGREP
=$EGREP
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5518 $as_echo "$ac_cv_path_EGREP" >&6; }
5519 EGREP
="$ac_cv_path_EGREP"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5523 $as_echo_n "checking for ANSI C header files... " >&6; }
5524 if ${ac_cv_header_stdc+:} false
; then :
5525 $as_echo_n "(cached) " >&6
5527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5542 if ac_fn_cxx_try_compile
"$LINENO"; then :
5543 ac_cv_header_stdc
=yes
5545 ac_cv_header_stdc
=no
5547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5549 if test $ac_cv_header_stdc = yes; then
5550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5557 $EGREP "memchr" >/dev
/null
2>&1; then :
5560 ac_cv_header_stdc
=no
5566 if test $ac_cv_header_stdc = yes; then
5567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5574 $EGREP "free" >/dev
/null
2>&1; then :
5577 ac_cv_header_stdc
=no
5583 if test $ac_cv_header_stdc = yes; then
5584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5585 if test "$cross_compiling" = yes; then :
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5592 #if ((' ' & 0x0FF) == 0x020)
5593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5596 # define ISLOWER(c) \
5597 (('a' <= (c) && (c) <= 'i') \
5598 || ('j' <= (c) && (c) <= 'r') \
5599 || ('s' <= (c) && (c) <= 'z'))
5600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5608 for (i = 0; i < 256; i++)
5609 if (XOR (islower (i), ISLOWER (i))
5610 || toupper (i) != TOUPPER (i))
5615 if ac_fn_cxx_try_run
"$LINENO"; then :
5618 ac_cv_header_stdc
=no
5620 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5621 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5627 $as_echo "$ac_cv_header_stdc" >&6; }
5628 if test $ac_cv_header_stdc = yes; then
5630 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5634 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5635 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5636 inttypes.h stdint.h unistd.h
5638 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5639 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5641 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5642 cat >>confdefs.h
<<_ACEOF
5643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5652 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5653 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5660 if test "$MINIX" = yes; then
5662 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5665 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5668 $as_echo "#define _MINIX 1" >>confdefs.h
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5674 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5675 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5676 $as_echo_n "(cached) " >&6
5678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5681 # define __EXTENSIONS__ 1
5682 $ac_includes_default
5691 if ac_fn_cxx_try_compile
"$LINENO"; then :
5692 ac_cv_safe_to_define___extensions__
=yes
5694 ac_cv_safe_to_define___extensions__
=no
5696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5699 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5700 test $ac_cv_safe_to_define___extensions__ = yes &&
5701 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5703 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5705 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5707 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5709 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5713 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5715 ac_cpp
='$CXXCPP $CPPFLAGS'
5716 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5722 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5723 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5724 $as_echo_n "(cached) " >&6
5726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5730 // If the compiler admits that it is not ready for C++11, why torture it?
5731 // Hopefully, this will speed up the test.
5735 #error "This is not a C++ compiler"
5737 #elif __cplusplus < 201103L
5739 #error "This is not a C++11 compiler"
5746 namespace test_static_assert
5749 template <typename T>
5752 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5757 namespace test_final_override
5766 struct Derived : public Base
5768 virtual ~Derived() override {}
5769 virtual void f() override {}
5774 namespace test_double_right_angle_brackets
5777 template < typename T >
5780 typedef check<void> single_type;
5781 typedef check<check<void>> double_type;
5782 typedef check<check<check<void>>> triple_type;
5783 typedef check<check<check<check<void>>>> quadruple_type;
5787 namespace test_decltype
5800 namespace test_type_deduction
5803 template < typename T1, typename T2 >
5806 static const bool value = false;
5809 template < typename T >
5810 struct is_same<T, T>
5812 static const bool value = true;
5815 template < typename T1, typename T2 >
5817 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5823 test(const int c, volatile int v)
5825 static_assert(is_same<int, decltype(0)>::value == true, "");
5826 static_assert(is_same<int, decltype(c)>::value == false, "");
5827 static_assert(is_same<int, decltype(v)>::value == false, "");
5830 auto sumi = ac + av + 'x';
5831 auto sumf = ac + av + 1.0;
5832 static_assert(is_same<int, decltype(ac)>::value == true, "");
5833 static_assert(is_same<int, decltype(av)>::value == true, "");
5834 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5835 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5836 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5837 return (sumf > 0.0) ? sumi : add(c, v);
5842 namespace test_noexcept
5845 int f() { return 0; }
5846 int g() noexcept { return 0; }
5848 static_assert(noexcept(f()) == false, "");
5849 static_assert(noexcept(g()) == true, "");
5853 namespace test_constexpr
5856 template < typename CharT >
5857 unsigned long constexpr
5858 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5860 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5863 template < typename CharT >
5864 unsigned long constexpr
5865 strlen_c(const CharT *const s) noexcept
5867 return strlen_c_r(s, 0UL);
5870 static_assert(strlen_c("") == 0UL, "");
5871 static_assert(strlen_c("1") == 1UL, "");
5872 static_assert(strlen_c("example") == 7UL, "");
5873 static_assert(strlen_c("another\0example") == 7UL, "");
5877 namespace test_rvalue_references
5883 static constexpr int value = N;
5886 answer<1> f(int&) { return answer<1>(); }
5887 answer<2> f(const int&) { return answer<2>(); }
5888 answer<3> f(int&&) { return answer<3>(); }
5895 static_assert(decltype(f(i))::value == 1, "");
5896 static_assert(decltype(f(c))::value == 2, "");
5897 static_assert(decltype(f(0))::value == 3, "");
5902 namespace test_uniform_initialization
5907 static const int zero {};
5908 static const int one {1};
5911 static_assert(test::zero == 0, "");
5912 static_assert(test::one == 1, "");
5916 namespace test_lambdas
5922 auto lambda1 = [](){};
5923 auto lambda2 = lambda1;
5931 auto a = [](int i, int j){ return i + j; }(1, 2);
5932 auto b = []() -> int { return '0'; }();
5933 auto c = [=](){ return a + b; }();
5934 auto d = [&](){ return c; }();
5935 auto e = [a, &b](int x) mutable {
5936 const auto identity = [](int y){ return y; };
5937 for (auto i = 0; i < a; ++i)
5939 return x + identity(a + b);
5941 return a + b + c + d + e;
5947 const auto nullary = [](){ return 0; };
5948 const auto unary = [](int x){ return x; };
5949 using nullary_t = decltype(nullary);
5950 using unary_t = decltype(unary);
5951 const auto higher1st = [](nullary_t f){ return f(); };
5952 const auto higher2nd = [unary](nullary_t f1){
5953 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5955 return higher1st(nullary) + higher2nd(nullary)(unary);
5960 namespace test_variadic_templates
5966 template <int N0, int... N1toN>
5967 struct sum<N0, N1toN...>
5969 static constexpr auto value = N0 + sum<N1toN...>::value;
5975 static constexpr auto value = 0;
5978 static_assert(sum<>::value == 0, "");
5979 static_assert(sum<1>::value == 1, "");
5980 static_assert(sum<23>::value == 23, "");
5981 static_assert(sum<1, 2>::value == 3, "");
5982 static_assert(sum<5, 5, 11>::value == 21, "");
5983 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5987 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5988 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5990 namespace test_template_alias_sfinae
5995 template<typename T>
5996 using member = typename T::member_type;
5998 template<typename T>
6001 template<typename T>
6002 void func(member<T>*) {}
6006 void test() { func<foo>(0); }
6010 } // namespace cxx11
6012 #endif // __cplusplus >= 201103L
6017 if ac_fn_cxx_try_compile
"$LINENO"; then :
6018 ax_cv_cxx_compile_cxx11
=yes
6020 ax_cv_cxx_compile_cxx11
=no
6022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6025 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6026 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6030 if test x
$ac_success = xno
; then
6031 for alternative
in ${ax_cxx_compile_alternatives}; do
6032 switch
="-std=gnu++${alternative}"
6033 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6035 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6036 if eval \
${$cachevar+:} false
; then :
6037 $as_echo_n "(cached) " >&6
6041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6045 // If the compiler admits that it is not ready for C++11, why torture it?
6046 // Hopefully, this will speed up the test.
6050 #error "This is not a C++ compiler"
6052 #elif __cplusplus < 201103L
6054 #error "This is not a C++11 compiler"
6061 namespace test_static_assert
6064 template <typename T>
6067 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6072 namespace test_final_override
6081 struct Derived : public Base
6083 virtual ~Derived() override {}
6084 virtual void f() override {}
6089 namespace test_double_right_angle_brackets
6092 template < typename T >
6095 typedef check<void> single_type;
6096 typedef check<check<void>> double_type;
6097 typedef check<check<check<void>>> triple_type;
6098 typedef check<check<check<check<void>>>> quadruple_type;
6102 namespace test_decltype
6115 namespace test_type_deduction
6118 template < typename T1, typename T2 >
6121 static const bool value = false;
6124 template < typename T >
6125 struct is_same<T, T>
6127 static const bool value = true;
6130 template < typename T1, typename T2 >
6132 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6138 test(const int c, volatile int v)
6140 static_assert(is_same<int, decltype(0)>::value == true, "");
6141 static_assert(is_same<int, decltype(c)>::value == false, "");
6142 static_assert(is_same<int, decltype(v)>::value == false, "");
6145 auto sumi = ac + av + 'x';
6146 auto sumf = ac + av + 1.0;
6147 static_assert(is_same<int, decltype(ac)>::value == true, "");
6148 static_assert(is_same<int, decltype(av)>::value == true, "");
6149 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6150 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6151 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6152 return (sumf > 0.0) ? sumi : add(c, v);
6157 namespace test_noexcept
6160 int f() { return 0; }
6161 int g() noexcept { return 0; }
6163 static_assert(noexcept(f()) == false, "");
6164 static_assert(noexcept(g()) == true, "");
6168 namespace test_constexpr
6171 template < typename CharT >
6172 unsigned long constexpr
6173 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6175 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6178 template < typename CharT >
6179 unsigned long constexpr
6180 strlen_c(const CharT *const s) noexcept
6182 return strlen_c_r(s, 0UL);
6185 static_assert(strlen_c("") == 0UL, "");
6186 static_assert(strlen_c("1") == 1UL, "");
6187 static_assert(strlen_c("example") == 7UL, "");
6188 static_assert(strlen_c("another\0example") == 7UL, "");
6192 namespace test_rvalue_references
6198 static constexpr int value = N;
6201 answer<1> f(int&) { return answer<1>(); }
6202 answer<2> f(const int&) { return answer<2>(); }
6203 answer<3> f(int&&) { return answer<3>(); }
6210 static_assert(decltype(f(i))::value == 1, "");
6211 static_assert(decltype(f(c))::value == 2, "");
6212 static_assert(decltype(f(0))::value == 3, "");
6217 namespace test_uniform_initialization
6222 static const int zero {};
6223 static const int one {1};
6226 static_assert(test::zero == 0, "");
6227 static_assert(test::one == 1, "");
6231 namespace test_lambdas
6237 auto lambda1 = [](){};
6238 auto lambda2 = lambda1;
6246 auto a = [](int i, int j){ return i + j; }(1, 2);
6247 auto b = []() -> int { return '0'; }();
6248 auto c = [=](){ return a + b; }();
6249 auto d = [&](){ return c; }();
6250 auto e = [a, &b](int x) mutable {
6251 const auto identity = [](int y){ return y; };
6252 for (auto i = 0; i < a; ++i)
6254 return x + identity(a + b);
6256 return a + b + c + d + e;
6262 const auto nullary = [](){ return 0; };
6263 const auto unary = [](int x){ return x; };
6264 using nullary_t = decltype(nullary);
6265 using unary_t = decltype(unary);
6266 const auto higher1st = [](nullary_t f){ return f(); };
6267 const auto higher2nd = [unary](nullary_t f1){
6268 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6270 return higher1st(nullary) + higher2nd(nullary)(unary);
6275 namespace test_variadic_templates
6281 template <int N0, int... N1toN>
6282 struct sum<N0, N1toN...>
6284 static constexpr auto value = N0 + sum<N1toN...>::value;
6290 static constexpr auto value = 0;
6293 static_assert(sum<>::value == 0, "");
6294 static_assert(sum<1>::value == 1, "");
6295 static_assert(sum<23>::value == 23, "");
6296 static_assert(sum<1, 2>::value == 3, "");
6297 static_assert(sum<5, 5, 11>::value == 21, "");
6298 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6302 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6303 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6305 namespace test_template_alias_sfinae
6310 template<typename T>
6311 using member = typename T::member_type;
6313 template<typename T>
6316 template<typename T>
6317 void func(member<T>*) {}
6321 void test() { func<foo>(0); }
6325 } // namespace cxx11
6327 #endif // __cplusplus >= 201103L
6332 if ac_fn_cxx_try_compile
"$LINENO"; then :
6337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6340 eval ac_res
=\$
$cachevar
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6342 $as_echo "$ac_res" >&6; }
6343 if eval test x\$
$cachevar = xyes
; then
6345 if test -n "$CXXCPP" ; then
6346 CXXCPP
="$CXXCPP $switch"
6354 if test x
$ac_success = xno
; then
6355 for alternative
in ${ax_cxx_compile_alternatives}; do
6356 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6357 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6359 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6360 if eval \${$cachevar+:} false; then :
6361 $as_echo_n "(cached
) " >&6
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6369 // If the compiler admits that it is not ready for C++11, why torture it?
6370 // Hopefully, this will speed up the test.
6374 #error "This is not a C
++ compiler
"
6376 #elif __cplusplus < 201103L
6378 #error "This is not a C
++11 compiler
"
6385 namespace test_static_assert
6388 template <typename T>
6391 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6396 namespace test_final_override
6405 struct Derived : public Base
6407 virtual ~Derived() override {}
6408 virtual void f() override {}
6413 namespace test_double_right_angle_brackets
6416 template < typename T >
6419 typedef check<void> single_type;
6420 typedef check<check<void>> double_type;
6421 typedef check<check<check<void>>> triple_type;
6422 typedef check<check<check<check<void>>>> quadruple_type;
6426 namespace test_decltype
6439 namespace test_type_deduction
6442 template < typename T1, typename T2 >
6445 static const bool value = false;
6448 template < typename T >
6449 struct is_same<T, T>
6451 static const bool value = true;
6454 template < typename T1, typename T2 >
6456 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6462 test(const int c, volatile int v)
6464 static_assert(is_same<int, decltype(0)>::value == true, "");
6465 static_assert(is_same<int, decltype(c)>::value == false, "");
6466 static_assert(is_same<int, decltype(v)>::value == false, "");
6469 auto sumi = ac + av + 'x';
6470 auto sumf = ac + av + 1.0;
6471 static_assert(is_same<int, decltype(ac)>::value == true, "");
6472 static_assert(is_same<int, decltype(av)>::value == true, "");
6473 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6474 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6475 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6476 return (sumf > 0.0) ? sumi : add(c, v);
6481 namespace test_noexcept
6484 int f() { return 0; }
6485 int g() noexcept { return 0; }
6487 static_assert(noexcept(f()) == false, "");
6488 static_assert(noexcept(g()) == true, "");
6492 namespace test_constexpr
6495 template < typename CharT >
6496 unsigned long constexpr
6497 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6499 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6502 template < typename CharT >
6503 unsigned long constexpr
6504 strlen_c(const CharT *const s) noexcept
6506 return strlen_c_r(s, 0UL);
6509 static_assert(strlen_c("") == 0UL, "");
6510 static_assert(strlen_c("1") == 1UL, "");
6511 static_assert(strlen_c("example
") == 7UL, "");
6512 static_assert(strlen_c("another\
0example
") == 7UL, "");
6516 namespace test_rvalue_references
6522 static constexpr int value = N;
6525 answer<1> f(int&) { return answer<1>(); }
6526 answer<2> f(const int&) { return answer<2>(); }
6527 answer<3> f(int&&) { return answer<3>(); }
6534 static_assert(decltype(f(i))::value == 1, "");
6535 static_assert(decltype(f(c))::value == 2, "");
6536 static_assert(decltype(f(0))::value == 3, "");
6541 namespace test_uniform_initialization
6546 static const int zero {};
6547 static const int one {1};
6550 static_assert(test::zero == 0, "");
6551 static_assert(test::one == 1, "");
6555 namespace test_lambdas
6561 auto lambda1 = [](){};
6562 auto lambda2 = lambda1;
6570 auto a = [](int i, int j){ return i + j; }(1, 2);
6571 auto b = []() -> int { return '0'; }();
6572 auto c = [=](){ return a + b; }();
6573 auto d = [&](){ return c; }();
6574 auto e = [a, &b](int x) mutable {
6575 const auto identity = [](int y){ return y; };
6576 for (auto i = 0; i < a; ++i)
6578 return x + identity(a + b);
6580 return a + b + c + d + e;
6586 const auto nullary = [](){ return 0; };
6587 const auto unary = [](int x){ return x; };
6588 using nullary_t = decltype(nullary);
6589 using unary_t = decltype(unary);
6590 const auto higher1st = [](nullary_t f){ return f(); };
6591 const auto higher2nd = [unary](nullary_t f1){
6592 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6594 return higher1st(nullary) + higher2nd(nullary)(unary);
6599 namespace test_variadic_templates
6605 template <int N0, int... N1toN>
6606 struct sum<N0, N1toN...>
6608 static constexpr auto value = N0 + sum<N1toN...>::value;
6614 static constexpr auto value = 0;
6617 static_assert(sum<>::value == 0, "");
6618 static_assert(sum<1>::value == 1, "");
6619 static_assert(sum<23>::value == 23, "");
6620 static_assert(sum<1, 2>::value == 3, "");
6621 static_assert(sum<5, 5, 11>::value == 21, "");
6622 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6626 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6627 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6629 namespace test_template_alias_sfinae
6634 template<typename T>
6635 using member = typename T::member_type;
6637 template<typename T>
6640 template<typename T>
6641 void func(member<T>*) {}
6645 void test() { func<foo>(0); }
6649 } // namespace cxx11
6651 #endif // __cplusplus >= 201103L
6656 if ac_fn_cxx_try_compile "$LINENO"; then :
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 eval ac_res=\$$cachevar
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6666 $as_echo "$ac_res" >&6; }
6667 if eval test x\$$cachevar = xyes; then
6669 if test -n "$CXXCPP" ; then
6670 CXXCPP="$CXXCPP $switch"
6676 if test x$ac_success = xyes; then
6682 ac_cpp='$CXXCPP $CPPFLAGS'
6683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6687 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6688 if test x$ac_success = xno; then
6689 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6692 if test x$ac_success = xno; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6695 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6699 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6706 ac_cpp
='$CPP $CPPFLAGS'
6707 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6711 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6712 # On Suns, sometimes $CPP names a directory.
6713 if test -n "$CPP" && test -d "$CPP"; then
6716 if test -z "$CPP"; then
6717 if ${ac_cv_prog_CPP+:} false
; then :
6718 $as_echo_n "(cached) " >&6
6720 # Double quotes because CPP needs to be expanded
6721 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6724 for ac_c_preproc_warn_flag
in '' yes
6726 # Use a header file that comes with gcc, so configuring glibc
6727 # with a fresh cross-compiler works.
6728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6729 # <limits.h> exists even on freestanding compilers.
6730 # On the NeXT, cc -E runs the code through the compiler's parser,
6731 # not just through cpp. "Syntax error" is here to catch this case.
6732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6735 # include <limits.h>
6737 # include <assert.h>
6741 if ac_fn_c_try_cpp
"$LINENO"; then :
6744 # Broken: fails on valid input.
6747 rm -f conftest.err conftest.i conftest.
$ac_ext
6749 # OK, works on sane cases. Now check whether nonexistent headers
6750 # can be detected and how.
6751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #include <ac_nonexistent.h>
6755 if ac_fn_c_try_cpp
"$LINENO"; then :
6756 # Broken: success on invalid input.
6759 # Passes both tests.
6763 rm -f conftest.err conftest.i conftest.
$ac_ext
6766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6767 rm -f conftest.i conftest.err conftest.
$ac_ext
6768 if $ac_preproc_ok; then :
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6781 $as_echo "$CPP" >&6; }
6783 for ac_c_preproc_warn_flag
in '' yes
6785 # Use a header file that comes with gcc, so configuring glibc
6786 # with a fresh cross-compiler works.
6787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6788 # <limits.h> exists even on freestanding compilers.
6789 # On the NeXT, cc -E runs the code through the compiler's parser,
6790 # not just through cpp. "Syntax error" is here to catch this case.
6791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6794 # include <limits.h>
6796 # include <assert.h>
6800 if ac_fn_c_try_cpp
"$LINENO"; then :
6803 # Broken: fails on valid input.
6806 rm -f conftest.err conftest.i conftest.
$ac_ext
6808 # OK, works on sane cases. Now check whether nonexistent headers
6809 # can be detected and how.
6810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <ac_nonexistent.h>
6814 if ac_fn_c_try_cpp
"$LINENO"; then :
6815 # Broken: success on invalid input.
6818 # Passes both tests.
6822 rm -f conftest.err conftest.i conftest.
$ac_ext
6825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6826 rm -f conftest.i conftest.err conftest.
$ac_ext
6827 if $ac_preproc_ok; then :
6830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6832 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6833 See \`config.log' for more details" "$LINENO" 5; }
6837 ac_cpp
='$CXXCPP $CPPFLAGS'
6838 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6843 $as_echo_n "checking for inline... " >&6; }
6844 if ${ac_cv_c_inline+:} false
; then :
6845 $as_echo_n "(cached) " >&6
6848 for ac_kw
in inline __inline__ __inline
; do
6849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6853 static $ac_kw foo_t static_foo () {return 0; }
6854 $ac_kw foo_t foo () {return 0; }
6858 if ac_fn_cxx_try_compile
"$LINENO"; then :
6859 ac_cv_c_inline
=$ac_kw
6861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6862 test "$ac_cv_c_inline" != no
&& break
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6867 $as_echo "$ac_cv_c_inline" >&6; }
6869 case $ac_cv_c_inline in
6872 case $ac_cv_c_inline in
6874 *) ac_val
=$ac_cv_c_inline;;
6876 cat >>confdefs.h
<<_ACEOF
6878 #define inline $ac_val
6885 # Check whether --enable-largefile was given.
6886 if test "${enable_largefile+set}" = set; then :
6887 enableval
=$enable_largefile;
6890 if test "$enable_largefile" != no
; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6893 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6894 if ${ac_cv_sys_largefile_CC+:} false
; then :
6895 $as_echo_n "(cached) " >&6
6897 ac_cv_sys_largefile_CC
=no
6898 if test "$GCC" != yes; then
6901 # IRIX 6.2 and later do not support large files by default,
6902 # so use the C compiler's -n32 option if that helps.
6903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905 #include <sys/types.h>
6906 /* Check that off_t can represent 2**63 - 1 correctly.
6907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6908 since some C++ compilers masquerading as C compilers
6909 incorrectly reject 9223372036854775807. */
6910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6912 && LARGE_OFF_T % 2147483647 == 1)
6922 if ac_fn_cxx_try_compile
"$LINENO"; then :
6925 rm -f core conftest.err conftest.
$ac_objext
6927 if ac_fn_cxx_try_compile
"$LINENO"; then :
6928 ac_cv_sys_largefile_CC
=' -n32'; break
6930 rm -f core conftest.err conftest.
$ac_objext
6934 rm -f conftest.
$ac_ext
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6938 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6939 if test "$ac_cv_sys_largefile_CC" != no
; then
6940 CC
=$CC$ac_cv_sys_largefile_CC
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6944 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6945 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6946 $as_echo_n "(cached) " >&6
6949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #include <sys/types.h>
6952 /* Check that off_t can represent 2**63 - 1 correctly.
6953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6954 since some C++ compilers masquerading as C compilers
6955 incorrectly reject 9223372036854775807. */
6956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6958 && LARGE_OFF_T % 2147483647 == 1)
6968 if ac_fn_cxx_try_compile
"$LINENO"; then :
6969 ac_cv_sys_file_offset_bits
=no
; break
6971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #define _FILE_OFFSET_BITS 64
6975 #include <sys/types.h>
6976 /* Check that off_t can represent 2**63 - 1 correctly.
6977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6978 since some C++ compilers masquerading as C compilers
6979 incorrectly reject 9223372036854775807. */
6980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6982 && LARGE_OFF_T % 2147483647 == 1)
6992 if ac_fn_cxx_try_compile
"$LINENO"; then :
6993 ac_cv_sys_file_offset_bits
=64; break
6995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6996 ac_cv_sys_file_offset_bits
=unknown
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7001 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7002 case $ac_cv_sys_file_offset_bits in #(
7005 cat >>confdefs.h
<<_ACEOF
7006 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7011 if test $ac_cv_sys_file_offset_bits = unknown
; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7013 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7014 if ${ac_cv_sys_large_files+:} false
; then :
7015 $as_echo_n "(cached) " >&6
7018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 #include <sys/types.h>
7021 /* Check that off_t can represent 2**63 - 1 correctly.
7022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7023 since some C++ compilers masquerading as C compilers
7024 incorrectly reject 9223372036854775807. */
7025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7027 && LARGE_OFF_T % 2147483647 == 1)
7037 if ac_fn_cxx_try_compile
"$LINENO"; then :
7038 ac_cv_sys_large_files
=no
; break
7040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 #define _LARGE_FILES 1
7044 #include <sys/types.h>
7045 /* Check that off_t can represent 2**63 - 1 correctly.
7046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7047 since some C++ compilers masquerading as C compilers
7048 incorrectly reject 9223372036854775807. */
7049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7051 && LARGE_OFF_T % 2147483647 == 1)
7061 if ac_fn_cxx_try_compile
"$LINENO"; then :
7062 ac_cv_sys_large_files
=1; break
7064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7065 ac_cv_sys_large_files
=unknown
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7070 $as_echo "$ac_cv_sys_large_files" >&6; }
7071 case $ac_cv_sys_large_files in #(
7074 cat >>confdefs.h
<<_ACEOF
7075 #define _LARGE_FILES $ac_cv_sys_large_files
7086 # sizeof(char) is 1 by definition.
7087 # The cast to long int works around a bug in the HP C Compiler
7088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7090 # This bug is HP SR number 8606223364.
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7092 $as_echo_n "checking size of void *... " >&6; }
7093 if ${ac_cv_sizeof_void_p+:} false
; then :
7094 $as_echo_n "(cached) " >&6
7096 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
7099 if test "$ac_cv_type_void_p" = yes; then
7100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7102 as_fn_error
77 "cannot compute sizeof (void *)
7103 See \`config.log' for more details" "$LINENO" 5; }
7105 ac_cv_sizeof_void_p
=0
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7111 $as_echo "$ac_cv_sizeof_void_p" >&6; }
7115 cat >>confdefs.h
<<_ACEOF
7116 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7120 # The cast to long int works around a bug in the HP C Compiler
7121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7123 # This bug is HP SR number 8606223364.
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7125 $as_echo_n "checking size of short... " >&6; }
7126 if ${ac_cv_sizeof_short+:} false
; then :
7127 $as_echo_n "(cached) " >&6
7129 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7132 if test "$ac_cv_type_short" = yes; then
7133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7135 as_fn_error
77 "cannot compute sizeof (short)
7136 See \`config.log' for more details" "$LINENO" 5; }
7138 ac_cv_sizeof_short
=0
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7144 $as_echo "$ac_cv_sizeof_short" >&6; }
7148 cat >>confdefs.h
<<_ACEOF
7149 #define SIZEOF_SHORT $ac_cv_sizeof_short
7153 # The cast to long int works around a bug in the HP C Compiler
7154 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7155 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7156 # This bug is HP SR number 8606223364.
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7158 $as_echo_n "checking size of int... " >&6; }
7159 if ${ac_cv_sizeof_int+:} false
; then :
7160 $as_echo_n "(cached) " >&6
7162 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7165 if test "$ac_cv_type_int" = yes; then
7166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7168 as_fn_error
77 "cannot compute sizeof (int)
7169 See \`config.log' for more details" "$LINENO" 5; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7177 $as_echo "$ac_cv_sizeof_int" >&6; }
7181 cat >>confdefs.h
<<_ACEOF
7182 #define SIZEOF_INT $ac_cv_sizeof_int
7186 # The cast to long int works around a bug in the HP C Compiler
7187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7189 # This bug is HP SR number 8606223364.
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7191 $as_echo_n "checking size of long... " >&6; }
7192 if ${ac_cv_sizeof_long+:} false
; then :
7193 $as_echo_n "(cached) " >&6
7195 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7198 if test "$ac_cv_type_long" = yes; then
7199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7201 as_fn_error
77 "cannot compute sizeof (long)
7202 See \`config.log' for more details" "$LINENO" 5; }
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7210 $as_echo "$ac_cv_sizeof_long" >&6; }
7214 cat >>confdefs.h
<<_ACEOF
7215 #define SIZEOF_LONG $ac_cv_sizeof_long
7219 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7220 if test "x$ac_cv_type_long_long" = xyes
; then :
7222 cat >>confdefs.h
<<_ACEOF
7223 #define HAVE_LONG_LONG 1
7226 # The cast to long int works around a bug in the HP C Compiler
7227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7229 # This bug is HP SR number 8606223364.
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7231 $as_echo_n "checking size of long long... " >&6; }
7232 if ${ac_cv_sizeof_long_long+:} false
; then :
7233 $as_echo_n "(cached) " >&6
7235 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7238 if test "$ac_cv_type_long_long" = yes; then
7239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7241 as_fn_error
77 "cannot compute sizeof (long long)
7242 See \`config.log' for more details" "$LINENO" 5; }
7244 ac_cv_sizeof_long_long
=0
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7250 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7254 cat >>confdefs.h
<<_ACEOF
7255 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7261 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
7262 case $ac_cv_c_int8_t in #(
7266 cat >>confdefs.h
<<_ACEOF
7267 #define int8_t $ac_cv_c_int8_t
7272 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
7273 case $ac_cv_c_int16_t in #(
7277 cat >>confdefs.h
<<_ACEOF
7278 #define int16_t $ac_cv_c_int16_t
7283 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
7284 case $ac_cv_c_int32_t in #(
7288 cat >>confdefs.h
<<_ACEOF
7289 #define int32_t $ac_cv_c_int32_t
7294 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
7295 case $ac_cv_c_int64_t in #(
7299 cat >>confdefs.h
<<_ACEOF
7300 #define int64_t $ac_cv_c_int64_t
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7307 $as_echo_n "checking for unsigned long long int... " >&6; }
7308 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
7309 $as_echo_n "(cached) " >&6
7311 ac_cv_type_unsigned_long_long_int
=yes
7312 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
7313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7316 /* For now, do not test the preprocessor; as of 2007 there are too many
7317 implementations with broken preprocessors. Perhaps this can
7318 be revisited in 2012. In the meantime, code should not expect
7319 #if to work with literals wider than 32 bits. */
7320 /* Test literals. */
7321 long long int ll = 9223372036854775807ll;
7322 long long int nll = -9223372036854775807LL;
7323 unsigned long long int ull = 18446744073709551615ULL;
7324 /* Test constant expressions. */
7325 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7327 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7333 /* Test availability of runtime routines for shift and division. */
7334 long long int llmax = 9223372036854775807ll;
7335 unsigned long long int ullmax = 18446744073709551615ull;
7336 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7337 | (llmax / ll) | (llmax % ll)
7338 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7339 | (ullmax / ull) | (ullmax % ull));
7345 if ac_fn_cxx_try_link
"$LINENO"; then :
7348 ac_cv_type_unsigned_long_long_int
=no
7350 rm -f core conftest.err conftest.
$ac_objext \
7351 conftest
$ac_exeext conftest.
$ac_ext
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7355 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7356 if test $ac_cv_type_unsigned_long_long_int = yes; then
7358 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7365 $as_echo_n "checking for long long int... " >&6; }
7366 if ${ac_cv_type_long_long_int+:} false
; then :
7367 $as_echo_n "(cached) " >&6
7369 ac_cv_type_long_long_int
=yes
7370 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
7371 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
7372 if test $ac_cv_type_long_long_int = yes; then
7373 if test "$cross_compiling" = yes; then :
7376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7381 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7382 # define LLONG_MAX (HALF - 1 + HALF)
7387 long long int n = 1;
7391 long long int m = n << i;
7394 if (LLONG_MAX / 2 < m)
7402 if ac_fn_cxx_try_run
"$LINENO"; then :
7405 ac_cv_type_long_long_int
=no
7407 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7408 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7415 $as_echo "$ac_cv_type_long_long_int" >&6; }
7416 if test $ac_cv_type_long_long_int = yes; then
7418 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7424 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7425 if test "x$ac_cv_type_intmax_t" = xyes
; then :
7427 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7430 test $ac_cv_type_long_long_int = yes \
7431 && ac_type
='long long int' \
7432 || ac_type
='long int'
7434 cat >>confdefs.h
<<_ACEOF
7435 #define intmax_t $ac_type
7442 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7443 if test "x$ac_cv_type_intptr_t" = xyes
; then :
7445 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
7448 for ac_type
in 'int' 'long int' 'long long int'; do
7449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 $ac_includes_default
7455 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7457 return test_array [0];
7463 if ac_fn_cxx_try_compile
"$LINENO"; then :
7465 cat >>confdefs.h
<<_ACEOF
7466 #define intptr_t $ac_type
7471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7472 test -z "$ac_type" && break
7477 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
7478 case $ac_cv_c_uint8_t in #(
7482 $as_echo "#define _UINT8_T 1" >>confdefs.h
7485 cat >>confdefs.h
<<_ACEOF
7486 #define uint8_t $ac_cv_c_uint8_t
7491 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
7492 case $ac_cv_c_uint16_t in #(
7497 cat >>confdefs.h
<<_ACEOF
7498 #define uint16_t $ac_cv_c_uint16_t
7503 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
7504 case $ac_cv_c_uint32_t in #(
7508 $as_echo "#define _UINT32_T 1" >>confdefs.h
7511 cat >>confdefs.h
<<_ACEOF
7512 #define uint32_t $ac_cv_c_uint32_t
7517 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
7518 case $ac_cv_c_uint64_t in #(
7522 $as_echo "#define _UINT64_T 1" >>confdefs.h
7525 cat >>confdefs.h
<<_ACEOF
7526 #define uint64_t $ac_cv_c_uint64_t
7533 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7534 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
7536 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7539 test $ac_cv_type_unsigned_long_long_int = yes \
7540 && ac_type
='unsigned long long int' \
7541 || ac_type
='unsigned long int'
7543 cat >>confdefs.h
<<_ACEOF
7544 #define uintmax_t $ac_type
7551 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7552 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
7554 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7557 for ac_type
in 'unsigned int' 'unsigned long int' \
7558 'unsigned long long int'; do
7559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 $ac_includes_default
7565 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7567 return test_array [0];
7573 if ac_fn_cxx_try_compile
"$LINENO"; then :
7575 cat >>confdefs.h
<<_ACEOF
7576 #define uintptr_t $ac_type
7581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7582 test -z "$ac_type" && break
7599 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
7600 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
7603 # check what underlying integer type int64_t uses
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7605 $as_echo_n "checking for int64_t underlying type... " >&6; }
7606 if ${ac_cv_int64_t_type+:} false
; then :
7607 $as_echo_n "(cached) " >&6
7610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7613 #ifdef HAVE_STDINT_H
7616 template <typename T> struct X { };
7618 struct X<long> { typedef long t; };
7628 if ac_fn_cxx_try_compile
"$LINENO"; then :
7629 ac_cv_int64_t_type
=long
7631 ac_cv_int64_t_type
="long long"
7633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7636 $as_echo "$ac_cv_int64_t_type" >&6; }
7637 if test "$ac_cv_int64_t_type" = "long"; then
7639 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7645 #ifdef HAVE_STDINT_H
7648 template <typename T> struct X { };
7650 struct X<long long> { typedef long long t; };
7660 if ac_fn_cxx_try_compile
"$LINENO"; then :
7663 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
7665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7669 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7670 if ${ac_cv_std_swap_in_utility+:} false
; then :
7671 $as_echo_n "(cached) " >&6
7674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7682 int a, b; std::swap(a,b);
7687 if ac_fn_cxx_try_compile
"$LINENO"; then :
7688 ac_cv_std_swap_in_utility
=yes
7690 ac_cv_std_swap_in_utility
=no
7692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7695 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7696 if test $ac_cv_std_swap_in_utility = yes; then
7698 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7702 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7703 # If the host compiler is affected by the bug, and we build with optimization
7704 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7705 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7706 # Since there is no reliable feature check for the presence of this bug,
7707 # we simply use a GCC version number check. (This should never trigger for
7708 # stages 2 or 3 of a native bootstrap.)
7710 if test "$GCC" = yes; then
7711 saved_CXXFLAGS
="$CXXFLAGS"
7713 # The following test compilation will succeed if and only if $CXX accepts
7714 # -fno-strict-aliasing *and* is older than GCC 4.3.
7715 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7717 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7721 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7722 #error compiler not affected by placement new aliasing bug
7726 if ac_fn_cxx_try_compile
"$LINENO"; then :
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7728 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7735 CXXFLAGS
="$saved_CXXFLAGS"
7741 # ---------------------
7742 # Warnings and checking
7743 # ---------------------
7745 # Check $CC warning features (if it's GCC).
7746 # We want to use -pedantic, but we don't want warnings about
7749 # * overlong strings
7750 # * C++11 narrowing conversions in { }
7751 # So, we only use -pedantic if we can disable those warnings.
7753 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7754 # Check whether --enable-build-format-warnings was given.
7755 if test "${enable_build_format_warnings+set}" = set; then :
7756 enableval
=$enable_build_format_warnings;
7758 enable_build_format_warnings
=yes
7761 if test $enable_build_format_warnings = no
; then :
7767 ac_cpp
='$CXXCPP $CPPFLAGS'
7768 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7773 save_CXXFLAGS
="$CXXFLAGS"
7774 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
7775 # Do the check with the no- prefix removed since gcc silently
7776 # accepts any -Wno-* option on purpose
7777 case $real_option in
7778 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7779 *) option
=$real_option ;;
7781 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7784 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7785 if eval \
${$as_acx_Woption+:} false
; then :
7786 $as_echo_n "(cached) " >&6
7789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7800 if ac_fn_cxx_try_compile
"$LINENO"; then :
7801 eval "$as_acx_Woption=yes"
7803 eval "$as_acx_Woption=no"
7805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7808 eval ac_res
=\$
$as_acx_Woption
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7810 $as_echo "$ac_res" >&6; }
7811 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7812 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7815 CXXFLAGS
="$save_CXXFLAGS"
7817 ac_cpp
='$CXXCPP $CPPFLAGS'
7818 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7825 ac_cpp
='$CPP $CPPFLAGS'
7826 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7831 save_CFLAGS
="$CFLAGS"
7832 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
7833 # Do the check with the no- prefix removed since gcc silently
7834 # accepts any -Wno-* option on purpose
7835 case $real_option in
7836 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7837 *) option
=$real_option ;;
7839 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7842 $as_echo_n "checking whether $CC supports $option... " >&6; }
7843 if eval \
${$as_acx_Woption+:} false
; then :
7844 $as_echo_n "(cached) " >&6
7847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7858 if ac_fn_c_try_compile
"$LINENO"; then :
7859 eval "$as_acx_Woption=yes"
7861 eval "$as_acx_Woption=no"
7863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7866 eval ac_res
=\$
$as_acx_Woption
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7868 $as_echo "$ac_res" >&6; }
7869 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7870 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7873 CFLAGS
="$save_CFLAGS"
7875 ac_cpp
='$CXXCPP $CPPFLAGS'
7876 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7882 ac_cpp
='$CXXCPP $CPPFLAGS'
7883 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7884 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7885 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7888 save_CXXFLAGS
="$CXXFLAGS"
7889 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
7890 # Do the check with the no- prefix removed since gcc silently
7891 # accepts any -Wno-* option on purpose
7892 case $real_option in
7893 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7894 *) option
=$real_option ;;
7896 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7899 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7900 if eval \
${$as_acx_Woption+:} false
; then :
7901 $as_echo_n "(cached) " >&6
7904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7915 if ac_fn_cxx_try_compile
"$LINENO"; then :
7916 eval "$as_acx_Woption=yes"
7918 eval "$as_acx_Woption=no"
7920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7923 eval ac_res
=\$
$as_acx_Woption
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7925 $as_echo "$ac_res" >&6; }
7926 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7927 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7930 CXXFLAGS
="$save_CXXFLAGS"
7932 ac_cpp
='$CXXCPP $CPPFLAGS'
7933 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7939 ac_cpp
='$CPP $CPPFLAGS'
7940 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7945 save_CFLAGS
="$CFLAGS"
7946 for real_option
in -Wold-style-definition -Wc++-compat; do
7947 # Do the check with the no- prefix removed since gcc silently
7948 # accepts any -Wno-* option on purpose
7949 case $real_option in
7950 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7951 *) option
=$real_option ;;
7953 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7956 $as_echo_n "checking whether $CC supports $option... " >&6; }
7957 if eval \
${$as_acx_Woption+:} false
; then :
7958 $as_echo_n "(cached) " >&6
7961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7972 if ac_fn_c_try_compile
"$LINENO"; then :
7973 eval "$as_acx_Woption=yes"
7975 eval "$as_acx_Woption=no"
7977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7980 eval ac_res
=\$
$as_acx_Woption
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7982 $as_echo "$ac_res" >&6; }
7983 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7984 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7987 CFLAGS
="$save_CFLAGS"
7989 ac_cpp
='$CXXCPP $CPPFLAGS'
7990 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7991 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7992 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7996 ac_cpp
='$CXXCPP $CPPFLAGS'
7997 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8001 # Do the check with the no- prefix removed from the warning options
8002 # since gcc silently accepts any -Wno-* option on purpose
8003 if test "$GXX" = yes; then :
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
8005 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
8006 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
8007 $as_echo_n "(cached) " >&6
8009 save_CXXFLAGS
="$CXXFLAGS"
8010 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
8011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8022 if ac_fn_cxx_try_compile
"$LINENO"; then :
8023 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
8025 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
8027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8028 CXXFLAGS
="$save_CXXFLAGS"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
8031 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
8032 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
8033 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
8038 ac_cpp
='$CXXCPP $CPPFLAGS'
8039 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8045 ac_cpp
='$CXXCPP $CPPFLAGS'
8046 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8047 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8048 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8050 # Check whether --enable-werror-always was given.
8051 if test "${enable_werror_always+set}" = set; then :
8052 enableval
=$enable_werror_always;
8054 enable_werror_always
=no
8057 if test $enable_werror_always = yes; then :
8058 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
8062 ac_cpp
='$CXXCPP $CPPFLAGS'
8063 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8069 # The above macros do nothing if the compiler is not GCC. However, the
8070 # Makefile has more goo to add other flags, so these variables are used
8071 # to enable warnings only for GCC.
8074 if test "x$GCC" = "xyes"; then
8075 warn_cflags
='$(GCC_WARN_CFLAGS)'
8076 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
8081 # Disable exceptions and RTTI if building with g++
8083 ac_cpp
='$CPP $CPPFLAGS'
8084 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8085 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8089 save_CFLAGS
="$CFLAGS"
8090 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
8091 # Do the check with the no- prefix removed since gcc silently
8092 # accepts any -Wno-* option on purpose
8093 case $real_option in
8094 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
8095 *) option
=$real_option ;;
8097 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
8100 $as_echo_n "checking whether $CC supports $option... " >&6; }
8101 if eval \
${$as_acx_Woption+:} false
; then :
8102 $as_echo_n "(cached) " >&6
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8116 if ac_fn_c_try_compile
"$LINENO"; then :
8117 eval "$as_acx_Woption=yes"
8119 eval "$as_acx_Woption=no"
8121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8124 eval ac_res
=\$
$as_acx_Woption
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8126 $as_echo "$ac_res" >&6; }
8127 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
8128 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
8131 CFLAGS
="$save_CFLAGS"
8133 ac_cpp
='$CXXCPP $CPPFLAGS'
8134 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8140 # Enable expensive internal checks
8142 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
8146 # Check whether --enable-checking was given.
8147 if test "${enable_checking+set}" = set; then :
8148 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
8151 # Determine the default checks.
8152 if test x
$is_release = x
; then
8153 ac_checking_flags
=yes,extra
8155 ac_checking_flags
=release
8159 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
8160 for check
in release
$ac_checking_flags
8163 # these set all the flags to specific states
8164 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
8165 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
8166 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
8167 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
8168 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
8169 ac_types_checking
=1 ;;
8170 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
8171 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
8172 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
8173 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
8174 ac_tree_checking
= ; ac_valgrind_checking
= ;
8175 ac_types_checking
= ;;
8176 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
8177 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
8178 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
8179 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
8180 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
8181 ac_types_checking
=1 ;;
8182 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
8183 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
8184 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
8185 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
8186 ac_tree_checking
= ; ac_valgrind_checking
= ;
8187 ac_types_checking
= ;;
8188 # these enable particular checks
8189 assert
) ac_assert_checking
=1 ;;
8190 df
) ac_df_checking
=1 ;;
8191 extra
) ac_extra_checking
=1 ;;
8192 fold) ac_fold_checking
=1 ;;
8193 gc
) ac_gc_checking
=1 ;;
8194 gcac
) ac_gc_always_collect
=1 ;;
8195 gimple
) ac_gimple_checking
=1 ;;
8196 misc
) ac_checking
=1 ;;
8197 rtl
) ac_rtl_checking
=1 ;;
8198 rtlflag
) ac_rtlflag_checking
=1 ;;
8199 runtime
) ac_runtime_checking
=1 ;;
8200 tree
) ac_tree_checking
=1 ;;
8201 types
) ac_types_checking
=1 ;;
8202 valgrind
) ac_valgrind_checking
=1 ;;
8203 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
8209 if test x
$ac_checking != x
; then
8211 $as_echo "#define CHECKING_P 1" >>confdefs.h
8213 nocommon_flag
=-fno-common
8215 $as_echo "#define CHECKING_P 0" >>confdefs.h
8219 if test x
$ac_extra_checking != x
; then
8221 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
8224 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
8227 if test x
$ac_df_checking != x
; then
8229 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
8232 if test x
$ac_assert_checking != x
; then
8234 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
8237 if test x
$ac_gimple_checking != x
; then
8239 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
8243 if test x
$ac_runtime_checking != x
; then
8245 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
8248 if test x
$ac_tree_checking != x
; then
8250 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
8254 if test x
$ac_types_checking != x
; then
8256 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
8260 if test x
$ac_rtl_checking != x
; then
8262 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
8265 if test x
$ac_rtlflag_checking != x
; then
8267 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
8270 if test x
$ac_gc_checking != x
; then
8272 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
8275 if test x
$ac_gc_always_collect != x
; then
8277 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
8280 if test x
$ac_fold_checking != x
; then
8282 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
8285 valgrind_path_defines
=
8288 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
8289 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
8297 # It is certainly possible that there's valgrind but no valgrind.h.
8298 # GCC relies on making annotations so we must have both.
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
8300 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
8301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #include <valgrind/memcheck.h>
8304 #ifndef VALGRIND_DISCARD
8305 #error VALGRIND_DISCARD not defined
8308 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8309 gcc_cv_header_valgrind_memcheck_h
=yes
8311 gcc_cv_header_valgrind_memcheck_h
=no
8313 rm -f conftest.err conftest.i conftest.
$ac_ext
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
8315 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
8317 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
8318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 #include <memcheck.h>
8321 #ifndef VALGRIND_DISCARD
8322 #error VALGRIND_DISCARD not defined
8325 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8326 gcc_cv_header_memcheck_h
=yes
8328 gcc_cv_header_memcheck_h
=no
8330 rm -f conftest.err conftest.i conftest.
$ac_ext
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
8332 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
8333 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
8335 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
8338 if test $gcc_cv_header_memcheck_h = yes; then
8340 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
8344 if test x
$ac_valgrind_checking != x
; then
8346 # Prepare PATH_SEPARATOR.
8347 # The user is always right.
8348 if test "${PATH_SEPARATOR+set}" != set; then
8349 echo "#! /bin/sh" >conf$$.sh
8350 echo "exit 0" >>conf$$.sh
8352 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8360 # Find out how to test for executable files. Don't use a zero-byte file,
8361 # as systems may use methods other than mode bits to determine executability.
8362 cat >conf$$.
file <<_ASEOF
8366 chmod +x conf$$.
file
8367 if test -x conf$$.
file >/dev
/null
2>&1; then
8368 ac_executable_p
="test -x"
8370 ac_executable_p
="test -f"
8374 # Extract the first word of "valgrind", so it can be a program name with args.
8375 set dummy valgrind
; ac_word
=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_path_valgrind_path+:} false
; then :
8379 $as_echo_n "(cached) " >&6
8381 case "$valgrind_path" in
8383 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
8386 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8387 for ac_dir
in $PATH; do
8389 test -z "$ac_dir" && ac_dir
=.
8390 for ac_exec_ext
in '' $ac_executable_extensions; do
8391 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8392 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
8393 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
8403 valgrind_path
="$ac_cv_path_valgrind_path"
8404 if test -n "$valgrind_path"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
8406 $as_echo "$valgrind_path" >&6; }
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8412 if test "x$valgrind_path" = "x" \
8413 ||
(test $have_valgrind_h = no \
8414 && test $gcc_cv_header_memcheck_h = no \
8415 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
8416 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
8418 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
8419 valgrind_command
="$valgrind_path -q"
8421 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
8427 # Enable code coverage collection
8428 # Check whether --enable-coverage was given.
8429 if test "${enable_coverage+set}" = set; then :
8430 enableval
=$enable_coverage; case "${enableval}" in
8432 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
8435 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
8438 # a.k.a. --disable-coverage
8442 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
8451 # Check whether --enable-gather-detailed-mem-stats was given.
8452 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
8453 enableval
=$enable_gather_detailed_mem_stats;
8455 enable_gather_detailed_mem_stats
=no
8458 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
8460 cat >>confdefs.h
<<_ACEOF
8461 #define GATHER_STATISTICS $gather_stats
8465 # Check whether --enable-valgrind-annotations was given.
8466 if test "${enable_valgrind_annotations+set}" = set; then :
8467 enableval
=$enable_valgrind_annotations;
8469 enable_valgrind_annotations
=no
8472 if test x
$enable_valgrind_annotations != xno \
8473 ||
test x
$ac_valgrind_checking != x
; then
8474 if (test $have_valgrind_h = no \
8475 && test $gcc_cv_header_memcheck_h = no \
8476 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
8477 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
8480 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
8484 # -------------------------------
8485 # Miscenalleous configure options
8486 # -------------------------------
8490 # Check whether --with-stabs was given.
8491 if test "${with_stabs+set}" = set; then :
8492 withval
=$with_stabs; stabs
="$with_stabs"
8498 # Determine whether or not multilibs are enabled.
8499 # Check whether --enable-multilib was given.
8500 if test "${enable_multilib+set}" = set; then :
8501 enableval
=$enable_multilib;
8508 # Determine whether or not multiarch is enabled.
8509 # Check whether --enable-multiarch was given.
8510 if test "${enable_multiarch+set}" = set; then :
8511 enableval
=$enable_multiarch; case "${enableval}" in
8512 yes|no|auto
) enable_multiarch
=$enableval;;
8513 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
8516 enable_multiarch
=auto
8519 if test x
${enable_multiarch} = xauto
; then
8520 if test x
${with_native_system_header_dir} != x
; then
8521 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
8524 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
8525 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
8530 $as_echo_n "checking for multiarch configuration... " >&6; }
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
8533 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
8535 # needed for setting the multiarch name for soft-float/hard-float ABIs
8539 # default stack clash protection guard size as power of twos in bytes.
8540 # Please keep these in sync with params.def.
8544 # Keep the default value when the option is not used to 0, this allows us to
8545 # distinguish between the cases where the user specifially set a value via
8546 # configure and when the normal default value is used.
8548 # Check whether --with-stack-clash-protection-guard-size was given.
8549 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
8550 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
8552 DEFAULT_STK_CLASH_GUARD_SIZE
=0
8555 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
8556 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
8557 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
8558 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
8562 cat >>confdefs.h
<<_ACEOF
8563 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
8567 # Enable __cxa_atexit for C++.
8568 # Check whether --enable-__cxa_atexit was given.
8569 if test "${enable___cxa_atexit+set}" = set; then :
8570 enableval
=$enable___cxa_atexit;
8574 # Enable C extension for decimal float if target supports it.
8576 # Check whether --enable-decimal-float was given.
8577 if test "${enable_decimal_float+set}" = set; then :
8578 enableval
=$enable_decimal_float;
8579 case $enable_decimal_float in
8580 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
8581 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
8582 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
8588 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
8589 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
8590 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
8591 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
8592 enable_decimal_float
=yes
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
8596 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
8597 enable_decimal_float
=no
8604 # x86's use BID format instead of DPD
8605 case x
$enable_decimal_float in
8608 i?
86*-*-* | x86_64
*-*-*)
8609 enable_decimal_float
=bid
8612 enable_decimal_float
=dpd
8615 default_decimal_float
=$enable_decimal_float
8618 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8619 # dependency on libdecnumber.
8620 default_decimal_float
=dpd
8627 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8629 cat >>confdefs.h
<<_ACEOF
8630 #define ENABLE_DECIMAL_FLOAT $dfp
8634 # Use default_decimal_float for dependency.
8635 enable_decimal_float
=$default_decimal_float
8637 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8639 cat >>confdefs.h
<<_ACEOF
8640 #define ENABLE_DECIMAL_BID_FORMAT $bid
8644 # Enable C extension for fixed-point arithmetic.
8645 # Check whether --enable-fixed-point was given.
8646 if test "${enable_fixed_point+set}" = set; then :
8647 enableval
=$enable_fixed_point;
8652 enable_fixed_point
=yes
8656 enable_fixed_point
=yes
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8660 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8661 enable_fixed_point
=no
8669 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8671 cat >>confdefs.h
<<_ACEOF
8672 #define ENABLE_FIXED_POINT $fixedpoint
8677 # Pass with no value to take the default
8678 # Pass with a value to specify a thread package
8679 # Check whether --enable-threads was given.
8680 if test "${enable_threads+set}" = set; then :
8681 enableval
=$enable_threads;
8687 # Check whether --enable-tls was given.
8688 if test "${enable_tls+set}" = set; then :
8689 enableval
=$enable_tls;
8692 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8693 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8701 # Check whether --enable-vtable-verify was given.
8702 if test "${enable_vtable_verify+set}" = set; then :
8703 enableval
=$enable_vtable_verify;
8705 enable_vtable_verify
=no
8708 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8710 cat >>confdefs.h
<<_ACEOF
8711 #define ENABLE_VTABLE_VERIFY $vtable_verify
8715 # Check whether --enable-analyzer was given.
8716 if test "${enable_analyzer+set}" = set; then :
8717 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8727 cat >>confdefs.h
<<_ACEOF
8728 #define ENABLE_ANALYZER $analyzer
8732 # Check whether --enable-objc-gc was given.
8733 if test "${enable_objc_gc+set}" = set; then :
8734 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8745 # Check whether --with-dwarf2 was given.
8746 if test "${with_dwarf2+set}" = set; then :
8747 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8753 # Check whether --enable-shared was given.
8754 if test "${enable_shared+set}" = set; then :
8755 enableval
=$enable_shared;
8756 case $enable_shared in
8760 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8761 for pkg
in $enableval; do
8762 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8776 # Check whether --enable-gcov was given.
8777 if test "${enable_gcov+set}" = set; then :
8778 enableval
=$enable_gcov;
8786 # Check whether --with-specs was given.
8787 if test "${with_specs+set}" = set; then :
8788 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8798 # Check whether --with-pkgversion was given.
8799 if test "${with_pkgversion+set}" = set; then :
8800 withval
=$with_pkgversion; case "$withval" in
8801 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8803 *) PKGVERSION
="($withval) " ;;
8814 # Check whether --with-bugurl was given.
8815 if test "${with_bugurl+set}" = set; then :
8816 withval
=$with_bugurl; case "$withval" in
8817 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8820 *) BUGURL
="$withval"
8824 BUGURL
="https://gcc.gnu.org/bugs/"
8834 REPORT_BUGS_TO
="<$BUGURL>"
8835 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8842 # Allow overriding the default URL for documentation
8844 # Check whether --with-documentation-root-url was given.
8845 if test "${with_documentation_root_url+set}" = set; then :
8846 withval
=$with_documentation_root_url; case "$withval" in
8847 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8848 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8849 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8850 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8853 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8858 cat >>confdefs.h
<<_ACEOF
8859 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8863 # Allow overriding the default URL for GCC changes
8865 # Check whether --with-changes-root-url was given.
8866 if test "${with_changes_root_url+set}" = set; then :
8867 withval
=$with_changes_root_url; case "$withval" in
8868 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8869 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8870 */) CHANGES_ROOT_URL
="$withval" ;;
8871 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8874 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8879 cat >>confdefs.h
<<_ACEOF
8880 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8884 # Sanity check enable_languages in case someone does not run the toplevel
8885 # configure # script.
8886 # Check whether --enable-languages was given.
8887 if test "${enable_languages+set}" = set; then :
8888 enableval
=$enable_languages; case ,${enable_languages}, in
8890 # go safe -- we cannot be much sure without the toplevel
8892 # analysis of which target libs are present and usable
8896 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8901 enable_languages
=c
,${enable_languages}
8909 # If top-level libada has been disabled, then wire in install-gnatlib
8910 # invocation with `make install', so that one can build and install
8911 # the library manually with `make -C gcc all gnatlib gnattools install'.
8912 if test x
"$enable_libada" = xno
; then
8913 gnat_install_lib
=gnat-install-lib
8919 if test x
"$enable_as_accelerator_for" != x
; then
8921 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8923 enable_as_accelerator
=yes
8926 # In this case we expect offload compiler to be built as native, so we
8927 # need to rename the driver to avoid clashes with host's drivers.
8928 program_transform_name
="s&^&${target}-&" ;;
8930 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8931 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8932 accel_dir_suffix
=/accel
/${target_noncanonical}
8933 real_target_noncanonical
=${enable_as_accelerator_for}
8939 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8940 tgt
=`echo $tgt | sed 's/=.*//'`
8942 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
8947 *-intelmic-* |
*-intelmicemul-*)
8948 omp_device_property
=omp-device-properties-i386
8949 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8952 omp_device_property
=omp-device-properties-gcn
8953 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8956 omp_device_property
=omp-device-properties-nvptx
8957 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8960 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8963 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8964 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8967 if test x
"$offload_targets" = x
; then
8968 offload_targets
=$tgt
8970 offload_targets
="$offload_targets,$tgt"
8977 cat >>confdefs.h
<<_ACEOF
8978 #define OFFLOAD_TARGETS "$offload_targets"
8981 if test x
"$enable_offloading" != x
; then
8983 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8987 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8991 if test x
"$enable_hsa" = x1
; then
8993 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
8998 # Check whether --with-multilib-list was given.
8999 if test "${with_multilib_list+set}" = set; then :
9000 withval
=$with_multilib_list; :
9002 with_multilib_list
=default
9006 # -------------------------
9007 # Checks for other programs
9008 # -------------------------
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9011 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9013 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9014 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
9015 $as_echo_n "(cached) " >&6
9017 cat >conftest.
make <<\_ACEOF
9020 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9022 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9023 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9025 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9027 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9031 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9033 $as_echo "yes" >&6; }
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9038 SET_MAKE
="MAKE=${MAKE-make}"
9042 # Find some useful tools
9043 for ac_prog
in gawk mawk nawk
awk
9045 # Extract the first word of "$ac_prog", so it can be a program name with args.
9046 set dummy
$ac_prog; ac_word
=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if ${ac_cv_prog_AWK+:} false
; then :
9050 $as_echo_n "(cached) " >&6
9052 if test -n "$AWK"; then
9053 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
9055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9059 test -z "$as_dir" && as_dir
=.
9060 for ac_exec_ext
in '' $ac_executable_extensions; do
9061 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9062 ac_cv_prog_AWK
="$ac_prog"
9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 if test -n "$AWK"; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9075 $as_echo "$AWK" >&6; }
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9082 test -n "$AWK" && break
9085 # We need awk to create options.c and options.h.
9086 # Bail out if it's missing.
9088 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9092 $as_echo_n "checking whether ln -s works... " >&6; }
9093 if ${gcc_cv_prog_LN_S+:} false
; then :
9094 $as_echo_n "(cached) " >&6
9096 rm -f conftestdata_t
9097 echo >conftestdata_f
9098 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
9100 gcc_cv_prog_LN_S
="ln -s"
9102 if ln conftestdata_f conftestdata_t
2>/dev
/null
9106 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
9108 gcc_cv_prog_LN_S
="cp -p"
9114 rm -f conftestdata_f conftestdata_t
9117 LN_S
="$gcc_cv_prog_LN_S"
9118 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9120 $as_echo "yes" >&6; }
9122 if test "$gcc_cv_prog_LN_S" = "ln"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
9124 $as_echo "no, using ln" >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
9127 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
9132 $as_echo_n "checking whether ln works... " >&6; }
9133 if ${acx_cv_prog_LN+:} false
; then :
9134 $as_echo_n "(cached) " >&6
9136 rm -f conftestdata_t
9137 echo >conftestdata_f
9138 if ln conftestdata_f conftestdata_t
2>/dev
/null
9144 rm -f conftestdata_f conftestdata_t
9147 if test $acx_cv_prog_LN = no
; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
9150 $as_echo "no, using $LN" >&6; }
9152 LN
="$acx_cv_prog_LN"
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9154 $as_echo "yes" >&6; }
9157 if test -n "$ac_tool_prefix"; then
9158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9159 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if ${ac_cv_prog_RANLIB+:} false
; then :
9163 $as_echo_n "(cached) " >&6
9165 if test -n "$RANLIB"; then
9166 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
9168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9172 test -z "$as_dir" && as_dir
=.
9173 for ac_exec_ext
in '' $ac_executable_extensions; do
9174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9175 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
9176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 RANLIB
=$ac_cv_prog_RANLIB
9186 if test -n "$RANLIB"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9188 $as_echo "$RANLIB" >&6; }
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9196 if test -z "$ac_cv_prog_RANLIB"; then
9197 ac_ct_RANLIB
=$RANLIB
9198 # Extract the first word of "ranlib", so it can be a program name with args.
9199 set dummy ranlib
; ac_word
=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
9203 $as_echo_n "(cached) " >&6
9205 if test -n "$ac_ct_RANLIB"; then
9206 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
9208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9212 test -z "$as_dir" && as_dir
=.
9213 for ac_exec_ext
in '' $ac_executable_extensions; do
9214 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9215 ac_cv_prog_ac_ct_RANLIB
="ranlib"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
9226 if test -n "$ac_ct_RANLIB"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9228 $as_echo "$ac_ct_RANLIB" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9234 if test "x$ac_ct_RANLIB" = x
; then
9237 case $cross_compiling:$ac_tool_warned in
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9241 ac_tool_warned
=yes ;;
9243 RANLIB
=$ac_ct_RANLIB
9246 RANLIB
="$ac_cv_prog_RANLIB"
9252 # Find a good install program. We prefer a C program (faster),
9253 # so one script is as good as another. But avoid the broken or
9254 # incompatible versions:
9255 # SysV /etc/install, /usr/sbin/install
9256 # SunOS /usr/etc/install
9257 # IRIX /sbin/install
9259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9261 # ./install, which can be erroneously created by make from ./install.sh.
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
9263 $as_echo_n "checking for a BSD compatible install... " >&6; }
9264 if test -z "$INSTALL"; then
9265 if ${ac_cv_path_install+:} false
; then :
9266 $as_echo_n "(cached) " >&6
9268 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
9269 for ac_dir
in $PATH; do
9270 # Account for people who put trailing slashes in PATH elements.
9272 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
9274 # OSF1 and SCO ODT 3.0 have their own names for install.
9275 for ac_prog
in ginstall scoinst
install; do
9276 if test -f $ac_dir/$ac_prog; then
9277 if test $ac_prog = install &&
9278 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
9279 # AIX install. It has an incompatible calling convention.
9280 # OSF/1 installbsd also uses dspmsg, but is usable.
9283 ac_cv_path_install
="$ac_dir/$ac_prog -c"
9294 if test "${ac_cv_path_install+set}" = set; then
9295 INSTALL
="$ac_cv_path_install"
9297 # As a last resort, use the slow shell script. We don't cache a
9298 # path for INSTALL within a source directory, because that will
9299 # break other packages using the cache if that directory is
9300 # removed, or if the path is relative.
9301 INSTALL
="$ac_install_sh"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9305 $as_echo "$INSTALL" >&6; }
9307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9308 # It thinks the first close brace ends the variable substitution.
9309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9311 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9314 # See if cmp has --ignore-initial.
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
9316 $as_echo_n "checking for cmp's capabilities... " >&6; }
9317 if ${gcc_cv_prog_cmp_skip+:} false
; then :
9318 $as_echo_n "(cached) " >&6
9322 gcc_cv_prog_cmp_skip
=slowcompare
9323 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
9324 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
9327 gcc_cv_prog_cmp_skip
=gnucompare
9330 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
9331 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
9332 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
9335 gcc_cv_prog_cmp_skip
=fastcompare
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
9343 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
9344 make_compare_target
=$gcc_cv_prog_cmp_skip
9348 # See if we have the mktemp command.
9349 # Extract the first word of "mktemp", so it can be a program name with args.
9350 set dummy mktemp
; ac_word
=$2
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352 $as_echo_n "checking for $ac_word... " >&6; }
9353 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
9354 $as_echo_n "(cached) " >&6
9356 if test -n "$have_mktemp_command"; then
9357 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
9359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9363 test -z "$as_dir" && as_dir
=.
9364 for ac_exec_ext
in '' $ac_executable_extensions; do
9365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9366 ac_cv_prog_have_mktemp_command
="yes"
9367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
9377 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
9378 if test -n "$have_mktemp_command"; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
9380 $as_echo "$have_mktemp_command" >&6; }
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383 $as_echo "no" >&6; }
9388 # See if makeinfo has been installed and is modern enough
9389 # that we can use it.
9391 # Extract the first word of "makeinfo", so it can be a program name with args.
9392 set dummy makeinfo
; ac_word
=$2
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9394 $as_echo_n "checking for $ac_word... " >&6; }
9395 if ${ac_cv_prog_MAKEINFO+:} false
; then :
9396 $as_echo_n "(cached) " >&6
9398 if test -n "$MAKEINFO"; then
9399 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
9401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9405 test -z "$as_dir" && as_dir
=.
9406 for ac_exec_ext
in '' $ac_executable_extensions; do
9407 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9408 ac_cv_prog_MAKEINFO
="makeinfo"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9418 MAKEINFO
=$ac_cv_prog_MAKEINFO
9419 if test -n "$MAKEINFO"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
9421 $as_echo "$MAKEINFO" >&6; }
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424 $as_echo "no" >&6; }
9428 if test -n "$MAKEINFO"; then
9429 # Found it, now check the version.
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
9431 $as_echo_n "checking for modern makeinfo... " >&6; }
9432 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
9433 $as_echo_n "(cached) " >&6
9435 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
9436 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
9438 case $ac_prog_version in
9439 '') gcc_cv_prog_makeinfo_modern
=no
;;
9440 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
9441 *) gcc_cv_prog_makeinfo_modern
=no
;;
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
9446 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
9448 gcc_cv_prog_makeinfo_modern
=no
9450 if test $gcc_cv_prog_makeinfo_modern = no
; then
9451 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
9454 if test $gcc_cv_prog_makeinfo_modern = no
; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9456 *** Makeinfo is missing or too old.
9457 *** Info documentation will not be built." >&5
9458 $as_echo "$as_me: WARNING:
9459 *** Makeinfo is missing or too old.
9460 *** Info documentation will not be built." >&2;}
9467 # Is pod2man recent enough to regenerate manpages?
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
9469 $as_echo_n "checking for recent Pod::Man... " >&6; }
9470 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9472 $as_echo "yes" >&6; }
9473 GENERATED_MANPAGES
=generated-manpages
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9481 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
9486 # Extract the first word of "$ac_prog", so it can be a program name with args.
9487 set dummy
$ac_prog; ac_word
=$2
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 $as_echo_n "checking for $ac_word... " >&6; }
9490 if ${ac_cv_prog_FLEX+:} false
; then :
9491 $as_echo_n "(cached) " >&6
9493 if test -n "$FLEX"; then
9494 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
9496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9500 test -z "$as_dir" && as_dir
=.
9501 for ac_exec_ext
in '' $ac_executable_extensions; do
9502 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9503 ac_cv_prog_FLEX
="$ac_prog"
9504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9513 FLEX
=$ac_cv_prog_FLEX
9514 if test -n "$FLEX"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
9516 $as_echo "$FLEX" >&6; }
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9523 test -n "$FLEX" && break
9525 test -n "$FLEX" || FLEX
="$MISSING flex"
9529 for ac_prog
in bison
9531 # Extract the first word of "$ac_prog", so it can be a program name with args.
9532 set dummy
$ac_prog; ac_word
=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_prog_BISON+:} false
; then :
9536 $as_echo_n "(cached) " >&6
9538 if test -n "$BISON"; then
9539 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
9541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9545 test -z "$as_dir" && as_dir
=.
9546 for ac_exec_ext
in '' $ac_executable_extensions; do
9547 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9548 ac_cv_prog_BISON
="$ac_prog"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 BISON
=$ac_cv_prog_BISON
9559 if test -n "$BISON"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9561 $as_echo "$BISON" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9568 test -n "$BISON" && break
9570 test -n "$BISON" || BISON
="$MISSING bison"
9573 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9574 # check for build == host before using them.
9577 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9578 && test -d ..
/binutils
; then
9579 NM
='${objdir}/../binutils/nm-new'
9581 # Extract the first word of "nm", so it can be a program name with args.
9582 set dummy nm
; ac_word
=$2
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9584 $as_echo_n "checking for $ac_word... " >&6; }
9585 if ${ac_cv_prog_NM+:} false
; then :
9586 $as_echo_n "(cached) " >&6
9588 if test -n "$NM"; then
9589 ac_cv_prog_NM
="$NM" # Let the user override the test.
9591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9595 test -z "$as_dir" && as_dir
=.
9596 for ac_exec_ext
in '' $ac_executable_extensions; do
9597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9606 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9610 if test -n "$NM"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9612 $as_echo "$NM" >&6; }
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9622 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9623 && test -d ..
/binutils
; then
9624 AR
='${objdir}/../binutils/ar'
9626 # Extract the first word of "ar", so it can be a program name with args.
9627 set dummy
ar; ac_word
=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if ${ac_cv_prog_AR+:} false
; then :
9631 $as_echo_n "(cached) " >&6
9633 if test -n "$AR"; then
9634 ac_cv_prog_AR
="$AR" # Let the user override the test.
9636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9640 test -z "$as_dir" && as_dir
=.
9641 for ac_exec_ext
in '' $ac_executable_extensions; do
9642 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9655 if test -n "$AR"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9657 $as_echo "$AR" >&6; }
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9666 # The jit documentation looks better if built with sphinx, but can be
9667 # built with texinfo if sphinx is not available.
9668 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9669 # Extract the first word of "sphinx-build", so it can be a program name with args.
9670 set dummy sphinx-build
; ac_word
=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9674 $as_echo_n "(cached) " >&6
9676 if test -n "$doc_build_sys"; then
9677 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9683 test -z "$as_dir" && as_dir
=.
9684 for ac_exec_ext
in '' $ac_executable_extensions; do
9685 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9686 ac_cv_prog_doc_build_sys
="sphinx"
9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9697 doc_build_sys
=$ac_cv_prog_doc_build_sys
9698 if test -n "$doc_build_sys"; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9700 $as_echo "$doc_build_sys" >&6; }
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9708 # --------------------
9709 # Checks for C headers
9710 # --------------------
9712 # Need to reject headers which give warnings, so that the -Werror bootstrap
9713 # works later. *sigh* This needs to come before all header checks.
9715 ac_c_preproc_warn_flag
=yes
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9718 $as_echo_n "checking for ANSI C header files... " >&6; }
9719 if ${ac_cv_header_stdc+:} false
; then :
9720 $as_echo_n "(cached) " >&6
9722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9737 if ac_fn_cxx_try_compile
"$LINENO"; then :
9738 ac_cv_header_stdc
=yes
9740 ac_cv_header_stdc
=no
9742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9744 if test $ac_cv_header_stdc = yes; then
9745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9752 $EGREP "memchr" >/dev
/null
2>&1; then :
9755 ac_cv_header_stdc
=no
9761 if test $ac_cv_header_stdc = yes; then
9762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9769 $EGREP "free" >/dev
/null
2>&1; then :
9772 ac_cv_header_stdc
=no
9778 if test $ac_cv_header_stdc = yes; then
9779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9780 if test "$cross_compiling" = yes; then :
9783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9787 #if ((' ' & 0x0FF) == 0x020)
9788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9791 # define ISLOWER(c) \
9792 (('a' <= (c) && (c) <= 'i') \
9793 || ('j' <= (c) && (c) <= 'r') \
9794 || ('s' <= (c) && (c) <= 'z'))
9795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9803 for (i = 0; i < 256; i++)
9804 if (XOR (islower (i), ISLOWER (i))
9805 || toupper (i) != TOUPPER (i))
9810 if ac_fn_cxx_try_run
"$LINENO"; then :
9813 ac_cv_header_stdc
=no
9815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9822 $as_echo "$ac_cv_header_stdc" >&6; }
9823 if test $ac_cv_header_stdc = yes; then
9825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9830 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9831 if ${ac_cv_header_time+:} false
; then :
9832 $as_echo_n "(cached) " >&6
9834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 #include <sys/types.h>
9837 #include <sys/time.h>
9843 if ((struct tm *) 0)
9849 if ac_fn_cxx_try_compile
"$LINENO"; then :
9850 ac_cv_header_time
=yes
9852 ac_cv_header_time
=no
9854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9857 $as_echo "$ac_cv_header_time" >&6; }
9858 if test $ac_cv_header_time = yes; then
9860 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9865 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9866 if ${gcc_cv_header_string+:} false
; then :
9867 $as_echo_n "(cached) " >&6
9869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9872 #include <strings.h>
9881 if ac_fn_cxx_try_compile
"$LINENO"; then :
9882 gcc_cv_header_string
=yes
9884 gcc_cv_header_string
=no
9886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9889 $as_echo "$gcc_cv_header_string" >&6; }
9890 if test $gcc_cv_header_string = yes; then
9892 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9897 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9898 if ${ac_cv_header_sys_wait_h+:} false
; then :
9899 $as_echo_n "(cached) " >&6
9901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 #include <sys/types.h>
9904 #include <sys/wait.h>
9906 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9909 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9917 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9922 if ac_fn_cxx_try_compile
"$LINENO"; then :
9923 ac_cv_header_sys_wait_h
=yes
9925 ac_cv_header_sys_wait_h
=no
9927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9930 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9931 if test $ac_cv_header_sys_wait_h = yes; then
9933 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9938 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9939 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9940 $as_echo_n "(cached) " >&6
9942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9944 #include <sys/types.h>
9945 #include <termios.h>
9951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9952 $EGREP "yes" >/dev
/null
2>&1; then :
9953 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9955 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9961 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9963 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9965 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9966 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9967 $as_echo_n "(cached) " >&6
9969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 #include <sys/types.h>
9972 #include <sys/ioctl.h>
9978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9979 $EGREP "yes" >/dev
/null
2>&1; then :
9980 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9982 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9988 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9990 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9992 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9997 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9998 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9999 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
10000 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
10002 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10003 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
10004 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10005 cat >>confdefs.h
<<_ACEOF
10006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10013 # Check for thread headers.
10014 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
10015 if test "x$ac_cv_header_thread_h" = xyes
; then :
10021 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
10022 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10029 # These tests can't be done till we know if we have limits.h.
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
10031 $as_echo_n "checking for CHAR_BIT... " >&6; }
10032 if ${gcc_cv_decl_char_bit+:} false
; then :
10033 $as_echo_n "(cached) " >&6
10035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037 #ifdef HAVE_LIMITS_H
10038 #include <limits.h>
10044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10045 $EGREP "found" >/dev
/null
2>&1; then :
10046 gcc_cv_decl_char_bit
=yes
10048 gcc_cv_decl_char_bit
=no
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
10055 $as_echo "$gcc_cv_decl_char_bit" >&6; }
10056 if test $gcc_cv_decl_char_bit = no
; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
10058 $as_echo_n "checking number of bits in a byte... " >&6; }
10059 if ${gcc_cv_c_nbby+:} false
; then :
10060 $as_echo_n "(cached) " >&6
10064 while test $i -lt 65; do
10065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h. */
10072 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
10073 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
10079 if ac_fn_cxx_try_compile
"$LINENO"; then :
10080 gcc_cv_c_nbby
=$i; break
10082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10085 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
10089 $as_echo "$gcc_cv_c_nbby" >&6; }
10090 if test $gcc_cv_c_nbby = failed
; then
10091 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
10094 cat >>confdefs.h
<<_ACEOF
10095 #define CHAR_BIT $gcc_cv_c_nbby
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10101 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10102 if ${ac_cv_c_bigendian+:} false
; then :
10103 $as_echo_n "(cached) " >&6
10105 ac_cv_c_bigendian
=unknown
10106 # See if we're dealing with a universal compiler.
10107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 #ifndef __APPLE_CC__
10110 not a universal capable compiler
10115 if ac_fn_cxx_try_compile
"$LINENO"; then :
10117 # Check for potential -arch flags. It is not universal unless
10118 # there are at least two -arch flags with different values.
10121 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10122 if test -n "$ac_prev"; then
10124 i?
86 | x86_64 | ppc | ppc64
)
10125 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10128 ac_cv_c_bigendian
=universal
10134 elif test "x$ac_word" = "x-arch"; then
10139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10140 if test $ac_cv_c_bigendian = unknown
; then
10141 # See if sys/param.h defines the BYTE_ORDER macro.
10142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144 #include <sys/types.h>
10145 #include <sys/param.h>
10150 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10151 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10153 bogus endian macros
10160 if ac_fn_cxx_try_compile
"$LINENO"; then :
10161 # It does; now see whether it defined to BIG_ENDIAN or not.
10162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 #include <sys/types.h>
10165 #include <sys/param.h>
10170 #if BYTE_ORDER != BIG_ENDIAN
10178 if ac_fn_cxx_try_compile
"$LINENO"; then :
10179 ac_cv_c_bigendian
=yes
10181 ac_cv_c_bigendian
=no
10183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10187 if test $ac_cv_c_bigendian = unknown
; then
10188 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 #include <limits.h>
10196 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10197 bogus endian macros
10204 if ac_fn_cxx_try_compile
"$LINENO"; then :
10205 # It does; now see whether it defined to _BIG_ENDIAN or not.
10206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208 #include <limits.h>
10213 #ifndef _BIG_ENDIAN
10221 if ac_fn_cxx_try_compile
"$LINENO"; then :
10222 ac_cv_c_bigendian
=yes
10224 ac_cv_c_bigendian
=no
10226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10230 if test $ac_cv_c_bigendian = unknown
; then
10231 # Compile a test program.
10232 if test "$cross_compiling" = yes; then :
10233 # Try to guess by grepping values from an object file.
10234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 short int ascii_mm[] =
10237 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10238 short int ascii_ii[] =
10239 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10240 int use_ascii (int i) {
10241 return ascii_mm[i] + ascii_ii[i];
10243 short int ebcdic_ii[] =
10244 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10245 short int ebcdic_mm[] =
10246 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10247 int use_ebcdic (int i) {
10248 return ebcdic_mm[i] + ebcdic_ii[i];
10255 return use_ascii (foo) == use_ebcdic (foo);
10260 if ac_fn_cxx_try_compile
"$LINENO"; then :
10261 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10262 ac_cv_c_bigendian
=yes
10264 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10265 if test "$ac_cv_c_bigendian" = unknown
; then
10266 ac_cv_c_bigendian
=no
10268 # finding both strings is unlikely to happen, but who knows?
10269 ac_cv_c_bigendian
=unknown
10273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10277 $ac_includes_default
10282 /* Are we little or big endian? From Harbison&Steele. */
10286 char c[sizeof (long int)];
10289 return u.c[sizeof (long int) - 1] == 1;
10295 if ac_fn_cxx_try_run
"$LINENO"; then :
10296 ac_cv_c_bigendian
=no
10298 ac_cv_c_bigendian
=yes
10300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10301 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10307 $as_echo "$ac_cv_c_bigendian" >&6; }
10308 case $ac_cv_c_bigendian in #(
10310 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10316 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10320 as_fn_error $?
"unknown endianness
10321 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10325 # ----------------------
10326 # Checks for C++ headers
10327 # ----------------------
10330 ac_cpp
='$CXXCPP $CPPFLAGS'
10331 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10332 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10333 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10335 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10336 if test -z "$CXXCPP"; then
10337 if ${ac_cv_prog_CXXCPP+:} false
; then :
10338 $as_echo_n "(cached) " >&6
10340 # Double quotes because CXXCPP needs to be expanded
10341 for CXXCPP
in "$CXX -E" "/lib/cpp"
10343 ac_preproc_ok
=false
10344 for ac_cxx_preproc_warn_flag
in '' yes
10346 # Use a header file that comes with gcc, so configuring glibc
10347 # with a fresh cross-compiler works.
10348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10349 # <limits.h> exists even on freestanding compilers.
10350 # On the NeXT, cc -E runs the code through the compiler's parser,
10351 # not just through cpp. "Syntax error" is here to catch this case.
10352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10355 # include <limits.h>
10357 # include <assert.h>
10361 if ac_fn_cxx_try_cpp
"$LINENO"; then :
10364 # Broken: fails on valid input.
10367 rm -f conftest.err conftest.i conftest.
$ac_ext
10369 # OK, works on sane cases. Now check whether nonexistent headers
10370 # can be detected and how.
10371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h. */
10373 #include <ac_nonexistent.h>
10375 if ac_fn_cxx_try_cpp
"$LINENO"; then :
10376 # Broken: success on invalid input.
10379 # Passes both tests.
10383 rm -f conftest.err conftest.i conftest.
$ac_ext
10386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10387 rm -f conftest.i conftest.err conftest.
$ac_ext
10388 if $ac_preproc_ok; then :
10393 ac_cv_prog_CXXCPP
=$CXXCPP
10396 CXXCPP
=$ac_cv_prog_CXXCPP
10398 ac_cv_prog_CXXCPP
=$CXXCPP
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10401 $as_echo "$CXXCPP" >&6; }
10402 ac_preproc_ok
=false
10403 for ac_cxx_preproc_warn_flag
in '' yes
10405 # Use a header file that comes with gcc, so configuring glibc
10406 # with a fresh cross-compiler works.
10407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408 # <limits.h> exists even on freestanding compilers.
10409 # On the NeXT, cc -E runs the code through the compiler's parser,
10410 # not just through cpp. "Syntax error" is here to catch this case.
10411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10414 # include <limits.h>
10416 # include <assert.h>
10420 if ac_fn_cxx_try_cpp
"$LINENO"; then :
10423 # Broken: fails on valid input.
10426 rm -f conftest.err conftest.i conftest.
$ac_ext
10428 # OK, works on sane cases. Now check whether nonexistent headers
10429 # can be detected and how.
10430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 #include <ac_nonexistent.h>
10434 if ac_fn_cxx_try_cpp
"$LINENO"; then :
10435 # Broken: success on invalid input.
10438 # Passes both tests.
10442 rm -f conftest.err conftest.i conftest.
$ac_ext
10445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10446 rm -f conftest.i conftest.err conftest.
$ac_ext
10447 if $ac_preproc_ok; then :
10450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
10453 See \`config.log' for more details" >&5
10454 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
10455 See \`config.log' for more details" >&2;}; }
10459 ac_cpp
='$CXXCPP $CPPFLAGS'
10460 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10465 for ac_header
in unordered_map
10467 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
10468 if test "x$ac_cv_header_unordered_map" = xyes
; then :
10469 cat >>confdefs.h
<<_ACEOF
10470 #define HAVE_UNORDERED_MAP 1
10476 for ac_header
in tr1/unordered_map
10478 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
10479 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
10480 cat >>confdefs.h
<<_ACEOF
10481 #define HAVE_TR1_UNORDERED_MAP 1
10487 for ac_header
in ext
/hash_map
10489 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
10490 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
10491 cat >>confdefs.h
<<_ACEOF
10492 #define HAVE_EXT_HASH_MAP 1
10500 # Dependency checking.
10503 rm -rf .tst
2>/dev
/null
10504 mkdir .tst
2>/dev
/null
10505 if test -d .tst
; then
10510 rmdir .tst
2>/dev
/null
10512 DEPDIR
="${am__leading_dot}deps"
10514 ac_config_commands
="$ac_config_commands depdir"
10517 ac_config_commands
="$ac_config_commands gccdepdir"
10520 depcc
="$CXX" am_compiler_list
=
10522 am_depcomp
=$ac_aux_dir/depcomp
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10524 $as_echo_n "checking dependency style of $depcc... " >&6; }
10525 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
10526 $as_echo_n "(cached) " >&6
10528 if test -f "$am_depcomp"; then
10529 # We make a subdir and do the tests there. Otherwise we can end up
10530 # making bogus files that we don't know about and never remove. For
10531 # instance it was reported that on HP-UX the gcc test will end up
10532 # making a dummy file named `D' -- because `-MD' means `put the output
10535 # Copy depcomp to subdir because otherwise we won't find it if we're
10536 # using a relative directory.
10537 cp "$am_depcomp" conftest.dir
10539 # We will build objects and dependencies in a subdirectory because
10540 # it helps to detect inapplicable dependency modes. For instance
10541 # both Tru64's cc and ICC support -MD to output dependencies as a
10542 # side effect of compilation, but ICC will put the dependencies in
10543 # the current directory while Tru64 will put them in the object
10547 am_cv_CXX_dependencies_compiler_type
=none
10548 if test "$am_compiler_list" = ""; then
10549 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10551 for depmode
in $am_compiler_list; do
10552 if test $depmode = none
; then break; fi
10554 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10555 # Setup a source with many dependencies, because some compilers
10556 # like to wrap large dependency lists on column 80 (with \), and
10557 # we should not choose a depcomp mode which is confused by this.
10559 # We need to recreate these files for each test, as the compiler may
10560 # overwrite some of them when testing with obscure command lines.
10561 # This happens at least with the AIX C compiler.
10563 for i
in 1 2 3 4 5 6; do
10564 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10565 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10566 # Solaris 8's {/usr,}/bin/sh.
10567 touch sub
/conftst
$i.h
10569 echo "include sub/conftest.Po" > confmf
10571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10572 # mode. It turns out that the SunPro C++ compiler does not properly
10573 # handle `-M -o', and we need to detect this.
10574 depcmd
="depmode=$depmode \
10575 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10577 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10578 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10579 if env
$depcmd > conftest.err
2>&1 &&
10580 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10581 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10582 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10583 # icc doesn't choke on unknown options, it will just issue warnings
10584 # or remarks (even with -Werror). So we grep stderr for any message
10585 # that says an option was ignored or not supported.
10586 # When given -MP, icc 7.0 and 7.1 complain thusly:
10587 # icc: Command line warning: ignoring option '-M'; no argument required
10588 # The diagnosis changed in icc 8.0:
10589 # icc: Command line remark: option '-MP' not supported
10590 if (grep 'ignoring option' conftest.err ||
10591 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10592 am_cv_CXX_dependencies_compiler_type
=$depmode
10593 $as_echo "$as_me:$LINENO: success" >&5
10597 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10598 sed -e 's/^/| /' < conftest.err
>&5
10602 rm -rf conftest.dir
10604 am_cv_CXX_dependencies_compiler_type
=none
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10609 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10610 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10611 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10612 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10622 # These libraries may be used by collect2.
10623 # We may need a special search path to get them linked.
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10625 $as_echo_n "checking for collect2 libraries... " >&6; }
10626 if ${gcc_cv_collect2_libs+:} false
; then :
10627 $as_echo_n "(cached) " >&6
10630 for libs
in '' -lld -lmld \
10631 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10632 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10638 /* Override any GCC internal prototype to avoid an error.
10639 Use char because int might match the return type of a GCC
10640 builtin and then its argument prototype would still apply. */
10653 if ac_fn_cxx_try_link
"$LINENO"; then :
10654 gcc_cv_collect2_libs
="$libs"; break
10656 rm -f core conftest.err conftest.
$ac_objext \
10657 conftest
$ac_exeext conftest.
$ac_ext
10660 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10663 $as_echo "$gcc_cv_collect2_libs" >&6; }
10664 case $gcc_cv_collect2_libs in
10665 "none required") ;;
10666 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10670 # When building Ada code on Alpha, we need exc_resume which is usually in
10671 # -lexc. So test for it.
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10675 $as_echo_n "checking for library containing exc_resume... " >&6; }
10676 if ${ac_cv_search_exc_resume+:} false
; then :
10677 $as_echo_n "(cached) " >&6
10679 ac_func_search_save_LIBS
=$LIBS
10680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10683 /* Override any GCC internal prototype to avoid an error.
10684 Use char because int might match the return type of a GCC
10685 builtin and then its argument prototype would still apply. */
10689 char exc_resume ();
10693 return exc_resume ();
10698 for ac_lib
in '' exc
; do
10699 if test -z "$ac_lib"; then
10700 ac_res
="none required"
10703 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10705 if ac_fn_cxx_try_link
"$LINENO"; then :
10706 ac_cv_search_exc_resume
=$ac_res
10708 rm -f core conftest.err conftest.
$ac_objext \
10710 if ${ac_cv_search_exc_resume+:} false
; then :
10714 if ${ac_cv_search_exc_resume+:} false
; then :
10717 ac_cv_search_exc_resume
=no
10719 rm conftest.
$ac_ext
10720 LIBS
=$ac_func_search_save_LIBS
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10723 $as_echo "$ac_cv_search_exc_resume" >&6; }
10724 ac_res
=$ac_cv_search_exc_resume
10725 if test "$ac_res" != no
; then :
10726 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10730 GNAT_LIBEXC
="$LIBS"
10734 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10738 $as_echo_n "checking for library containing kstat_open... " >&6; }
10739 if ${ac_cv_search_kstat_open+:} false
; then :
10740 $as_echo_n "(cached) " >&6
10742 ac_func_search_save_LIBS
=$LIBS
10743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10752 char kstat_open ();
10756 return kstat_open ();
10761 for ac_lib
in '' kstat
; do
10762 if test -z "$ac_lib"; then
10763 ac_res
="none required"
10766 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10768 if ac_fn_cxx_try_link
"$LINENO"; then :
10769 ac_cv_search_kstat_open
=$ac_res
10771 rm -f core conftest.err conftest.
$ac_objext \
10773 if ${ac_cv_search_kstat_open+:} false
; then :
10777 if ${ac_cv_search_kstat_open+:} false
; then :
10780 ac_cv_search_kstat_open
=no
10782 rm conftest.
$ac_ext
10783 LIBS
=$ac_func_search_save_LIBS
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10786 $as_echo "$ac_cv_search_kstat_open" >&6; }
10787 ac_res
=$ac_cv_search_kstat_open
10788 if test "$ac_res" != no
; then :
10789 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10793 EXTRA_GCC_LIBS
="$LIBS"
10797 # Some systems put ldexp and frexp in libm instead of libc; assume
10798 # they're both in the same place. jcf-dump needs them.
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10802 $as_echo_n "checking for library containing ldexp... " >&6; }
10803 if ${ac_cv_search_ldexp+:} false
; then :
10804 $as_echo_n "(cached) " >&6
10806 ac_func_search_save_LIBS
=$LIBS
10807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10810 /* Override any GCC internal prototype to avoid an error.
10811 Use char because int might match the return type of a GCC
10812 builtin and then its argument prototype would still apply. */
10825 for ac_lib
in '' m
; do
10826 if test -z "$ac_lib"; then
10827 ac_res
="none required"
10830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10832 if ac_fn_cxx_try_link
"$LINENO"; then :
10833 ac_cv_search_ldexp
=$ac_res
10835 rm -f core conftest.err conftest.
$ac_objext \
10837 if ${ac_cv_search_ldexp+:} false
; then :
10841 if ${ac_cv_search_ldexp+:} false
; then :
10844 ac_cv_search_ldexp
=no
10846 rm conftest.
$ac_ext
10847 LIBS
=$ac_func_search_save_LIBS
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10850 $as_echo "$ac_cv_search_ldexp" >&6; }
10851 ac_res
=$ac_cv_search_ldexp
10852 if test "$ac_res" != no
; then :
10853 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10861 # Some systems need dlopen
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10865 $as_echo_n "checking for library containing dlopen... " >&6; }
10866 if ${ac_cv_search_dlopen+:} false
; then :
10867 $as_echo_n "(cached) " >&6
10869 ac_func_search_save_LIBS
=$LIBS
10870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10873 /* Override any GCC internal prototype to avoid an error.
10874 Use char because int might match the return type of a GCC
10875 builtin and then its argument prototype would still apply. */
10888 for ac_lib
in '' dl
; do
10889 if test -z "$ac_lib"; then
10890 ac_res
="none required"
10893 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10895 if ac_fn_cxx_try_link
"$LINENO"; then :
10896 ac_cv_search_dlopen
=$ac_res
10898 rm -f core conftest.err conftest.
$ac_objext \
10900 if ${ac_cv_search_dlopen+:} false
; then :
10904 if ${ac_cv_search_dlopen+:} false
; then :
10907 ac_cv_search_dlopen
=no
10909 rm conftest.
$ac_ext
10910 LIBS
=$ac_func_search_save_LIBS
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10913 $as_echo "$ac_cv_search_dlopen" >&6; }
10914 ac_res
=$ac_cv_search_dlopen
10915 if test "$ac_res" != no
; then :
10916 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10924 # Use <inttypes.h> only if it exists,
10925 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10928 $as_echo_n "checking for inttypes.h... " >&6; }
10929 if ${gcc_cv_header_inttypes_h+:} false
; then :
10930 $as_echo_n "(cached) " >&6
10932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934 #define __STDC_FORMAT_MACROS
10935 #include <sys/types.h>
10936 #include <inttypes.h>
10948 if ac_fn_cxx_try_compile
"$LINENO"; then :
10949 gcc_cv_header_inttypes_h
=yes
10951 gcc_cv_header_inttypes_h
=no
10953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10957 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10958 if test $gcc_cv_header_inttypes_h = yes; then
10960 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10964 # Look for the ZSTD package.
10972 # Check whether --with-zstd was given.
10973 if test "${with_zstd+set}" = set; then :
10974 withval
=$with_zstd;
10978 # Check whether --with-zstd-include was given.
10979 if test "${with_zstd_include+set}" = set; then :
10980 withval
=$with_zstd_include;
10984 # Check whether --with-zstd-lib was given.
10985 if test "${with_zstd_lib+set}" = set; then :
10986 withval
=$with_zstd_lib;
10989 case "x$with_zstd" in
10995 *) ZSTD_INCLUDE
=$with_zstd/include
10996 ZSTD_LIB
=$with_zstd/lib
11000 if test "x$with_zstd" != xno
; then
11001 if test "x$with_zstd_include" != x
; then
11002 ZSTD_INCLUDE
=$with_zstd_include
11004 if test "x$with_zstd_lib" != x
; then
11005 ZSTD_LIB
=$with_zstd_lib
11007 if test "x$ZSTD_INCLUDE" != x \
11008 && test "x$ZSTD_INCLUDE" != xno
; then
11009 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
11011 if test "x$ZSTD_LIB" != x \
11012 && test "x$ZSTD_LIB" != xno
; then
11013 ZSTD_LDFLAGS
=-L$ZSTD_LIB
11016 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
11017 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
11020 $as_echo_n "checking for zstd.h... " >&6; }
11021 if ${gcc_cv_header_zstd_h+:} false
; then :
11022 $as_echo_n "(cached) " >&6
11024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11035 if ac_fn_cxx_try_compile
"$LINENO"; then :
11036 gcc_cv_header_zstd_h
=yes
11038 gcc_cv_header_zstd_h
=no
11040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
11044 $as_echo "$gcc_cv_header_zstd_h" >&6; }
11045 if test $gcc_cv_header_zstd_h = yes; then
11047 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
11049 elif test "x$with_zstd" != x
; then
11050 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
11053 # LTO can use zstd compression algorithm
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
11057 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
11058 if ${ac_cv_search_ZSTD_compress+:} false
; then :
11059 $as_echo_n "(cached) " >&6
11061 ac_func_search_save_LIBS
=$LIBS
11062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11071 char ZSTD_compress ();
11075 return ZSTD_compress ();
11080 for ac_lib
in '' zstd
; do
11081 if test -z "$ac_lib"; then
11082 ac_res
="none required"
11085 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11087 if ac_fn_cxx_try_link
"$LINENO"; then :
11088 ac_cv_search_ZSTD_compress
=$ac_res
11090 rm -f core conftest.err conftest.
$ac_objext \
11092 if ${ac_cv_search_ZSTD_compress+:} false
; then :
11096 if ${ac_cv_search_ZSTD_compress+:} false
; then :
11099 ac_cv_search_ZSTD_compress
=no
11101 rm conftest.
$ac_ext
11102 LIBS
=$ac_func_search_save_LIBS
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
11105 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
11106 ac_res
=$ac_cv_search_ZSTD_compress
11107 if test "$ac_res" != no
; then :
11108 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11119 for ac_func
in times clock kill getrlimit setrlimit atoq \
11120 popen sysconf strsignal getrusage nl_langinfo \
11121 gettimeofday mbstowcs wcswidth mmap setlocale \
11122 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
11124 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11125 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11126 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11127 cat >>confdefs.h
<<_ACEOF
11128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11135 if test x
$ac_cv_func_mbstowcs = xyes
; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
11137 $as_echo_n "checking whether mbstowcs works... " >&6; }
11138 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
11139 $as_echo_n "(cached) " >&6
11141 if test "$cross_compiling" = yes; then :
11142 gcc_cv_func_mbstowcs_works
=yes
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146 #include <stdlib.h>
11149 mbstowcs(0, "", 0);
11153 if ac_fn_cxx_try_run
"$LINENO"; then :
11154 gcc_cv_func_mbstowcs_works
=yes
11156 gcc_cv_func_mbstowcs_works
=no
11158 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11159 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
11164 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
11165 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
11167 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
11172 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11173 if test "x$ac_cv_type_ssize_t" = xyes
; then :
11177 cat >>confdefs.h
<<_ACEOF
11178 #define ssize_t int
11183 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
11184 if test "x$ac_cv_type_caddr_t" = xyes
; then :
11188 cat >>confdefs.h
<<_ACEOF
11189 #define caddr_t char *
11196 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
11197 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
11198 gcc_header_sys_mman_h
=yes
11200 gcc_header_sys_mman_h
=no
11203 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
11204 if test "x$ac_cv_func_mmap" = xyes
; then :
11210 if test "$gcc_header_sys_mman_h" != yes \
11211 ||
test "$gcc_func_mmap" != yes; then
11212 gcc_cv_func_mmap_file
=no
11213 gcc_cv_func_mmap_dev_zero
=no
11214 gcc_cv_func_mmap_anon
=no
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11217 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11218 if ${gcc_cv_func_mmap_file+:} false
; then :
11219 $as_echo_n "(cached) " >&6
11221 # Add a system to this blacklist if
11222 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11223 # memory area containing the same data that you'd get if you applied
11224 # read() to the same fd. The only system known to have a problem here
11225 # is VMS, where text files have record structure.
11228 gcc_cv_func_mmap_file
=no
;;
11230 gcc_cv_func_mmap_file
=yes;;
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
11234 $as_echo "$gcc_cv_func_mmap_file" >&6; }
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11236 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11237 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
11238 $as_echo_n "(cached) " >&6
11240 # Add a system to this blacklist if it has mmap() but /dev/zero
11241 # does not exist, or if mmapping /dev/zero does not give anonymous
11242 # zeroed pages with both the following properties:
11243 # 1. If you map N consecutive pages in with one call, and then
11244 # unmap any subset of those pages, the pages that were not
11245 # explicitly unmapped remain accessible.
11246 # 2. If you map two adjacent blocks of memory and then unmap them
11247 # both at once, they must both go away.
11248 # Systems known to be in this category are Windows (all variants),
11251 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
11252 gcc_cv_func_mmap_dev_zero
=no
;;
11254 gcc_cv_func_mmap_dev_zero
=yes;;
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
11258 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
11260 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11262 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11263 if ${gcc_cv_decl_map_anon+:} false
; then :
11264 $as_echo_n "(cached) " >&6
11266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268 #include <sys/types.h>
11269 #include <sys/mman.h>
11270 #include <unistd.h>
11272 #ifndef MAP_ANONYMOUS
11273 #define MAP_ANONYMOUS MAP_ANON
11279 int n = MAP_ANONYMOUS;
11284 if ac_fn_cxx_try_compile
"$LINENO"; then :
11285 gcc_cv_decl_map_anon
=yes
11287 gcc_cv_decl_map_anon
=no
11289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
11292 $as_echo "$gcc_cv_decl_map_anon" >&6; }
11294 if test $gcc_cv_decl_map_anon = no
; then
11295 gcc_cv_func_mmap_anon
=no
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11298 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11299 if ${gcc_cv_func_mmap_anon+:} false
; then :
11300 $as_echo_n "(cached) " >&6
11302 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11303 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11304 # doesn't give anonymous zeroed pages with the same properties listed
11305 # above for use of /dev/zero.
11306 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11308 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
11309 gcc_cv_func_mmap_anon
=no
;;
11311 gcc_cv_func_mmap_anon
=yes;;
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
11315 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
11319 if test $gcc_cv_func_mmap_file = yes; then
11321 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11324 if test $gcc_cv_func_mmap_dev_zero = yes; then
11326 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11329 if test $gcc_cv_func_mmap_anon = yes; then
11331 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11338 # Under VMS, vfork works very differently than on Unix. The standard test
11339 # won't work, and it isn't easily adaptable. It makes more sense to
11341 ac_cv_func_vfork_works
=yes
11344 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11345 if test "x$ac_cv_type_pid_t" = xyes
; then :
11349 cat >>confdefs.h
<<_ACEOF
11355 for ac_header
in vfork.h
11357 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11358 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11359 cat >>confdefs.h
<<_ACEOF
11360 #define HAVE_VFORK_H 1
11366 for ac_func
in fork vfork
11368 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11369 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11370 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11371 cat >>confdefs.h
<<_ACEOF
11372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11378 if test "x$ac_cv_func_fork" = xyes
; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11380 $as_echo_n "checking for working fork... " >&6; }
11381 if ${ac_cv_func_fork_works+:} false
; then :
11382 $as_echo_n "(cached) " >&6
11384 if test "$cross_compiling" = yes; then :
11385 ac_cv_func_fork_works
=cross
11387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389 $ac_includes_default
11394 /* By Ruediger Kuhlmann. */
11395 return fork () < 0;
11401 if ac_fn_cxx_try_run
"$LINENO"; then :
11402 ac_cv_func_fork_works
=yes
11404 ac_cv_func_fork_works
=no
11406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11412 $as_echo "$ac_cv_func_fork_works" >&6; }
11415 ac_cv_func_fork_works
=$ac_cv_func_fork
11417 if test "x$ac_cv_func_fork_works" = xcross
; then
11419 *-*-amigaos* |
*-*-msdosdjgpp*)
11420 # Override, as these systems have only a dummy fork() stub
11421 ac_cv_func_fork_works
=no
11424 ac_cv_func_fork_works
=yes
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11428 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11430 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11431 if test "x$ac_cv_func_vfork" = xyes
; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11433 $as_echo_n "checking for working vfork... " >&6; }
11434 if ${ac_cv_func_vfork_works+:} false
; then :
11435 $as_echo_n "(cached) " >&6
11437 if test "$cross_compiling" = yes; then :
11438 ac_cv_func_vfork_works
=cross
11440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11442 /* Thanks to Paul Eggert for this test. */
11443 $ac_includes_default
11444 #include <sys/wait.h>
11445 #ifdef HAVE_VFORK_H
11446 # include <vfork.h>
11448 /* On some sparc systems, changes by the child to local and incoming
11449 argument registers are propagated back to the parent. The compiler
11450 is told about this with #include <vfork.h>, but some compilers
11451 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11452 static variable whose address is put into a register that is
11453 clobbered by the vfork. */
11456 sparc_address_test (int arg)
11458 sparc_address_test (arg) int arg;
11461 static pid_t child;
11479 pid_t parent = getpid ();
11482 sparc_address_test (0);
11487 /* Here is another test for sparc vfork register problems. This
11488 test uses lots of local variables, at least as many local
11489 variables as main has allocated so far including compiler
11490 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11491 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11492 reuse the register of parent for one of the local variables,
11493 since it will think that parent can't possibly be used any more
11494 in this routine. Assigning to the local variable will thus
11495 munge parent in the parent process. */
11497 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11498 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11499 /* Convince the compiler that p..p7 are live; otherwise, it might
11500 use the same hardware register for all 8 local variables. */
11501 if (p != p1 || p != p2 || p != p3 || p != p4
11502 || p != p5 || p != p6 || p != p7)
11505 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11506 from child file descriptors. If the child closes a descriptor
11507 before it execs or exits, this munges the parent's descriptor
11508 as well. Test for this by closing stdout in the child. */
11509 _exit(close(fileno(stdout)) != 0);
11514 while (wait(&status) != child)
11517 /* Was there some problem with vforking? */
11520 /* Did the child fail? (This shouldn't happen.) */
11523 /* Did the vfork/compiler bug occur? */
11524 || parent != getpid()
11526 /* Did the file descriptor bug occur? */
11527 || fstat(fileno(stdout), &st) != 0
11532 if ac_fn_cxx_try_run
"$LINENO"; then :
11533 ac_cv_func_vfork_works
=yes
11535 ac_cv_func_vfork_works
=no
11537 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11538 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11543 $as_echo "$ac_cv_func_vfork_works" >&6; }
11546 if test "x$ac_cv_func_fork_works" = xcross
; then
11547 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11549 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11552 if test "x$ac_cv_func_vfork_works" = xyes
; then
11554 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11558 $as_echo "#define vfork fork" >>confdefs.h
11561 if test "x$ac_cv_func_fork_works" = xyes
; then
11563 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11569 if test "X$prefix" = "XNONE"; then
11570 acl_final_prefix
="$ac_default_prefix"
11572 acl_final_prefix
="$prefix"
11574 if test "X$exec_prefix" = "XNONE"; then
11575 acl_final_exec_prefix
='${prefix}'
11577 acl_final_exec_prefix
="$exec_prefix"
11579 acl_save_prefix
="$prefix"
11580 prefix
="$acl_final_prefix"
11581 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11582 prefix
="$acl_save_prefix"
11585 # Check whether --with-gnu-ld was given.
11586 if test "${with_gnu_ld+set}" = set; then :
11587 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11592 # Prepare PATH_SEPARATOR.
11593 # The user is always right.
11594 if test "${PATH_SEPARATOR+set}" != set; then
11595 echo "#! /bin/sh" >conf$$.sh
11596 echo "exit 0" >>conf$$.sh
11598 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11606 if test "$GCC" = yes; then
11607 # Check if gcc -print-prog-name=ld gives a path.
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11609 $as_echo_n "checking for ld used by GCC... " >&6; }
11612 # gcc leaves a trailing carriage return which upsets mingw
11613 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11615 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11618 # Accept absolute paths.
11619 [\\/]* |
[A-Za-z
]:[\\/]*)
11620 re_direlt
='/[^/][^/]*/\.\./'
11621 # Canonicalize the path of ld
11622 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11623 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11624 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11626 test -z "$LD" && LD
="$ac_prog"
11629 # If it fails, then pretend we aren't using GCC.
11633 # If it is relative, then search for the first ld in PATH.
11634 with_gnu_ld
=unknown
11637 elif test "$with_gnu_ld" = yes; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11639 $as_echo_n "checking for GNU ld... " >&6; }
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11642 $as_echo_n "checking for non-GNU ld... " >&6; }
11644 if ${acl_cv_path_LD+:} false
; then :
11645 $as_echo_n "(cached) " >&6
11647 if test -z "$LD"; then
11648 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11649 for ac_dir
in $PATH; do
11650 test -z "$ac_dir" && ac_dir
=.
11651 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11652 acl_cv_path_LD
="$ac_dir/$ac_prog"
11653 # Check to see if the program is GNU ld. I'd rather use --version,
11654 # but apparently some GNU ld's only accept -v.
11655 # Break only if it was the GNU/non-GNU ld that we prefer.
11656 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11657 test "$with_gnu_ld" != no
&& break
11659 test "$with_gnu_ld" != yes && break
11665 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11669 LD
="$acl_cv_path_LD"
11670 if test -n "$LD"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11672 $as_echo "$LD" >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11677 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11679 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11680 if ${acl_cv_prog_gnu_ld+:} false
; then :
11681 $as_echo_n "(cached) " >&6
11683 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11684 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11685 acl_cv_prog_gnu_ld
=yes
11687 acl_cv_prog_gnu_ld
=no
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11691 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11692 with_gnu_ld
=$acl_cv_prog_gnu_ld
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11697 $as_echo_n "checking for shared library run path origin... " >&6; }
11698 if ${acl_cv_rpath+:} false
; then :
11699 $as_echo_n "(cached) " >&6
11702 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11703 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11705 rm -f .
/conftest.sh
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11710 $as_echo "$acl_cv_rpath" >&6; }
11712 libext
="$acl_cv_libext"
11713 shlibext
="$acl_cv_shlibext"
11714 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11715 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11716 hardcode_direct
="$acl_cv_hardcode_direct"
11717 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11718 # Check whether --enable-rpath was given.
11719 if test "${enable_rpath+set}" = set; then :
11720 enableval
=$enable_rpath; :
11734 acl_save_prefix
="$prefix"
11735 prefix
="$acl_final_prefix"
11736 acl_save_exec_prefix
="$exec_prefix"
11737 exec_prefix
="$acl_final_exec_prefix"
11739 eval additional_includedir
=\"$includedir\"
11740 eval additional_libdir
=\"$libdir\"
11742 exec_prefix
="$acl_save_exec_prefix"
11743 prefix
="$acl_save_prefix"
11746 # Check whether --with-libiconv-prefix was given.
11747 if test "${with_libiconv_prefix+set}" = set; then :
11748 withval
=$with_libiconv_prefix;
11749 if test "X$withval" = "Xno"; then
11752 if test "X$withval" = "X"; then
11754 acl_save_prefix
="$prefix"
11755 prefix
="$acl_final_prefix"
11756 acl_save_exec_prefix
="$exec_prefix"
11757 exec_prefix
="$acl_final_exec_prefix"
11759 eval additional_includedir
=\"$includedir\"
11760 eval additional_libdir
=\"$libdir\"
11762 exec_prefix
="$acl_save_exec_prefix"
11763 prefix
="$acl_save_prefix"
11766 additional_includedir
="$withval/include"
11767 additional_libdir
="$withval/lib"
11774 # Check whether --with-libiconv-type was given.
11775 if test "${with_libiconv_type+set}" = set; then :
11776 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11778 with_libiconv_type
=auto
11781 lib_type
=`eval echo \$with_libiconv_type`
11788 names_already_handled
=
11789 names_next_round
='iconv '
11790 while test -n "$names_next_round"; do
11791 names_this_round
="$names_next_round"
11793 for name
in $names_this_round; do
11795 for n
in $names_already_handled; do
11796 if test "$n" = "$name"; then
11797 already_handled
=yes
11801 if test -z "$already_handled"; then
11802 names_already_handled
="$names_already_handled $name"
11803 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11804 eval value
=\"\
$HAVE_LIB$uppername\"
11805 if test -n "$value"; then
11806 if test "$value" = yes; then
11807 eval value
=\"\
$LIB$uppername\"
11808 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11809 eval value
=\"\
$LTLIB$uppername\"
11810 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11819 if test $use_additional = yes; then
11820 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11821 found_dir
="$additional_libdir"
11822 found_so
="$additional_libdir/lib$name.$shlibext"
11823 if test -f "$additional_libdir/lib$name.la"; then
11824 found_la
="$additional_libdir/lib$name.la"
11826 elif test x
$lib_type != xshared
; then
11827 if test -f "$additional_libdir/lib$name.$libext"; then
11828 found_dir
="$additional_libdir"
11829 found_a
="$additional_libdir/lib$name.$libext"
11830 if test -f "$additional_libdir/lib$name.la"; then
11831 found_la
="$additional_libdir/lib$name.la"
11836 if test "X$found_dir" = "X"; then
11837 for x
in $LDFLAGS $LTLIBICONV; do
11839 acl_save_prefix
="$prefix"
11840 prefix
="$acl_final_prefix"
11841 acl_save_exec_prefix
="$exec_prefix"
11842 exec_prefix
="$acl_final_exec_prefix"
11844 exec_prefix
="$acl_save_exec_prefix"
11845 prefix
="$acl_save_prefix"
11849 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11850 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11852 found_so
="$dir/lib$name.$shlibext"
11853 if test -f "$dir/lib$name.la"; then
11854 found_la
="$dir/lib$name.la"
11856 elif test x
$lib_type != xshared
; then
11857 if test -f "$dir/lib$name.$libext"; then
11859 found_a
="$dir/lib$name.$libext"
11860 if test -f "$dir/lib$name.la"; then
11861 found_la
="$dir/lib$name.la"
11867 if test "X$found_dir" != "X"; then
11872 if test "X$found_dir" != "X"; then
11873 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11874 if test "X$found_so" != "X"; then
11875 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11876 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11879 for x
in $ltrpathdirs; do
11880 if test "X$x" = "X$found_dir"; then
11885 if test -z "$haveit"; then
11886 ltrpathdirs
="$ltrpathdirs $found_dir"
11888 if test "$hardcode_direct" = yes; then
11889 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11891 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11892 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11894 for x
in $rpathdirs; do
11895 if test "X$x" = "X$found_dir"; then
11900 if test -z "$haveit"; then
11901 rpathdirs
="$rpathdirs $found_dir"
11905 for x
in $LDFLAGS $LIBICONV; do
11907 acl_save_prefix
="$prefix"
11908 prefix
="$acl_final_prefix"
11909 acl_save_exec_prefix
="$exec_prefix"
11910 exec_prefix
="$acl_final_exec_prefix"
11912 exec_prefix
="$acl_save_exec_prefix"
11913 prefix
="$acl_save_prefix"
11915 if test "X$x" = "X-L$found_dir"; then
11920 if test -z "$haveit"; then
11921 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11923 if test "$hardcode_minus_L" != no
; then
11924 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11926 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11932 if test "X$found_a" != "X"; then
11933 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11935 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11938 additional_includedir
=
11939 case "$found_dir" in
11941 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11942 additional_includedir
="$basedir/include"
11945 if test "X$additional_includedir" != "X"; then
11946 if test "X$additional_includedir" != "X/usr/include"; then
11948 if test "X$additional_includedir" = "X/usr/local/include"; then
11949 if test -n "$GCC"; then
11951 linux
*) haveit
=yes;;
11955 if test -z "$haveit"; then
11956 for x
in $CPPFLAGS $INCICONV; do
11958 acl_save_prefix
="$prefix"
11959 prefix
="$acl_final_prefix"
11960 acl_save_exec_prefix
="$exec_prefix"
11961 exec_prefix
="$acl_final_exec_prefix"
11963 exec_prefix
="$acl_save_exec_prefix"
11964 prefix
="$acl_save_prefix"
11966 if test "X$x" = "X-I$additional_includedir"; then
11971 if test -z "$haveit"; then
11972 if test -d "$additional_includedir"; then
11973 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11979 if test -n "$found_la"; then
11980 save_libdir
="$libdir"
11981 case "$found_la" in
11982 */* |
*\\*) .
"$found_la" ;;
11983 *) .
"./$found_la" ;;
11985 libdir
="$save_libdir"
11986 for dep
in $dependency_libs; do
11989 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11990 if test "X$additional_libdir" != "X/usr/lib"; then
11992 if test "X$additional_libdir" = "X/usr/local/lib"; then
11993 if test -n "$GCC"; then
11995 linux
*) haveit
=yes;;
11999 if test -z "$haveit"; then
12001 for x
in $LDFLAGS $LIBICONV; do
12003 acl_save_prefix
="$prefix"
12004 prefix
="$acl_final_prefix"
12005 acl_save_exec_prefix
="$exec_prefix"
12006 exec_prefix
="$acl_final_exec_prefix"
12008 exec_prefix
="$acl_save_exec_prefix"
12009 prefix
="$acl_save_prefix"
12011 if test "X$x" = "X-L$additional_libdir"; then
12016 if test -z "$haveit"; then
12017 if test -d "$additional_libdir"; then
12018 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12022 for x
in $LDFLAGS $LTLIBICONV; do
12024 acl_save_prefix
="$prefix"
12025 prefix
="$acl_final_prefix"
12026 acl_save_exec_prefix
="$exec_prefix"
12027 exec_prefix
="$acl_final_exec_prefix"
12029 exec_prefix
="$acl_save_exec_prefix"
12030 prefix
="$acl_save_prefix"
12032 if test "X$x" = "X-L$additional_libdir"; then
12037 if test -z "$haveit"; then
12038 if test -d "$additional_libdir"; then
12039 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12046 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12047 if test "$enable_rpath" != no
; then
12049 for x
in $rpathdirs; do
12050 if test "X$x" = "X$dir"; then
12055 if test -z "$haveit"; then
12056 rpathdirs
="$rpathdirs $dir"
12059 for x
in $ltrpathdirs; do
12060 if test "X$x" = "X$dir"; then
12065 if test -z "$haveit"; then
12066 ltrpathdirs
="$ltrpathdirs $dir"
12071 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12074 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12077 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
12078 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12084 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
12085 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12086 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12088 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
12089 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
12096 if test "X$rpathdirs" != "X"; then
12097 if test -n "$hardcode_libdir_separator"; then
12099 for found_dir
in $rpathdirs; do
12100 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12102 acl_save_libdir
="$libdir"
12104 eval flag
=\"$hardcode_libdir_flag_spec\"
12105 libdir
="$acl_save_libdir"
12106 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12108 for found_dir
in $rpathdirs; do
12109 acl_save_libdir
="$libdir"
12110 libdir
="$found_dir"
12111 eval flag
=\"$hardcode_libdir_flag_spec\"
12112 libdir
="$acl_save_libdir"
12113 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12117 if test "X$ltrpathdirs" != "X"; then
12118 for found_dir
in $ltrpathdirs; do
12119 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12130 $as_echo_n "checking for iconv... " >&6; }
12131 if ${am_cv_func_iconv+:} false
; then :
12132 $as_echo_n "(cached) " >&6
12135 am_cv_func_iconv
="no, consider installing GNU libiconv"
12137 am_save_CPPFLAGS
="$CPPFLAGS"
12138 CPPFLAGS
="$CPPFLAGS $INCICONV"
12139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 #include <stdlib.h>
12146 iconv_t cd = iconv_open("","");
12147 iconv(cd,NULL,NULL,NULL,NULL);
12153 if ac_fn_cxx_try_link
"$LINENO"; then :
12154 am_cv_func_iconv
=yes
12156 rm -f core conftest.err conftest.
$ac_objext \
12157 conftest
$ac_exeext conftest.
$ac_ext
12158 CPPFLAGS
="$am_save_CPPFLAGS"
12160 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
12161 for _libs
in .libs _libs
; do
12162 am_save_CPPFLAGS
="$CPPFLAGS"
12163 am_save_LIBS
="$LIBS"
12164 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
12165 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
12166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168 #include <stdlib.h>
12173 iconv_t cd = iconv_open("","");
12174 iconv(cd,NULL,NULL,NULL,NULL);
12180 if ac_fn_cxx_try_link
"$LINENO"; then :
12181 INCICONV
="-I../libiconv/include"
12182 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
12183 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
12184 am_cv_lib_iconv
=yes
12185 am_cv_func_iconv
=yes
12187 rm -f core conftest.err conftest.
$ac_objext \
12188 conftest
$ac_exeext conftest.
$ac_ext
12189 CPPFLAGS
="$am_save_CPPFLAGS"
12190 LIBS
="$am_save_LIBS"
12191 if test "$am_cv_func_iconv" = "yes"; then
12197 if test "$am_cv_func_iconv" != yes; then
12198 am_save_CPPFLAGS
="$CPPFLAGS"
12199 am_save_LIBS
="$LIBS"
12200 CPPFLAGS
="$CPPFLAGS $INCICONV"
12201 LIBS
="$LIBS $LIBICONV"
12202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204 #include <stdlib.h>
12209 iconv_t cd = iconv_open("","");
12210 iconv(cd,NULL,NULL,NULL,NULL);
12216 if ac_fn_cxx_try_link
"$LINENO"; then :
12217 am_cv_lib_iconv
=yes
12218 am_cv_func_iconv
=yes
12220 rm -f core conftest.err conftest.
$ac_objext \
12221 conftest
$ac_exeext conftest.
$ac_ext
12222 CPPFLAGS
="$am_save_CPPFLAGS"
12223 LIBS
="$am_save_LIBS"
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12228 $as_echo "$am_cv_func_iconv" >&6; }
12229 if test "$am_cv_func_iconv" = yes; then
12231 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12234 if test "$am_cv_lib_iconv" = yes; then
12236 for element
in $INCICONV; do
12238 for x
in $CPPFLAGS; do
12240 acl_save_prefix
="$prefix"
12241 prefix
="$acl_final_prefix"
12242 acl_save_exec_prefix
="$exec_prefix"
12243 exec_prefix
="$acl_final_exec_prefix"
12245 exec_prefix
="$acl_save_exec_prefix"
12246 prefix
="$acl_save_prefix"
12248 if test "X$x" = "X$element"; then
12253 if test -z "$haveit"; then
12254 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12259 $as_echo_n "checking how to link with libiconv... " >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12261 $as_echo "$LIBICONV" >&6; }
12269 if test "$am_cv_func_iconv" = yes; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12271 $as_echo_n "checking for iconv declaration... " >&6; }
12272 if ${am_cv_proto_iconv+:} false
; then :
12273 $as_echo_n "(cached) " >&6
12276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 #include <stdlib.h>
12285 #if defined(__STDC__) || defined(__cplusplus)
12286 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12299 if ac_fn_cxx_try_compile
"$LINENO"; then :
12300 am_cv_proto_iconv_arg1
=""
12302 am_cv_proto_iconv_arg1
="const"
12304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12305 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);"
12308 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12310 }$am_cv_proto_iconv" >&5
12312 }$am_cv_proto_iconv" >&6; }
12314 cat >>confdefs.h
<<_ACEOF
12315 #define ICONV_CONST $am_cv_proto_iconv_arg1
12321 # Until we have in-tree GNU iconv:
12323 if test -f "$LTLIBICONV"; then
12324 LIBICONV_DEP
=$LTLIBICONV
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12330 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12331 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12332 $as_echo_n "(cached) " >&6
12334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336 #include <locale.h>
12345 if ac_fn_cxx_try_link
"$LINENO"; then :
12346 am_cv_val_LC_MESSAGES
=yes
12348 am_cv_val_LC_MESSAGES
=no
12350 rm -f core conftest.err conftest.
$ac_objext \
12351 conftest
$ac_exeext conftest.
$ac_ext
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12354 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12355 if test $am_cv_val_LC_MESSAGES = yes; then
12357 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12364 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12365 if ${am_cv_langinfo_codeset+:} false
; then :
12366 $as_echo_n "(cached) " >&6
12368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370 #include <langinfo.h>
12374 char* cs = nl_langinfo(CODESET);
12379 if ac_fn_cxx_try_link
"$LINENO"; then :
12380 am_cv_langinfo_codeset
=yes
12382 am_cv_langinfo_codeset
=no
12384 rm -f core conftest.err conftest.
$ac_objext \
12385 conftest
$ac_exeext conftest.
$ac_ext
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12389 $as_echo "$am_cv_langinfo_codeset" >&6; }
12390 if test $am_cv_langinfo_codeset = yes; then
12392 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12397 # We will need to find libiberty.h and ansidecl.h
12398 saved_CFLAGS
="$CFLAGS"
12399 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12400 saved_CXXFLAGS
="$CXXFLAGS"
12401 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12403 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12404 # normal autoconf function for these. But force definition of
12405 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12406 # basename handling in libiberty.h.
12407 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12408 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12409 #undef HAVE_DECL_BASENAME
12410 #define HAVE_DECL_BASENAME 1
12411 #include \"ansidecl.h\"
12412 #include \"system.h\"
12414 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12420 cat >>confdefs.h
<<_ACEOF
12421 #define HAVE_DECL_BASENAME $ac_have_decl
12423 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12424 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12425 #undef HAVE_DECL_BASENAME
12426 #define HAVE_DECL_BASENAME 1
12427 #include \"ansidecl.h\"
12428 #include \"system.h\"
12430 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12436 cat >>confdefs.h
<<_ACEOF
12437 #define HAVE_DECL_STRSTR $ac_have_decl
12441 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12442 madvise stpcpy strnlen strsignal strverscmp \
12443 strtol strtoul strtoll strtoull setenv unsetenv \
12444 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12445 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
12447 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12449 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12450 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12451 $as_echo_n "(cached) " >&6
12453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12456 #define $ac_tr_decl 1
12458 #include "ansidecl.h"
12459 #include "system.h"
12465 char *(*pfn) = (char *(*)) $ac_func ;
12471 if ac_fn_cxx_try_compile
"$LINENO"; then :
12472 eval "gcc_cv_have_decl_$ac_func=yes"
12474 eval "gcc_cv_have_decl_$ac_func=no"
12476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12479 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12481 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12482 #define $ac_tr_decl 1
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12488 #define $ac_tr_decl 0
12496 for ac_func
in getrlimit setrlimit getrusage
12498 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12500 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12501 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12502 $as_echo_n "(cached) " >&6
12504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12507 #define $ac_tr_decl 1
12509 #include "ansidecl.h"
12510 #include "system.h"
12511 #ifdef HAVE_SYS_RESOURCE_H
12512 #include <sys/resource.h>
12520 char *(*pfn) = (char *(*)) $ac_func ;
12526 if ac_fn_cxx_try_compile
"$LINENO"; then :
12527 eval "gcc_cv_have_decl_$ac_func=yes"
12529 eval "gcc_cv_have_decl_$ac_func=no"
12531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12534 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12537 #define $ac_tr_decl 1
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12543 #define $ac_tr_decl 0
12551 for ac_func
in mallinfo
12553 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12555 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12556 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12557 $as_echo_n "(cached) " >&6
12559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12562 #define $ac_tr_decl 1
12564 #include "ansidecl.h"
12565 #include "system.h"
12566 #ifdef HAVE_MALLOC_H
12567 #include <malloc.h>
12575 char *(*pfn) = (char *(*)) $ac_func ;
12581 if ac_fn_cxx_try_compile
"$LINENO"; then :
12582 eval "gcc_cv_have_decl_$ac_func=yes"
12584 eval "gcc_cv_have_decl_$ac_func=no"
12586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12589 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12591 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12592 #define $ac_tr_decl 1
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12598 #define $ac_tr_decl 0
12606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12609 #include "ansidecl.h"
12610 #include "system.h"
12611 #ifdef HAVE_SYS_RESOURCE_H
12612 #include <sys/resource.h>
12623 if ac_fn_cxx_try_compile
"$LINENO"; then :
12627 $as_echo "#define rlim_t long" >>confdefs.h
12630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12632 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12633 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12634 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12635 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12636 for ac_func
in ldgetname
12638 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12640 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12641 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12642 $as_echo_n "(cached) " >&6
12644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12647 #define $ac_tr_decl 1
12649 #include "ansidecl.h"
12650 #include "system.h"
12651 #ifdef HAVE_LDFCN_H
12662 char *(*pfn) = (char *(*)) $ac_func ;
12668 if ac_fn_cxx_try_compile
"$LINENO"; then :
12669 eval "gcc_cv_have_decl_$ac_func=yes"
12671 eval "gcc_cv_have_decl_$ac_func=no"
12673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12678 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12679 #define $ac_tr_decl 1
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12685 #define $ac_tr_decl 0
12693 for ac_func
in times
12695 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12697 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12698 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12699 $as_echo_n "(cached) " >&6
12701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12704 #define $ac_tr_decl 1
12706 #include "ansidecl.h"
12707 #include "system.h"
12708 #ifdef HAVE_SYS_TIMES_H
12709 #include <sys/times.h>
12717 char *(*pfn) = (char *(*)) $ac_func ;
12723 if ac_fn_cxx_try_compile
"$LINENO"; then :
12724 eval "gcc_cv_have_decl_$ac_func=yes"
12726 eval "gcc_cv_have_decl_$ac_func=no"
12728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12731 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12733 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12734 #define $ac_tr_decl 1
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12740 #define $ac_tr_decl 0
12748 for ac_func
in sigaltstack
12750 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12752 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12753 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12754 $as_echo_n "(cached) " >&6
12756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12759 #define $ac_tr_decl 1
12761 #include "ansidecl.h"
12762 #include "system.h"
12763 #include <signal.h>
12770 char *(*pfn) = (char *(*)) $ac_func ;
12776 if ac_fn_cxx_try_compile
"$LINENO"; then :
12777 eval "gcc_cv_have_decl_$ac_func=yes"
12779 eval "gcc_cv_have_decl_$ac_func=no"
12781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12784 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12787 #define $ac_tr_decl 1
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12793 #define $ac_tr_decl 0
12801 # More time-related stuff.
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12803 $as_echo_n "checking for struct tms... " >&6; }
12804 if ${ac_cv_struct_tms+:} false
; then :
12805 $as_echo_n "(cached) " >&6
12808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12811 #include "ansidecl.h"
12812 #include "system.h"
12813 #ifdef HAVE_SYS_TIMES_H
12814 #include <sys/times.h>
12825 if ac_fn_cxx_try_compile
"$LINENO"; then :
12826 ac_cv_struct_tms
=yes
12828 ac_cv_struct_tms
=no
12830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12833 $as_echo "$ac_cv_struct_tms" >&6; }
12834 if test $ac_cv_struct_tms = yes; then
12836 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12840 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12841 # revisit after autoconf 2.50.
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12843 $as_echo_n "checking for clock_t... " >&6; }
12844 if ${gcc_cv_type_clock_t+:} false
; then :
12845 $as_echo_n "(cached) " >&6
12848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12851 #include "ansidecl.h"
12852 #include "system.h"
12862 if ac_fn_cxx_try_compile
"$LINENO"; then :
12863 gcc_cv_type_clock_t
=yes
12865 gcc_cv_type_clock_t
=no
12867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12870 $as_echo "$gcc_cv_type_clock_t" >&6; }
12871 if test $gcc_cv_type_clock_t = yes; then
12873 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12877 # Check if F_SETLKW is supported by fcntl.
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12879 $as_echo_n "checking for F_SETLKW... " >&6; }
12880 if ${ac_cv_f_setlkw+:} false
; then :
12881 $as_echo_n "(cached) " >&6
12884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12897 return fcntl (1, F_SETLKW, &fl);
12902 if ac_fn_cxx_try_compile
"$LINENO"; then :
12907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12910 $as_echo "$ac_cv_f_setlkw" >&6; }
12911 if test $ac_cv_f_setlkw = yes; then
12913 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12917 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12918 CFLAGS
="$saved_CFLAGS"
12919 CXXFLAGS
="$saved_CXXFLAGS"
12921 # mkdir takes a single argument on some systems.
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12923 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12924 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12925 $as_echo_n "(cached) " >&6
12927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12930 #include <sys/types.h>
12931 #ifdef HAVE_SYS_STAT_H
12932 # include <sys/stat.h>
12934 #ifdef HAVE_UNISTD_H
12935 # include <unistd.h>
12937 #ifdef HAVE_DIRECT_H
12938 # include <direct.h>
12948 if ac_fn_cxx_try_compile
"$LINENO"; then :
12949 gcc_cv_mkdir_takes_one_arg
=no
12951 gcc_cv_mkdir_takes_one_arg
=yes
12953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12956 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12957 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12959 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12970 # With Setjmp/Longjmp based exception handling.
12971 # Check whether --enable-sjlj-exceptions was given.
12972 if test "${enable_sjlj_exceptions+set}" = set; then :
12973 enableval
=$enable_sjlj_exceptions; case $target in
12975 if test $enableval != yes; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12977 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12982 force_sjlj_exceptions
=yes
12986 force_sjlj_exceptions
=yes
12990 force_sjlj_exceptions
=yes
12994 force_sjlj_exceptions
=no
12999 if test $force_sjlj_exceptions = yes; then
13000 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
13002 cat >>confdefs.h
<<_ACEOF
13003 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13008 # --------------------------------------------------------
13009 # Build, host, and target specific configuration fragments
13010 # --------------------------------------------------------
13012 # Collect build-machine-specific information.
13013 .
${srcdir}/config.build ||
exit 1
13015 # Collect host-machine-specific information.
13016 .
${srcdir}/config.
host ||
exit 1
13020 # Collect target-machine-specific information.
13021 .
${srcdir}/config.gcc ||
exit 1
13023 extra_objs
="${host_extra_objs} ${extra_objs}"
13024 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13026 # Default the target-machine variables that were not explicitly set.
13027 if test x
"$tm_file" = x
13028 then tm_file
=$cpu_type/$cpu_type.h
; fi
13030 if test x
"$extra_headers" = x
13031 then extra_headers
=; fi
13033 if test x
$md_file = x
13034 then md_file
=$cpu_type/$cpu_type.md
; fi
13036 if test x
$out_file = x
13037 then out_file
=$cpu_type/$cpu_type.c
; fi
13039 if test x
"$tmake_file" = x
13040 then tmake_file
=$cpu_type/t-
$cpu_type
13043 # Support --enable-initfini-array.
13044 if test x
$enable_initfini_array != xno
; then
13045 tm_file
="${tm_file} initfini-array.h"
13048 if test x
"$dwarf2" = xyes
13049 then tm_file
="$tm_file tm-dwarf2.h"
13052 # Say what files are being used for the output code and MD file.
13053 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13054 echo "Using \`$srcdir/config/$md_file' as machine description file."
13056 # If any of the xm_file variables contain nonexistent files, warn
13057 # about them and drop them.
13060 for x
in $build_xm_file; do
13061 if test -f $srcdir/config
/$x
13063 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13064 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13067 build_xm_file
="$bx"
13070 for x
in $host_xm_file; do
13071 if test -f $srcdir/config
/$x
13073 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13074 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13080 for x
in $xm_file; do
13081 if test -f $srcdir/config
/$x
13083 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13084 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13090 for f
in $tm_file; do
13093 if test $count = ax
; then
13094 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13096 echo "Using the following target machine macro files:"
13097 for f
in $tm_file; do
13098 echo " $srcdir/config/$f"
13102 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13104 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13108 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13110 cat >>confdefs.h
<<_ACEOF
13111 #define HAVE_GNU_LD $gnu_ld_bool
13115 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13117 cat >>confdefs.h
<<_ACEOF
13118 #define HAVE_GNU_AS $gnu_as_bool
13123 for f
in $host_xm_file; do
13126 if test $count = a
; then
13128 elif test $count = ax
; then
13129 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13131 echo "Using the following host machine macro files:"
13132 for f
in $host_xm_file; do
13133 echo " $srcdir/config/$f"
13136 echo "Using ${out_host_hook_obj} for host machine hooks."
13138 if test "$host_xm_file" != "$build_xm_file"; then
13140 for f
in $build_xm_file; do
13143 if test $count = a
; then
13145 elif test $count = ax
; then
13146 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13148 echo "Using the following build machine macro files:"
13149 for f
in $build_xm_file; do
13150 echo " $srcdir/config/$f"
13155 if test -n "$configured_native_system_header_dir"; then
13156 native_system_header_dir
=$configured_native_system_header_dir
13158 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
13162 powerpc
*-*-darwin*)
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13164 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13165 if ${gcc_cv_mcontext_underscores+:} false
; then :
13166 $as_echo_n "(cached) " >&6
13168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 #include <sys/cdefs.h>
13172 #include <sys/signal.h>
13173 #include <ucontext.h>
13174 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13177 if ac_fn_cxx_try_compile
"$LINENO"; then :
13178 gcc_cv_mcontext_underscores
=no
13180 gcc_cv_mcontext_underscores
=yes
13182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13185 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13186 if test $gcc_cv_mcontext_underscores = yes; then
13188 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13198 # Check if a valid thread package
13199 case ${enable_threads} in
13202 target_thread_file
='single'
13206 target_thread_file
='single'
13208 aix | dce | lynx | mipssde | posix | rtems | \
13209 single | tpf | vxworks | win32
)
13210 target_thread_file
=${enable_threads}
13213 echo "${enable_threads} is an unknown thread package" 1>&2
13218 if test x
${thread_file} = x
; then
13219 # No thread file set by target-specific clauses in config.gcc,
13220 # so use file chosen by default logic above
13221 thread_file
=${target_thread_file}
13229 if test x
$enable___cxa_atexit = xyes || \
13230 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13231 if test x
$host = x
$target; then
13233 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13234 # keyed to flag_use_cxa_atexit
13242 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13243 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13246 echo "__cxa_atexit can't be enabled on this target"
13252 # We can't check for __cxa_atexit when building a cross, so assume
13256 if test x
$use_cxa_atexit = xyes
; then
13258 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13263 # Look for a file containing extra machine modes.
13264 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13265 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13268 cat >>confdefs.h
<<_ACEOF
13269 #define EXTRA_MODES_FILE "config/$extra_modes"
13274 # Convert extra_options into a form suitable for Makefile use.
13277 for f
in $extra_options; do
13278 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13279 all_opt_files
="$all_opt_files $srcdir/config/$f"
13283 # auto-host.h is the file containing items generated by autoconf and is
13284 # the first file included by config.h.
13285 # If host=build, it is correct to have bconfig include auto-host.h
13286 # as well. If host!=build, we are in error and need to do more
13287 # work to find out the build config parameters.
13288 if test x
$host = x
$build
13290 build_auto
=auto-host.h
13291 HAVE_AUTO_BUILD
='# '
13293 # We create a subdir, then run autoconf in the subdir.
13294 # To prevent recursion we set host and build for the new
13295 # invocation of configure to the build for this invocation
13302 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13303 *) realsrcdir
=..
/${srcdir};;
13305 # Clearing GMPINC is necessary to prevent host headers being
13306 # used by the build compiler. Defining GENERATOR_FILE stops
13307 # system.h from including gmp.h.
13308 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13309 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13310 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13311 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
13312 ${realsrcdir}/configure \
13313 --enable-languages=${enable_languages-all} \
13314 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13315 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13316 --target=$target_alias --host=$build_alias \
13317 --build=$build_alias ||
exit # retaining $tempdir
13319 # We just finished tests for the build machine, so rename
13320 # the file auto-build.h in the gcc directory.
13321 mv auto-host.h ..
/auto-build.h
13324 build_auto
=auto-build.h
13330 tm_file
="${tm_file} defaults.h"
13331 tm_p_file
="${tm_p_file} tm-preds.h"
13332 tm_d_file
="${tm_d_file} defaults.h"
13333 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13334 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13335 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13336 # put this back in temporarily.
13337 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13343 # Compile in configure arguments.
13344 if test -f configargs.h
; then
13345 # Being re-configured.
13346 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13347 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13348 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13349 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13352 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13355 # Double all backslashes and backslash all quotes to turn
13356 # gcc_config_arguments into a C string.
13357 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13358 $gcc_config_arguments
13360 gcc_config_arguments_str
=`cat conftest.out`
13363 cat > configargs.h
<<EOF
13364 /* Generated automatically. */
13365 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13366 static const char thread_model[] = "$thread_file";
13368 static const struct {
13369 const char *name, *value;
13370 } configure_default_options[] = $configure_default_options;
13373 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13374 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13375 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13376 if test -f $srcdir/REVISION
; then
13377 gcc_REVISION
=`cat $srcdir/REVISION`
13381 cat > plugin-version.h
<<EOF
13382 #include "configargs.h"
13384 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13385 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13386 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13387 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13389 static char basever[] = "$gcc_BASEVER";
13390 static char datestamp[] = "$gcc_DATESTAMP";
13391 static char devphase[] = "$gcc_DEVPHASE";
13392 static char revision[] = "$gcc_REVISION";
13394 /* FIXME plugins: We should make the version information more precise.
13395 One way to do is to add a checksum. */
13397 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13398 devphase, revision,
13399 configuration_arguments};
13402 # Determine what GCC version number to use in filesystem paths.
13404 get_gcc_base_ver
="cat"
13406 # Check whether --with-gcc-major-version-only was given.
13407 if test "${with_gcc_major_version_only+set}" = set; then :
13408 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13409 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13417 # Internationalization
13418 # If we haven't got the data from the intl directory,
13419 # assume NLS is disabled.
13428 if test -f ..
/intl
/config.intl
; then
13429 . ..
/intl
/config.intl
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13432 $as_echo_n "checking whether NLS is requested... " >&6; }
13433 if test x
"$USE_NLS" != xyes
; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13438 $as_echo "yes" >&6; }
13440 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13444 $as_echo_n "checking for catalogs to be installed... " >&6; }
13445 # Look for .po and .gmo files in the source directory.
13448 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13449 # If there aren't any .gmo files the shell will give us the
13450 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13452 case "$cat" in *\
**)
13455 # The quadruple backslash is collapsed to a double backslash
13456 # by the backticks, then collapsed again by the double quotes,
13457 # leaving us with one backslash in the sed expression (right
13458 # before the dot that mustn't act as a wildcard).
13459 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13460 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13461 # The user is allowed to set LINGUAS to a list of languages to
13462 # install catalogs for. If it's empty that means "all of them."
13463 if test "x$LINGUAS" = x
; then
13464 CATALOGS
="$CATALOGS $cat"
13465 XLINGUAS
="$XLINGUAS $lang"
13467 case "$LINGUAS" in *$lang*)
13468 CATALOGS
="$CATALOGS $cat"
13469 XLINGUAS
="$XLINGUAS $lang"
13474 LINGUAS
="$XLINGUAS"
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13476 $as_echo "$LINGUAS" >&6; }
13489 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13490 # -liconv on the link line twice.
13491 case "$LIBINTL" in *$LIBICONV*)
13495 # Check whether --enable-secureplt was given.
13496 if test "${enable_secureplt+set}" = set; then :
13497 enableval
=$enable_secureplt;
13501 # Check whether --enable-mingw-wildcard was given.
13502 if test "${enable_mingw_wildcard+set}" = set; then :
13503 enableval
=$enable_mingw_wildcard;
13505 enable_mingw_wildcard
=platform
13508 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13510 cat >>confdefs.h
<<_ACEOF
13511 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13516 # Check whether --enable-large-address-aware was given.
13517 if test "${enable_large_address_aware+set}" = set; then :
13518 enableval
=$enable_large_address_aware;
13521 if test x
"$enable_large_address_aware" = xyes
; then :
13523 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13527 # Check whether --enable-leading-mingw64-underscores was given.
13528 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13529 enableval
=$enable_leading_mingw64_underscores;
13532 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13534 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13538 # Check whether --enable-cld was given.
13539 if test "${enable_cld+set}" = set; then :
13540 enableval
=$enable_cld;
13546 # Check whether --enable-frame-pointer was given.
13547 if test "${enable_frame_pointer+set}" = set; then :
13548 enableval
=$enable_frame_pointer;
13552 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13553 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13554 enable_frame_pointer
=no
13557 enable_frame_pointer
=yes
13565 i
[34567]86-*-* | x86_64-
*-*)
13566 if test "x$enable_cld" = xyes
; then
13567 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13569 if test "x$enable_frame_pointer" = xyes
; then
13570 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13575 # Windows32 Registry support for specifying GCC installation paths.
13576 # Check whether --enable-win32-registry was given.
13577 if test "${enable_win32_registry+set}" = set; then :
13578 enableval
=$enable_win32_registry;
13583 win32 | pe | cygwin
* | mingw32
*)
13584 if test "x$enable_win32_registry" != xno
; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13586 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13587 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13588 $as_echo_n "(cached) " >&6
13590 ac_func_search_save_LIBS
=$LIBS
13591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13594 /* Override any GCC internal prototype to avoid an error.
13595 Use char because int might match the return type of a GCC
13596 builtin and then its argument prototype would still apply. */
13600 char RegOpenKeyExA ();
13604 return RegOpenKeyExA ();
13609 for ac_lib
in '' advapi32
; do
13610 if test -z "$ac_lib"; then
13611 ac_res
="none required"
13614 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13616 if ac_fn_cxx_try_link
"$LINENO"; then :
13617 ac_cv_search_RegOpenKeyExA
=$ac_res
13619 rm -f core conftest.err conftest.
$ac_objext \
13621 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13625 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13628 ac_cv_search_RegOpenKeyExA
=no
13630 rm conftest.
$ac_ext
13631 LIBS
=$ac_func_search_save_LIBS
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13634 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13635 ac_res
=$ac_cv_search_RegOpenKeyExA
13636 if test "$ac_res" != no
; then :
13637 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13640 enable_win32_registry
=no
13645 if test "x$enable_win32_registry" != xno
; then
13647 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13650 if test "x$enable_win32_registry" != xyes \
13651 && test "x$enable_win32_registry" != x
; then
13653 cat >>confdefs.h
<<_ACEOF
13654 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13662 # Get an absolute path to the GCC top-level source directory
13663 holddir
=`${PWDCMD-pwd}`
13665 topdir
=`${PWDCMD-pwd}`
13668 # Conditionalize the makefile for this host machine.
13670 for f
in ${host_xmake_file}
13672 if test -f ${srcdir}/config
/$f
13674 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13678 # Conditionalize the makefile for this target machine.
13680 for f
in ${tmake_file}
13682 if test -f ${srcdir}/config
/$f
13684 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13687 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13689 out_object_file
=`basename $out_file .c`.o
13690 common_out_object_file
=`basename $common_out_file .c`.o
13692 tm_file_list
="options.h"
13693 tm_include_list
="options.h insn-constants.h"
13694 for f
in $tm_file; do
13697 f
=`echo $f | sed 's/^..//'`
13698 tm_file_list
="${tm_file_list} $f"
13699 tm_include_list
="${tm_include_list} $f"
13702 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13703 tm_include_list
="${tm_include_list} $f"
13706 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13707 tm_include_list
="${tm_include_list} config/$f"
13714 for f
in $tm_p_file; do
13717 tm_p_file_list
="${tm_p_file_list} $f"
13718 tm_p_include_list
="${tm_p_include_list} $f"
13721 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13722 tm_p_include_list
="${tm_p_include_list} config/$f"
13727 tm_d_include_list
="options.h insn-constants.h"
13728 for f
in $tm_d_file; do
13731 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
13732 tm_d_include_list
="${tm_d_include_list} $f"
13735 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13736 tm_d_include_list
="${tm_d_include_list} config/$f"
13743 for f
in $xm_file; do
13746 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13747 xm_include_list
="${xm_include_list} $f"
13750 xm_file_list
="${xm_file_list} $f"
13751 xm_include_list
="${xm_include_list} $f"
13754 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13755 xm_include_list
="${xm_include_list} config/$f"
13761 host_xm_include_list
=
13762 for f
in $host_xm_file; do
13765 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13766 host_xm_include_list
="${host_xm_include_list} $f"
13769 host_xm_file_list
="${host_xm_file_list} $f"
13770 host_xm_include_list
="${host_xm_include_list} $f"
13773 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13774 host_xm_include_list
="${host_xm_include_list} config/$f"
13779 build_xm_file_list
=
13780 for f
in $build_xm_file; do
13783 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13784 build_xm_include_list
="${build_xm_include_list} $f"
13786 auto-build.h | auto-host.h
)
13787 build_xm_file_list
="${build_xm_file_list} $f"
13788 build_xm_include_list
="${build_xm_include_list} $f"
13791 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13792 build_xm_include_list
="${build_xm_include_list} config/$f"
13797 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13798 # cross-compiler which does not use the native headers and libraries.
13799 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13802 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13803 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13805 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13806 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13807 if test "x$with_build_sysroot" != x
; then
13808 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13810 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13813 if test x
$host != x
$target
13815 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13817 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13818 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13819 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13822 if test "x$with_build_sysroot" != "x"; then
13823 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13824 elif test "x$with_sysroot" = x
; then
13825 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13826 elif test "x$with_sysroot" = xyes
; then
13827 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13829 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13832 target_header_dir
=${native_system_header_dir}
13835 # If this is a cross-compiler that does not
13836 # have its own set of headers then define
13839 # If this is using newlib, without having the headers available now,
13840 # then define inhibit_libc in LIBGCC2_CFLAGS.
13841 # This prevents libgcc2 from containing any code which requires libc
13843 : ${inhibit_libc=false}
13844 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13845 test x
$with_newlib = xyes
; } &&
13846 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13851 # When building gcc with a cross-compiler, we need to adjust things so
13852 # that the generator programs are still built with the native compiler.
13853 # Also, we cannot run fixincludes.
13855 # These are the normal (build=host) settings:
13856 CC_FOR_BUILD
='$(CC)'
13857 CXX_FOR_BUILD
='$(CXX)'
13858 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13859 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13860 BUILD_LDFLAGS
='$(LDFLAGS)'
13861 STMP_FIXINC
=stmp-fixinc
13863 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
13864 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
13866 # And these apply if build != host, or we are generating coverage data
13867 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13869 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13870 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
13871 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13873 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
13874 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
13875 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
13876 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
13881 # Expand extra_headers to include complete path.
13882 # This substitutes for lots of t-* files.
13883 extra_headers_list
=
13884 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13885 for file in ${extra_headers} ; do
13886 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13889 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13890 if test x
"$use_gcc_tgmath" = xyes
13891 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13894 # Define collect2 in Makefile.
13895 case $host_can_use_collect2 in
13897 *) collect2
='collect2$(exeext)' ;;
13901 # Add a definition of USE_COLLECT2 if system wants one.
13902 case $use_collect2 in
13903 no
) use_collect2
= ;;
13906 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13907 xm_defines
="${xm_defines} USE_COLLECT2"
13908 case $host_can_use_collect2 in
13910 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13917 cat >>confdefs.h
<<_ACEOF
13918 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13922 # ---------------------------
13923 # Assembler & linker features
13924 # ---------------------------
13926 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13927 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13928 # However when ld-new is first executed from the build tree, libtool will
13929 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13930 # to the build tree. While doing this we need to use the previous-stage
13931 # linker, or we have an infinite loop. The presence of a shell script as
13932 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13933 # the gcc/collect-ld script. So we need to know how libtool works, or
13934 # exec-tool will fail.
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13940 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13945 macro_version
='2.2.7a'
13946 macro_revision
='1.3134'
13960 ltmain
="$ac_aux_dir/ltmain.sh"
13962 # Backslashify metacharacters that are still active within
13963 # double-quoted strings.
13964 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13966 # Same as above, but do not quote variable references.
13967 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13969 # Sed substitution to delay expansion of an escaped shell variable in a
13970 # double_quote_subst'ed string.
13971 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13973 # Sed substitution to delay expansion of an escaped single quote.
13974 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13976 # Sed substitution to avoid accidental globbing in evaled expressions
13977 no_glob_subst
='s/\*/\\\*/g'
13979 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13980 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13981 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13984 $as_echo_n "checking how to print strings... " >&6; }
13985 # Test print first, because it will be a builtin if present.
13986 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13987 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13989 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13992 # Use this function as a fallback that always works.
13993 func_fallback_echo ()
13995 eval 'cat <<_LTECHO_EOF
13999 ECHO='func_fallback_echo
'
14002 # func_echo_all arg...
14003 # Invoke $ECHO with all args, space-separated.
14010 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
14011 $as_echo "printf" >&6; } ;;
14012 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
14013 $as_echo "print -r" >&6; } ;;
14014 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
14015 $as_echo "cat" >&6; } ;;
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14032 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14033 if ${ac_cv_path_SED+:} false; then :
14034 $as_echo_n "(cached) " >&6
14036 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14037 for ac_i in 1 2 3 4 5 6 7; do
14038 ac_script="$ac_script$as_nl$ac_script"
14040 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14041 { ac_script=; unset ac_script;}
14042 if test -z "$SED"; then
14043 ac_path_SED_found=false
14044 # Loop through the user's path and
test for each of PROGNAME-LIST
14045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14046 for as_dir
in $PATH
14049 test -z "$as_dir" && as_dir
=.
14050 for ac_prog
in sed gsed
; do
14051 for ac_exec_ext
in '' $ac_executable_extensions; do
14052 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
14053 as_fn_executable_p
"$ac_path_SED" ||
continue
14054 # Check for GNU ac_path_SED and select it if it is found.
14055 # Check for GNU $ac_path_SED
14056 case `"$ac_path_SED" --version 2>&1` in
14058 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
14061 $as_echo_n 0123456789 >"conftest.in"
14064 cat "conftest.in" "conftest.in" >"conftest.tmp"
14065 mv "conftest.tmp" "conftest.in"
14066 cp "conftest.in" "conftest.nl"
14067 $as_echo '' >> "conftest.nl"
14068 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
14069 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
14070 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
14071 if test $ac_count -gt ${ac_path_SED_max-0}; then
14072 # Best one so far, save it but keep looking for a better one
14073 ac_cv_path_SED
="$ac_path_SED"
14074 ac_path_SED_max
=$ac_count
14076 # 10*(2^10) chars as input seems more than enough
14077 test $ac_count -gt 10 && break
14079 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
14082 $ac_path_SED_found && break 3
14087 if test -z "$ac_cv_path_SED"; then
14088 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
14091 ac_cv_path_SED
=$SED
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14096 $as_echo "$ac_cv_path_SED" >&6; }
14097 SED
="$ac_cv_path_SED"
14100 test -z "$SED" && SED
=sed
14101 Xsed
="$SED -e 1s/^X//"
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
14114 $as_echo_n "checking for fgrep... " >&6; }
14115 if ${ac_cv_path_FGREP+:} false
; then :
14116 $as_echo_n "(cached) " >&6
14118 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
14119 then ac_cv_path_FGREP
="$GREP -F"
14121 if test -z "$FGREP"; then
14122 ac_path_FGREP_found
=false
14123 # Loop through the user's path and test for each of PROGNAME-LIST
14124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14125 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
14128 test -z "$as_dir" && as_dir
=.
14129 for ac_prog
in fgrep
; do
14130 for ac_exec_ext
in '' $ac_executable_extensions; do
14131 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
14132 as_fn_executable_p
"$ac_path_FGREP" ||
continue
14133 # Check for GNU ac_path_FGREP and select it if it is found.
14134 # Check for GNU $ac_path_FGREP
14135 case `"$ac_path_FGREP" --version 2>&1` in
14137 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
14140 $as_echo_n 0123456789 >"conftest.in"
14143 cat "conftest.in" "conftest.in" >"conftest.tmp"
14144 mv "conftest.tmp" "conftest.in"
14145 cp "conftest.in" "conftest.nl"
14146 $as_echo 'FGREP' >> "conftest.nl"
14147 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
14148 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
14149 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
14150 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14151 # Best one so far, save it but keep looking for a better one
14152 ac_cv_path_FGREP
="$ac_path_FGREP"
14153 ac_path_FGREP_max
=$ac_count
14155 # 10*(2^10) chars as input seems more than enough
14156 test $ac_count -gt 10 && break
14158 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
14161 $ac_path_FGREP_found && break 3
14166 if test -z "$ac_cv_path_FGREP"; then
14167 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14170 ac_cv_path_FGREP
=$FGREP
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14176 $as_echo "$ac_cv_path_FGREP" >&6; }
14177 FGREP
="$ac_cv_path_FGREP"
14180 test -z "$GREP" && GREP
=grep
14200 # Check whether --with-gnu-ld was given.
14201 if test "${with_gnu_ld+set}" = set; then :
14202 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14208 if test "$GCC" = yes; then
14209 # Check if gcc -print-prog-name=ld gives a path.
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14211 $as_echo_n "checking for ld used by $CC... " >&6; }
14214 # gcc leaves a trailing carriage return which upsets mingw
14215 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14217 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14220 # Accept absolute paths.
14222 re_direlt
='/[^/][^/]*/\.\./'
14223 # Canonicalize the pathname of ld
14224 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14225 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14226 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14228 test -z "$LD" && LD
="$ac_prog"
14231 # If it fails, then pretend we aren't using GCC.
14235 # If it is relative, then search for the first ld in PATH.
14236 with_gnu_ld
=unknown
14239 elif test "$with_gnu_ld" = yes; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14241 $as_echo_n "checking for GNU ld... " >&6; }
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14244 $as_echo_n "checking for non-GNU ld... " >&6; }
14246 if ${lt_cv_path_LD+:} false
; then :
14247 $as_echo_n "(cached) " >&6
14249 if test -z "$LD"; then
14250 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14251 for ac_dir
in $PATH; do
14253 test -z "$ac_dir" && ac_dir
=.
14254 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14255 lt_cv_path_LD
="$ac_dir/$ac_prog"
14256 # Check to see if the program is GNU ld. I'd rather use --version,
14257 # but apparently some variants of GNU ld only accept -v.
14258 # Break only if it was the GNU/non-GNU ld that we prefer.
14259 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14260 *GNU
* |
*'with BFD'*)
14261 test "$with_gnu_ld" != no
&& break
14264 test "$with_gnu_ld" != yes && break
14271 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14275 LD
="$lt_cv_path_LD"
14276 if test -n "$LD"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14278 $as_echo "$LD" >&6; }
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 $as_echo "no" >&6; }
14283 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14285 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14286 if ${lt_cv_prog_gnu_ld+:} false
; then :
14287 $as_echo_n "(cached) " >&6
14289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14290 case `$LD -v 2>&1 </dev/null` in
14291 *GNU
* |
*'with BFD'*)
14292 lt_cv_prog_gnu_ld
=yes
14295 lt_cv_prog_gnu_ld
=no
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14300 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14301 with_gnu_ld
=$lt_cv_prog_gnu_ld
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14312 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14313 if ${lt_cv_path_NM+:} false
; then :
14314 $as_echo_n "(cached) " >&6
14316 if test -n "$NM"; then
14317 # Let the user override the test.
14318 lt_cv_path_NM
="$NM"
14320 lt_nm_to_check
="${ac_tool_prefix}nm"
14321 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14322 lt_nm_to_check
="$lt_nm_to_check nm"
14324 for lt_tmp_nm
in $lt_nm_to_check; do
14325 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14326 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14328 test -z "$ac_dir" && ac_dir
=.
14329 tmp_nm
="$ac_dir/$lt_tmp_nm"
14330 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14331 # Check to see if the nm accepts a BSD-compat flag.
14332 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14333 # nm: unknown option "B" ignored
14334 # Tru64's nm complains that /dev/null is an invalid object file
14335 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14336 */dev
/null
* |
*'Invalid file or object type'*)
14337 lt_cv_path_NM
="$tmp_nm -B"
14341 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14343 lt_cv_path_NM
="$tmp_nm -p"
14347 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14348 continue # so that we can try to find one that supports BSD flags
14357 : ${lt_cv_path_NM=no}
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14361 $as_echo "$lt_cv_path_NM" >&6; }
14362 if test "$lt_cv_path_NM" != "no"; then
14363 NM
="$lt_cv_path_NM"
14365 # Didn't find any BSD compatible name lister, look for dumpbin.
14366 if test -n "$DUMPBIN"; then :
14367 # Let the user override the test.
14369 if test -n "$ac_tool_prefix"; then
14370 for ac_prog
in dumpbin
"link -dump"
14372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14373 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14377 $as_echo_n "(cached) " >&6
14379 if test -n "$DUMPBIN"; then
14380 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14383 for as_dir
in $PATH
14386 test -z "$as_dir" && as_dir
=.
14387 for ac_exec_ext
in '' $ac_executable_extensions; do
14388 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14389 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14399 DUMPBIN
=$ac_cv_prog_DUMPBIN
14400 if test -n "$DUMPBIN"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14402 $as_echo "$DUMPBIN" >&6; }
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14409 test -n "$DUMPBIN" && break
14412 if test -z "$DUMPBIN"; then
14413 ac_ct_DUMPBIN
=$DUMPBIN
14414 for ac_prog
in dumpbin
"link -dump"
14416 # Extract the first word of "$ac_prog", so it can be a program name with args.
14417 set dummy
$ac_prog; ac_word
=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419 $as_echo_n "checking for $ac_word... " >&6; }
14420 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14421 $as_echo_n "(cached) " >&6
14423 if test -n "$ac_ct_DUMPBIN"; then
14424 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14427 for as_dir
in $PATH
14430 test -z "$as_dir" && as_dir
=.
14431 for ac_exec_ext
in '' $ac_executable_extensions; do
14432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14433 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14444 if test -n "$ac_ct_DUMPBIN"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14446 $as_echo "$ac_ct_DUMPBIN" >&6; }
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 $as_echo "no" >&6; }
14453 test -n "$ac_ct_DUMPBIN" && break
14456 if test "x$ac_ct_DUMPBIN" = x
; then
14459 case $cross_compiling:$ac_tool_warned in
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14463 ac_tool_warned
=yes ;;
14465 DUMPBIN
=$ac_ct_DUMPBIN
14469 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14471 DUMPBIN
="$DUMPBIN -symbols"
14479 if test "$DUMPBIN" != ":"; then
14483 test -z "$NM" && NM
=nm
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14491 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14492 if ${lt_cv_nm_interface+:} false
; then :
14493 $as_echo_n "(cached) " >&6
14495 lt_cv_nm_interface
="BSD nm"
14496 echo "int some_variable = 0;" > conftest.
$ac_ext
14497 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14498 (eval "$ac_compile" 2>conftest.err
)
14499 cat conftest.err
>&5
14500 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14501 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14502 cat conftest.err
>&5
14503 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14504 cat conftest.out
>&5
14505 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14506 lt_cv_nm_interface
="MS dumpbin"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14511 $as_echo "$lt_cv_nm_interface" >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14514 $as_echo_n "checking whether ln -s works... " >&6; }
14516 if test "$LN_S" = "ln -s"; then
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14518 $as_echo "yes" >&6; }
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14521 $as_echo "no, using $LN_S" >&6; }
14524 # find the maximum length of command line arguments
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14526 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14527 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14528 $as_echo_n "(cached) " >&6
14535 # On DJGPP, this test can blow up pretty badly due to problems in libc
14536 # (any single argument exceeding 2000 bytes causes a buffer overrun
14537 # during glob expansion). Even if it were fixed, the result of this
14538 # check would be larger than it should be.
14539 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14543 # Under GNU Hurd, this test is not required because there is
14544 # no limit to the length of command line arguments.
14545 # Libtool will interpret -1 as no limit whatsoever
14546 lt_cv_sys_max_cmd_len
=-1;
14549 cygwin
* | mingw
* | cegcc
*)
14550 # On Win9x/ME, this test blows up -- it succeeds, but takes
14551 # about 5 minutes as the teststring grows exponentially.
14552 # Worse, since 9x/ME are not pre-emptively multitasking,
14553 # you end up with a "frozen" computer, even though with patience
14554 # the test eventually succeeds (with a max line length of 256k).
14555 # Instead, let's just punt: use the minimum linelength reported by
14556 # all of the supported platforms: 8192 (on NT/2K/XP).
14557 lt_cv_sys_max_cmd_len
=8192;
14561 # On MiNT this can take a long time and run out of memory.
14562 lt_cv_sys_max_cmd_len
=8192;
14566 # On AmigaOS with pdksh, this test takes hours, literally.
14567 # So we just punt and use a minimum line length of 8192.
14568 lt_cv_sys_max_cmd_len
=8192;
14571 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14572 # This has been around since 386BSD, at least. Likely further.
14573 if test -x /sbin
/sysctl
; then
14574 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14575 elif test -x /usr
/sbin
/sysctl
; then
14576 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14578 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14580 # And add a safety zone
14581 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14582 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14586 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14587 lt_cv_sys_max_cmd_len
=196608
14591 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14592 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14593 # nice to cause kernel panics so lets avoid the loop below.
14594 # First set a reasonable default.
14595 lt_cv_sys_max_cmd_len
=16384
14597 if test -x /sbin
/sysconfig
; then
14598 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14599 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14604 lt_cv_sys_max_cmd_len
=102400
14606 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14607 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14608 if test -n "$kargmax"; then
14609 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14611 lt_cv_sys_max_cmd_len
=32768
14615 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14616 if test -n "$lt_cv_sys_max_cmd_len"; then
14617 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14618 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14620 # Make teststring a little bigger before we do anything with it.
14621 # a 1K string should be a reasonable start.
14622 for i
in 1 2 3 4 5 6 7 8 ; do
14623 teststring
=$teststring$teststring
14625 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14626 # If test is not a shell built-in, we'll probably end up computing a
14627 # maximum length that is only half of the actual maximum length, but
14629 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14630 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14631 test $i != 17 # 1/2 MB should be enough
14634 teststring
=$teststring$teststring
14636 # Only check the string length outside the loop.
14637 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14639 # Add a significant safety factor because C++ compilers can tack on
14640 # massive amounts of additional arguments before passing them to the
14641 # linker. It appears as though 1/2 is a usable value.
14642 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14649 if test -n $lt_cv_sys_max_cmd_len ; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14651 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14654 $as_echo "none" >&6; }
14656 max_cmd_len
=$lt_cv_sys_max_cmd_len
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14668 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14669 # Try some XSI features
14671 ( _lt_dummy
="a/b/c"
14672 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14674 && eval 'test $(( 1 + 1 )) -eq 2 \
14675 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14678 $as_echo "$xsi_shell" >&6; }
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14682 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14684 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14686 && lt_shell_append=yes
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14688 $as_echo "$lt_shell_append" >&6; }
14691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14701 # test EBCDIC or ASCII
14702 case `echo X|tr X '\101'` in
14703 A) # ASCII based system
14704 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14705 lt_SP2NL='tr \040 \012'
14706 lt_NL2SP='tr \015\012 \040\040'
14708 *) # EBCDIC based system
14709 lt_SP2NL='tr \100 \n'
14710 lt_NL2SP='tr \r\n \100\100'
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14723 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14724 if ${lt_cv_ld_reload_flag+:} false; then :
14725 $as_echo_n "(cached
) " >&6
14727 lt_cv_ld_reload_flag='-r'
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14730 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14731 reload_flag=$lt_cv_ld_reload_flag
14732 case $reload_flag in
14734 *) reload_flag=" $reload_flag" ;;
14736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14739 if test "$GCC" = yes; then
14740 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14755 if test -n "$ac_tool_prefix"; then
14756 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14757 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14759 $as_echo_n "checking
for $ac_word...
" >&6; }
14760 if ${ac_cv_prog_OBJDUMP+:} false; then :
14761 $as_echo_n "(cached
) " >&6
14763 if test -n "$OBJDUMP"; then
14764 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14770 test -z "$as_dir" && as_dir=.
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14773 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14783 OBJDUMP=$ac_cv_prog_OBJDUMP
14784 if test -n "$OBJDUMP"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14786 $as_echo "$OBJDUMP" >&6; }
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14789 $as_echo "no
" >&6; }
14794 if test -z "$ac_cv_prog_OBJDUMP"; then
14795 ac_ct_OBJDUMP=$OBJDUMP
14796 # Extract the first word of "objdump
", so it can be a program name with args.
14797 set dummy objdump; ac_word=$2
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14799 $as_echo_n "checking
for $ac_word...
" >&6; }
14800 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14801 $as_echo_n "(cached
) " >&6
14803 if test -n "$ac_ct_OBJDUMP"; then
14804 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14823 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14824 if test -n "$ac_ct_OBJDUMP"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14826 $as_echo "$ac_ct_OBJDUMP" >&6; }
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14829 $as_echo "no
" >&6; }
14832 if test "x
$ac_ct_OBJDUMP" = x; then
14835 case $cross_compiling:$ac_tool_warned in
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14838 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14839 ac_tool_warned=yes ;;
14841 OBJDUMP=$ac_ct_OBJDUMP
14844 OBJDUMP="$ac_cv_prog_OBJDUMP"
14847 test -z "$OBJDUMP" && OBJDUMP=objdump
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14858 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14859 if ${lt_cv_deplibs_check_method+:} false; then :
14860 $as_echo_n "(cached
) " >&6
14862 lt_cv_file_magic_cmd='$MAGIC_CMD'
14863 lt_cv_file_magic_test_file=
14864 lt_cv_deplibs_check_method='unknown'
14865 # Need to set the preceding variable on all platforms that support
14866 # interlibrary dependencies.
14867 # 'none' -- dependencies not supported.
14868 # `unknown' -- same as none, but documents that we really don't know.
14869 # 'pass_all' -- all dependencies passed with no checks.
14870 # 'test_compile' -- check by making test program.
14871 # 'file_magic [[regex]]' -- check by looking for files in library path
14872 # which responds to the $file_magic_cmd with a given extended regex.
14873 # If you have `file' or equivalent on your system and you're not sure
14874 # whether `pass_all' will *always* work, you probably want this one.
14878 lt_cv_deplibs_check_method=pass_all
14882 lt_cv_deplibs_check_method=pass_all
14886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14887 lt_cv_file_magic_cmd='/usr/bin/file -L'
14888 lt_cv_file_magic_test_file=/shlib/libc.so
14892 # func_win32_libid is a shell function defined in ltmain.sh
14893 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14894 lt_cv_file_magic_cmd='func_win32_libid'
14898 # Base MSYS/MinGW do not provide the 'file' command needed by
14899 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14900 # unless we find 'file', for example because we are cross-compiling.
14901 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14902 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14903 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14904 lt_cv_file_magic_cmd='func_win32_libid'
14906 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14907 lt_cv_file_magic_cmd='$OBJDUMP -f'
14912 # use the weaker test based on 'objdump'. See mingw*.
14913 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14914 lt_cv_file_magic_cmd='$OBJDUMP -f'
14917 darwin* | rhapsody*)
14918 lt_cv_deplibs_check_method=pass_all
14921 freebsd* | dragonfly*)
14922 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14925 # Not sure whether the presence of OpenBSD here was a mistake.
14926 # Let's accept both of them until this is cleared up.
14927 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14928 lt_cv_file_magic_cmd=/usr/bin/file
14929 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14933 lt_cv_deplibs_check_method=pass_all
14938 lt_cv_deplibs_check_method=pass_all
14942 lt_cv_deplibs_check_method=pass_all
14945 hpux10.20* | hpux11*)
14946 lt_cv_file_magic_cmd=/usr/bin/file
14949 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14950 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14953 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]'
14954 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14957 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14958 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14964 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14968 irix5* | irix6* | nonstopux*)
14970 *-32|*"-32 ") libmagic=32-bit;;
14971 *-n32|*"-n32 ") libmagic=N32;;
14972 *-64|*"-64 ") libmagic=64-bit;;
14973 *) libmagic=never-match;;
14975 lt_cv_deplibs_check_method=pass_all
14978 # This must be Linux ELF.
14979 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14980 lt_cv_deplibs_check_method=pass_all
14984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14993 lt_cv_file_magic_cmd=/usr/bin/file
14994 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14998 lt_cv_deplibs_check_method=pass_all
15002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
15003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15009 osf3* | osf4* | osf5*)
15010 lt_cv_deplibs_check_method=pass_all
15014 lt_cv_deplibs_check_method=pass_all
15018 lt_cv_deplibs_check_method=pass_all
15021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15022 lt_cv_deplibs_check_method=pass_all
15026 case $host_vendor in
15028 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]'
15029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15032 lt_cv_deplibs_check_method=pass_all
15035 lt_cv_file_magic_cmd='/bin/file'
15036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15039 lt_cv_file_magic_cmd='/bin/file'
15040 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
15041 lt_cv_file_magic_test_file=/lib/libc.so
15044 lt_cv_deplibs_check_method=pass_all
15047 lt_cv_deplibs_check_method=pass_all
15053 lt_cv_deplibs_check_method=pass_all
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
15059 $as_echo "$lt_cv_deplibs_check_method" >&6; }
15060 file_magic_cmd=$lt_cv_file_magic_cmd
15061 deplibs_check_method=$lt_cv_deplibs_check_method
15062 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15075 if test -n "$ac_tool_prefix"; then
15076 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15077 set dummy ${ac_tool_prefix}ar; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15079 $as_echo_n "checking
for $ac_word...
" >&6; }
15080 if ${ac_cv_prog_AR+:} false; then :
15081 $as_echo_n "(cached
) " >&6
15083 if test -n "$AR"; then
15084 ac_cv_prog_AR="$AR" # Let the user override the test.
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_AR="${ac_tool_prefix}ar"
15094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15104 if test -n "$AR"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
15106 $as_echo "$AR" >&6; }
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15109 $as_echo "no
" >&6; }
15114 if test -z "$ac_cv_prog_AR"; then
15116 # Extract the first word of "ar", so it can be a program name with args.
15117 set dummy ar; ac_word=$2
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15119 $as_echo_n "checking
for $ac_word...
" >&6; }
15120 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15121 $as_echo_n "(cached
) " >&6
15123 if test -n "$ac_ct_AR"; then
15124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127 for as_dir in $PATH
15130 test -z "$as_dir" && as_dir=.
15131 for ac_exec_ext in '' $ac_executable_extensions; do
15132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15133 ac_cv_prog_ac_ct_AR="ar"
15134 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15143 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15144 if test -n "$ac_ct_AR"; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
15146 $as_echo "$ac_ct_AR" >&6; }
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15149 $as_echo "no
" >&6; }
15152 if test "x
$ac_ct_AR" = x; then
15155 case $cross_compiling:$ac_tool_warned in
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15158 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15159 ac_tool_warned=yes ;;
15164 AR="$ac_cv_prog_AR"
15167 test -z "$AR" && AR=ar
15168 test -z "$AR_FLAGS" && AR_FLAGS=cru
15180 if test -n "$ac_tool_prefix"; then
15181 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15182 set dummy ${ac_tool_prefix}strip; ac_word=$2
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15184 $as_echo_n "checking
for $ac_word...
" >&6; }
15185 if ${ac_cv_prog_STRIP+:} false; then :
15186 $as_echo_n "(cached
) " >&6
15188 if test -n "$STRIP"; then
15189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $PATH
15195 test -z "$as_dir" && as_dir=.
15196 for ac_exec_ext in '' $ac_executable_extensions; do
15197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15208 STRIP=$ac_cv_prog_STRIP
15209 if test -n "$STRIP"; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
15211 $as_echo "$STRIP" >&6; }
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15214 $as_echo "no
" >&6; }
15219 if test -z "$ac_cv_prog_STRIP"; then
15221 # Extract the first word of "strip
", so it can be a program name with args.
15222 set dummy strip; ac_word=$2
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15224 $as_echo_n "checking
for $ac_word...
" >&6; }
15225 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15226 $as_echo_n "(cached
) " >&6
15228 if test -n "$ac_ct_STRIP"; then
15229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232 for as_dir in $PATH
15235 test -z "$as_dir" && as_dir=.
15236 for ac_exec_ext in '' $ac_executable_extensions; do
15237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15238 ac_cv_prog_ac_ct_STRIP="strip
"
15239 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15249 if test -n "$ac_ct_STRIP"; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
15251 $as_echo "$ac_ct_STRIP" >&6; }
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15254 $as_echo "no
" >&6; }
15257 if test "x
$ac_ct_STRIP" = x; then
15260 case $cross_compiling:$ac_tool_warned in
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15263 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15264 ac_tool_warned=yes ;;
15269 STRIP="$ac_cv_prog_STRIP"
15272 test -z "$STRIP" && STRIP=:
15279 if test -n "$ac_tool_prefix"; then
15280 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15283 $as_echo_n "checking
for $ac_word...
" >&6; }
15284 if ${ac_cv_prog_RANLIB+:} false; then :
15285 $as_echo_n "(cached
) " >&6
15287 if test -n "$RANLIB"; then
15288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $PATH
15294 test -z "$as_dir" && as_dir=.
15295 for ac_exec_ext in '' $ac_executable_extensions; do
15296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15298 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15307 RANLIB=$ac_cv_prog_RANLIB
15308 if test -n "$RANLIB"; then
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
15310 $as_echo "$RANLIB" >&6; }
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15313 $as_echo "no
" >&6; }
15318 if test -z "$ac_cv_prog_RANLIB"; then
15319 ac_ct_RANLIB=$RANLIB
15320 # Extract the first word of "ranlib
", so it can be a program name with args.
15321 set dummy ranlib; ac_word=$2
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15323 $as_echo_n "checking
for $ac_word...
" >&6; }
15324 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15325 $as_echo_n "(cached
) " >&6
15327 if test -n "$ac_ct_RANLIB"; then
15328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $PATH
15334 test -z "$as_dir" && as_dir=.
15335 for ac_exec_ext in '' $ac_executable_extensions; do
15336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15338 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15348 if test -n "$ac_ct_RANLIB"; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15350 $as_echo "$ac_ct_RANLIB" >&6; }
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15353 $as_echo "no
" >&6; }
15356 if test "x
$ac_ct_RANLIB" = x; then
15359 case $cross_compiling:$ac_tool_warned in
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15362 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15363 ac_tool_warned=yes ;;
15365 RANLIB=$ac_ct_RANLIB
15368 RANLIB="$ac_cv_prog_RANLIB"
15371 test -z "$RANLIB" && RANLIB=:
15378 # Determine commands to create old-style static archives.
15379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15380 old_postinstall_cmds='chmod 644 $oldlib'
15381 old_postuninstall_cmds=
15383 if test -n "$RANLIB"; then
15386 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15389 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15392 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15397 lock_old_archive_extraction=yes ;;
15399 lock_old_archive_extraction=no ;;
15440 # If no C compiler was specified, use CC.
15443 # If no C compiler flags were specified, use CFLAGS.
15444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15446 # Allow CC to be a program name with arguments.
15450 # Check for command to grab the raw symbol name followed by C symbol from nm.
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15452 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15453 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15454 $as_echo_n "(cached
) " >&6
15457 # These are sane defaults that work on at least a few old systems.
15458 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15460 # Character class describing NM global symbol codes.
15461 symcode='[BCDEGRST]'
15463 # Regexp to match symbols that can be accessed directly from C.
15464 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15466 # Define system-specific variables.
15471 cygwin* | mingw* | pw32* | cegcc*)
15472 symcode='[ABCDGISTW]'
15475 if test "$host_cpu" = ia64; then
15476 symcode='[ABCDEGRST]'
15479 irix* | nonstopux*)
15480 symcode='[BCDEGRST]'
15483 symcode='[BCDEGQRST]'
15494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15502 # If we're using GNU nm, then use its standard symbol codes.
15503 case `$NM -V 2>&1` in
15504 *GNU* | *'with BFD'*)
15505 symcode='[ABCDGIRSTW]' ;;
15508 # Transform an extracted symbol line into a proper C declaration.
15509 # Some systems (esp. on ia64) link data and code symbols differently,
15510 # so use this general approach.
15511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15513 # Transform an extracted symbol line into symbol name and symbol address
15514 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15515 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'"
15517 # Handle CRLF in mingw tool chain
15521 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15525 # Try without a prefix underscore, then with it.
15526 for ac_symprfx in "" "_
"; do
15528 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15529 symxfrm="\\1 $ac_symprfx\\2 \\2"
15531 # Write the raw and C identifiers.
15532 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15533 # Fake it for dumpbin and say T for any non-static function
15534 # and D for any global variable.
15535 # Also find C++ and __fastcall symbols from MSVC++,
15536 # which start with @ or ?.
15537 lt_cv_sys_global_symbol_pipe="$AWK '"\
15538 " {last_section=section; section=\$ 3};"\
15539 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15540 " \$ 0!~/External *\|/{next};"\
15541 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15542 " {if(hide[section]) next};"\
15543 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15544 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15545 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15546 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15547 " ' prfx
=^
$ac_symprfx"
15549 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15552 # Check to see that the pipe works correctly.
15556 cat > conftest.$ac_ext <<_LT_EOF
15561 void nm_test_func(void);
15562 void nm_test_func(void){}
15566 int main(){nm_test_var='a';nm_test_func();return(0);}
15569 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15570 (eval $ac_compile) 2>&5
15572 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15573 test $ac_status = 0; }; then
15574 # Now try to grab the symbols.
15576 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15577 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15579 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15580 test $ac_status = 0; } && test -s "$nlist"; then
15581 # Try sorting and uniquifying the output.
15582 if sort "$nlist" | uniq > "$nlist"T; then
15583 mv -f "$nlist"T "$nlist"
15588 # Make sure that we snagged all the symbols we need.
15589 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15590 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15591 cat <<_LT_EOF > conftest.$ac_ext
15597 # Now generate the symbol file.
15598 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15600 cat <<_LT_EOF >> conftest.$ac_ext
15602 /* The mapping between symbol names and symbols. */
15607 lt__PROGRAM__LTX_preloaded_symbols[] =
15609 { "@PROGRAM@
", (void *) 0 },
15611 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15612 cat <<\_LT_EOF >> conftest.$ac_ext
15616 /* This works around a problem in FreeBSD linker */
15617 #ifdef FREEBSD_WORKAROUND
15618 static const void *lt_preloaded_setup() {
15619 return lt__PROGRAM__LTX_preloaded_symbols;
15627 # Now try linking the two files.
15628 mv conftest.$ac_objext conftstm.$ac_objext
15629 lt_save_LIBS="$LIBS"
15630 lt_save_CFLAGS="$CFLAGS"
15631 LIBS="conftstm.
$ac_objext"
15632 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15633 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15634 (eval $ac_link) 2>&5
15636 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15637 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15640 LIBS="$lt_save_LIBS"
15641 CFLAGS="$lt_save_CFLAGS"
15643 echo "cannot
find nm_test_func
in $nlist" >&5
15646 echo "cannot
find nm_test_var
in $nlist" >&5
15649 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15652 echo "$progname: failed program was
:" >&5
15653 cat conftest.$ac_ext >&5
15655 rm -rf conftest* conftst*
15657 # Do not use the global_symbol_pipe unless it works.
15658 if test "$pipe_works" = yes; then
15661 lt_cv_sys_global_symbol_pipe=
15667 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15668 lt_cv_sys_global_symbol_to_cdecl=
15670 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15672 $as_echo "failed
" >&6; }
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15675 $as_echo "ok
" >&6; }
15699 # Check whether --enable-libtool-lock was given.
15700 if test "${enable_libtool_lock+set}" = set; then :
15701 enableval=$enable_libtool_lock;
15704 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15706 # Some flags need to be propagated to the compiler or linker for good
15710 # Find out which ABI we are using.
15711 echo 'int i;' > conftest.$ac_ext
15712 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15713 (eval $ac_compile) 2>&5
15715 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15716 test $ac_status = 0; }; then
15717 case `/usr/bin/file conftest.$ac_objext` in
15719 HPUX_IA64_MODE="32"
15722 HPUX_IA64_MODE="64"
15729 # Find out which ABI we are using.
15730 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15731 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15732 (eval $ac_compile) 2>&5
15734 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15735 test $ac_status = 0; }; then
15736 if test "$lt_cv_prog_gnu_ld" = yes; then
15737 case `/usr/bin/file conftest.$ac_objext` in
15739 LD="${LD-ld} -melf32bsmip"
15742 LD="${LD-ld} -melf32bmipn32"
15745 LD="${LD-ld} -melf64bmip"
15749 case `/usr/bin/file conftest.$ac_objext` in
15765 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15766 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15767 # Find out which ABI we are using.
15768 echo 'int i;' > conftest.$ac_ext
15769 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15770 (eval $ac_compile) 2>&5
15772 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15773 test $ac_status = 0; }; then
15774 case `/usr/bin/file conftest.o` in
15777 x86_64-*kfreebsd*-gnu)
15778 LD="${LD-ld} -m elf_i386_fbsd
"
15781 case `/usr/bin/file conftest.o` in
15783 LD="${LD-ld} -m elf32_x86_64
"
15786 LD="${LD-ld} -m elf_i386
"
15790 powerpc64le-*linux*)
15791 LD="${LD-ld} -m elf32lppclinux
"
15794 LD="${LD-ld} -m elf32ppclinux
"
15797 LD="${LD-ld} -m elf_s390
"
15800 LD="${LD-ld} -m elf32_sparc
"
15806 x86_64-*kfreebsd*-gnu)
15807 LD="${LD-ld} -m elf_x86_64_fbsd
"
15810 LD="${LD-ld} -m elf_x86_64
"
15813 LD="${LD-ld} -m elf64lppc
"
15816 LD="${LD-ld} -m elf64ppc
"
15818 s390*-*linux*|s390*-*tpf*)
15819 LD="${LD-ld} -m elf64_s390
"
15822 LD="${LD-ld} -m elf64_sparc
"
15832 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15833 SAVE_CFLAGS="$CFLAGS"
15834 CFLAGS="$CFLAGS -belf"
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15836 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15837 if ${lt_cv_cc_needs_belf+:} false; then :
15838 $as_echo_n "(cached
) " >&6
15841 ac_cpp='$CPP $CPPFLAGS'
15842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847 /* end confdefs.h. */
15857 if ac_fn_c_try_link "$LINENO"; then :
15858 lt_cv_cc_needs_belf=yes
15860 lt_cv_cc_needs_belf=no
15862 rm -f core conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15865 ac_cpp='$CPP $CPPFLAGS'
15866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15872 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15873 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15874 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15875 CFLAGS="$SAVE_CFLAGS"
15879 # Find out which ABI we are using.
15880 echo 'int i;' > conftest.$ac_ext
15881 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15882 (eval $ac_compile) 2>&5
15884 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15885 test $ac_status = 0; }; then
15886 case `/usr/bin/file conftest.o` in
15888 case $lt_cv_prog_gnu_ld in
15889 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15891 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15903 need_locks="$enable_libtool_lock"
15907 rhapsody* | darwin*)
15908 if test -n "$ac_tool_prefix"; then
15909 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15910 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15912 $as_echo_n "checking
for $ac_word...
" >&6; }
15913 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15914 $as_echo_n "(cached
) " >&6
15916 if test -n "$DSYMUTIL"; then
15917 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920 for as_dir in $PATH
15923 test -z "$as_dir" && as_dir=.
15924 for ac_exec_ext in '' $ac_executable_extensions; do
15925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15926 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15936 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15937 if test -n "$DSYMUTIL"; then
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15939 $as_echo "$DSYMUTIL" >&6; }
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15942 $as_echo "no
" >&6; }
15947 if test -z "$ac_cv_prog_DSYMUTIL"; then
15948 ac_ct_DSYMUTIL=$DSYMUTIL
15949 # Extract the first word of "dsymutil
", so it can be a program name with args.
15950 set dummy dsymutil; ac_word=$2
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15952 $as_echo_n "checking
for $ac_word...
" >&6; }
15953 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15954 $as_echo_n "(cached
) " >&6
15956 if test -n "$ac_ct_DSYMUTIL"; then
15957 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15960 for as_dir in $PATH
15963 test -z "$as_dir" && as_dir=.
15964 for ac_exec_ext in '' $ac_executable_extensions; do
15965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15966 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15967 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15976 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15977 if test -n "$ac_ct_DSYMUTIL"; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15979 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15982 $as_echo "no
" >&6; }
15985 if test "x
$ac_ct_DSYMUTIL" = x; then
15988 case $cross_compiling:$ac_tool_warned in
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15991 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15992 ac_tool_warned=yes ;;
15994 DSYMUTIL=$ac_ct_DSYMUTIL
15997 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
16000 if test -n "$ac_tool_prefix"; then
16001 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
16002 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16004 $as_echo_n "checking
for $ac_word...
" >&6; }
16005 if ${ac_cv_prog_NMEDIT+:} false; then :
16006 $as_echo_n "(cached
) " >&6
16008 if test -n "$NMEDIT"; then
16009 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16012 for as_dir in $PATH
16015 test -z "$as_dir" && as_dir=.
16016 for ac_exec_ext in '' $ac_executable_extensions; do
16017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16018 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
16019 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16028 NMEDIT=$ac_cv_prog_NMEDIT
16029 if test -n "$NMEDIT"; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
16031 $as_echo "$NMEDIT" >&6; }
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16034 $as_echo "no
" >&6; }
16039 if test -z "$ac_cv_prog_NMEDIT"; then
16040 ac_ct_NMEDIT=$NMEDIT
16041 # Extract the first word of "nmedit
", so it can be a program name with args.
16042 set dummy nmedit; ac_word=$2
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16044 $as_echo_n "checking
for $ac_word...
" >&6; }
16045 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
16046 $as_echo_n "(cached
) " >&6
16048 if test -n "$ac_ct_NMEDIT"; then
16049 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $PATH
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16068 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16069 if test -n "$ac_ct_NMEDIT"; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
16071 $as_echo "$ac_ct_NMEDIT" >&6; }
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16074 $as_echo "no
" >&6; }
16077 if test "x
$ac_ct_NMEDIT" = x; then
16080 case $cross_compiling:$ac_tool_warned in
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16083 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16084 ac_tool_warned=yes ;;
16086 NMEDIT=$ac_ct_NMEDIT
16089 NMEDIT="$ac_cv_prog_NMEDIT"
16092 if test -n "$ac_tool_prefix"; then
16093 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
16094 set dummy ${ac_tool_prefix}lipo; ac_word=$2
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16096 $as_echo_n "checking
for $ac_word...
" >&6; }
16097 if ${ac_cv_prog_LIPO+:} false; then :
16098 $as_echo_n "(cached
) " >&6
16100 if test -n "$LIPO"; then
16101 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16104 for as_dir in $PATH
16107 test -z "$as_dir" && as_dir=.
16108 for ac_exec_ext in '' $ac_executable_extensions; do
16109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16110 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
16111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16120 LIPO=$ac_cv_prog_LIPO
16121 if test -n "$LIPO"; then
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
16123 $as_echo "$LIPO" >&6; }
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16126 $as_echo "no
" >&6; }
16131 if test -z "$ac_cv_prog_LIPO"; then
16133 # Extract the first word of "lipo
", so it can be a program name with args.
16134 set dummy lipo; ac_word=$2
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16136 $as_echo_n "checking
for $ac_word...
" >&6; }
16137 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16138 $as_echo_n "(cached
) " >&6
16140 if test -n "$ac_ct_LIPO"; then
16141 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16144 for as_dir in $PATH
16147 test -z "$as_dir" && as_dir=.
16148 for ac_exec_ext in '' $ac_executable_extensions; do
16149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16150 ac_cv_prog_ac_ct_LIPO="lipo
"
16151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16160 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16161 if test -n "$ac_ct_LIPO"; then
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
16163 $as_echo "$ac_ct_LIPO" >&6; }
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16166 $as_echo "no
" >&6; }
16169 if test "x
$ac_ct_LIPO" = x; then
16172 case $cross_compiling:$ac_tool_warned in
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16175 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16176 ac_tool_warned=yes ;;
16181 LIPO="$ac_cv_prog_LIPO"
16184 if test -n "$ac_tool_prefix"; then
16185 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
16186 set dummy ${ac_tool_prefix}otool; ac_word=$2
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16188 $as_echo_n "checking
for $ac_word...
" >&6; }
16189 if ${ac_cv_prog_OTOOL+:} false; then :
16190 $as_echo_n "(cached
) " >&6
16192 if test -n "$OTOOL"; then
16193 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16196 for as_dir in $PATH
16199 test -z "$as_dir" && as_dir=.
16200 for ac_exec_ext in '' $ac_executable_extensions; do
16201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16202 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16203 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16212 OTOOL=$ac_cv_prog_OTOOL
16213 if test -n "$OTOOL"; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
16215 $as_echo "$OTOOL" >&6; }
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16218 $as_echo "no
" >&6; }
16223 if test -z "$ac_cv_prog_OTOOL"; then
16225 # Extract the first word of "otool
", so it can be a program name with args.
16226 set dummy otool; ac_word=$2
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16228 $as_echo_n "checking
for $ac_word...
" >&6; }
16229 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16230 $as_echo_n "(cached
) " >&6
16232 if test -n "$ac_ct_OTOOL"; then
16233 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16236 for as_dir in $PATH
16239 test -z "$as_dir" && as_dir=.
16240 for ac_exec_ext in '' $ac_executable_extensions; do
16241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16242 ac_cv_prog_ac_ct_OTOOL="otool
"
16243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16252 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16253 if test -n "$ac_ct_OTOOL"; then
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
16255 $as_echo "$ac_ct_OTOOL" >&6; }
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16258 $as_echo "no
" >&6; }
16261 if test "x
$ac_ct_OTOOL" = x; then
16264 case $cross_compiling:$ac_tool_warned in
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16267 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16268 ac_tool_warned=yes ;;
16273 OTOOL="$ac_cv_prog_OTOOL"
16276 if test -n "$ac_tool_prefix"; then
16277 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16278 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16280 $as_echo_n "checking
for $ac_word...
" >&6; }
16281 if ${ac_cv_prog_OTOOL64+:} false; then :
16282 $as_echo_n "(cached
) " >&6
16284 if test -n "$OTOOL64"; then
16285 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16288 for as_dir in $PATH
16291 test -z "$as_dir" && as_dir=.
16292 for ac_exec_ext in '' $ac_executable_extensions; do
16293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16294 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16295 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16304 OTOOL64=$ac_cv_prog_OTOOL64
16305 if test -n "$OTOOL64"; then
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
16307 $as_echo "$OTOOL64" >&6; }
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16310 $as_echo "no
" >&6; }
16315 if test -z "$ac_cv_prog_OTOOL64"; then
16316 ac_ct_OTOOL64=$OTOOL64
16317 # Extract the first word of "otool64
", so it can be a program name with args.
16318 set dummy otool64; ac_word=$2
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16320 $as_echo_n "checking
for $ac_word...
" >&6; }
16321 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16322 $as_echo_n "(cached
) " >&6
16324 if test -n "$ac_ct_OTOOL64"; then
16325 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16328 for as_dir in $PATH
16331 test -z "$as_dir" && as_dir=.
16332 for ac_exec_ext in '' $ac_executable_extensions; do
16333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16334 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16335 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16344 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16345 if test -n "$ac_ct_OTOOL64"; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16347 $as_echo "$ac_ct_OTOOL64" >&6; }
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16350 $as_echo "no
" >&6; }
16353 if test "x
$ac_ct_OTOOL64" = x; then
16356 case $cross_compiling:$ac_tool_warned in
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16359 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16360 ac_tool_warned=yes ;;
16362 OTOOL64=$ac_ct_OTOOL64
16365 OTOOL64="$ac_cv_prog_OTOOL64"
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16395 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16396 if ${lt_cv_apple_cc_single_mod+:} false; then :
16397 $as_echo_n "(cached
) " >&6
16399 lt_cv_apple_cc_single_mod=no
16400 if test -z "${LT_MULTI_MODULE}"; then
16401 # By default we will add the -single_module flag. You can override
16402 # by either setting the environment variable LT_MULTI_MODULE
16403 # non-empty at configure time, or by adding -multi_module to the
16405 rm -rf libconftest.dylib*
16406 echo "int foo
(void
){return 1;}" > conftest.c
16407 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16408 -dynamiclib -Wl,-single_module conftest.c
" >&5
16409 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16410 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16412 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16413 lt_cv_apple_cc_single_mod=yes
16415 cat conftest.err >&5
16417 rm -rf libconftest.dylib*
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16422 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16424 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16425 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16426 $as_echo_n "(cached
) " >&6
16428 lt_cv_ld_exported_symbols_list=no
16429 save_LDFLAGS=$LDFLAGS
16430 echo "_main
" > conftest.sym
16431 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16443 if ac_fn_c_try_link "$LINENO"; then :
16444 lt_cv_ld_exported_symbols_list=yes
16446 lt_cv_ld_exported_symbols_list=no
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16450 LDFLAGS="$save_LDFLAGS"
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16454 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16456 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16457 if ${lt_cv_ld_force_load+:} false; then :
16458 $as_echo_n "(cached
) " >&6
16460 lt_cv_ld_force_load=no
16461 cat > conftest.c << _LT_EOF
16462 int forced_loaded() { return 2;}
16464 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16465 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16466 echo "$AR cru libconftest.a conftest.o
" >&5
16467 $AR cru libconftest.a conftest.o 2>&5
16468 cat > conftest.c << _LT_EOF
16469 int main() { return 0;}
16471 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16472 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16474 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16475 lt_cv_ld_force_load=yes
16477 cat conftest.err >&5
16479 rm -f conftest.err libconftest.a conftest conftest.c
16480 rm -rf conftest.dSYM
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16484 $as_echo "$lt_cv_ld_force_load" >&6; }
16486 rhapsody* | darwin1.[012])
16487 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16489 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16490 darwin*) # darwin 5.x on
16491 # if running on 10.5 or later, the deployment target defaults
16492 # to the OS version, if on x86, and 10.4, the deployment
16493 # target defaults to 10.4. Don't you love it?
16494 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16495 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16496 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16500 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16504 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16505 _lt_dar_single_mod='$single_module'
16507 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16508 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16510 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16512 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16513 _lt_dsymutil='~$DSYMUTIL $lib || :'
16521 for ac_header in dlfcn.h
16523 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16524 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16525 cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DLFCN_H 1
16543 enable_win32_dll=no
16546 # Check whether --enable-shared was given.
16547 if test "${enable_shared+set}" = set; then :
16548 enableval=$enable_shared; p=${PACKAGE-default}
16550 yes) enable_shared=yes ;;
16551 no) enable_shared=no ;;
16554 # Look at the argument we got. We use all the common list separators.
16555 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16556 for pkg in $enableval; do
16558 if test "X
$pkg" = "X
$p"; then
16577 # Check whether --enable-static was given.
16578 if test "${enable_static+set}" = set; then :
16579 enableval=$enable_static; p=${PACKAGE-default}
16581 yes) enable_static=yes ;;
16582 no) enable_static=no ;;
16585 # Look at the argument we got. We use all the common list separators.
16586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16587 for pkg in $enableval; do
16589 if test "X
$pkg" = "X
$p"; then
16609 # Check whether --with-pic was given.
16610 if test "${with_pic+set}" = set; then :
16611 withval=$with_pic; pic_mode="$withval"
16617 test -z "$pic_mode" && pic_mode=default
16625 # Check whether --enable-fast-install was given.
16626 if test "${enable_fast_install+set}" = set; then :
16627 enableval=$enable_fast_install; p=${PACKAGE-default}
16629 yes) enable_fast_install=yes ;;
16630 no) enable_fast_install=no ;;
16632 enable_fast_install=no
16633 # Look at the argument we got. We use all the common list separators.
16634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16635 for pkg in $enableval; do
16637 if test "X
$pkg" = "X
$p"; then
16638 enable_fast_install=yes
16645 enable_fast_install=yes
16658 # This can be used to rebuild libtool when needed
16659 LIBTOOL_DEPS="$ltmain"
16661 # Always use our own libtool.
16662 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16689 test -z "$LN_S" && LN_S="ln -s"
16704 if test -n "${ZSH_VERSION+set}" ; then
16705 setopt NO_GLOB_SUBST
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16709 $as_echo_n "checking
for objdir...
" >&6; }
16710 if ${lt_cv_objdir+:} false; then :
16711 $as_echo_n "(cached
) " >&6
16713 rm -f .libs 2>/dev/null
16714 mkdir .libs 2>/dev/null
16715 if test -d .libs; then
16718 # MS-DOS does not allow filenames that begin with a dot.
16721 rmdir .libs 2>/dev/null
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16724 $as_echo "$lt_cv_objdir" >&6; }
16725 objdir=$lt_cv_objdir
16731 cat >>confdefs.h <<_ACEOF
16732 #define LT_OBJDIR "$lt_cv_objdir/"
16740 # AIX sometimes has problems with the GCC collect2 program. For some
16741 # reason, if we set the COLLECT_NAMES environment variable, the problems
16742 # vanish in a puff of smoke.
16743 if test "X
${COLLECT_NAMES+set}" != Xset; then
16745 export COLLECT_NAMES
16750 # Global variables:
16752 can_build_shared=yes
16754 # All known linkers require a `.a' archive for static linking (except MSVC,
16755 # which needs '.lib').
16758 with_gnu_ld="$lt_cv_prog_gnu_ld"
16761 old_CFLAGS="$CFLAGS"
16763 # Set sane defaults for various variables
16764 test -z "$CC" && CC=cc
16765 test -z "$LTCC" && LTCC=$CC
16766 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16767 test -z "$LD" && LD=ld
16768 test -z "$ac_objext" && ac_objext=o
16770 for cc_temp in $compiler""; do
16772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16778 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16781 # Only perform the check for file, if the check method requires it
16782 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16783 case $deplibs_check_method in
16785 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16787 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16788 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16789 $as_echo_n "(cached
) " >&6
16793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16796 lt_save_MAGIC_CMD="$MAGIC_CMD"
16797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16798 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16799 for ac_dir in $ac_dummy; do
16801 test -z "$ac_dir" && ac_dir=.
16802 if test -f $ac_dir/${ac_tool_prefix}file; then
16803 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16804 if test -n "$file_magic_test_file"; then
16805 case $deplibs_check_method in
16807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16810 $EGREP "$file_magic_regex" > /dev/null; then
16815 *** Warning: the command libtool uses to detect shared libraries,
16816 *** $file_magic_cmd, produces output that libtool cannot recognize.
16817 *** The result is that libtool may fail to recognize shared libraries
16818 *** as such. This will affect the creation of libtool libraries that
16819 *** depend on shared libraries, but programs linked with such libtool
16820 *** libraries will work regardless of this problem. Nevertheless, you
16821 *** may want to report the problem to your system manager and/or to
16822 *** bug-libtool@gnu.org
16832 MAGIC_CMD="$lt_save_MAGIC_CMD"
16837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16838 if test -n "$MAGIC_CMD"; then
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16840 $as_echo "$MAGIC_CMD" >&6; }
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16843 $as_echo "no
" >&6; }
16850 if test -z "$lt_cv_path_MAGIC_CMD"; then
16851 if test -n "$ac_tool_prefix"; then
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16853 $as_echo_n "checking
for file...
" >&6; }
16854 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16855 $as_echo_n "(cached
) " >&6
16859 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16862 lt_save_MAGIC_CMD="$MAGIC_CMD"
16863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16864 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16865 for ac_dir in $ac_dummy; do
16867 test -z "$ac_dir" && ac_dir=.
16868 if test -f $ac_dir/file; then
16869 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16870 if test -n "$file_magic_test_file"; then
16871 case $deplibs_check_method in
16873 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16875 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16876 $EGREP "$file_magic_regex" > /dev/null; then
16881 *** Warning: the command libtool uses to detect shared libraries,
16882 *** $file_magic_cmd, produces output that libtool cannot recognize.
16883 *** The result is that libtool may fail to recognize shared libraries
16884 *** as such. This will affect the creation of libtool libraries that
16885 *** depend on shared libraries, but programs linked with such libtool
16886 *** libraries will work regardless of this problem. Nevertheless, you
16887 *** may want to report the problem to your system manager and/or to
16888 *** bug-libtool@gnu.org
16898 MAGIC_CMD="$lt_save_MAGIC_CMD"
16903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16904 if test -n "$MAGIC_CMD"; then
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16906 $as_echo "$MAGIC_CMD" >&6; }
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16909 $as_echo "no
" >&6; }
16922 # Use C for the default configuration in the libtool script
16926 ac_cpp='$CPP $CPPFLAGS'
16927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16932 # Source file extension for C test sources.
16935 # Object file extension for compiled C test sources.
16939 # Code to be used in simple compile tests
16940 lt_simple_compile_test_code="int some_variable
= 0;"
16942 # Code to be used in simple link tests
16943 lt_simple_link_test_code='int main(){return(0);}'
16951 # If no C compiler was specified, use CC.
16954 # If no C compiler flags were specified, use CFLAGS.
16955 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16957 # Allow CC to be a program name with arguments.
16960 # Save the default compiler, since it gets overwritten when the other
16961 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16962 compiler_DEFAULT=$CC
16964 # save warnings/boilerplate of simple test code
16965 ac_outfile=conftest.$ac_objext
16966 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16967 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16968 _lt_compiler_boilerplate=`cat conftest.err`
16971 ac_outfile=conftest.$ac_objext
16972 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16973 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16974 _lt_linker_boilerplate=`cat conftest.err`
16979 ## There is no encapsulation within the following macros, do not change
16980 ## the running order or otherwise move them around unless you know exactly
16981 ## what you are doing...
16982 if test -n "$compiler"; then
16984 lt_prog_compiler_no_builtin_flag=
16986 if test "$GCC" = yes; then
16987 case $cc_basename in
16989 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16991 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16995 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16996 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16997 $as_echo_n "(cached
) " >&6
16999 lt_cv_prog_compiler_rtti_exceptions=no
17000 ac_outfile=conftest.$ac_objext
17001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17002 lt_compiler_flag="-fno-rtti -fno-exceptions"
17003 # Insert the option either (1) after the last *FLAGS variable, or
17004 # (2) before a word containing "conftest.
", or (3) at the end.
17005 # Note that $ac_compile itself does not contain backslashes and begins
17006 # with a dollar sign (not a hyphen), so the echo should work correctly.
17007 # The option is referenced via a variable to avoid confusing sed.
17008 lt_compile=`echo "$ac_compile" | $SED \
17009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17011 -e 's:$: $lt_compiler_flag:'`
17012 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17013 (eval "$lt_compile" 2>conftest.err)
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17017 if (exit $ac_status) && test -s "$ac_outfile"; then
17018 # The compiler can only warn and ignore the option if not recognized
17019 # So say no if there are warnings other than the usual output.
17020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17023 lt_cv_prog_compiler_rtti_exceptions=yes
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
17030 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17032 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17033 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17045 lt_prog_compiler_wl=
17046 lt_prog_compiler_pic=
17047 lt_prog_compiler_static=
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
17050 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
17052 if test "$GCC" = yes; then
17053 lt_prog_compiler_wl='-Wl,'
17054 lt_prog_compiler_static='-static'
17058 # All AIX code is PIC.
17059 if test "$host_cpu" = ia64; then
17060 # AIX 5 now supports IA64 processor
17061 lt_prog_compiler_static='-Bstatic'
17063 lt_prog_compiler_pic='-fPIC'
17069 # see comment about AmigaOS4 .so support
17070 lt_prog_compiler_pic='-fPIC'
17073 # FIXME: we need at least 68020 code to build shared libraries, but
17074 # adding the `-m68020' flag to GCC prevents building anything better,
17076 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17081 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17082 # PIC is the default for these OSes.
17085 mingw* | cygwin* | pw32* | os2* | cegcc*)
17086 # This hack is so that the source file can tell whether it is being
17087 # built for inclusion in a dll (and should export symbols for example).
17088 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17089 # (--disable-auto-import) libraries
17090 lt_prog_compiler_pic='-DDLL_EXPORT'
17093 darwin* | rhapsody*)
17094 # PIC is the default on this platform
17095 # Common symbols not allowed in MH_DYLIB files
17096 lt_prog_compiler_pic='-fno-common'
17100 # PIC is the default for Haiku.
17101 # The "-static" flag exists, but is broken.
17102 lt_prog_compiler_static=
17106 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17107 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17108 # sets the default TLS model and affects inlining.
17114 lt_prog_compiler_pic='-fPIC'
17120 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17121 # Instead, we relocate shared libraries at runtime.
17125 # Just because we use GCC doesn't mean we suddenly get shared libraries
17126 # on systems that don't support them.
17127 lt_prog_compiler_can_build_shared=no
17132 # QNX uses GNU C++, but need to define -shared option too, otherwise
17133 # it will coredump.
17134 lt_prog_compiler_pic='-fPIC -shared'
17138 if test -d /usr/nec; then
17139 lt_prog_compiler_pic=-Kconform_pic
17144 lt_prog_compiler_pic='-fPIC'
17148 case $cc_basename in
17149 nvcc*) # Cuda Compiler Driver 2.2
17150 lt_prog_compiler_wl='-Xlinker '
17151 lt_prog_compiler_pic='-Xcompiler -fPIC'
17155 # PORTME Check for flag to pass linker flags through the system compiler.
17158 lt_prog_compiler_wl='-Wl,'
17159 if test "$host_cpu" = ia64; then
17160 # AIX 5 now supports IA64 processor
17161 lt_prog_compiler_static='-Bstatic'
17163 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17167 mingw* | cygwin* | pw32* | os2* | cegcc*)
17168 # This hack is so that the source file can tell whether it is being
17169 # built for inclusion in a dll (and should export symbols for example).
17170 lt_prog_compiler_pic='-DDLL_EXPORT'
17173 hpux9* | hpux10* | hpux11*)
17174 lt_prog_compiler_wl='-Wl,'
17175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17176 # not for PA HP-UX.
17182 lt_prog_compiler_pic='+Z'
17185 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17186 lt_prog_compiler_static='${wl}-a ${wl}archive'
17189 irix5* | irix6* | nonstopux*)
17190 lt_prog_compiler_wl='-Wl,'
17191 # PIC (with -KPIC) is the default.
17192 lt_prog_compiler_static='-non_shared'
17195 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17196 case $cc_basename in
17197 # old Intel for x86_64 which still supported -KPIC.
17199 lt_prog_compiler_wl='-Wl,'
17200 lt_prog_compiler_pic='-KPIC'
17201 lt_prog_compiler_static='-static'
17203 # icc used to be incompatible with GCC.
17204 # ICC 10 doesn't accept -KPIC any more.
17206 lt_prog_compiler_wl='-Wl,'
17207 lt_prog_compiler_pic='-fPIC'
17208 lt_prog_compiler_static='-static'
17210 # Lahey Fortran 8.1.
17212 lt_prog_compiler_wl='-Wl,'
17213 lt_prog_compiler_pic='--shared'
17214 lt_prog_compiler_static='--static'
17216 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17217 # Portland Group compilers (*not* the Pentium gcc compiler,
17218 # which looks to be a dead project)
17219 lt_prog_compiler_wl='-Wl,'
17220 lt_prog_compiler_pic='-fpic'
17221 lt_prog_compiler_static='-Bstatic'
17224 lt_prog_compiler_wl='-Wl,'
17225 # All Alpha code is PIC.
17226 lt_prog_compiler_static='-non_shared'
17228 xl* | bgxl* | bgf* | mpixl*)
17229 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17230 lt_prog_compiler_wl='-Wl,'
17231 lt_prog_compiler_pic='-qpic'
17232 lt_prog_compiler_static='-qstaticlink'
17235 case `$CC -V 2>&1 | sed 5q` in
17236 *Sun\ F* | *Sun*Fortran*)
17237 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17238 lt_prog_compiler_pic='-KPIC'
17239 lt_prog_compiler_static='-Bstatic'
17240 lt_prog_compiler_wl=''
17244 lt_prog_compiler_pic='-KPIC'
17245 lt_prog_compiler_static='-Bstatic'
17246 lt_prog_compiler_wl='-Wl,'
17254 lt_prog_compiler_pic='-KPIC'
17255 lt_prog_compiler_static='-Bstatic'
17259 # QNX uses GNU C++, but need to define -shared option too, otherwise
17260 # it will coredump.
17261 lt_prog_compiler_pic='-fPIC -shared'
17264 osf3* | osf4* | osf5*)
17265 lt_prog_compiler_wl='-Wl,'
17266 # All OSF/1 code is PIC.
17267 lt_prog_compiler_static='-non_shared'
17271 lt_prog_compiler_static='-non_shared'
17275 lt_prog_compiler_pic='-KPIC'
17276 lt_prog_compiler_static='-Bstatic'
17277 case $cc_basename in
17278 f77* | f90* | f95*)
17279 lt_prog_compiler_wl='-Qoption ld ';;
17281 lt_prog_compiler_wl='-Wl,';;
17286 lt_prog_compiler_wl='-Qoption ld '
17287 lt_prog_compiler_pic='-PIC'
17288 lt_prog_compiler_static='-Bstatic'
17291 sysv4 | sysv4.2uw2* | sysv4.3*)
17292 lt_prog_compiler_wl='-Wl,'
17293 lt_prog_compiler_pic='-KPIC'
17294 lt_prog_compiler_static='-Bstatic'
17298 if test -d /usr/nec ;then
17299 lt_prog_compiler_pic='-Kconform_pic'
17300 lt_prog_compiler_static='-Bstatic'
17304 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17305 lt_prog_compiler_wl='-Wl,'
17306 lt_prog_compiler_pic='-KPIC'
17307 lt_prog_compiler_static='-Bstatic'
17311 lt_prog_compiler_wl='-Wl,'
17312 lt_prog_compiler_can_build_shared=no
17316 lt_prog_compiler_pic='-pic'
17317 lt_prog_compiler_static='-Bstatic'
17321 lt_prog_compiler_can_build_shared=no
17327 # For platforms which do not support PIC, -DPIC is meaningless:
17329 lt_prog_compiler_pic=
17332 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17336 $as_echo "$lt_prog_compiler_pic" >&6; }
17344 # Check to make sure the PIC flag actually works.
17346 if test -n "$lt_prog_compiler_pic"; then
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17348 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17349 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17350 $as_echo_n "(cached
) " >&6
17352 lt_cv_prog_compiler_pic_works=no
17353 ac_outfile=conftest.$ac_objext
17354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17355 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17356 # Insert the option either (1) after the last *FLAGS variable, or
17357 # (2) before a word containing "conftest.
", or (3) at the end.
17358 # Note that $ac_compile itself does not contain backslashes and begins
17359 # with a dollar sign (not a hyphen), so the echo should work correctly.
17360 # The option is referenced via a variable to avoid confusing sed.
17361 lt_compile=`echo "$ac_compile" | $SED \
17362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17364 -e 's:$: $lt_compiler_flag:'`
17365 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17366 (eval "$lt_compile" 2>conftest.err)
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17370 if (exit $ac_status) && test -s "$ac_outfile"; then
17371 # The compiler can only warn and ignore the option if not recognized
17372 # So say no if there are warnings other than the usual output.
17373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17375 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17376 lt_cv_prog_compiler_pic_works=yes
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17383 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17385 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17386 case $lt_prog_compiler_pic in
17388 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17391 lt_prog_compiler_pic=
17392 lt_prog_compiler_can_build_shared=no
17403 # Check to make sure the static flag actually works.
17405 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17407 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17408 if ${lt_cv_prog_compiler_static_works+:} false; then :
17409 $as_echo_n "(cached
) " >&6
17411 lt_cv_prog_compiler_static_works=no
17412 save_LDFLAGS="$LDFLAGS"
17413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17416 # The linker can only warn and ignore the option if not recognized
17417 # So say no if there are warnings
17418 if test -s conftest.err; then
17419 # Append any errors to the config.log.
17420 cat conftest.err 1>&5
17421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17423 if diff conftest.exp conftest.er2 >/dev/null; then
17424 lt_cv_prog_compiler_static_works=yes
17427 lt_cv_prog_compiler_static_works=yes
17431 LDFLAGS="$save_LDFLAGS"
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17435 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17437 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17440 lt_prog_compiler_static=
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17450 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17451 if ${lt_cv_prog_compiler_c_o+:} false; then :
17452 $as_echo_n "(cached
) " >&6
17454 lt_cv_prog_compiler_c_o=no
17455 $RM -r conftest 2>/dev/null
17459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17461 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17462 # Insert the option either (1) after the last *FLAGS variable, or
17463 # (2) before a word containing "conftest.
", or (3) at the end.
17464 # Note that $ac_compile itself does not contain backslashes and begins
17465 # with a dollar sign (not a hyphen), so the echo should work correctly.
17466 lt_compile=`echo "$ac_compile" | $SED \
17467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17469 -e 's:$: $lt_compiler_flag:'`
17470 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17471 (eval "$lt_compile" 2>out/conftest.err)
17473 cat out/conftest.err >&5
17474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17477 # The compiler can only warn and ignore the option if not recognized
17478 # So say no if there are warnings
17479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17482 lt_cv_prog_compiler_c_o=yes
17487 # SGI C++ compiler will create directory out/ii_files/ for
17488 # template instantiation
17489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17490 $RM out/* && rmdir out
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17497 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17505 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17506 if ${lt_cv_prog_compiler_c_o+:} false; then :
17507 $as_echo_n "(cached
) " >&6
17509 lt_cv_prog_compiler_c_o=no
17510 $RM -r conftest 2>/dev/null
17514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17516 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17517 # Insert the option either (1) after the last *FLAGS variable, or
17518 # (2) before a word containing "conftest.
", or (3) at the end.
17519 # Note that $ac_compile itself does not contain backslashes and begins
17520 # with a dollar sign (not a hyphen), so the echo should work correctly.
17521 lt_compile=`echo "$ac_compile" | $SED \
17522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17524 -e 's:$: $lt_compiler_flag:'`
17525 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17526 (eval "$lt_compile" 2>out/conftest.err)
17528 cat out/conftest.err >&5
17529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17532 # The compiler can only warn and ignore the option if not recognized
17533 # So say no if there are warnings
17534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17537 lt_cv_prog_compiler_c_o=yes
17542 # SGI C++ compiler will create directory out/ii_files/ for
17543 # template instantiation
17544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17545 $RM out/* && rmdir out
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17552 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17557 hard_links="nottested
"
17558 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17559 # do not overwrite the value of need_locks provided by the user
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17561 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17566 ln conftest.a conftest.b 2>&5 || hard_links=no
17567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17569 $as_echo "$hard_links" >&6; }
17570 if test "$hard_links" = no; then
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17572 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17585 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17588 allow_undefined_flag=
17589 always_export_symbols=no
17591 archive_expsym_cmds=
17592 compiler_needs_object=no
17593 enable_shared_with_static_runtimes=no
17594 export_dynamic_flag_spec=
17595 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17596 hardcode_automatic=no
17598 hardcode_direct_absolute=no
17599 hardcode_libdir_flag_spec=
17600 hardcode_libdir_flag_spec_ld=
17601 hardcode_libdir_separator=
17602 hardcode_minus_L=no
17603 hardcode_shlibpath_var=unsupported
17605 link_all_deplibs=unknown
17607 module_expsym_cmds=
17608 old_archive_from_new_cmds=
17609 old_archive_from_expsyms_cmds=
17610 thread_safe_flag_spec=
17611 whole_archive_flag_spec=
17612 # include_expsyms should be a list of space-separated symbols to be *always*
17613 # included in the symbol list
17615 # exclude_expsyms can be an extended regexp of symbols to exclude
17616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17617 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17618 # as well as any symbol that contains `d'.
17619 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17621 # platforms (ab)use it in PIC code, but their linkers get confused if
17622 # the symbol is explicitly referenced. Since portable code cannot
17623 # rely on this symbol name, it's probably fine to never include it in
17624 # preloaded symbol tables.
17625 # Exclude shared library initialization/finalization symbols.
17626 extract_expsyms_cmds=
17629 cygwin* | mingw* | pw32* | cegcc*)
17630 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17631 # When not using gcc, we currently assume that we are using
17632 # Microsoft Visual C++.
17633 if test "$GCC" != yes; then
17638 # we just hope/assume this is gcc and not c89 (= MSVC++)
17648 # On some targets, GNU ld is compatible enough with the native linker
17649 # that we're better off using the native interface for both.
17650 lt_use_gnu_ld_interface=no
17651 if test "$with_gnu_ld" = yes; then
17654 # The AIX port of GNU ld has always aspired to compatibility
17655 # with the native linker. However, as the warning in the GNU ld
17656 # block says, versions before 2.19.5* couldn't really create working
17657 # shared libraries, regardless of the interface used.
17658 case `$LD -v 2>&1` in
17659 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17660 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17661 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17663 lt_use_gnu_ld_interface=yes
17668 lt_use_gnu_ld_interface=yes
17673 if test "$lt_use_gnu_ld_interface" = yes; then
17674 # If archive_cmds runs LD, not CC, wlarc should be empty
17677 # Set some defaults for GNU ld with shared library support. These
17678 # are reset later if shared libraries are not supported. Putting them
17679 # here allows them to be overridden if necessary.
17680 runpath_var=LD_RUN_PATH
17681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17682 export_dynamic_flag_spec='${wl}--export-dynamic'
17683 # ancient GNU ld didn't support --whole-archive et. al.
17684 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17685 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17687 whole_archive_flag_spec=
17689 supports_anon_versioning=no
17690 case `$LD -v 2>&1` in
17691 *GNU\ gold*) supports_anon_versioning=yes ;;
17692 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17693 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17694 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17695 *\ 2.11.*) ;; # other 2.11 versions
17696 *) supports_anon_versioning=yes ;;
17699 # See if GNU ld supports shared libraries.
17702 # On AIX/PPC, the GNU linker is very broken
17703 if test "$host_cpu" != ia64; then
17707 *** Warning: the GNU linker, at least up to release 2.19, is reported
17708 *** to be unable to reliably create shared libraries on AIX.
17709 *** Therefore, libtool is disabling shared libraries support. If you
17710 *** really care for shared libraries, you may want to install binutils
17711 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17712 *** You will then need to restart the configuration process.
17721 # see comment about AmigaOS4 .so support
17722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17723 archive_expsym_cmds=''
17726 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)'
17727 hardcode_libdir_flag_spec
='-L$libdir'
17728 hardcode_minus_L
=yes
17734 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17735 allow_undefined_flag
=unsupported
17736 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17737 # support --undefined. This deserves some investigation. FIXME
17738 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17744 cygwin
* | mingw
* | pw32
* | cegcc
*)
17745 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17746 # as there is no search path for DLLs.
17747 hardcode_libdir_flag_spec
='-L$libdir'
17748 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17749 allow_undefined_flag
=unsupported
17750 always_export_symbols
=no
17751 enable_shared_with_static_runtimes
=yes
17752 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17754 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17755 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17756 # If the export-symbols file already is a .def file (1st line
17757 # is EXPORTS), use it as is; otherwise, prepend...
17758 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17759 cp $export_symbols $output_objdir/$soname.def;
17761 echo EXPORTS > $output_objdir/$soname.def;
17762 cat $export_symbols >> $output_objdir/$soname.def;
17764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17771 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17772 link_all_deplibs
=yes
17777 hardcode_shlibpath_var
=no
17778 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17779 export_dynamic_flag_spec
='${wl}-E'
17780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17781 # Instead, shared libraries are loaded at an image base (0x10000000 by
17782 # default) and relocated if they conflict, which is a slow very memory
17783 # consuming and fragmenting process. To avoid this, we pick a random,
17784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17785 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17786 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17787 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'
17790 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17792 if test "$host_os" = linux-dietlibc
; then
17793 case $cc_basename in
17794 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17797 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17798 && test "$tmp_diet" = no
17800 tmp_addflag
=' $pic_flag'
17801 tmp_sharedflag
='-shared'
17802 case $cc_basename,$host_cpu in
17803 pgcc
*) # Portland Group C compiler
17804 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'
17805 tmp_addflag
=' $pic_flag'
17807 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17808 # Portland Group f77 and f90 compilers
17809 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'
17810 tmp_addflag
=' $pic_flag -Mnomain' ;;
17811 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17812 tmp_addflag
=' -i_dynamic' ;;
17813 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17814 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17815 ifc
* | ifort
*) # Intel Fortran compiler
17816 tmp_addflag
=' -nofor_main' ;;
17817 lf95
*) # Lahey Fortran 8.1
17818 whole_archive_flag_spec
=
17819 tmp_sharedflag
='--shared' ;;
17820 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17821 tmp_sharedflag
='-qmkshrobj'
17823 nvcc
*) # Cuda Compiler Driver 2.2
17824 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'
17825 compiler_needs_object
=yes
17828 case `$CC -V 2>&1 | sed 5q` in
17829 *Sun\ C
*) # Sun C 5.9
17830 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'
17831 compiler_needs_object
=yes
17832 tmp_sharedflag
='-G' ;;
17833 *Sun\ F
*) # Sun Fortran 8.3
17834 tmp_sharedflag
='-G' ;;
17836 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17838 if test "x$supports_anon_versioning" = xyes
; then
17839 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17841 echo "local: *; };" >> $output_objdir/$libname.ver~
17842 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17845 case $cc_basename in
17846 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17847 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17848 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17849 hardcode_libdir_flag_spec
=
17850 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17851 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17852 if test "x$supports_anon_versioning" = xyes
; then
17853 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17855 echo "local: *; };" >> $output_objdir/$libname.ver~
17856 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17866 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17867 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17870 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17871 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17876 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17880 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17881 *** create shared libraries on Solaris systems. Therefore, libtool
17882 *** is disabling shared libraries support. We urge you to upgrade GNU
17883 *** binutils to release 2.9.1 or newer. Another option is to modify
17884 *** your PATH or compiler configuration so that the native linker is
17885 *** used, and then restart.
17888 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17889 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17890 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17896 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17897 case `$LD -v 2>&1` in
17898 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17902 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17903 *** reliably create shared libraries on SCO systems. Therefore, libtool
17904 *** is disabling shared libraries support. We urge you to upgrade GNU
17905 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17906 *** your PATH or compiler configuration so that the native linker is
17907 *** used, and then restart.
17912 # For security reasons, it is highly recommended that you always
17913 # use absolute paths for naming shared libraries, and exclude the
17914 # DT_RUNPATH tag from executables and libraries. But doing so
17915 # requires that you compile everything twice, which is a pain.
17916 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17917 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17918 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17919 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17928 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17930 hardcode_direct
=yes
17931 hardcode_shlibpath_var
=no
17935 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17936 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17937 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17944 if test "$ld_shlibs" = no
; then
17946 hardcode_libdir_flag_spec
=
17947 export_dynamic_flag_spec
=
17948 whole_archive_flag_spec
=
17951 # PORTME fill in a description of your system's linker (not GNU ld)
17954 allow_undefined_flag
=unsupported
17955 always_export_symbols
=yes
17956 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'
17957 # Note: this linker hardcodes the directories in LIBPATH if there
17958 # are no directories specified by -L.
17959 hardcode_minus_L
=yes
17960 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17961 # Neither direct hardcoding nor static linking is supported with a
17963 hardcode_direct
=unsupported
17968 if test "$host_cpu" = ia64
; then
17969 # On IA64, the linker does run time linking by default, so we don't
17970 # have to do anything special.
17971 aix_use_runtimelinking
=no
17972 exp_sym_flag
='-Bexport'
17975 # If we're using GNU nm, then we don't want the "-C" option.
17976 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17977 # Also, AIX nm treats weak defined symbols like other global
17978 # defined symbols, whereas GNU nm marks them as "W".
17979 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17980 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'
17982 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'
17984 aix_use_runtimelinking
=no
17986 # Test if we are trying to use run time linking or normal
17987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17988 # need to do runtime linking.
17989 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17990 for ld_flag
in $LDFLAGS; do
17991 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17992 aix_use_runtimelinking
=yes
17999 exp_sym_flag
='-bexport'
18000 no_entry_flag
='-bnoentry'
18003 # When large executables or shared objects are built, AIX ld can
18004 # have problems creating the table of contents. If linking a library
18005 # or program results in "error TOC overflow" add -mminimal-toc to
18006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18010 hardcode_direct
=yes
18011 hardcode_direct_absolute
=yes
18012 hardcode_libdir_separator
=':'
18013 link_all_deplibs
=yes
18014 file_list_spec
='${wl}-f,'
18016 if test "$GCC" = yes; then
18017 case $host_os in aix4.
[012]|aix4.
[012].
*)
18018 # We only want to do this on AIX 4.2 and lower, the check
18019 # below for broken collect2 doesn't work under 4.3+
18020 collect2name
=`${CC} -print-prog-name=collect2`
18021 if test -f "$collect2name" &&
18022 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18024 # We have reworked collect2
18027 # We have old collect2
18028 hardcode_direct
=unsupported
18029 # It fails to find uninstalled libraries when the uninstalled
18030 # path is not listed in the libpath. Setting hardcode_minus_L
18031 # to unsupported forces relinking
18032 hardcode_minus_L
=yes
18033 hardcode_libdir_flag_spec
='-L$libdir'
18034 hardcode_libdir_separator
=
18038 shared_flag
='-shared'
18039 if test "$aix_use_runtimelinking" = yes; then
18040 shared_flag
="$shared_flag "'${wl}-G'
18044 if test "$host_cpu" = ia64
; then
18045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18046 # chokes on -Wl,-G. The following line is correct:
18049 if test "$aix_use_runtimelinking" = yes; then
18050 shared_flag
='${wl}-G'
18052 shared_flag
='${wl}-bM:SRE'
18057 export_dynamic_flag_spec
='${wl}-bexpall'
18058 # It seems that -bexpall does not export symbols beginning with
18059 # underscore (_), so it is better to generate a list of symbols to export.
18060 always_export_symbols
=yes
18061 if test "$aix_use_runtimelinking" = yes; then
18062 # Warning - without using the other runtime loading flags (-brtl),
18063 # -berok will link without error, but may produce a broken library.
18064 allow_undefined_flag
='-berok'
18065 # Determine the default libpath from the value encoded in an
18066 # empty executable.
18067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18068 /* end confdefs.h. */
18078 if ac_fn_c_try_link
"$LINENO"; then :
18080 lt_aix_libpath_sed
='
18081 /Import File Strings/,/^$/ {
18087 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18088 # Check for a 64-bit object if we didn't find anything.
18089 if test -z "$aix_libpath"; then
18090 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18093 rm -f core conftest.err conftest.
$ac_objext \
18094 conftest
$ac_exeext conftest.
$ac_ext
18095 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18097 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18098 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"
18100 if test "$host_cpu" = ia64
; then
18101 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
18102 allow_undefined_flag
="-z nodefs"
18103 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"
18105 # Determine the default libpath from the value encoded in an
18106 # empty executable.
18107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18118 if ac_fn_c_try_link
"$LINENO"; then :
18120 lt_aix_libpath_sed
='
18121 /Import File Strings/,/^$/ {
18127 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18128 # Check for a 64-bit object if we didn't find anything.
18129 if test -z "$aix_libpath"; then
18130 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18133 rm -f core conftest.err conftest.
$ac_objext \
18134 conftest
$ac_exeext conftest.
$ac_ext
18135 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18137 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18138 # Warning - without using the other run time loading flags,
18139 # -berok will link without error, but may produce a broken library.
18140 no_undefined_flag
=' ${wl}-bernotok'
18141 allow_undefined_flag
=' ${wl}-berok'
18142 if test "$with_gnu_ld" = yes; then
18143 # We only use this code for GNU lds that support --whole-archive.
18144 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18146 # Exported symbols can be pulled into shared objects from archives
18147 whole_archive_flag_spec
='$convenience'
18149 archive_cmds_need_lc
=yes
18150 # This is similar to how AIX traditionally builds its shared libraries.
18151 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'
18159 # see comment about AmigaOS4 .so support
18160 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18161 archive_expsym_cmds
=''
18164 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)'
18165 hardcode_libdir_flag_spec
='-L$libdir'
18166 hardcode_minus_L
=yes
18172 export_dynamic_flag_spec
=-rdynamic
18175 cygwin
* | mingw
* | pw32
* | cegcc
*)
18176 # When not using gcc, we currently assume that we are using
18177 # Microsoft Visual C++.
18178 # hardcode_libdir_flag_spec is actually meaningless, as there is
18179 # no search path for DLLs.
18180 hardcode_libdir_flag_spec
=' '
18181 allow_undefined_flag
=unsupported
18182 # Tell ltmain to make .lib files, not .a files.
18184 # Tell ltmain to make .dll files, not .so files.
18186 # FIXME: Setting linknames here is a bad hack.
18187 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18188 # The linker will automatically build a .lib file if we build a DLL.
18189 old_archive_from_new_cmds
='true'
18190 # FIXME: Should let the user specify the lib program.
18191 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18192 fix_srcfile_path
='`cygpath -w "$srcfile"`'
18193 enable_shared_with_static_runtimes
=yes
18196 darwin
* | rhapsody
*)
18199 archive_cmds_need_lc
=no
18201 hardcode_automatic
=yes
18202 hardcode_shlibpath_var
=unsupported
18203 if test "$lt_cv_ld_force_load" = "yes"; then
18204 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\"`'
18206 whole_archive_flag_spec
=''
18208 link_all_deplibs
=yes
18209 allow_undefined_flag
="$_lt_dar_allow_undefined"
18210 case $cc_basename in
18211 ifort
*) _lt_dar_can_shared
=yes ;;
18212 *) _lt_dar_can_shared
=$GCC ;;
18214 if test "$_lt_dar_can_shared" = "yes"; then
18215 output_verbose_link_cmd
=func_echo_all
18216 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18217 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18218 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}"
18219 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}"
18228 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229 hardcode_libdir_flag_spec
='-L$libdir'
18230 hardcode_shlibpath_var
=no
18233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18234 # support. Future versions do this automatically, but an explicit c++rt0.o
18235 # does not break anything, and helps significantly (at the cost of a little
18238 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18239 hardcode_libdir_flag_spec
='-R$libdir'
18240 hardcode_direct
=yes
18241 hardcode_shlibpath_var
=no
18244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18246 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18247 hardcode_direct
=yes
18248 hardcode_minus_L
=yes
18249 hardcode_shlibpath_var
=no
18252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18253 freebsd
* | dragonfly
*)
18254 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18255 hardcode_libdir_flag_spec
='-R$libdir'
18256 hardcode_direct
=yes
18257 hardcode_shlibpath_var
=no
18261 if test "$GCC" = yes; then
18262 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'
18264 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'
18266 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18267 hardcode_libdir_separator
=:
18268 hardcode_direct
=yes
18270 # hardcode_minus_L: Not really in the search PATH,
18271 # but as the default location of the library.
18272 hardcode_minus_L
=yes
18273 export_dynamic_flag_spec
='${wl}-E'
18277 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18278 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18280 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18282 if test "$with_gnu_ld" = no
; then
18283 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18284 hardcode_libdir_flag_spec_ld
='+b $libdir'
18285 hardcode_libdir_separator
=:
18286 hardcode_direct
=yes
18287 hardcode_direct_absolute
=yes
18288 export_dynamic_flag_spec
='${wl}-E'
18289 # hardcode_minus_L: Not really in the search PATH,
18290 # but as the default location of the library.
18291 hardcode_minus_L
=yes
18296 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18299 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18302 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18305 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18311 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18314 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18318 # Older versions of the 11.00 compiler do not understand -b yet
18319 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18321 $as_echo_n "checking if $CC understands -b... " >&6; }
18322 if ${lt_cv_prog_compiler__b+:} false
; then :
18323 $as_echo_n "(cached) " >&6
18325 lt_cv_prog_compiler__b
=no
18326 save_LDFLAGS
="$LDFLAGS"
18327 LDFLAGS
="$LDFLAGS -b"
18328 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18329 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18330 # The linker can only warn and ignore the option if not recognized
18331 # So say no if there are warnings
18332 if test -s conftest.err
; then
18333 # Append any errors to the config.log.
18334 cat conftest.err
1>&5
18335 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18336 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18337 if diff conftest.exp conftest.er2
>/dev
/null
; then
18338 lt_cv_prog_compiler__b
=yes
18341 lt_cv_prog_compiler__b
=yes
18345 LDFLAGS
="$save_LDFLAGS"
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18349 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18351 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18352 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18354 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18360 if test "$with_gnu_ld" = no
; then
18361 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18362 hardcode_libdir_separator
=:
18367 hardcode_shlibpath_var
=no
18370 hardcode_direct
=yes
18371 hardcode_direct_absolute
=yes
18372 export_dynamic_flag_spec
='${wl}-E'
18374 # hardcode_minus_L: Not really in the search PATH,
18375 # but as the default location of the library.
18376 hardcode_minus_L
=yes
18382 irix5
* | irix6
* | nonstopux
*)
18383 if test "$GCC" = yes; then
18384 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'
18385 # Try to use the -exported_symbol ld option, if it does not
18386 # work, assume that -exports_file does not work either and
18387 # implicitly export all symbols.
18388 save_LDFLAGS
="$LDFLAGS"
18389 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18394 if ac_fn_c_try_link
"$LINENO"; then :
18395 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'
18398 rm -f core conftest.err conftest.
$ac_objext \
18399 conftest
$ac_exeext conftest.
$ac_ext
18400 LDFLAGS
="$save_LDFLAGS"
18402 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'
18403 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'
18405 archive_cmds_need_lc
='no'
18406 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18407 hardcode_libdir_separator
=:
18409 link_all_deplibs
=yes
18413 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18414 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18416 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18418 hardcode_libdir_flag_spec
='-R$libdir'
18419 hardcode_direct
=yes
18420 hardcode_shlibpath_var
=no
18424 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18425 hardcode_direct
=yes
18426 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18427 hardcode_libdir_separator
=:
18428 hardcode_shlibpath_var
=no
18435 if test -f /usr
/libexec
/ld.so
; then
18436 hardcode_direct
=yes
18437 hardcode_shlibpath_var
=no
18438 hardcode_direct_absolute
=yes
18439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18440 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18441 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18442 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18443 export_dynamic_flag_spec
='${wl}-E'
18446 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18447 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18448 hardcode_libdir_flag_spec
='-R$libdir'
18451 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18452 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18462 hardcode_libdir_flag_spec
='-L$libdir'
18463 hardcode_minus_L
=yes
18464 allow_undefined_flag
=unsupported
18465 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'
18466 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18470 if test "$GCC" = yes; then
18471 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18472 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'
18474 allow_undefined_flag
=' -expect_unresolved \*'
18475 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'
18477 archive_cmds_need_lc
='no'
18478 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18479 hardcode_libdir_separator
=:
18482 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18483 if test "$GCC" = yes; then
18484 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18485 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'
18486 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18488 allow_undefined_flag
=' -expect_unresolved \*'
18489 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'
18490 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~
18491 $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'
18493 # Both c and cxx compiler support -rpath directly
18494 hardcode_libdir_flag_spec
='-rpath $libdir'
18496 archive_cmds_need_lc
='no'
18497 hardcode_libdir_separator
=:
18501 no_undefined_flag
=' -z defs'
18502 if test "$GCC" = yes; then
18504 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18505 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18506 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18508 case `$CC -V 2>&1` in
18511 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18512 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18513 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18517 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18518 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18519 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18523 hardcode_libdir_flag_spec
='-R$libdir'
18524 hardcode_shlibpath_var
=no
18526 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18528 # The compiler driver will combine and reorder linker options,
18529 # but understands `-z linker_flag'. GCC discards it without `$wl',
18530 # but is careful enough not to reorder.
18531 # Supported since Solaris 2.6 (maybe 2.5.1?)
18532 if test "$GCC" = yes; then
18533 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18535 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18539 link_all_deplibs
=yes
18543 if test "x$host_vendor" = xsequent
; then
18544 # Use $CC to link under sequent, because it throws in some extra .o
18545 # files that make .init and .fini sections work.
18546 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18548 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18550 hardcode_libdir_flag_spec
='-L$libdir'
18551 hardcode_direct
=yes
18552 hardcode_minus_L
=yes
18553 hardcode_shlibpath_var
=no
18557 case $host_vendor in
18559 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18560 hardcode_direct
=yes # is this really true???
18563 ## LD is ld it makes a PLAMLIB
18564 ## CC just makes a GrossModule.
18565 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18566 reload_cmds
='$CC -r -o $output$reload_objs'
18570 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18571 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18574 runpath_var
='LD_RUN_PATH'
18575 hardcode_shlibpath_var
=no
18579 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18580 hardcode_shlibpath_var
=no
18581 export_dynamic_flag_spec
='-Bexport'
18585 if test -d /usr
/nec
; then
18586 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18587 hardcode_shlibpath_var
=no
18588 runpath_var
=LD_RUN_PATH
18589 hardcode_runpath_var
=yes
18594 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18595 no_undefined_flag
='${wl}-z,text'
18596 archive_cmds_need_lc
=no
18597 hardcode_shlibpath_var
=no
18598 runpath_var
='LD_RUN_PATH'
18600 if test "$GCC" = yes; then
18601 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18602 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18604 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18605 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18609 sysv5
* | sco3.2v5
* | sco5v6
*)
18610 # Note: We can NOT use -z defs as we might desire, because we do not
18611 # link with -lc, and that would cause any symbols used from libc to
18612 # always be unresolved, which means just about no library would
18613 # ever link correctly. If we're not using GNU ld we use -z text
18614 # though, which does catch some bad symbols but isn't as heavy-handed
18616 no_undefined_flag
='${wl}-z,text'
18617 allow_undefined_flag
='${wl}-z,nodefs'
18618 archive_cmds_need_lc
=no
18619 hardcode_shlibpath_var
=no
18620 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18621 hardcode_libdir_separator
=':'
18622 link_all_deplibs
=yes
18623 export_dynamic_flag_spec
='${wl}-Bexport'
18624 runpath_var
='LD_RUN_PATH'
18626 if test "$GCC" = yes; then
18627 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18628 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18630 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18631 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18636 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18637 hardcode_libdir_flag_spec
='-L$libdir'
18638 hardcode_shlibpath_var
=no
18646 if test x
$host_vendor = xsni
; then
18648 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18649 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18656 $as_echo "$ld_shlibs" >&6; }
18657 test "$ld_shlibs" = no
&& can_build_shared
=no
18659 with_gnu_ld
=$with_gnu_ld
18676 # Do we need to explicitly link libc?
18678 case "x$archive_cmds_need_lc" in
18680 # Assume -lc should be added
18681 archive_cmds_need_lc
=yes
18683 if test "$enable_shared" = yes && test "$GCC" = yes; then
18684 case $archive_cmds in
18686 # FIXME: we may have to deal with multi-command sequences.
18689 # Test whether the compiler implicitly links with -lc since on some
18690 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18691 # to ld, don't add -lc before -lgcc.
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18693 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18694 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18695 $as_echo_n "(cached) " >&6
18698 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18701 (eval $ac_compile) 2>&5
18703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18704 test $ac_status = 0; } 2>conftest.err
; then
18707 libobjs
=conftest.
$ac_objext
18709 wl
=$lt_prog_compiler_wl
18710 pic_flag
=$lt_prog_compiler_pic
18716 lt_save_allow_undefined_flag
=$allow_undefined_flag
18717 allow_undefined_flag
=
18718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18719 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18722 test $ac_status = 0; }
18724 lt_cv_archive_cmds_need_lc
=no
18726 lt_cv_archive_cmds_need_lc
=yes
18728 allow_undefined_flag
=$lt_save_allow_undefined_flag
18730 cat conftest.err
1>&5
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18736 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18737 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18901 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18903 if test "$GCC" = yes; then
18905 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18906 *) lt_awk_arg
="/^libraries:/" ;;
18909 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18910 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18912 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18913 case $lt_search_path_spec in
18915 # if the path contains ";" then we assume it to be the separator
18916 # otherwise default to the standard path separator (i.e. ":") - it is
18917 # assumed that no part of a normal pathname contains ";" but that should
18918 # okay in the real world where ";" in dirpaths is itself problematic.
18919 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18922 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18925 # Ok, now we have the path, separated by spaces, we can step through it
18926 # and add multilib dir if necessary.
18927 lt_tmp_lt_search_path_spec
=
18928 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18929 for lt_sys_path
in $lt_search_path_spec; do
18930 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18931 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18933 test -d "$lt_sys_path" && \
18934 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18937 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18938 BEGIN {RS=" "; FS="/|\n";} {
18941 for (lt_i = NF; lt_i > 0; lt_i--) {
18942 if ($lt_i != "" && $lt_i != ".") {
18943 if ($lt_i == "..") {
18946 if (lt_count == 0) {
18947 lt_foo="/" $lt_i lt_foo;
18954 if (lt_foo != "") { lt_freq[lt_foo]++; }
18955 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18957 # AWK program above erroneously prepends '/' to C:/dos/paths
18960 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18961 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18963 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18965 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18967 library_names_spec
=
18968 libname_spec
='lib$name'
18972 postuninstall_cmds
=
18976 shlibpath_overrides_runpath
=unknown
18978 dynamic_linker
="$host_os ld.so"
18979 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18980 need_lib_prefix
=unknown
18981 hardcode_into_libs
=no
18983 # when you set need_version to no, make sure it does not cause -set_version
18984 # flags to be left without arguments
18985 need_version
=unknown
18990 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18991 shlibpath_var
=LIBPATH
18993 # AIX 3 has no versioning support, so we append a major version to the name.
18994 soname_spec
='${libname}${release}${shared_ext}$major'
19001 hardcode_into_libs
=yes
19002 if test "$host_cpu" = ia64
; then
19003 # AIX 5 supports IA64
19004 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19005 shlibpath_var
=LD_LIBRARY_PATH
19007 # With GCC up to 2.95.x, collect2 would create an import file
19008 # for dependence libraries. The import file would start with
19009 # the line `#! .'. This would cause the generated library to
19010 # depend on `.', always an invalid library. This was fixed in
19011 # development snapshots of GCC prior to 3.0.
19013 aix4 | aix4.
[01] | aix4.
[01].
*)
19014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19016 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19019 can_build_shared
=no
19023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19024 # soname into executable. Probably we can add versioning support to
19025 # collect2, so additional links can be useful in future.
19026 if test "$aix_use_runtimelinking" = yes; then
19027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19028 # instead of lib<name>.a to let people know that these are not
19029 # typical AIX shared libraries.
19030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19032 # We preserve .a as extension for shared libraries through AIX4.2
19033 # and later when we are not doing run time linking.
19034 library_names_spec
='${libname}${release}.a $libname.a'
19035 soname_spec
='${libname}${release}${shared_ext}$major'
19037 shlibpath_var
=LIBPATH
19044 # Since July 2007 AmigaOS4 officially supports .so libraries.
19045 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19049 library_names_spec
='$libname.ixlibrary $libname.a'
19050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19051 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'
19057 library_names_spec
='${libname}${shared_ext}'
19058 dynamic_linker
="$host_os ld.so"
19059 shlibpath_var
=LIBRARY_PATH
19065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19066 soname_spec
='${libname}${release}${shared_ext}$major'
19067 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19068 shlibpath_var
=LD_LIBRARY_PATH
19069 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19070 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19071 # the default ld.so.conf also contains /usr/contrib/lib and
19072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19073 # libtool to hard-code these into programs
19076 cygwin
* | mingw
* | pw32
* | cegcc
*)
19077 version_type
=windows
19082 case $GCC,$host_os in
19083 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19084 library_names_spec
='$libname.dll.a'
19085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19086 postinstall_cmds
='base_file=`basename \${file}`~
19087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19088 dldir=$destdir/`dirname \$dlpath`~
19089 test -d \$dldir || mkdir -p \$dldir~
19090 $install_prog $dir/$dlname \$dldir/$dlname~
19091 chmod a+x \$dldir/$dlname~
19092 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19093 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19095 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19096 dlpath=$dir/\$dldll~
19098 shlibpath_overrides_runpath
=yes
19102 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19103 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19105 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
19108 # MinGW DLLs use traditional 'lib' prefix
19109 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19112 # pw32 DLLs use 'pw' prefix rather than 'lib'
19113 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19119 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19122 dynamic_linker
='Win32 ld.exe'
19123 # FIXME: first we should search . and the directory the executable is in
19127 darwin
* | rhapsody
*)
19128 dynamic_linker
="$host_os dyld"
19129 version_type
=darwin
19132 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19133 soname_spec
='${libname}${release}${major}$shared_ext'
19134 shlibpath_overrides_runpath
=yes
19135 shlibpath_var
=DYLD_LIBRARY_PATH
19136 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19138 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
19139 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19147 soname_spec
='${libname}${release}${shared_ext}$major'
19148 shlibpath_var
=LD_LIBRARY_PATH
19151 freebsd
* | dragonfly
*)
19152 # DragonFly does not have aout. When/if they implement a new
19153 # versioning mechanism, adjust this.
19154 if test -x /usr
/bin
/objformat
; then
19155 objformat
=`/usr/bin/objformat`
19158 freebsd
[23].
*) objformat
=aout
;;
19159 *) objformat
=elf
;;
19162 version_type
=freebsd-
$objformat
19163 case $version_type in
19165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19170 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19174 shlibpath_var
=LD_LIBRARY_PATH
19177 shlibpath_overrides_runpath
=yes
19179 freebsd3.
[01]* | freebsdelf3.
[01]*)
19180 shlibpath_overrides_runpath
=yes
19181 hardcode_into_libs
=yes
19183 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19184 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19185 shlibpath_overrides_runpath
=no
19186 hardcode_into_libs
=yes
19188 *) # from 4.6 on, and DragonFly
19189 shlibpath_overrides_runpath
=yes
19190 hardcode_into_libs
=yes
19199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19200 soname_spec
='${libname}${release}${shared_ext}$major'
19201 shlibpath_var
=LD_LIBRARY_PATH
19202 hardcode_into_libs
=yes
19209 dynamic_linker
="$host_os runtime_loader"
19210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19211 soname_spec
='${libname}${release}${shared_ext}$major'
19212 shlibpath_var
=LIBRARY_PATH
19213 shlibpath_overrides_runpath
=yes
19214 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19215 hardcode_into_libs
=yes
19218 hpux9
* | hpux10
* | hpux11
*)
19219 # Give a soname corresponding to the major version so that dld.sl refuses to
19220 # link against other versions.
19227 hardcode_into_libs
=yes
19228 dynamic_linker
="$host_os dld.so"
19229 shlibpath_var
=LD_LIBRARY_PATH
19230 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19232 soname_spec
='${libname}${release}${shared_ext}$major'
19233 if test "X$HPUX_IA64_MODE" = X32
; then
19234 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19236 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19238 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19242 hardcode_into_libs
=yes
19243 dynamic_linker
="$host_os dld.sl"
19244 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19245 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19247 soname_spec
='${libname}${release}${shared_ext}$major'
19248 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19249 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19253 dynamic_linker
="$host_os dld.sl"
19254 shlibpath_var
=SHLIB_PATH
19255 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19256 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19257 soname_spec
='${libname}${release}${shared_ext}$major'
19260 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19261 postinstall_cmds
='chmod 555 $lib'
19262 # or fails outright, so override atomically:
19263 install_override_mode
=555
19270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19271 soname_spec
='${libname}${release}${shared_ext}$major'
19272 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19273 shlibpath_var
=LD_LIBRARY_PATH
19274 shlibpath_overrides_runpath
=no
19275 hardcode_into_libs
=yes
19278 irix5
* | irix6
* | nonstopux
*)
19280 nonstopux
*) version_type
=nonstopux
;;
19282 if test "$lt_cv_prog_gnu_ld" = yes; then
19290 soname_spec
='${libname}${release}${shared_ext}$major'
19291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19293 irix5
* | nonstopux
*)
19294 libsuff
= shlibsuff
=
19297 case $LD in # libtool.m4 will add one of these switches to LD
19298 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19299 libsuff
= shlibsuff
= libmagic
=32-bit;;
19300 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19301 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19302 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19303 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19304 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19308 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19309 shlibpath_overrides_runpath
=no
19310 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19311 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19312 hardcode_into_libs
=yes
19315 # No shared lib support for Linux oldld, aout, or coff.
19316 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19320 # This must be Linux ELF.
19322 # uclinux* changes (here and below) have been submitted to the libtool
19323 # project, but have not yet been accepted: they are GCC-local changes
19324 # for the time being. (See
19325 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19326 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
19330 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19331 soname_spec
='${libname}${release}${shared_ext}$major'
19332 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19333 shlibpath_var
=LD_LIBRARY_PATH
19334 shlibpath_overrides_runpath
=no
19336 # Some binutils ld are patched to set DT_RUNPATH
19337 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19338 $as_echo_n "(cached) " >&6
19340 lt_cv_shlibpath_overrides_runpath
=no
19341 save_LDFLAGS
=$LDFLAGS
19342 save_libdir
=$libdir
19343 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19344 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19356 if ac_fn_c_try_link
"$LINENO"; then :
19357 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19358 lt_cv_shlibpath_overrides_runpath
=yes
19361 rm -f core conftest.err conftest.
$ac_objext \
19362 conftest
$ac_exeext conftest.
$ac_ext
19363 LDFLAGS
=$save_LDFLAGS
19364 libdir
=$save_libdir
19368 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19370 # This implies no fast_install, which is unacceptable.
19371 # Some rework will be needed to allow for fast_install
19372 # before this can be enabled.
19373 hardcode_into_libs
=yes
19375 # Append ld.so.conf contents to the search path
19376 if test -f /etc
/ld.so.conf
; then
19377 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' ' '`
19378 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19381 # We used to test for /lib/ld.so.1 and disable shared libraries on
19382 # powerpc, because MkLinux only supported shared libraries with the
19383 # GNU dynamic linker. Since this was broken with cross compilers,
19384 # most powerpc-linux boxes support dynamic linking these days and
19385 # people can always --disable-shared, the test was removed, and we
19386 # assume the GNU/Linux dynamic linker is in use.
19387 dynamic_linker
='GNU/Linux ld.so'
19394 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19396 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19397 dynamic_linker
='NetBSD (a.out) ld.so'
19399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19400 soname_spec
='${libname}${release}${shared_ext}$major'
19401 dynamic_linker
='NetBSD ld.elf_so'
19403 shlibpath_var
=LD_LIBRARY_PATH
19404 shlibpath_overrides_runpath
=yes
19405 hardcode_into_libs
=yes
19410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19411 shlibpath_var
=LD_LIBRARY_PATH
19412 shlibpath_overrides_runpath
=yes
19419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19420 soname_spec
='${libname}${release}${shared_ext}$major'
19421 shlibpath_var
=LD_LIBRARY_PATH
19422 shlibpath_overrides_runpath
=no
19423 hardcode_into_libs
=yes
19424 dynamic_linker
='ldqnx.so'
19429 sys_lib_dlsearch_path_spec
="/usr/lib"
19431 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19433 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19434 *) need_version
=no
;;
19436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19437 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19438 shlibpath_var
=LD_LIBRARY_PATH
19439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19441 openbsd2.
[89] | openbsd2.
[89].
*)
19442 shlibpath_overrides_runpath
=no
19445 shlibpath_overrides_runpath
=yes
19449 shlibpath_overrides_runpath
=yes
19454 libname_spec
='$name'
19457 library_names_spec
='$libname${shared_ext} $libname.a'
19458 dynamic_linker
='OS/2 ld.exe'
19459 shlibpath_var
=LIBPATH
19462 osf3
* | osf4
* | osf5
*)
19466 soname_spec
='${libname}${release}${shared_ext}$major'
19467 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19468 shlibpath_var
=LD_LIBRARY_PATH
19469 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19470 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19481 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19482 soname_spec
='${libname}${release}${shared_ext}$major'
19483 shlibpath_var
=LD_LIBRARY_PATH
19484 shlibpath_overrides_runpath
=yes
19485 hardcode_into_libs
=yes
19486 # ldd complains unless libraries are executable
19487 postinstall_cmds
='chmod +x $lib'
19492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19493 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19494 shlibpath_var
=LD_LIBRARY_PATH
19495 shlibpath_overrides_runpath
=yes
19496 if test "$with_gnu_ld" = yes; then
19504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19505 soname_spec
='${libname}${release}${shared_ext}$major'
19506 shlibpath_var
=LD_LIBRARY_PATH
19507 case $host_vendor in
19509 shlibpath_overrides_runpath
=no
19511 runpath_var
=LD_RUN_PATH
19519 shlibpath_overrides_runpath
=no
19520 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19526 if test -d /usr
/nec
;then
19528 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19529 soname_spec
='$libname${shared_ext}.$major'
19530 shlibpath_var
=LD_LIBRARY_PATH
19534 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19535 version_type
=freebsd-elf
19538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19539 soname_spec
='${libname}${release}${shared_ext}$major'
19540 shlibpath_var
=LD_LIBRARY_PATH
19541 shlibpath_overrides_runpath
=yes
19542 hardcode_into_libs
=yes
19543 if test "$with_gnu_ld" = yes; then
19544 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19546 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19549 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19553 sys_lib_dlsearch_path_spec
='/usr/lib'
19557 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19562 shlibpath_var
=LD_LIBRARY_PATH
19563 shlibpath_overrides_runpath
=no
19564 hardcode_into_libs
=yes
19569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19570 soname_spec
='${libname}${release}${shared_ext}$major'
19571 shlibpath_var
=LD_LIBRARY_PATH
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19579 $as_echo "$dynamic_linker" >&6; }
19580 test "$dynamic_linker" = no
&& can_build_shared
=no
19582 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19583 if test "$GCC" = yes; then
19584 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19587 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19588 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19590 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19591 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19686 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19688 if test -n "$hardcode_libdir_flag_spec" ||
19689 test -n "$runpath_var" ||
19690 test "X$hardcode_automatic" = "Xyes" ; then
19692 # We can hardcode non-existent directories.
19693 if test "$hardcode_direct" != no
&&
19694 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19695 # have to relink, otherwise we might link with an installed library
19696 # when we should be linking with a yet-to-be-installed one
19697 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19698 test "$hardcode_minus_L" != no
; then
19699 # Linking always hardcodes the temporary library directory.
19700 hardcode_action
=relink
19702 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19703 hardcode_action
=immediate
19706 # We cannot hardcode anything, or else we can only hardcode existing
19708 hardcode_action
=unsupported
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19711 $as_echo "$hardcode_action" >&6; }
19713 if test "$hardcode_action" = relink ||
19714 test "$inherit_rpath" = yes; then
19715 # Fast installation is not supported
19716 enable_fast_install
=no
19717 elif test "$shlibpath_overrides_runpath" = yes ||
19718 test "$enable_shared" = no
; then
19719 # Fast installation is not necessary
19720 enable_fast_install
=needless
19728 if test "x$enable_dlopen" != xyes
; then
19729 enable_dlopen
=unknown
19730 enable_dlopen_self
=unknown
19731 enable_dlopen_self_static
=unknown
19738 lt_cv_dlopen
="load_add_on"
19740 lt_cv_dlopen_self
=yes
19743 mingw
* | pw32
* | cegcc
*)
19744 lt_cv_dlopen
="LoadLibrary"
19749 lt_cv_dlopen
="dlopen"
19754 # if libdl is installed we need to link against it
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19756 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19757 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19758 $as_echo_n "(cached) " >&6
19760 ac_check_lib_save_LIBS
=$LIBS
19762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19763 /* end confdefs.h. */
19765 /* Override any GCC internal prototype to avoid an error.
19766 Use char because int might match the return type of a GCC
19767 builtin and then its argument prototype would still apply. */
19780 if ac_fn_c_try_link
"$LINENO"; then :
19781 ac_cv_lib_dl_dlopen
=yes
19783 ac_cv_lib_dl_dlopen
=no
19785 rm -f core conftest.err conftest.
$ac_objext \
19786 conftest
$ac_exeext conftest.
$ac_ext
19787 LIBS
=$ac_check_lib_save_LIBS
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19791 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19792 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19795 lt_cv_dlopen
="dyld"
19797 lt_cv_dlopen_self
=yes
19804 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19805 if test "x$ac_cv_func_shl_load" = xyes
; then :
19806 lt_cv_dlopen
="shl_load"
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19809 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19810 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19811 $as_echo_n "(cached) " >&6
19813 ac_check_lib_save_LIBS
=$LIBS
19815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19816 /* end confdefs.h. */
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19828 return shl_load ();
19833 if ac_fn_c_try_link
"$LINENO"; then :
19834 ac_cv_lib_dld_shl_load
=yes
19836 ac_cv_lib_dld_shl_load
=no
19838 rm -f core conftest.err conftest.
$ac_objext \
19839 conftest
$ac_exeext conftest.
$ac_ext
19840 LIBS
=$ac_check_lib_save_LIBS
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19843 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19844 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19845 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19847 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19848 if test "x$ac_cv_func_dlopen" = xyes
; then :
19849 lt_cv_dlopen
="dlopen"
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19852 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19853 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19854 $as_echo_n "(cached) " >&6
19856 ac_check_lib_save_LIBS
=$LIBS
19858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h. */
19861 /* Override any GCC internal prototype to avoid an error.
19862 Use char because int might match the return type of a GCC
19863 builtin and then its argument prototype would still apply. */
19876 if ac_fn_c_try_link
"$LINENO"; then :
19877 ac_cv_lib_dl_dlopen
=yes
19879 ac_cv_lib_dl_dlopen
=no
19881 rm -f core conftest.err conftest.
$ac_objext \
19882 conftest
$ac_exeext conftest.
$ac_ext
19883 LIBS
=$ac_check_lib_save_LIBS
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19886 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19887 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19888 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19891 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19892 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19893 $as_echo_n "(cached) " >&6
19895 ac_check_lib_save_LIBS
=$LIBS
19896 LIBS
="-lsvld $LIBS"
19897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h. */
19900 /* Override any GCC internal prototype to avoid an error.
19901 Use char because int might match the return type of a GCC
19902 builtin and then its argument prototype would still apply. */
19915 if ac_fn_c_try_link
"$LINENO"; then :
19916 ac_cv_lib_svld_dlopen
=yes
19918 ac_cv_lib_svld_dlopen
=no
19920 rm -f core conftest.err conftest.
$ac_objext \
19921 conftest
$ac_exeext conftest.
$ac_ext
19922 LIBS
=$ac_check_lib_save_LIBS
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19925 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19926 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19927 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19930 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19931 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19932 $as_echo_n "(cached) " >&6
19934 ac_check_lib_save_LIBS
=$LIBS
19936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19937 /* end confdefs.h. */
19939 /* Override any GCC internal prototype to avoid an error.
19940 Use char because int might match the return type of a GCC
19941 builtin and then its argument prototype would still apply. */
19949 return dld_link ();
19954 if ac_fn_c_try_link
"$LINENO"; then :
19955 ac_cv_lib_dld_dld_link
=yes
19957 ac_cv_lib_dld_dld_link
=no
19959 rm -f core conftest.err conftest.
$ac_objext \
19960 conftest
$ac_exeext conftest.
$ac_ext
19961 LIBS
=$ac_check_lib_save_LIBS
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19964 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19965 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19966 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19987 if test "x$lt_cv_dlopen" != xno
; then
19993 case $lt_cv_dlopen in
19995 save_CPPFLAGS
="$CPPFLAGS"
19996 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19998 save_LDFLAGS
="$LDFLAGS"
19999 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
20002 LIBS
="$lt_cv_dlopen_libs $LIBS"
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20005 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
20006 if ${lt_cv_dlopen_self+:} false
; then :
20007 $as_echo_n "(cached) " >&6
20009 if test "$cross_compiling" = yes; then :
20010 lt_cv_dlopen_self
=cross
20012 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20013 lt_status
=$lt_dlunknown
20014 cat > conftest.
$ac_ext <<_LT_EOF
20015 #line 20015 "configure"
20016 #include "confdefs.h"
20025 # define LT_DLGLOBAL RTLD_GLOBAL
20028 # define LT_DLGLOBAL DL_GLOBAL
20030 # define LT_DLGLOBAL 0
20034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20035 find out it does not work in some platform. */
20036 #ifndef LT_DLLAZY_OR_NOW
20038 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20041 # define LT_DLLAZY_OR_NOW DL_LAZY
20044 # define LT_DLLAZY_OR_NOW RTLD_NOW
20047 # define LT_DLLAZY_OR_NOW DL_NOW
20049 # define LT_DLLAZY_OR_NOW 0
20056 /* When -fvisbility=hidden is used, assume the code has been annotated
20057 correspondingly for the symbols needed. */
20058 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20059 void fnord () __attribute__((visibility("default")));
20062 void fnord () { int i=42; }
20065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20066 int status = $lt_dlunknown;
20070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20073 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20074 else puts (dlerror ());
20076 /* dlclose (self); */
20084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20085 (eval $ac_link) 2>&5
20087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20088 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20089 (.
/conftest
; exit; ) >&5 2>/dev
/null
20091 case x
$lt_status in
20092 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
20093 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
20094 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
20097 # compilation failed
20098 lt_cv_dlopen_self
=no
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20106 $as_echo "$lt_cv_dlopen_self" >&6; }
20108 if test "x$lt_cv_dlopen_self" = xyes
; then
20109 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20111 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20112 if ${lt_cv_dlopen_self_static+:} false
; then :
20113 $as_echo_n "(cached) " >&6
20115 if test "$cross_compiling" = yes; then :
20116 lt_cv_dlopen_self_static
=cross
20118 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20119 lt_status
=$lt_dlunknown
20120 cat > conftest.
$ac_ext <<_LT_EOF
20121 #line 20121 "configure"
20122 #include "confdefs.h"
20131 # define LT_DLGLOBAL RTLD_GLOBAL
20134 # define LT_DLGLOBAL DL_GLOBAL
20136 # define LT_DLGLOBAL 0
20140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20141 find out it does not work in some platform. */
20142 #ifndef LT_DLLAZY_OR_NOW
20144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20147 # define LT_DLLAZY_OR_NOW DL_LAZY
20150 # define LT_DLLAZY_OR_NOW RTLD_NOW
20153 # define LT_DLLAZY_OR_NOW DL_NOW
20155 # define LT_DLLAZY_OR_NOW 0
20162 /* When -fvisbility=hidden is used, assume the code has been annotated
20163 correspondingly for the symbols needed. */
20164 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20165 void fnord () __attribute__((visibility("default")));
20168 void fnord () { int i=42; }
20171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20172 int status = $lt_dlunknown;
20176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20179 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20180 else puts (dlerror ());
20182 /* dlclose (self); */
20190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20191 (eval $ac_link) 2>&5
20193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20194 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20195 (.
/conftest
; exit; ) >&5 2>/dev
/null
20197 case x
$lt_status in
20198 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20199 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20200 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20203 # compilation failed
20204 lt_cv_dlopen_self_static
=no
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20212 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20215 CPPFLAGS
="$save_CPPFLAGS"
20216 LDFLAGS
="$save_LDFLAGS"
20221 case $lt_cv_dlopen_self in
20222 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20223 *) enable_dlopen_self
=unknown
;;
20226 case $lt_cv_dlopen_self_static in
20227 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20228 *) enable_dlopen_self_static
=unknown
;;
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20251 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20252 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20253 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20254 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20256 $as_echo "yes" >&6; }
20258 # FIXME - insert some real tests, host_os isn't really good enough
20261 if test -n "$STRIP" ; then
20262 striplib
="$STRIP -x"
20263 old_striplib
="$STRIP -S"
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20265 $as_echo "yes" >&6; }
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20268 $as_echo "no" >&6; }
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20273 $as_echo "no" >&6; }
20289 # Report which library types will actually be built
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20291 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20293 $as_echo "$can_build_shared" >&6; }
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20296 $as_echo_n "checking whether to build shared libraries... " >&6; }
20297 test "$can_build_shared" = "no" && enable_shared
=no
20299 # On AIX, shared libraries and static libraries use the same namespace, and
20300 # are all built from PIC.
20303 test "$enable_shared" = yes && enable_static
=no
20304 if test -n "$RANLIB"; then
20305 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20306 postinstall_cmds
='$RANLIB $lib'
20311 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20312 test "$enable_shared" = yes && enable_static
=no
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20317 $as_echo "$enable_shared" >&6; }
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20320 $as_echo_n "checking whether to build static libraries... " >&6; }
20321 # Make sure either enable_shared or enable_static is yes.
20322 test "$enable_shared" = yes || enable_static
=yes
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20324 $as_echo "$enable_static" >&6; }
20331 ac_cpp
='$CXXCPP $CPPFLAGS'
20332 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20338 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20340 (test "X$CXX" != "Xg++"))) ; then
20342 ac_cpp
='$CXXCPP $CPPFLAGS'
20343 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20344 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20345 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20347 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20348 if test -z "$CXXCPP"; then
20349 if ${ac_cv_prog_CXXCPP+:} false
; then :
20350 $as_echo_n "(cached) " >&6
20352 # Double quotes because CXXCPP needs to be expanded
20353 for CXXCPP
in "$CXX -E" "/lib/cpp"
20355 ac_preproc_ok
=false
20356 for ac_cxx_preproc_warn_flag
in '' yes
20358 # Use a header file that comes with gcc, so configuring glibc
20359 # with a fresh cross-compiler works.
20360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20361 # <limits.h> exists even on freestanding compilers.
20362 # On the NeXT, cc -E runs the code through the compiler's parser,
20363 # not just through cpp. "Syntax error" is here to catch this case.
20364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20365 /* end confdefs.h. */
20367 # include <limits.h>
20369 # include <assert.h>
20373 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20376 # Broken: fails on valid input.
20379 rm -f conftest.err conftest.i conftest.
$ac_ext
20381 # OK, works on sane cases. Now check whether nonexistent headers
20382 # can be detected and how.
20383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h. */
20385 #include <ac_nonexistent.h>
20387 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20388 # Broken: success on invalid input.
20391 # Passes both tests.
20395 rm -f conftest.err conftest.i conftest.
$ac_ext
20398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20399 rm -f conftest.i conftest.err conftest.
$ac_ext
20400 if $ac_preproc_ok; then :
20405 ac_cv_prog_CXXCPP
=$CXXCPP
20408 CXXCPP
=$ac_cv_prog_CXXCPP
20410 ac_cv_prog_CXXCPP
=$CXXCPP
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20413 $as_echo "$CXXCPP" >&6; }
20414 ac_preproc_ok
=false
20415 for ac_cxx_preproc_warn_flag
in '' yes
20417 # Use a header file that comes with gcc, so configuring glibc
20418 # with a fresh cross-compiler works.
20419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20420 # <limits.h> exists even on freestanding compilers.
20421 # On the NeXT, cc -E runs the code through the compiler's parser,
20422 # not just through cpp. "Syntax error" is here to catch this case.
20423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20426 # include <limits.h>
20428 # include <assert.h>
20432 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20435 # Broken: fails on valid input.
20438 rm -f conftest.err conftest.i conftest.
$ac_ext
20440 # OK, works on sane cases. Now check whether nonexistent headers
20441 # can be detected and how.
20442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h. */
20444 #include <ac_nonexistent.h>
20446 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20447 # Broken: success on invalid input.
20450 # Passes both tests.
20454 rm -f conftest.err conftest.i conftest.
$ac_ext
20457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20458 rm -f conftest.i conftest.err conftest.
$ac_ext
20459 if $ac_preproc_ok; then :
20462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20464 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20465 See \`config.log' for more details" "$LINENO" 5; }
20469 ac_cpp
='$CXXCPP $CPPFLAGS'
20470 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20471 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20472 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20475 _lt_caught_CXX_error
=yes
20479 ac_cpp
='$CXXCPP $CPPFLAGS'
20480 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20484 archive_cmds_need_lc_CXX
=no
20485 allow_undefined_flag_CXX
=
20486 always_export_symbols_CXX
=no
20487 archive_expsym_cmds_CXX
=
20488 compiler_needs_object_CXX
=no
20489 export_dynamic_flag_spec_CXX
=
20490 hardcode_direct_CXX
=no
20491 hardcode_direct_absolute_CXX
=no
20492 hardcode_libdir_flag_spec_CXX
=
20493 hardcode_libdir_flag_spec_ld_CXX
=
20494 hardcode_libdir_separator_CXX
=
20495 hardcode_minus_L_CXX
=no
20496 hardcode_shlibpath_var_CXX
=unsupported
20497 hardcode_automatic_CXX
=no
20498 inherit_rpath_CXX
=no
20500 module_expsym_cmds_CXX
=
20501 link_all_deplibs_CXX
=unknown
20502 old_archive_cmds_CXX
=$old_archive_cmds
20503 reload_flag_CXX
=$reload_flag
20504 reload_cmds_CXX
=$reload_cmds
20505 no_undefined_flag_CXX
=
20506 whole_archive_flag_spec_CXX
=
20507 enable_shared_with_static_runtimes_CXX
=no
20509 # Source file extension for C++ test sources.
20512 # Object file extension for compiled C++ test sources.
20516 # No sense in running all these tests if we already determined that
20517 # the CXX compiler isn't working. Some variables (like enable_shared)
20518 # are currently assumed to apply to all compilers on this platform,
20519 # and will be corrupted by setting them based on a non-working compiler.
20520 if test "$_lt_caught_CXX_error" != yes; then
20521 # Code to be used in simple compile tests
20522 lt_simple_compile_test_code
="int some_variable = 0;"
20524 # Code to be used in simple link tests
20525 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20527 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20534 # If no C compiler was specified, use CC.
20537 # If no C compiler flags were specified, use CFLAGS.
20538 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20540 # Allow CC to be a program name with arguments.
20544 # save warnings/boilerplate of simple test code
20545 ac_outfile
=conftest.
$ac_objext
20546 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20547 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20548 _lt_compiler_boilerplate
=`cat conftest.err`
20551 ac_outfile
=conftest.
$ac_objext
20552 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20553 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20554 _lt_linker_boilerplate
=`cat conftest.err`
20558 # Allow CC to be a program name with arguments.
20563 lt_save_with_gnu_ld
=$with_gnu_ld
20564 lt_save_path_LD
=$lt_cv_path_LD
20565 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20566 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20568 $as_unset lt_cv_prog_gnu_ld
20570 if test -n "${lt_cv_path_LDCXX+set}"; then
20571 lt_cv_path_LD
=$lt_cv_path_LDCXX
20573 $as_unset lt_cv_path_LD
20575 test -z "${LDCXX+set}" || LD
=$LDCXX
20579 for cc_temp
in $compiler""; do
20581 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20582 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20587 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20590 if test -n "$compiler"; then
20591 # We don't want -fno-exception when compiling C++ code, so set the
20592 # no_builtin_flag separately
20593 if test "$GXX" = yes; then
20594 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20596 lt_prog_compiler_no_builtin_flag_CXX
=
20599 if test "$GXX" = yes; then
20600 # Set up default GNU C++ configuration
20604 # Check whether --with-gnu-ld was given.
20605 if test "${with_gnu_ld+set}" = set; then :
20606 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20612 if test "$GCC" = yes; then
20613 # Check if gcc -print-prog-name=ld gives a path.
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20615 $as_echo_n "checking for ld used by $CC... " >&6; }
20618 # gcc leaves a trailing carriage return which upsets mingw
20619 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20621 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20624 # Accept absolute paths.
20626 re_direlt
='/[^/][^/]*/\.\./'
20627 # Canonicalize the pathname of ld
20628 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20629 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20630 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20632 test -z "$LD" && LD
="$ac_prog"
20635 # If it fails, then pretend we aren't using GCC.
20639 # If it is relative, then search for the first ld in PATH.
20640 with_gnu_ld
=unknown
20643 elif test "$with_gnu_ld" = yes; then
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20645 $as_echo_n "checking for GNU ld... " >&6; }
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20648 $as_echo_n "checking for non-GNU ld... " >&6; }
20650 if ${lt_cv_path_LD+:} false
; then :
20651 $as_echo_n "(cached) " >&6
20653 if test -z "$LD"; then
20654 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20655 for ac_dir
in $PATH; do
20657 test -z "$ac_dir" && ac_dir
=.
20658 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20659 lt_cv_path_LD
="$ac_dir/$ac_prog"
20660 # Check to see if the program is GNU ld. I'd rather use --version,
20661 # but apparently some variants of GNU ld only accept -v.
20662 # Break only if it was the GNU/non-GNU ld that we prefer.
20663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20664 *GNU
* |
*'with BFD'*)
20665 test "$with_gnu_ld" != no
&& break
20668 test "$with_gnu_ld" != yes && break
20675 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20679 LD
="$lt_cv_path_LD"
20680 if test -n "$LD"; then
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20682 $as_echo "$LD" >&6; }
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20685 $as_echo "no" >&6; }
20687 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20689 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20690 if ${lt_cv_prog_gnu_ld+:} false
; then :
20691 $as_echo_n "(cached) " >&6
20693 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20694 case `$LD -v 2>&1 </dev/null` in
20695 *GNU
* |
*'with BFD'*)
20696 lt_cv_prog_gnu_ld
=yes
20699 lt_cv_prog_gnu_ld
=no
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20704 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20705 with_gnu_ld
=$lt_cv_prog_gnu_ld
20713 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20714 # archiving commands below assume that GNU ld is being used.
20715 if test "$with_gnu_ld" = yes; then
20716 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20717 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'
20719 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20720 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20722 # If archive_cmds runs LD, not CC, wlarc should be empty
20723 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20724 # investigate it a little bit more. (MM)
20727 # ancient GNU ld didn't support --whole-archive et. al.
20728 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20729 $GREP 'no-whole-archive' > /dev
/null
; then
20730 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20732 whole_archive_flag_spec_CXX
=
20738 # A generic and very simple default shared library creation
20739 # command for GNU C++ for the case where it uses the native
20740 # linker, instead of GNU ld. If possible, this setting should
20741 # overridden to take advantage of the native linker features on
20742 # the platform it is being used on.
20743 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20746 # Commands to make compiler produce verbose output that lists
20747 # what "hidden" libraries, object files and flags are used when
20748 # linking a shared library.
20749 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20757 # PORTME: fill in a description of your system's C++ link characteristics
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20759 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20763 # FIXME: insert proper C++ library support
20767 if test "$host_cpu" = ia64
; then
20768 # On IA64, the linker does run time linking by default, so we don't
20769 # have to do anything special.
20770 aix_use_runtimelinking
=no
20771 exp_sym_flag
='-Bexport'
20774 aix_use_runtimelinking
=no
20776 # Test if we are trying to use run time linking or normal
20777 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20778 # need to do runtime linking.
20779 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20780 for ld_flag
in $LDFLAGS; do
20783 aix_use_runtimelinking
=yes
20791 exp_sym_flag
='-bexport'
20792 no_entry_flag
='-bnoentry'
20795 # When large executables or shared objects are built, AIX ld can
20796 # have problems creating the table of contents. If linking a library
20797 # or program results in "error TOC overflow" add -mminimal-toc to
20798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20801 archive_cmds_CXX
=''
20802 hardcode_direct_CXX
=yes
20803 hardcode_direct_absolute_CXX
=yes
20804 hardcode_libdir_separator_CXX
=':'
20805 link_all_deplibs_CXX
=yes
20806 file_list_spec_CXX
='${wl}-f,'
20808 if test "$GXX" = yes; then
20809 case $host_os in aix4.
[012]|aix4.
[012].
*)
20810 # We only want to do this on AIX 4.2 and lower, the check
20811 # below for broken collect2 doesn't work under 4.3+
20812 collect2name
=`${CC} -print-prog-name=collect2`
20813 if test -f "$collect2name" &&
20814 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20816 # We have reworked collect2
20819 # We have old collect2
20820 hardcode_direct_CXX
=unsupported
20821 # It fails to find uninstalled libraries when the uninstalled
20822 # path is not listed in the libpath. Setting hardcode_minus_L
20823 # to unsupported forces relinking
20824 hardcode_minus_L_CXX
=yes
20825 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20826 hardcode_libdir_separator_CXX
=
20829 shared_flag
='-shared'
20830 if test "$aix_use_runtimelinking" = yes; then
20831 shared_flag
="$shared_flag "'${wl}-G'
20835 if test "$host_cpu" = ia64
; then
20836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20837 # chokes on -Wl,-G. The following line is correct:
20840 if test "$aix_use_runtimelinking" = yes; then
20841 shared_flag
='${wl}-G'
20843 shared_flag
='${wl}-bM:SRE'
20848 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20849 # It seems that -bexpall does not export symbols beginning with
20850 # underscore (_), so it is better to generate a list of symbols to
20852 always_export_symbols_CXX
=yes
20853 if test "$aix_use_runtimelinking" = yes; then
20854 # Warning - without using the other runtime loading flags (-brtl),
20855 # -berok will link without error, but may produce a broken library.
20856 allow_undefined_flag_CXX
='-berok'
20857 # Determine the default libpath from the value encoded in an empty
20859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20860 /* end confdefs.h. */
20870 if ac_fn_cxx_try_link
"$LINENO"; then :
20872 lt_aix_libpath_sed
='
20873 /Import File Strings/,/^$/ {
20879 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20880 # Check for a 64-bit object if we didn't find anything.
20881 if test -z "$aix_libpath"; then
20882 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20885 rm -f core conftest.err conftest.
$ac_objext \
20886 conftest
$ac_exeext conftest.
$ac_ext
20887 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20889 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20891 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"
20893 if test "$host_cpu" = ia64
; then
20894 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20895 allow_undefined_flag_CXX
="-z nodefs"
20896 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"
20898 # Determine the default libpath from the value encoded in an
20899 # empty executable.
20900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h. */
20911 if ac_fn_cxx_try_link
"$LINENO"; then :
20913 lt_aix_libpath_sed
='
20914 /Import File Strings/,/^$/ {
20920 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20921 # Check for a 64-bit object if we didn't find anything.
20922 if test -z "$aix_libpath"; then
20923 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20926 rm -f core conftest.err conftest.
$ac_objext \
20927 conftest
$ac_exeext conftest.
$ac_ext
20928 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20930 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20931 # Warning - without using the other run time loading flags,
20932 # -berok will link without error, but may produce a broken library.
20933 no_undefined_flag_CXX
=' ${wl}-bernotok'
20934 allow_undefined_flag_CXX
=' ${wl}-berok'
20935 if test "$with_gnu_ld" = yes; then
20936 # We only use this code for GNU lds that support --whole-archive.
20937 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20939 # Exported symbols can be pulled into shared objects from archives
20940 whole_archive_flag_spec_CXX
='$convenience'
20942 archive_cmds_need_lc_CXX
=yes
20943 # This is similar to how AIX traditionally builds its shared
20945 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'
20951 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20952 allow_undefined_flag_CXX
=unsupported
20953 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20954 # support --undefined. This deserves some investigation. FIXME
20955 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20962 case $cc_basename in
20964 # FIXME: insert proper C++ library support
20970 cygwin
* | mingw
* | pw32
* | cegcc
*)
20971 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20972 # as there is no search path for DLLs.
20973 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20974 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20975 allow_undefined_flag_CXX
=unsupported
20976 always_export_symbols_CXX
=no
20977 enable_shared_with_static_runtimes_CXX
=yes
20979 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20980 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'
20981 # If the export-symbols file already is a .def file (1st line
20982 # is EXPORTS), use it as is; otherwise, prepend...
20983 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20984 cp $export_symbols $output_objdir/$soname.def;
20986 echo EXPORTS > $output_objdir/$soname.def;
20987 cat $export_symbols >> $output_objdir/$soname.def;
20989 $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'
20994 darwin
* | rhapsody
*)
20997 archive_cmds_need_lc_CXX
=no
20998 hardcode_direct_CXX
=no
20999 hardcode_automatic_CXX
=yes
21000 hardcode_shlibpath_var_CXX
=unsupported
21001 if test "$lt_cv_ld_force_load" = "yes"; then
21002 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\"`'
21004 whole_archive_flag_spec_CXX
=''
21006 link_all_deplibs_CXX
=yes
21007 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
21008 case $cc_basename in
21009 ifort
*) _lt_dar_can_shared
=yes ;;
21010 *) _lt_dar_can_shared
=$GCC ;;
21012 if test "$_lt_dar_can_shared" = "yes"; then
21013 output_verbose_link_cmd
=func_echo_all
21014 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}"
21015 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21016 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}"
21017 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}"
21018 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
21019 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}"
21020 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}"
21030 case $cc_basename in
21032 # FIXME: insert proper C++ library support
21036 # Green Hills C++ Compiler
21037 # FIXME: insert proper C++ library support
21041 # FIXME: insert proper C++ library support
21048 # C++ shared libraries reported to be fairly broken before
21054 archive_cmds_need_lc_CXX
=no
21057 freebsd
* | dragonfly
*)
21058 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21067 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21068 link_all_deplibs_CXX
=yes
21072 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
21073 hardcode_libdir_separator_CXX
=:
21074 export_dynamic_flag_spec_CXX
='${wl}-E'
21075 hardcode_direct_CXX
=yes
21076 hardcode_minus_L_CXX
=yes # Not in the search PATH,
21077 # but as the default
21078 # location of the library.
21080 case $cc_basename in
21082 # FIXME: insert proper C++ library support
21086 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'
21087 # Commands to make compiler produce verbose output that lists
21088 # what "hidden" libraries, object files and flags are used when
21089 # linking a shared library.
21091 # There doesn't appear to be a way to prevent this compiler from
21092 # explicitly linking system object files so we need to strip them
21093 # from the output so that they don't get included in the library
21095 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"'
21098 if test "$GXX" = yes; then
21099 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'
21101 # FIXME: insert proper C++ library support
21109 if test $with_gnu_ld = no
; then
21110 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
21111 hardcode_libdir_separator_CXX
=:
21117 export_dynamic_flag_spec_CXX
='${wl}-E'
21123 hardcode_direct_CXX
=no
21124 hardcode_shlibpath_var_CXX
=no
21127 hardcode_direct_CXX
=yes
21128 hardcode_direct_absolute_CXX
=yes
21129 hardcode_minus_L_CXX
=yes # Not in the search PATH,
21130 # but as the default
21131 # location of the library.
21135 case $cc_basename in
21137 # FIXME: insert proper C++ library support
21143 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21146 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21149 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21152 # Commands to make compiler produce verbose output that lists
21153 # what "hidden" libraries, object files and flags are used when
21154 # linking a shared library.
21156 # There doesn't appear to be a way to prevent this compiler from
21157 # explicitly linking system object files so we need to strip them
21158 # from the output so that they don't get included in the library
21160 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"'
21163 if test "$GXX" = yes; then
21164 if test $with_gnu_ld = no
; then
21167 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21170 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21173 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'
21178 # FIXME: insert proper C++ library support
21186 hardcode_direct_CXX
=no
21187 hardcode_shlibpath_var_CXX
=no
21188 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21189 export_dynamic_flag_spec_CXX
='${wl}-E'
21190 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21191 # Instead, shared libraries are loaded at an image base (0x10000000 by
21192 # default) and relocated if they conflict, which is a slow very memory
21193 # consuming and fragmenting process. To avoid this, we pick a random,
21194 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21195 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21196 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'
21197 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'
21200 case $cc_basename in
21203 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'
21205 # Archives containing C++ object files must be created using
21206 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21207 # necessary to make sure instantiated templates are included
21209 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
21212 if test "$GXX" = yes; then
21213 if test "$with_gnu_ld" = no
; then
21214 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'
21216 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'
21219 link_all_deplibs_CXX
=yes
21222 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21223 hardcode_libdir_separator_CXX
=:
21224 inherit_rpath_CXX
=yes
21227 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21228 case $cc_basename in
21230 # Kuck and Associates, Inc. (KAI) C++ Compiler
21232 # KCC will only create a shared library if the output file
21233 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21234 # to its proper name (with version) after linking.
21235 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'
21236 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'
21237 # Commands to make compiler produce verbose output that lists
21238 # what "hidden" libraries, object files and flags are used when
21239 # linking a shared library.
21241 # There doesn't appear to be a way to prevent this compiler from
21242 # explicitly linking system object files so we need to strip them
21243 # from the output so that they don't get included in the library
21245 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"'
21247 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21248 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21250 # Archives containing C++ object files must be created using
21251 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21252 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
21257 # version 8.0 and above of icpc choke on multiply defined symbols
21258 # if we add $predep_objects and $postdep_objects, however 7.1 and
21259 # earlier do not add the objects themselves.
21260 case `$CC -V 2>&1` in
21262 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21263 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'
21265 *) # Version 8.0 or newer
21268 ia64
*) tmp_idyn
=' -i_dynamic';;
21270 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21271 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'
21274 archive_cmds_need_lc_CXX
=no
21275 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21276 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21277 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21280 # Portland Group C++ compiler
21282 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
21283 prelink_cmds_CXX
='tpldir=Template.dir~
21285 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21286 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21287 old_archive_cmds_CXX
='tpldir=Template.dir~
21289 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21290 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21292 archive_cmds_CXX
='tpldir=Template.dir~
21294 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21295 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21296 archive_expsym_cmds_CXX
='tpldir=Template.dir~
21298 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21299 $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'
21301 *) # Version 6 and above use weak symbols
21302 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21303 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'
21307 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
21308 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21309 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'
21313 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21314 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'
21316 runpath_var
=LD_RUN_PATH
21317 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21318 hardcode_libdir_separator_CXX
=:
21320 # Commands to make compiler produce verbose output that lists
21321 # what "hidden" libraries, object files and flags are used when
21322 # linking a shared library.
21324 # There doesn't appear to be a way to prevent this compiler from
21325 # explicitly linking system object files so we need to strip them
21326 # from the output so that they don't get included in the library
21328 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'
21330 xl
* | mpixl
* | bgxl
*)
21331 # IBM XL 8.0 on PPC, with GNU ld
21332 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21333 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21334 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21335 if test "x$supports_anon_versioning" = xyes
; then
21336 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21338 echo "local: *; };" >> $output_objdir/$libname.ver~
21339 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21343 case `$CC -V 2>&1 | sed 5q` in
21346 no_undefined_flag_CXX
=' -zdefs'
21347 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21348 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'
21349 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21350 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'
21351 compiler_needs_object_CXX
=yes
21353 # Not sure whether something based on
21354 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21356 output_verbose_link_cmd
='func_echo_all'
21358 # Archives containing C++ object files must be created using
21359 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21360 # necessary to make sure instantiated templates are included
21362 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21370 # FIXME: insert proper C++ library support
21375 # FIXME: insert proper C++ library support
21380 case $cc_basename in
21382 # FIXME: insert proper C++ library support
21386 # FIXME: insert proper C++ library support
21393 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21394 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21396 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21397 hardcode_direct_CXX
=yes
21398 hardcode_shlibpath_var_CXX
=no
21400 # Workaround some broken pre-1.5 toolchains
21401 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21409 # C++ shared libraries are fairly broken
21414 if test -f /usr
/libexec
/ld.so
; then
21415 hardcode_direct_CXX
=yes
21416 hardcode_shlibpath_var_CXX
=no
21417 hardcode_direct_absolute_CXX
=yes
21418 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21419 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21421 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21422 export_dynamic_flag_spec_CXX
='${wl}-E'
21423 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21425 output_verbose_link_cmd
=func_echo_all
21431 osf3
* | osf4
* | osf5
*)
21432 case $cc_basename in
21434 # Kuck and Associates, Inc. (KAI) C++ Compiler
21436 # KCC will only create a shared library if the output file
21437 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21438 # to its proper name (with version) after linking.
21439 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'
21441 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21442 hardcode_libdir_separator_CXX
=:
21444 # Archives containing C++ object files must be created using
21445 # the KAI C++ compiler.
21447 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21448 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21452 # Rational C++ 2.4.1
21453 # FIXME: insert proper C++ library support
21459 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21460 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'
21461 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21464 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21465 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'
21466 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21467 echo "-hidden">> $lib.exp~
21468 $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~
21470 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21474 hardcode_libdir_separator_CXX
=:
21476 # Commands to make compiler produce verbose output that lists
21477 # what "hidden" libraries, object files and flags are used when
21478 # linking a shared library.
21480 # There doesn't appear to be a way to prevent this compiler from
21481 # explicitly linking system object files so we need to strip them
21482 # from the output so that they don't get included in the library
21484 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"'
21487 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21488 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21491 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'
21494 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'
21498 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21499 hardcode_libdir_separator_CXX
=:
21501 # Commands to make compiler produce verbose output that lists
21502 # what "hidden" libraries, object files and flags are used when
21503 # linking a shared library.
21504 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21507 # FIXME: insert proper C++ library support
21515 # FIXME: insert proper C++ library support
21520 case $cc_basename in
21523 # FIXME: insert proper C++ library support
21528 # FIXME: insert proper C++ library support
21532 # FIXME: insert proper C++ library support
21539 case $cc_basename in
21541 # Sun C++ 4.2, 5.x and Centerline C++
21542 archive_cmds_need_lc_CXX
=yes
21543 no_undefined_flag_CXX
=' -zdefs'
21544 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21545 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21546 $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'
21548 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21549 hardcode_shlibpath_var_CXX
=no
21551 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21553 # The compiler driver will combine and reorder linker options,
21554 # but understands `-z linker_flag'.
21555 # Supported since Solaris 2.6 (maybe 2.5.1?)
21556 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21559 link_all_deplibs_CXX
=yes
21561 output_verbose_link_cmd
='func_echo_all'
21563 # Archives containing C++ object files must be created using
21564 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21565 # necessary to make sure instantiated templates are included
21567 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21570 # Green Hills C++ Compiler
21571 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21573 # The C++ compiler must be used to create the archive.
21574 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21577 # GNU C++ compiler with Solaris linker
21578 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21579 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21580 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21581 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21582 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21583 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21585 # Commands to make compiler produce verbose output that lists
21586 # what "hidden" libraries, object files and flags are used when
21587 # linking a shared library.
21588 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21590 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21592 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21593 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21594 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21596 # Commands to make compiler produce verbose output that lists
21597 # what "hidden" libraries, object files and flags are used when
21598 # linking a shared library.
21599 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21602 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21604 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21606 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21614 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21615 no_undefined_flag_CXX
='${wl}-z,text'
21616 archive_cmds_need_lc_CXX
=no
21617 hardcode_shlibpath_var_CXX
=no
21618 runpath_var
='LD_RUN_PATH'
21620 case $cc_basename in
21622 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21623 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21626 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21627 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21632 sysv5
* | sco3.2v5
* | sco5v6
*)
21633 # Note: We can NOT use -z defs as we might desire, because we do not
21634 # link with -lc, and that would cause any symbols used from libc to
21635 # always be unresolved, which means just about no library would
21636 # ever link correctly. If we're not using GNU ld we use -z text
21637 # though, which does catch some bad symbols but isn't as heavy-handed
21639 no_undefined_flag_CXX
='${wl}-z,text'
21640 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21641 archive_cmds_need_lc_CXX
=no
21642 hardcode_shlibpath_var_CXX
=no
21643 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21644 hardcode_libdir_separator_CXX
=':'
21645 link_all_deplibs_CXX
=yes
21646 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21647 runpath_var
='LD_RUN_PATH'
21649 case $cc_basename in
21651 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21652 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21653 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21654 '"$old_archive_cmds_CXX"
21655 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21656 '"$reload_cmds_CXX"
21659 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21660 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21666 case $cc_basename in
21668 # NonStop-UX NCC 3.20
21669 # FIXME: insert proper C++ library support
21673 # FIXME: insert proper C++ library support
21680 # FIXME: insert proper C++ library support
21685 # FIXME: insert proper C++ library support
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21691 $as_echo "$ld_shlibs_CXX" >&6; }
21692 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21698 ## There is no encapsulation within the following macros, do not change
21699 ## the running order or otherwise move them around unless you know exactly
21700 ## what you are doing...
21701 # Dependencies to place before and after the object being linked:
21702 predep_objects_CXX
=
21703 postdep_objects_CXX
=
21706 compiler_lib_search_path_CXX
=
21708 cat > conftest.
$ac_ext <<_LT_EOF
21712 Foo (void) { a = 0; }
21718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21719 (eval $ac_compile) 2>&5
21721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21722 test $ac_status = 0; }; then
21723 # Parse the compiler output and extract the necessary
21724 # objects, libraries and library flags.
21726 # Sentinel used to keep track of whether or not we are before
21727 # the conftest object file.
21728 pre_test_object_deps_done
=no
21730 for p
in `eval "$output_verbose_link_cmd"`; do
21734 # Some compilers place space between "-{L,R}" and the path.
21735 # Remove the space.
21736 if test $p = "-L" ||
21737 test $p = "-R"; then
21744 if test "$pre_test_object_deps_done" = no
; then
21747 # Internal compiler library paths should come after those
21748 # provided the user. The postdeps already come after the
21749 # user supplied libs so there is no need to process them.
21750 if test -z "$compiler_lib_search_path_CXX"; then
21751 compiler_lib_search_path_CXX
="${prev}${p}"
21753 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21756 # The "-l" case would never come before the object being
21757 # linked, so don't bother handling this case.
21760 if test -z "$postdeps_CXX"; then
21761 postdeps_CXX
="${prev}${p}"
21763 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21769 # This assumes that the test object file only shows up
21770 # once in the compiler output.
21771 if test "$p" = "conftest.$objext"; then
21772 pre_test_object_deps_done
=yes
21776 if test "$pre_test_object_deps_done" = no
; then
21777 if test -z "$predep_objects_CXX"; then
21778 predep_objects_CXX
="$p"
21780 predep_objects_CXX
="$predep_objects_CXX $p"
21783 if test -z "$postdep_objects_CXX"; then
21784 postdep_objects_CXX
="$p"
21786 postdep_objects_CXX
="$postdep_objects_CXX $p"
21791 *) ;; # Ignore the rest.
21799 echo "libtool.m4: error: problem compiling CXX test program"
21802 $RM -f confest.
$objext
21804 # PORTME: override above test on systems where it is broken
21807 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21808 # hack all around it, let's just trust "g++" to DTRT.
21809 predep_objects_CXX
=
21810 postdep_objects_CXX
=
21815 case `$CC -V 2>&1 | sed 5q` in
21819 # The more standards-conforming stlport4 library is
21820 # incompatible with the Cstd library. Avoid specifying
21821 # it if it's in CXXFLAGS. Ignore libCrun as
21822 # -library=stlport4 depends on it.
21823 case " $CXX $CXXFLAGS " in
21824 *" -library=stlport4 "*)
21825 solaris_use_stlport4
=yes
21829 if test "$solaris_use_stlport4" != yes; then
21830 postdeps_CXX
='-library=Cstd -library=Crun'
21837 case $cc_basename in
21839 # The more standards-conforming stlport4 library is
21840 # incompatible with the Cstd library. Avoid specifying
21841 # it if it's in CXXFLAGS. Ignore libCrun as
21842 # -library=stlport4 depends on it.
21843 case " $CXX $CXXFLAGS " in
21844 *" -library=stlport4 "*)
21845 solaris_use_stlport4
=yes
21849 # Adding this requires a known-good setup of shared libraries for
21850 # Sun compiler versions before 5.6, else PIC objects from an old
21851 # archive will be linked into the output, leading to subtle bugs.
21852 if test "$solaris_use_stlport4" != yes; then
21853 postdeps_CXX
='-library=Cstd -library=Crun'
21861 case " $postdeps_CXX " in
21862 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21864 compiler_lib_search_dirs_CXX
=
21865 if test -n "${compiler_lib_search_path_CXX}"; then
21866 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21899 lt_prog_compiler_wl_CXX
=
21900 lt_prog_compiler_pic_CXX
=
21901 lt_prog_compiler_static_CXX
=
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21904 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21906 # C++ specific cases for pic, static, wl, etc.
21907 if test "$GXX" = yes; then
21908 lt_prog_compiler_wl_CXX
='-Wl,'
21909 lt_prog_compiler_static_CXX
='-static'
21913 # All AIX code is PIC.
21914 if test "$host_cpu" = ia64
; then
21915 # AIX 5 now supports IA64 processor
21916 lt_prog_compiler_static_CXX
='-Bstatic'
21918 lt_prog_compiler_pic_CXX
='-fPIC'
21924 # see comment about AmigaOS4 .so support
21925 lt_prog_compiler_pic_CXX
='-fPIC'
21928 # FIXME: we need at least 68020 code to build shared libraries, but
21929 # adding the `-m68020' flag to GCC prevents building anything better,
21931 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21936 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21937 # PIC is the default for these OSes.
21939 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21940 # This hack is so that the source file can tell whether it is being
21941 # built for inclusion in a dll (and should export symbols for example).
21942 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21943 # (--disable-auto-import) libraries
21944 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21946 darwin
* | rhapsody
*)
21947 # PIC is the default on this platform
21948 # Common symbols not allowed in MH_DYLIB files
21949 lt_prog_compiler_pic_CXX
='-fno-common'
21952 # DJGPP does not support shared libraries at all
21953 lt_prog_compiler_pic_CXX
=
21956 # PIC is the default for Haiku.
21957 # The "-static" flag exists, but is broken.
21958 lt_prog_compiler_static_CXX
=
21961 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21962 # Instead, we relocate shared libraries at runtime.
21965 if test -d /usr
/nec
; then
21966 lt_prog_compiler_pic_CXX
=-Kconform_pic
21970 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21971 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21972 # sets the default TLS model and affects inlining.
21977 lt_prog_compiler_pic_CXX
='-fPIC'
21982 # QNX uses GNU C++, but need to define -shared option too, otherwise
21983 # it will coredump.
21984 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21987 lt_prog_compiler_pic_CXX
='-fPIC'
21993 # All AIX code is PIC.
21994 if test "$host_cpu" = ia64
; then
21995 # AIX 5 now supports IA64 processor
21996 lt_prog_compiler_static_CXX
='-Bstatic'
21998 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
22002 case $cc_basename in
22004 # Green Hills C++ Compiler
22005 # _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"
22010 case $cc_basename in
22012 lt_prog_compiler_pic_CXX
='-KPIC'
22015 # Green Hills C++ Compiler
22016 lt_prog_compiler_pic_CXX
='-pic'
22022 freebsd
* | dragonfly
*)
22023 # FreeBSD uses GNU C++
22025 hpux9
* | hpux10
* | hpux11
*)
22026 case $cc_basename in
22028 lt_prog_compiler_wl_CXX
='-Wl,'
22029 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
22030 if test "$host_cpu" != ia64
; then
22031 lt_prog_compiler_pic_CXX
='+Z'
22035 lt_prog_compiler_wl_CXX
='-Wl,'
22036 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
22042 lt_prog_compiler_pic_CXX
='+Z'
22051 # This is c89, which is MS Visual C++ (no shared libs)
22052 # Anyone wants to do a port?
22054 irix5
* | irix6
* | nonstopux
*)
22055 case $cc_basename in
22057 lt_prog_compiler_wl_CXX
='-Wl,'
22058 lt_prog_compiler_static_CXX
='-non_shared'
22059 # CC pic flag -KPIC is the default.
22065 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
22066 case $cc_basename in
22069 lt_prog_compiler_wl_CXX
='--backend -Wl,'
22070 lt_prog_compiler_pic_CXX
='-fPIC'
22073 # old Intel C++ for x86_64 which still supported -KPIC.
22074 lt_prog_compiler_wl_CXX
='-Wl,'
22075 lt_prog_compiler_pic_CXX
='-KPIC'
22076 lt_prog_compiler_static_CXX
='-static'
22079 # Intel C++, used to be incompatible with GCC.
22080 # ICC 10 doesn't accept -KPIC any more.
22081 lt_prog_compiler_wl_CXX
='-Wl,'
22082 lt_prog_compiler_pic_CXX
='-fPIC'
22083 lt_prog_compiler_static_CXX
='-static'
22086 # Portland Group C++ compiler
22087 lt_prog_compiler_wl_CXX
='-Wl,'
22088 lt_prog_compiler_pic_CXX
='-fpic'
22089 lt_prog_compiler_static_CXX
='-Bstatic'
22093 # Make sure the PIC flag is empty. It appears that all Alpha
22094 # Linux and Compaq Tru64 Unix objects are PIC.
22095 lt_prog_compiler_pic_CXX
=
22096 lt_prog_compiler_static_CXX
='-non_shared'
22098 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
22099 # IBM XL 8.0, 9.0 on PPC and BlueGene
22100 lt_prog_compiler_wl_CXX
='-Wl,'
22101 lt_prog_compiler_pic_CXX
='-qpic'
22102 lt_prog_compiler_static_CXX
='-qstaticlink'
22105 case `$CC -V 2>&1 | sed 5q` in
22108 lt_prog_compiler_pic_CXX
='-KPIC'
22109 lt_prog_compiler_static_CXX
='-Bstatic'
22110 lt_prog_compiler_wl_CXX
='-Qoption ld '
22121 case $cc_basename in
22123 lt_prog_compiler_pic_CXX
='-W c,exportall'
22132 # QNX uses GNU C++, but need to define -shared option too, otherwise
22133 # it will coredump.
22134 lt_prog_compiler_pic_CXX
='-fPIC -shared'
22136 osf3
* | osf4
* | osf5
*)
22137 case $cc_basename in
22139 lt_prog_compiler_wl_CXX
='--backend -Wl,'
22142 # Rational C++ 2.4.1
22143 lt_prog_compiler_pic_CXX
='-pic'
22146 # Digital/Compaq C++
22147 lt_prog_compiler_wl_CXX
='-Wl,'
22148 # Make sure the PIC flag is empty. It appears that all Alpha
22149 # Linux and Compaq Tru64 Unix objects are PIC.
22150 lt_prog_compiler_pic_CXX
=
22151 lt_prog_compiler_static_CXX
='-non_shared'
22160 case $cc_basename in
22162 # Sun C++ 4.2, 5.x and Centerline C++
22163 lt_prog_compiler_pic_CXX
='-KPIC'
22164 lt_prog_compiler_static_CXX
='-Bstatic'
22165 lt_prog_compiler_wl_CXX
='-Qoption ld '
22168 # Green Hills C++ Compiler
22169 lt_prog_compiler_pic_CXX
='-PIC'
22176 case $cc_basename in
22179 lt_prog_compiler_pic_CXX
='-pic'
22180 lt_prog_compiler_static_CXX
='-Bstatic'
22184 lt_prog_compiler_pic_CXX
='-pic'
22190 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
22191 case $cc_basename in
22193 lt_prog_compiler_wl_CXX
='-Wl,'
22194 lt_prog_compiler_pic_CXX
='-KPIC'
22195 lt_prog_compiler_static_CXX
='-Bstatic'
22200 case $cc_basename in
22202 # NonStop-UX NCC 3.20
22203 lt_prog_compiler_pic_CXX
='-KPIC'
22212 lt_prog_compiler_can_build_shared_CXX
=no
22218 # For platforms which do not support PIC, -DPIC is meaningless:
22220 lt_prog_compiler_pic_CXX
=
22223 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22227 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22232 # Check to make sure the PIC flag actually works.
22234 if test -n "$lt_prog_compiler_pic_CXX"; then
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22236 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22237 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
22238 $as_echo_n "(cached) " >&6
22240 lt_cv_prog_compiler_pic_works_CXX
=no
22241 ac_outfile
=conftest.
$ac_objext
22242 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22243 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
22244 # Insert the option either (1) after the last *FLAGS variable, or
22245 # (2) before a word containing "conftest.", or (3) at the end.
22246 # Note that $ac_compile itself does not contain backslashes and begins
22247 # with a dollar sign (not a hyphen), so the echo should work correctly.
22248 # The option is referenced via a variable to avoid confusing sed.
22249 lt_compile
=`echo "$ac_compile" | $SED \
22250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22252 -e 's:$: $lt_compiler_flag:'`
22253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22254 (eval "$lt_compile" 2>conftest.err
)
22256 cat conftest.err
>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 if (exit $ac_status) && test -s "$ac_outfile"; then
22259 # The compiler can only warn and ignore the option if not recognized
22260 # So say no if there are warnings other than the usual output.
22261 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
22262 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22263 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
22264 lt_cv_prog_compiler_pic_works_CXX
=yes
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22271 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22273 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
22274 case $lt_prog_compiler_pic_CXX in
22276 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
22279 lt_prog_compiler_pic_CXX
=
22280 lt_prog_compiler_can_build_shared_CXX
=no
22288 # Check to make sure the static flag actually works.
22290 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22292 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22293 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
22294 $as_echo_n "(cached) " >&6
22296 lt_cv_prog_compiler_static_works_CXX
=no
22297 save_LDFLAGS
="$LDFLAGS"
22298 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
22299 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
22300 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
22301 # The linker can only warn and ignore the option if not recognized
22302 # So say no if there are warnings
22303 if test -s conftest.err
; then
22304 # Append any errors to the config.log.
22305 cat conftest.err
1>&5
22306 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
22307 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22308 if diff conftest.exp conftest.er2
>/dev
/null
; then
22309 lt_cv_prog_compiler_static_works_CXX
=yes
22312 lt_cv_prog_compiler_static_works_CXX
=yes
22316 LDFLAGS
="$save_LDFLAGS"
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22320 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22322 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22325 lt_prog_compiler_static_CXX
=
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22333 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22334 $as_echo_n "(cached) " >&6
22336 lt_cv_prog_compiler_c_o_CXX
=no
22337 $RM -r conftest
2>/dev
/null
22341 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22343 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22344 # Insert the option either (1) after the last *FLAGS variable, or
22345 # (2) before a word containing "conftest.", or (3) at the end.
22346 # Note that $ac_compile itself does not contain backslashes and begins
22347 # with a dollar sign (not a hyphen), so the echo should work correctly.
22348 lt_compile
=`echo "$ac_compile" | $SED \
22349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22351 -e 's:$: $lt_compiler_flag:'`
22352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22353 (eval "$lt_compile" 2>out
/conftest.err
)
22355 cat out
/conftest.err
>&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22359 # The compiler can only warn and ignore the option if not recognized
22360 # So say no if there are warnings
22361 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22362 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22363 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22364 lt_cv_prog_compiler_c_o_CXX
=yes
22369 # SGI C++ compiler will create directory out/ii_files/ for
22370 # template instantiation
22371 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22372 $RM out
/* && rmdir out
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22379 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22384 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22385 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22386 $as_echo_n "(cached) " >&6
22388 lt_cv_prog_compiler_c_o_CXX
=no
22389 $RM -r conftest
2>/dev
/null
22393 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22395 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22396 # Insert the option either (1) after the last *FLAGS variable, or
22397 # (2) before a word containing "conftest.", or (3) at the end.
22398 # Note that $ac_compile itself does not contain backslashes and begins
22399 # with a dollar sign (not a hyphen), so the echo should work correctly.
22400 lt_compile
=`echo "$ac_compile" | $SED \
22401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22403 -e 's:$: $lt_compiler_flag:'`
22404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22405 (eval "$lt_compile" 2>out
/conftest.err
)
22407 cat out
/conftest.err
>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22411 # The compiler can only warn and ignore the option if not recognized
22412 # So say no if there are warnings
22413 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22414 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22415 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22416 lt_cv_prog_compiler_c_o_CXX
=yes
22421 # SGI C++ compiler will create directory out/ii_files/ for
22422 # template instantiation
22423 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22424 $RM out
/* && rmdir out
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22431 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22436 hard_links
="nottested"
22437 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22438 # do not overwrite the value of need_locks provided by the user
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22440 $as_echo_n "checking if we can lock with hard links... " >&6; }
22443 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22445 ln conftest.a conftest.b
2>&5 || hard_links
=no
22446 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22448 $as_echo "$hard_links" >&6; }
22449 if test "$hard_links" = no
; then
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22451 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22461 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22463 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22466 # If we're using GNU nm, then we don't want the "-C" option.
22467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22468 # Also, AIX nm treats weak defined symbols like other global defined
22469 # symbols, whereas GNU nm marks them as "W".
22470 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22471 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'
22473 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'
22477 export_symbols_cmds_CXX
="$ltdll_cmds"
22479 cygwin
* | mingw
* | cegcc
*)
22480 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'
22483 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22486 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22489 $as_echo "$ld_shlibs_CXX" >&6; }
22490 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22492 with_gnu_ld_CXX
=$with_gnu_ld
22500 # Do we need to explicitly link libc?
22502 case "x$archive_cmds_need_lc_CXX" in
22504 # Assume -lc should be added
22505 archive_cmds_need_lc_CXX
=yes
22507 if test "$enable_shared" = yes && test "$GCC" = yes; then
22508 case $archive_cmds_CXX in
22510 # FIXME: we may have to deal with multi-command sequences.
22513 # Test whether the compiler implicitly links with -lc since on some
22514 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22515 # to ld, don't add -lc before -lgcc.
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22517 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22518 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22519 $as_echo_n "(cached) " >&6
22522 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22525 (eval $ac_compile) 2>&5
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; } 2>conftest.err
; then
22531 libobjs
=conftest.
$ac_objext
22533 wl
=$lt_prog_compiler_wl_CXX
22534 pic_flag
=$lt_prog_compiler_pic_CXX
22540 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22541 allow_undefined_flag_CXX
=
22542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22543 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22546 test $ac_status = 0; }
22548 lt_cv_archive_cmds_need_lc_CXX
=no
22550 lt_cv_archive_cmds_need_lc_CXX
=yes
22552 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22554 cat conftest.err
1>&5
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22560 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22561 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22632 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22634 library_names_spec
=
22635 libname_spec
='lib$name'
22639 postuninstall_cmds
=
22643 shlibpath_overrides_runpath
=unknown
22645 dynamic_linker
="$host_os ld.so"
22646 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22647 need_lib_prefix
=unknown
22648 hardcode_into_libs
=no
22650 # when you set need_version to no, make sure it does not cause -set_version
22651 # flags to be left without arguments
22652 need_version
=unknown
22657 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22658 shlibpath_var
=LIBPATH
22660 # AIX 3 has no versioning support, so we append a major version to the name.
22661 soname_spec
='${libname}${release}${shared_ext}$major'
22668 hardcode_into_libs
=yes
22669 if test "$host_cpu" = ia64
; then
22670 # AIX 5 supports IA64
22671 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22672 shlibpath_var
=LD_LIBRARY_PATH
22674 # With GCC up to 2.95.x, collect2 would create an import file
22675 # for dependence libraries. The import file would start with
22676 # the line `#! .'. This would cause the generated library to
22677 # depend on `.', always an invalid library. This was fixed in
22678 # development snapshots of GCC prior to 3.0.
22680 aix4 | aix4.
[01] | aix4.
[01].
*)
22681 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22683 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22686 can_build_shared
=no
22690 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22691 # soname into executable. Probably we can add versioning support to
22692 # collect2, so additional links can be useful in future.
22693 if test "$aix_use_runtimelinking" = yes; then
22694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22695 # instead of lib<name>.a to let people know that these are not
22696 # typical AIX shared libraries.
22697 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22699 # We preserve .a as extension for shared libraries through AIX4.2
22700 # and later when we are not doing run time linking.
22701 library_names_spec
='${libname}${release}.a $libname.a'
22702 soname_spec
='${libname}${release}${shared_ext}$major'
22704 shlibpath_var
=LIBPATH
22711 # Since July 2007 AmigaOS4 officially supports .so libraries.
22712 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22716 library_names_spec
='$libname.ixlibrary $libname.a'
22717 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22718 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'
22724 library_names_spec
='${libname}${shared_ext}'
22725 dynamic_linker
="$host_os ld.so"
22726 shlibpath_var
=LIBRARY_PATH
22732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733 soname_spec
='${libname}${release}${shared_ext}$major'
22734 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22735 shlibpath_var
=LD_LIBRARY_PATH
22736 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22737 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22738 # the default ld.so.conf also contains /usr/contrib/lib and
22739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22740 # libtool to hard-code these into programs
22743 cygwin
* | mingw
* | pw32
* | cegcc
*)
22744 version_type
=windows
22749 case $GCC,$host_os in
22750 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22751 library_names_spec
='$libname.dll.a'
22752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22753 postinstall_cmds
='base_file=`basename \${file}`~
22754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22755 dldir=$destdir/`dirname \$dlpath`~
22756 test -d \$dldir || mkdir -p \$dldir~
22757 $install_prog $dir/$dlname \$dldir/$dlname~
22758 chmod a+x \$dldir/$dlname~
22759 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22760 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22762 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22763 dlpath=$dir/\$dldll~
22765 shlibpath_overrides_runpath
=yes
22769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22770 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22774 # MinGW DLLs use traditional 'lib' prefix
22775 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22778 # pw32 DLLs use 'pw' prefix rather than 'lib'
22779 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22785 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22788 dynamic_linker
='Win32 ld.exe'
22789 # FIXME: first we should search . and the directory the executable is in
22793 darwin
* | rhapsody
*)
22794 dynamic_linker
="$host_os dyld"
22795 version_type
=darwin
22798 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22799 soname_spec
='${libname}${release}${major}$shared_ext'
22800 shlibpath_overrides_runpath
=yes
22801 shlibpath_var
=DYLD_LIBRARY_PATH
22802 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22804 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22812 soname_spec
='${libname}${release}${shared_ext}$major'
22813 shlibpath_var
=LD_LIBRARY_PATH
22816 freebsd
* | dragonfly
*)
22817 # DragonFly does not have aout. When/if they implement a new
22818 # versioning mechanism, adjust this.
22819 if test -x /usr
/bin
/objformat
; then
22820 objformat
=`/usr/bin/objformat`
22823 freebsd
[23].
*) objformat
=aout
;;
22824 *) objformat
=elf
;;
22827 version_type
=freebsd-
$objformat
22828 case $version_type in
22830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22835 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22839 shlibpath_var
=LD_LIBRARY_PATH
22842 shlibpath_overrides_runpath
=yes
22844 freebsd3.
[01]* | freebsdelf3.
[01]*)
22845 shlibpath_overrides_runpath
=yes
22846 hardcode_into_libs
=yes
22848 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22849 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22850 shlibpath_overrides_runpath
=no
22851 hardcode_into_libs
=yes
22853 *) # from 4.6 on, and DragonFly
22854 shlibpath_overrides_runpath
=yes
22855 hardcode_into_libs
=yes
22864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22865 soname_spec
='${libname}${release}${shared_ext}$major'
22866 shlibpath_var
=LD_LIBRARY_PATH
22867 hardcode_into_libs
=yes
22874 dynamic_linker
="$host_os runtime_loader"
22875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22876 soname_spec
='${libname}${release}${shared_ext}$major'
22877 shlibpath_var
=LIBRARY_PATH
22878 shlibpath_overrides_runpath
=yes
22879 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22880 hardcode_into_libs
=yes
22883 hpux9
* | hpux10
* | hpux11
*)
22884 # Give a soname corresponding to the major version so that dld.sl refuses to
22885 # link against other versions.
22892 hardcode_into_libs
=yes
22893 dynamic_linker
="$host_os dld.so"
22894 shlibpath_var
=LD_LIBRARY_PATH
22895 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22897 soname_spec
='${libname}${release}${shared_ext}$major'
22898 if test "X$HPUX_IA64_MODE" = X32
; then
22899 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22901 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22903 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22907 hardcode_into_libs
=yes
22908 dynamic_linker
="$host_os dld.sl"
22909 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22910 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22912 soname_spec
='${libname}${release}${shared_ext}$major'
22913 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22914 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22918 dynamic_linker
="$host_os dld.sl"
22919 shlibpath_var
=SHLIB_PATH
22920 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22922 soname_spec
='${libname}${release}${shared_ext}$major'
22925 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22926 postinstall_cmds
='chmod 555 $lib'
22927 # or fails outright, so override atomically:
22928 install_override_mode
=555
22935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22936 soname_spec
='${libname}${release}${shared_ext}$major'
22937 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22938 shlibpath_var
=LD_LIBRARY_PATH
22939 shlibpath_overrides_runpath
=no
22940 hardcode_into_libs
=yes
22943 irix5
* | irix6
* | nonstopux
*)
22945 nonstopux
*) version_type
=nonstopux
;;
22947 if test "$lt_cv_prog_gnu_ld" = yes; then
22955 soname_spec
='${libname}${release}${shared_ext}$major'
22956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22958 irix5
* | nonstopux
*)
22959 libsuff
= shlibsuff
=
22962 case $LD in # libtool.m4 will add one of these switches to LD
22963 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22964 libsuff
= shlibsuff
= libmagic
=32-bit;;
22965 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22966 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22967 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22968 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22969 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22973 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22974 shlibpath_overrides_runpath
=no
22975 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22976 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22977 hardcode_into_libs
=yes
22980 # No shared lib support for Linux oldld, aout, or coff.
22981 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22985 # This must be Linux ELF.
22987 # uclinux* changes (here and below) have been submitted to the libtool
22988 # project, but have not yet been accepted: they are GCC-local changes
22989 # for the time being. (See
22990 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22991 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
22995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22996 soname_spec
='${libname}${release}${shared_ext}$major'
22997 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22998 shlibpath_var
=LD_LIBRARY_PATH
22999 shlibpath_overrides_runpath
=no
23001 # Some binutils ld are patched to set DT_RUNPATH
23002 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
23003 $as_echo_n "(cached) " >&6
23005 lt_cv_shlibpath_overrides_runpath
=no
23006 save_LDFLAGS
=$LDFLAGS
23007 save_libdir
=$libdir
23008 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
23009 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
23010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h. */
23021 if ac_fn_cxx_try_link
"$LINENO"; then :
23022 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
23023 lt_cv_shlibpath_overrides_runpath
=yes
23026 rm -f core conftest.err conftest.
$ac_objext \
23027 conftest
$ac_exeext conftest.
$ac_ext
23028 LDFLAGS
=$save_LDFLAGS
23029 libdir
=$save_libdir
23033 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
23035 # This implies no fast_install, which is unacceptable.
23036 # Some rework will be needed to allow for fast_install
23037 # before this can be enabled.
23038 hardcode_into_libs
=yes
23040 # Append ld.so.conf contents to the search path
23041 if test -f /etc
/ld.so.conf
; then
23042 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' ' '`
23043 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23046 # We used to test for /lib/ld.so.1 and disable shared libraries on
23047 # powerpc, because MkLinux only supported shared libraries with the
23048 # GNU dynamic linker. Since this was broken with cross compilers,
23049 # most powerpc-linux boxes support dynamic linking these days and
23050 # people can always --disable-shared, the test was removed, and we
23051 # assume the GNU/Linux dynamic linker is in use.
23052 dynamic_linker
='GNU/Linux ld.so'
23059 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
23060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23061 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23062 dynamic_linker
='NetBSD (a.out) ld.so'
23064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23065 soname_spec
='${libname}${release}${shared_ext}$major'
23066 dynamic_linker
='NetBSD ld.elf_so'
23068 shlibpath_var
=LD_LIBRARY_PATH
23069 shlibpath_overrides_runpath
=yes
23070 hardcode_into_libs
=yes
23075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23076 shlibpath_var
=LD_LIBRARY_PATH
23077 shlibpath_overrides_runpath
=yes
23084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23085 soname_spec
='${libname}${release}${shared_ext}$major'
23086 shlibpath_var
=LD_LIBRARY_PATH
23087 shlibpath_overrides_runpath
=no
23088 hardcode_into_libs
=yes
23089 dynamic_linker
='ldqnx.so'
23094 sys_lib_dlsearch_path_spec
="/usr/lib"
23096 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23098 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23099 *) need_version
=no
;;
23101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23102 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23103 shlibpath_var
=LD_LIBRARY_PATH
23104 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23106 openbsd2.
[89] | openbsd2.
[89].
*)
23107 shlibpath_overrides_runpath
=no
23110 shlibpath_overrides_runpath
=yes
23114 shlibpath_overrides_runpath
=yes
23119 libname_spec
='$name'
23122 library_names_spec
='$libname${shared_ext} $libname.a'
23123 dynamic_linker
='OS/2 ld.exe'
23124 shlibpath_var
=LIBPATH
23127 osf3
* | osf4
* | osf5
*)
23131 soname_spec
='${libname}${release}${shared_ext}$major'
23132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23133 shlibpath_var
=LD_LIBRARY_PATH
23134 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23135 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23147 soname_spec
='${libname}${release}${shared_ext}$major'
23148 shlibpath_var
=LD_LIBRARY_PATH
23149 shlibpath_overrides_runpath
=yes
23150 hardcode_into_libs
=yes
23151 # ldd complains unless libraries are executable
23152 postinstall_cmds
='chmod +x $lib'
23157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23158 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23159 shlibpath_var
=LD_LIBRARY_PATH
23160 shlibpath_overrides_runpath
=yes
23161 if test "$with_gnu_ld" = yes; then
23169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23170 soname_spec
='${libname}${release}${shared_ext}$major'
23171 shlibpath_var
=LD_LIBRARY_PATH
23172 case $host_vendor in
23174 shlibpath_overrides_runpath
=no
23176 runpath_var
=LD_RUN_PATH
23184 shlibpath_overrides_runpath
=no
23185 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23191 if test -d /usr
/nec
;then
23193 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23194 soname_spec
='$libname${shared_ext}.$major'
23195 shlibpath_var
=LD_LIBRARY_PATH
23199 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23200 version_type
=freebsd-elf
23203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23204 soname_spec
='${libname}${release}${shared_ext}$major'
23205 shlibpath_var
=LD_LIBRARY_PATH
23206 shlibpath_overrides_runpath
=yes
23207 hardcode_into_libs
=yes
23208 if test "$with_gnu_ld" = yes; then
23209 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23211 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23214 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23218 sys_lib_dlsearch_path_spec
='/usr/lib'
23222 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23227 shlibpath_var
=LD_LIBRARY_PATH
23228 shlibpath_overrides_runpath
=no
23229 hardcode_into_libs
=yes
23234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23235 soname_spec
='${libname}${release}${shared_ext}$major'
23236 shlibpath_var
=LD_LIBRARY_PATH
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23244 $as_echo "$dynamic_linker" >&6; }
23245 test "$dynamic_linker" = no
&& can_build_shared
=no
23247 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23248 if test "$GCC" = yes; then
23249 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23252 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23253 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
23255 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23256 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23297 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23298 hardcode_action_CXX
=
23299 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23300 test -n "$runpath_var_CXX" ||
23301 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23303 # We can hardcode non-existent directories.
23304 if test "$hardcode_direct_CXX" != no
&&
23305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23306 # have to relink, otherwise we might link with an installed library
23307 # when we should be linking with a yet-to-be-installed one
23308 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23309 test "$hardcode_minus_L_CXX" != no
; then
23310 # Linking always hardcodes the temporary library directory.
23311 hardcode_action_CXX
=relink
23313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23314 hardcode_action_CXX
=immediate
23317 # We cannot hardcode anything, or else we can only hardcode existing
23319 hardcode_action_CXX
=unsupported
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23322 $as_echo "$hardcode_action_CXX" >&6; }
23324 if test "$hardcode_action_CXX" = relink ||
23325 test "$inherit_rpath_CXX" = yes; then
23326 # Fast installation is not supported
23327 enable_fast_install
=no
23328 elif test "$shlibpath_overrides_runpath" = yes ||
23329 test "$enable_shared" = no
; then
23330 # Fast installation is not necessary
23331 enable_fast_install
=needless
23340 fi # test -n "$compiler"
23346 with_gnu_ld
=$lt_save_with_gnu_ld
23347 lt_cv_path_LDCXX
=$lt_cv_path_LD
23348 lt_cv_path_LD
=$lt_save_path_LD
23349 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23350 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23351 fi # test "$_lt_caught_CXX_error" != yes
23354 ac_cpp
='$CXXCPP $CPPFLAGS'
23355 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23356 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23357 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23374 # Only expand once:
23380 # Identify the assembler which will work hand-in-glove with the newly
23381 # built GCC, so that we can examine its features. This is the assembler
23382 # which will be driven by the driver program.
23384 # If build != host, and we aren't building gas in-tree, we identify a
23385 # build->target assembler and hope that it will have the same features
23386 # as the host->target assembler we'll be using.
23387 gcc_cv_gas_major_version
=
23388 gcc_cv_gas_minor_version
=
23389 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23391 if ${gcc_cv_as+:} false
; then :
23395 if test -x "$DEFAULT_ASSEMBLER"; then
23396 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23397 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23398 && test -f ..
/gas
/Makefile \
23399 && test x
$build = x
$host; then
23400 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23401 elif test -x as
$build_exeext; then
23402 # Build using assembler in the current directory.
23403 gcc_cv_as
=.
/as
$build_exeext
23404 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23405 gcc_cv_as
="$AS_FOR_TARGET"
23407 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23408 set dummy
$AS_FOR_TARGET; ac_word
=$2
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23410 $as_echo_n "checking for $ac_word... " >&6; }
23411 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23412 $as_echo_n "(cached) " >&6
23416 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23420 for as_dir
in $PATH
23423 test -z "$as_dir" && as_dir
=.
23424 for ac_exec_ext
in '' $ac_executable_extensions; do
23425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23426 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23437 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23438 if test -n "$gcc_cv_as"; then
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23440 $as_echo "$gcc_cv_as" >&6; }
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23443 $as_echo "no" >&6; }
23450 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23452 case "$ORIGINAL_AS_FOR_TARGET" in
23453 .
/as | .
/as
$build_exeext) ;;
23454 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
23459 $as_echo_n "checking what assembler to use... " >&6; }
23460 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
23461 # Single tree build which includes gas. We want to prefer it
23462 # over whatever linker top-level may have detected, since
23463 # we'll use what we're building after installation anyway.
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
23465 $as_echo "newly built gas" >&6; }
23467 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23468 for f
in $gcc_cv_as_bfd_srcdir/configure \
23469 $gcc_cv_as_gas_srcdir/configure \
23470 $gcc_cv_as_gas_srcdir/configure.ac \
23471 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
23472 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23473 if test x
$gcc_cv_gas_version != x
; then
23477 case $gcc_cv_gas_version in
23479 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
23481 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
23482 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23483 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
23484 case $gcc_cv_gas_patch_version in
23485 "") gcc_cv_gas_patch_version
="0" ;;
23487 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
23488 + $gcc_cv_gas_minor_version \) \* 1000 \
23489 + $gcc_cv_gas_patch_version`
23491 in_tree_gas_is_elf
=no
23492 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
23493 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
23494 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
23496 in_tree_gas_is_elf
=yes
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23500 $as_echo "$gcc_cv_as" >&6; }
23505 # Check whether --enable-ld was given.
23506 if test "${enable_ld+set}" = set; then :
23507 enableval
=$enable_ld; case "${enableval}" in
23515 install_gold_as_default
=no
23516 # Check whether --enable-gold was given.
23517 if test "${enable_gold+set}" = set; then :
23518 enableval
=$enable_gold; case "${enableval}" in
23520 install_gold_as_default
=yes
23523 if test x
${default_ld} != x
; then
23524 install_gold_as_default
=yes
23530 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23536 # Identify the linker which will work hand-in-glove with the newly
23537 # built GCC, so that we can examine its features. This is the linker
23538 # which will be driven by the driver program.
23540 # If build != host, and we aren't building gas in-tree, we identify a
23541 # build->target linker and hope that it will have the same features
23542 # as the host->target linker we'll be using.
23543 gcc_cv_gld_major_version
=
23544 gcc_cv_gld_minor_version
=
23545 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23546 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23547 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23549 if ${gcc_cv_ld+:} false
; then :
23553 if test -x "$DEFAULT_LINKER"; then
23554 gcc_cv_ld
="$DEFAULT_LINKER"
23555 elif test $install_gold_as_default = yes \
23556 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23557 && test -f ..
/gold
/Makefile \
23558 && test x
$build = x
$host; then
23559 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23560 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23561 && test -f ..
/ld
/Makefile \
23562 && test x
$build = x
$host; then
23563 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23564 elif test -x collect-ld
$build_exeext; then
23565 # Build using linker in the current directory.
23566 gcc_cv_ld
=.
/collect-ld
$build_exeext
23567 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23568 gcc_cv_ld
="$LD_FOR_TARGET"
23570 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23571 set dummy
$LD_FOR_TARGET; ac_word
=$2
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23573 $as_echo_n "checking for $ac_word... " >&6; }
23574 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23575 $as_echo_n "(cached) " >&6
23579 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23583 for as_dir
in $PATH
23586 test -z "$as_dir" && as_dir
=.
23587 for ac_exec_ext
in '' $ac_executable_extensions; do
23588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23589 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23600 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23601 if test -n "$gcc_cv_ld"; then
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23603 $as_echo "$gcc_cv_ld" >&6; }
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23606 $as_echo "no" >&6; }
23613 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23614 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23615 # if the PLUGIN_LD is set ld-new, just have it as ld
23616 # as that is the installed named.
23617 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23618 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23619 PLUGIN_LD_SUFFIX
=ld
23622 # Check whether --with-plugin-ld was given.
23623 if test "${with_plugin_ld+set}" = set; then :
23624 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23625 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23626 PLUGIN_LD_SUFFIX
="$withval"
23632 cat >>confdefs.h
<<_ACEOF
23633 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23637 # Check to see if we are using gold instead of ld
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23639 $as_echo_n "checking whether we are using gold... " >&6; }
23641 if test x
$gcc_cv_ld != x
; then
23642 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23643 |
grep "GNU gold" > /dev
/null
; then
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23648 $as_echo "$ld_is_gold" >&6; }
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23651 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23652 # Check to see if default ld is not gold, but gold is
23653 # available and has support for split stack. If gcc was configured
23654 # with gold then no checking is done.
23656 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23658 # For platforms other than powerpc64*, enable as appropriate.
23660 gold_non_default
=no
23661 ld_gold
=`which ${gcc_cv_ld}.gold`
23662 # Make sure this gold has minimal split stack support
23663 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23664 ld_vers
=`$ld_gold --version | sed 1q`
23665 gold_vers
=`echo $ld_vers | sed -n \
23666 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23668 # check that the gold version contains the complete split stack support
23669 # on powerpc64 big and little endian
23671 case "$gold_vers" in
23672 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23674 *) gold_non_default
=no
23680 if test $gold_non_default = yes; then
23682 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23687 $as_echo "$gold_non_default" >&6; }
23689 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23691 case "$ORIGINAL_LD_FOR_TARGET" in
23692 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23693 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23698 $as_echo_n "checking what linker to use... " >&6; }
23699 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23700 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23701 # Single tree build which includes ld. We want to prefer it
23702 # over whatever linker top-level may have detected, since
23703 # we'll use what we're building after installation anyway.
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23705 $as_echo "newly built ld" >&6; }
23707 in_tree_ld_is_elf
=no
23708 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23709 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23710 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23711 in_tree_ld_is_elf
=yes
23712 elif test "$ld_is_gold" = yes; then
23713 in_tree_ld_is_elf
=yes
23715 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
23717 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23718 if test x
$gcc_cv_gld_version != x
; then
23722 case $gcc_cv_gld_version in
23724 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23726 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23727 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23728 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23729 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23732 $as_echo "$gcc_cv_ld" >&6; }
23734 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23735 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23736 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23742 # Figure out what nm we will be using.
23743 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23744 if ${gcc_cv_nm+:} false
; then :
23748 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23749 && test -f ..
/binutils
/Makefile \
23750 && test x
$build = x
$host; then
23751 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23752 elif test -x nm
$build_exeext; then
23753 gcc_cv_nm
=.
/nm
$build_exeext
23754 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23755 gcc_cv_nm
="$NM_FOR_TARGET"
23757 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23758 set dummy
$NM_FOR_TARGET; ac_word
=$2
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23760 $as_echo_n "checking for $ac_word... " >&6; }
23761 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23762 $as_echo_n "(cached) " >&6
23766 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23770 for as_dir
in $PATH
23773 test -z "$as_dir" && as_dir
=.
23774 for ac_exec_ext
in '' $ac_executable_extensions; do
23775 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23776 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23787 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23788 if test -n "$gcc_cv_nm"; then
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23790 $as_echo "$gcc_cv_nm" >&6; }
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23793 $as_echo "no" >&6; }
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23801 $as_echo_n "checking what nm to use... " >&6; }
23802 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23803 # Single tree build which includes binutils.
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23805 $as_echo "newly built nm" >&6; }
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23809 $as_echo "$gcc_cv_nm" >&6; }
23813 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23815 case "$ORIGINAL_NM_FOR_TARGET" in
23816 .
/nm | .
/nm
$build_exeext) ;;
23817 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23822 # Figure out what objdump we will be using.
23823 if ${gcc_cv_objdump+:} false
; then :
23827 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23828 && test -f ..
/binutils
/Makefile \
23829 && test x
$build = x
$host; then
23830 # Single tree build which includes binutils.
23831 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23832 elif test -x objdump
$build_exeext; then
23833 gcc_cv_objdump
=.
/objdump
$build_exeext
23834 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23835 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23837 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23838 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23840 $as_echo_n "checking for $ac_word... " >&6; }
23841 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23842 $as_echo_n "(cached) " >&6
23844 case $gcc_cv_objdump in
23846 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23850 for as_dir
in $PATH
23853 test -z "$as_dir" && as_dir
=.
23854 for ac_exec_ext
in '' $ac_executable_extensions; do
23855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23856 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23867 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23868 if test -n "$gcc_cv_objdump"; then
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23870 $as_echo "$gcc_cv_objdump" >&6; }
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23873 $as_echo "no" >&6; }
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23881 $as_echo_n "checking what objdump to use... " >&6; }
23882 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23883 # Single tree build which includes binutils.
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23885 $as_echo "newly built objdump" >&6; }
23886 elif test x
$gcc_cv_objdump = x
; then
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23888 $as_echo "not found" >&6; }
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23891 $as_echo "$gcc_cv_objdump" >&6; }
23894 # Figure out what readelf we will be using.
23895 if ${gcc_cv_readelf+:} false
; then :
23899 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23900 && test -f ..
/binutils
/Makefile \
23901 && test x
$build = x
$host; then
23902 # Single tree build which includes binutils.
23903 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23904 elif test -x readelf
$build_exeext; then
23905 gcc_cv_readelf
=.
/readelf
$build_exeext
23906 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23907 gcc_cv_readelf
="$READELF_FOR_TARGET"
23909 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23910 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23912 $as_echo_n "checking for $ac_word... " >&6; }
23913 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23914 $as_echo_n "(cached) " >&6
23916 case $gcc_cv_readelf in
23918 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23922 for as_dir
in $PATH
23925 test -z "$as_dir" && as_dir
=.
23926 for ac_exec_ext
in '' $ac_executable_extensions; do
23927 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23928 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23939 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23940 if test -n "$gcc_cv_readelf"; then
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23942 $as_echo "$gcc_cv_readelf" >&6; }
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23945 $as_echo "no" >&6; }
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23953 $as_echo_n "checking what readelf to use... " >&6; }
23954 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23955 # Single tree build which includes binutils.
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23957 $as_echo "newly built readelf" >&6; }
23958 elif test x
$gcc_cv_readelf = x
; then
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23960 $as_echo "not found" >&6; }
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23963 $as_echo "$gcc_cv_readelf" >&6; }
23966 # Figure out what otool we will be using.
23967 if ${gcc_cv_otool+:} false
; then :
23971 if test -x otool
$build_exeext; then
23972 gcc_cv_otool
=.
/otool
$build_exeext
23973 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23974 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23976 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23977 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23979 $as_echo_n "checking for $ac_word... " >&6; }
23980 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23981 $as_echo_n "(cached) " >&6
23983 case $gcc_cv_otool in
23985 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23989 for as_dir
in $PATH
23992 test -z "$as_dir" && as_dir
=.
23993 for ac_exec_ext
in '' $ac_executable_extensions; do
23994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23995 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24006 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
24007 if test -n "$gcc_cv_otool"; then
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24009 $as_echo "$gcc_cv_otool" >&6; }
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24012 $as_echo "no" >&6; }
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
24020 $as_echo_n "checking what otool to use... " >&6; }
24021 if test x
$gcc_cv_otool = x
; then
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24023 $as_echo "not found" >&6; }
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24026 $as_echo "$gcc_cv_otool" >&6; }
24029 # Figure out what assembler alignment features are present.
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
24031 $as_echo_n "checking assembler flags... " >&6; }
24032 if ${gcc_cv_as_flags+:} false
; then :
24033 $as_echo_n "(cached) " >&6
24036 i
[34567]86-*-linux*)
24037 gcc_cv_as_flags
=--32
24039 x86_64-
*-linux-gnux32)
24040 gcc_cv_as_flags
=--x32
24043 gcc_cv_as_flags
=--64
24045 powerpc
*-*-darwin*)
24046 gcc_cv_as_flags
="-arch ppc"
24049 gcc_cv_as_flags
=" "
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
24054 $as_echo "$gcc_cv_as_flags" >&6; }
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
24057 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
24058 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
24059 $as_echo_n "(cached) " >&6
24061 gcc_cv_as_balign_and_p2align
=no
24062 if test $in_tree_gas = yes; then
24063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
24064 then gcc_cv_as_balign_and_p2align
=yes
24066 elif test x
$gcc_cv_as != x
; then
24067 $as_echo '.balign 4
24068 .p2align 2' > conftest.s
24069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24071 (eval $ac_try) 2>&5
24073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24074 test $ac_status = 0; }; }
24076 gcc_cv_as_balign_and_p2align
=yes
24078 echo "configure: failed program was" >&5
24081 rm -f conftest.o conftest.s
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
24085 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
24086 if test $gcc_cv_as_balign_and_p2align = yes; then
24088 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24094 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24095 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
24096 $as_echo_n "(cached) " >&6
24098 gcc_cv_as_max_skip_p2align
=no
24099 if test $in_tree_gas = yes; then
24100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
24101 then gcc_cv_as_max_skip_p2align
=yes
24103 elif test x
$gcc_cv_as != x
; then
24104 $as_echo '.p2align 4,,7' > conftest.s
24105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24107 (eval $ac_try) 2>&5
24109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24110 test $ac_status = 0; }; }
24112 gcc_cv_as_max_skip_p2align
=yes
24114 echo "configure: failed program was" >&5
24117 rm -f conftest.o conftest.s
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24121 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24122 if test $gcc_cv_as_max_skip_p2align = yes; then
24124 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24130 $as_echo_n "checking assembler for .literal16... " >&6; }
24131 if ${gcc_cv_as_literal16+:} false
; then :
24132 $as_echo_n "(cached) " >&6
24134 gcc_cv_as_literal16
=no
24135 if test $in_tree_gas = yes; then
24136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
24137 then gcc_cv_as_literal16
=yes
24139 elif test x
$gcc_cv_as != x
; then
24140 $as_echo '.literal16' > conftest.s
24141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24143 (eval $ac_try) 2>&5
24145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24146 test $ac_status = 0; }; }
24148 gcc_cv_as_literal16
=yes
24150 echo "configure: failed program was" >&5
24153 rm -f conftest.o conftest.s
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24157 $as_echo "$gcc_cv_as_literal16" >&6; }
24158 if test $gcc_cv_as_literal16 = yes; then
24160 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24166 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24167 if ${gcc_cv_as_subsection_m1+:} false
; then :
24168 $as_echo_n "(cached) " >&6
24170 gcc_cv_as_subsection_m1
=no
24171 if test $in_tree_gas = yes; then
24172 if test $in_tree_gas_is_elf = yes \
24173 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
24174 then gcc_cv_as_subsection_m1
=yes
24176 elif test x
$gcc_cv_as != x
; then
24177 $as_echo 'conftest_label1: .word 0
24179 conftest_label2: .word 0
24180 .previous' > conftest.s
24181 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24183 (eval $ac_try) 2>&5
24185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24186 test $ac_status = 0; }; }
24188 if test x
$gcc_cv_nm != x
; then
24189 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
24190 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
24191 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
24193 else gcc_cv_as_subsection_m1
=yes
24195 rm -f conftest.nm1 conftest.nm2
24198 echo "configure: failed program was" >&5
24201 rm -f conftest.o conftest.s
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24205 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24206 if test $gcc_cv_as_subsection_m1 = yes; then
24208 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24214 $as_echo_n "checking assembler for .weak... " >&6; }
24215 if ${gcc_cv_as_weak+:} false
; then :
24216 $as_echo_n "(cached) " >&6
24219 if test $in_tree_gas = yes; then
24220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
24221 then gcc_cv_as_weak
=yes
24223 elif test x
$gcc_cv_as != x
; then
24224 $as_echo ' .weak foobar' > conftest.s
24225 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24227 (eval $ac_try) 2>&5
24229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24230 test $ac_status = 0; }; }
24234 echo "configure: failed program was" >&5
24237 rm -f conftest.o conftest.s
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24241 $as_echo "$gcc_cv_as_weak" >&6; }
24242 if test $gcc_cv_as_weak = yes; then
24244 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24250 $as_echo_n "checking assembler for .weakref... " >&6; }
24251 if ${gcc_cv_as_weakref+:} false
; then :
24252 $as_echo_n "(cached) " >&6
24254 gcc_cv_as_weakref
=no
24255 if test $in_tree_gas = yes; then
24256 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24257 then gcc_cv_as_weakref
=yes
24259 elif test x
$gcc_cv_as != x
; then
24260 $as_echo ' .weakref foobar, barfnot' > conftest.s
24261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24263 (eval $ac_try) 2>&5
24265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24266 test $ac_status = 0; }; }
24268 gcc_cv_as_weakref
=yes
24270 echo "configure: failed program was" >&5
24273 rm -f conftest.o conftest.s
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24277 $as_echo "$gcc_cv_as_weakref" >&6; }
24278 if test $gcc_cv_as_weakref = yes; then
24280 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24286 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24287 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
24288 $as_echo_n "(cached) " >&6
24290 gcc_cv_as_nsubspa_comdat
=no
24291 if test $in_tree_gas = yes; then
24292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24293 then gcc_cv_as_nsubspa_comdat
=yes
24295 elif test x
$gcc_cv_as != x
; then
24296 $as_echo ' .SPACE $TEXT$
24297 .NSUBSPA $CODE$,COMDAT' > conftest.s
24298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24300 (eval $ac_try) 2>&5
24302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24303 test $ac_status = 0; }; }
24305 gcc_cv_as_nsubspa_comdat
=yes
24307 echo "configure: failed program was" >&5
24310 rm -f conftest.o conftest.s
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24314 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24315 if test $gcc_cv_as_nsubspa_comdat = yes; then
24317 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24322 # .hidden needs to be supported in both the assembler and the linker,
24323 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24324 # This is irritatingly difficult to feature test for; we have to check the
24325 # date string after the version number. If we've got an in-tree
24326 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24328 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24329 case "${target}" in
24331 conftest_s
=' .globl foobar,hidden'
24334 conftest_s
=' .hidden foobar
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24339 $as_echo_n "checking assembler for .hidden... " >&6; }
24340 if ${gcc_cv_as_hidden+:} false
; then :
24341 $as_echo_n "(cached) " >&6
24343 gcc_cv_as_hidden
=no
24344 if test $in_tree_gas = yes; then
24345 if test $in_tree_gas_is_elf = yes \
24346 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
24347 then gcc_cv_as_hidden
=yes
24349 elif test x
$gcc_cv_as != x
; then
24350 $as_echo "$conftest_s" > conftest.s
24351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24353 (eval $ac_try) 2>&5
24355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24356 test $ac_status = 0; }; }
24358 gcc_cv_as_hidden
=yes
24360 echo "configure: failed program was" >&5
24363 rm -f conftest.o conftest.s
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24367 $as_echo "$gcc_cv_as_hidden" >&6; }
24370 case "${target}" in
24372 # Darwin as has some visibility support, though with a different syntax.
24373 gcc_cv_as_hidden
=yes
24377 # gnu_indirect_function type is an extension proposed at
24378 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24379 # selection of function implementation
24380 # Check whether --enable-gnu-indirect-function was given.
24381 if test "${enable_gnu_indirect_function+set}" = set; then :
24382 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24384 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24385 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24388 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24392 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24394 cat >>confdefs.h
<<_ACEOF
24395 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24400 if test $in_tree_ld != yes ; then
24401 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24402 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24403 if test x
"$ld_is_gold" = xyes
; then
24404 # GNU gold --version looks like this:
24406 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24408 # We extract the binutils version which is more familiar and specific
24409 # than the gold version.
24410 ld_vers
=`echo $ld_ver | sed -n \
24411 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24413 # GNU ld --version looks like this:
24415 # GNU ld (GNU Binutils) 2.21.51.20110225
24416 ld_vers
=`echo $ld_ver | sed -n \
24417 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24419 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'`
24420 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24421 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24422 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24424 case "${target}" in
24426 # Solaris 2 ld -V output looks like this for a regular version:
24428 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24430 # but test versions add stuff at the end:
24432 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24434 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24435 # numbers can be used in ld.so.1 feature checks even if a different
24436 # linker is configured.
24437 ld_ver
=`$gcc_cv_ld -V 2>&1`
24438 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24439 ld_vers
=`echo $ld_ver | sed -n \
24440 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24441 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24442 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24450 $as_echo_n "checking linker for .hidden support... " >&6; }
24451 if ${gcc_cv_ld_hidden+:} false
; then :
24452 $as_echo_n "(cached) " >&6
24454 if test $in_tree_ld = yes ; then
24455 gcc_cv_ld_hidden
=no
24456 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 \
24457 && test $in_tree_ld_is_elf = yes; then
24458 gcc_cv_ld_hidden
=yes
24461 gcc_cv_ld_hidden
=yes
24462 if test x
"$ld_is_gold" = xyes
; then
24464 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24465 case "${target}" in
24466 mmix-knuth-mmixware
)
24467 # The linker emits by default mmo, not ELF, so "no" is appropriate.
24468 gcc_cv_ld_hidden
=no
24471 if test 0"$ld_date" -lt 20020404; then
24472 if test -n "$ld_date"; then
24473 # If there was date string, but was earlier than 2002-04-04, fail
24474 gcc_cv_ld_hidden
=no
24475 elif test -z "$ld_vers"; then
24476 # If there was no date string nor ld version number, something is wrong
24477 gcc_cv_ld_hidden
=no
24479 test -z "$ld_vers_patch" && ld_vers_patch
=0
24480 if test "$ld_vers_major" -lt 2; then
24481 gcc_cv_ld_hidden
=no
24482 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24483 gcc_cv_ld_hidden
="no"
24484 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24485 gcc_cv_ld_hidden
=no
24490 case "${target}" in
24492 gcc_cv_ld_hidden
=yes
24495 # Darwin ld has some visibility support.
24496 gcc_cv_ld_hidden
=yes
24498 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24499 gcc_cv_ld_hidden
=yes
24502 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24503 # .symbolic was only added in Solaris 9 12/02.
24504 gcc_cv_ld_hidden
=yes
24507 gcc_cv_ld_hidden
=no
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24514 $as_echo "$gcc_cv_ld_hidden" >&6; }
24515 libgcc_visibility
=no
24518 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24519 libgcc_visibility
=yes
24521 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24526 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24527 gcc_cv_ld_ro_rw_mix
=unknown
24528 if test $in_tree_ld = yes ; then
24529 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 \
24530 && test $in_tree_ld_is_elf = yes; then
24531 gcc_cv_ld_ro_rw_mix
=read-write
24533 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24534 echo '.section myfoosect, "a"' > conftest1.s
24535 echo '.section myfoosect, "aw"' > conftest2.s
24536 echo '.byte 1' >> conftest2.s
24537 echo '.section myfoosect, "a"' > conftest3.s
24538 echo '.byte 0' >> conftest3.s
24539 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24540 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24541 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
24542 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24543 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24544 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24545 | sed -e '/myfoosect/!d' -e N`
24546 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24547 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24548 gcc_cv_ld_ro_rw_mix
=read-only
24550 gcc_cv_ld_ro_rw_mix
=read-write
24554 rm -f conftest.
* conftest
[123].
*
24556 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24558 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24562 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24564 # Check whether --enable-initfini-array was given.
24565 if test "${enable_initfini_array+set}" = set; then :
24566 enableval
=$enable_initfini_array;
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24570 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24571 if ${gcc_cv_initfini_array+:} false
; then :
24572 $as_echo_n "(cached) " >&6
24574 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24575 case "${target}" in
24577 if test "$cross_compiling" = yes; then :
24578 gcc_cv_initfini_array
=no
24580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24581 /* end confdefs.h. */
24584 #error Not an ELF OS
24586 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24587 if it can be used. */
24589 int main (void) { return x; }
24590 int foo (void) { x = 0; }
24591 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24594 if ac_fn_cxx_try_run
"$LINENO"; then :
24595 gcc_cv_initfini_array
=yes
24597 gcc_cv_initfini_array
=no
24599 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24600 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24604 gcc_cv_initfini_array
=no
24605 if test $in_tree_ld = yes ; then
24606 if test "$gcc_cv_gld_major_version" -eq 2 \
24607 -a "$gcc_cv_gld_minor_version" -ge 22 \
24608 -o "$gcc_cv_gld_major_version" -gt 2 \
24609 && test $in_tree_ld_is_elf = yes; then
24610 gcc_cv_initfini_array
=yes
24612 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24613 case $target:$gas in
24616 sh_type
='%progbits'
24618 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24620 sh_type
='@progbits'
24622 sparc
*-*-solaris2*:no
)
24624 sh_type
='#progbits'
24628 case "$target:$gnu_ld" in
24630 cat > conftest.s
<<EOF
24631 .section .dtors,$sh_flags,$sh_type
24633 .byte 'A', 'A', 'A', 'A'
24634 .section .ctors,$sh_flags,$sh_type
24636 .byte 'B', 'B', 'B', 'B'
24637 .section .fini_array.65530,$sh_flags,$sh_type
24639 .byte 'C', 'C', 'C', 'C'
24640 .section .init_array.65530,$sh_flags,$sh_type
24642 .byte 'D', 'D', 'D', 'D'
24643 .section .dtors.64528,$sh_flags,$sh_type
24645 .byte 'E', 'E', 'E', 'E'
24646 .section .ctors.64528,$sh_flags,$sh_type
24648 .byte 'F', 'F', 'F', 'F'
24649 .section .fini_array.01005,$sh_flags,$sh_type
24651 .byte 'G', 'G', 'G', 'G'
24652 .section .init_array.01005,$sh_flags,$sh_type
24654 .byte 'H', 'H', 'H', 'H'
24659 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24660 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24661 && $gcc_cv_objdump -s -j .init_array conftest \
24662 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24663 && $gcc_cv_objdump -s -j .fini_array conftest \
24664 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24665 gcc_cv_initfini_array
=yes
24669 # When Solaris ld added constructor priority support, it was
24670 # decided to only handle .init_array.N/.fini_array.N since
24671 # there was no need for backwards compatibility with
24672 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24673 # sections with correct execution order resp. to
24674 # .init_array/.fini_array, while gld merges them into
24675 # .init_array/.fini_array.
24676 cat > conftest.s
<<EOF
24677 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24679 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24680 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24682 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24683 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24685 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24686 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24688 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24693 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24694 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24695 && $gcc_cv_objdump -s -j .init_array conftest \
24696 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24697 && $gcc_cv_objdump -s -j .fini_array conftest \
24698 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24699 gcc_cv_initfini_array
=yes
24703 rm -f conftest conftest.
*
24705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24706 /* end confdefs.h. */
24709 # error Not an ELF OS
24711 #include <stdlib.h>
24712 #if defined __GLIBC_PREREQ
24713 # if __GLIBC_PREREQ (2, 4)
24715 # error GLIBC 2.4 required
24718 # if defined __sun__ && defined __svr4__
24719 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24721 # error The C library not known to support .init_array/.fini_array
24726 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24729 gcc_cv_initfini_array
=no
24731 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24735 $as_echo_n "checking cross compile... guessing... " >&6; }
24736 gcc_cv_initfini_array
=no
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24740 $as_echo "$gcc_cv_initfini_array" >&6; }
24741 enable_initfini_array
=$gcc_cv_initfini_array
24746 cat >>confdefs.h
<<_ACEOF
24747 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24752 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24754 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24755 if ${gcc_cv_as_leb128+:} false
; then :
24756 $as_echo_n "(cached) " >&6
24758 gcc_cv_as_leb128
=no
24759 if test $in_tree_gas = yes; then
24760 if test $in_tree_gas_is_elf = yes \
24761 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24762 then gcc_cv_as_leb128
=yes
24764 elif test x
$gcc_cv_as != x
; then
24771 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24773 (eval $ac_try) 2>&5
24775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24776 test $ac_status = 0; }; }
24778 # GAS versions before 2.11 do not support uleb128,
24779 # despite appearing to.
24780 # ??? There exists an elf-specific test that will crash
24781 # the assembler. Perhaps it's better to figure out whether
24782 # arbitrary sections are supported and try the test.
24783 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
24784 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
24785 as_vers
=`echo $as_ver | sed -n \
24786 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24787 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
24788 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
24789 if test $as_major -eq 2 && test $as_minor -lt 11
24791 else gcc_cv_as_leb128
=yes
24795 echo "configure: failed program was" >&5
24798 rm -f conftest.o conftest.s
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24802 $as_echo "$gcc_cv_as_leb128" >&6; }
24803 if test $gcc_cv_as_leb128 = yes; then
24805 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24808 if test $gcc_cv_as_leb128 != yes; then
24810 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24814 # Determine if an .eh_frame section is read-only.
24815 gcc_fn_eh_frame_ro
() {
24816 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24817 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24818 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24821 # Check if we have assembler support for unwind directives.
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24823 $as_echo_n "checking assembler for cfi directives... " >&6; }
24824 if ${gcc_cv_as_cfi_directive+:} false
; then :
24825 $as_echo_n "(cached) " >&6
24827 gcc_cv_as_cfi_directive
=no
24828 if test x
$gcc_cv_as != x
; then
24834 .cfi_escape 1, 2, 3, 4, 5
24835 .cfi_endproc' > conftest.s
24836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24838 (eval $ac_try) 2>&5
24840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24841 test $ac_status = 0; }; }
24845 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24846 # read-only and read-write sections, we need to make sure that the
24847 # assembler used emits read-write .eh_frame sections.
24848 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24849 gcc_cv_as_cfi_directive
=yes
24850 elif test "x$gcc_cv_objdump" = x
; then
24851 # No objdump, err on the side of caution.
24852 gcc_cv_as_cfi_directive
=no
24854 if test x
$gas = xyes
; then
24862 sparc
*-*-solaris2.
*)
24863 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24864 if gcc_fn_eh_frame_ro
$as_32_opt \
24865 || gcc_fn_eh_frame_ro
$as_64_opt; then
24866 gcc_cv_as_cfi_directive
=no
24868 gcc_cv_as_cfi_directive
=yes
24871 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24872 # On Solaris/x86, make sure that GCC and assembler agree on using
24873 # read-only .eh_frame sections for 64-bit.
24874 if gcc_fn_eh_frame_ro
$as_32_opt; then
24875 gcc_cv_as_cfi_directive
=no
24876 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24877 gcc_cv_as_cfi_directive
=yes
24879 gcc_cv_as_cfi_directive
=no
24886 gcc_cv_as_cfi_directive
=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_cfi_directive" >&5
24897 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24900 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24902 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24903 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24904 $as_echo_n "(cached) " >&6
24906 gcc_cv_as_cfi_advance_working
=no
24907 if test x
$gcc_cv_as != x
; then
24910 .cfi_adjust_cfa_offset 64
24912 .cfi_adjust_cfa_offset 128
24913 .cfi_endproc' > conftest.s
24914 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24916 (eval $ac_try) 2>&5
24918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24919 test $ac_status = 0; }; }
24922 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24923 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24924 gcc_cv_as_cfi_advance_working
=yes
24928 echo "configure: failed program was" >&5
24931 rm -f conftest.o conftest.s
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24935 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24939 # no objdump, err on the side of caution
24940 gcc_cv_as_cfi_advance_working
=no
24944 cat >>confdefs.h
<<_ACEOF
24945 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24946 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24952 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24953 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24954 $as_echo_n "(cached) " >&6
24956 gcc_cv_as_cfi_personality_directive
=no
24957 if test x
$gcc_cv_as != x
; then
24960 .cfi_personality 0, symbol
24961 .cfi_endproc' > conftest.s
24962 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24964 (eval $ac_try) 2>&5
24966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24967 test $ac_status = 0; }; }
24969 gcc_cv_as_cfi_personality_directive
=yes
24971 echo "configure: failed program was" >&5
24974 rm -f conftest.o conftest.s
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24978 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24982 cat >>confdefs.h
<<_ACEOF
24983 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24988 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24989 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24990 $as_echo_n "(cached) " >&6
24992 gcc_cv_as_cfi_sections_directive
=no
24993 if test x
$gcc_cv_as != x
; then
24995 .cfi_sections .debug_frame, .eh_frame
24997 .cfi_endproc' > conftest.s
24998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25000 (eval $ac_try) 2>&5
25002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25003 test $ac_status = 0; }; }
25006 win32 | pe | cygwin
* | mingw32
*)
25007 # Need to check that we generated the correct relocation for the
25008 # .debug_frame section. This was fixed for binutils 2.21.
25009 gcc_cv_as_cfi_sections_directive
=no
25010 if test "x$gcc_cv_objdump" != x
; then
25011 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
25012 grep secrel
> /dev
/null
; then
25013 gcc_cv_as_cfi_sections_directive
=yes
25018 gcc_cv_as_cfi_sections_directive
=yes
25022 echo "configure: failed program was" >&5
25025 rm -f conftest.o conftest.s
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
25029 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
25034 cat >>confdefs.h
<<_ACEOF
25035 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
25039 # GAS versions up to and including 2.11.0 may mis-optimize
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
25042 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
25043 if ${gcc_cv_as_eh_frame+:} false
; then :
25044 $as_echo_n "(cached) " >&6
25046 gcc_cv_as_eh_frame
=no
25047 if test $in_tree_gas = yes; then
25048 if test $in_tree_gas_is_elf = yes \
25049 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25050 then gcc_cv_as_eh_frame
=yes
25052 elif test x
$gcc_cv_as != x
; then
25059 .section .eh_frame,"aw",@progbits
25061 .4byte .LECIE1-.LSCIE1
25075 .4byte .LEFDE1-.LASFDE1
25077 .4byte .LASFDE1-__FRAME_BEGIN__
25084 .LEFDE1:' > conftest.s
25085 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25087 (eval $ac_try) 2>&5
25089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25090 test $ac_status = 0; }; }
25092 cat > conftest.lit
<<EOF
25093 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25094 0010 01000000 12000000 18000000 00000000 ................
25095 0020 08000000 04080000 0044 .........D
25097 cat > conftest.big
<<EOF
25098 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25099 0010 00000001 00000012 00000018 00000000 ................
25100 0020 00000008 04000000 0844 .........D
25102 # If the assembler didn't choke, and we can objdump,
25103 # and we got the correct data, then succeed.
25104 # The text in the here-document typically retains its unix-style line
25105 # endings, while the output of objdump will use host line endings.
25106 # Therefore, use diff -b for the comparisons.
25107 if test x
$gcc_cv_objdump != x \
25108 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
25109 |
tail -3 > conftest.got \
25110 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
25111 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
25113 gcc_cv_as_eh_frame
=yes
25114 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25116 (eval $ac_try) 2>&5
25118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25119 test $ac_status = 0; }; }; then
25120 gcc_cv_as_eh_frame
=buggy
25122 # Uh oh, what do we do now?
25123 gcc_cv_as_eh_frame
=no
25126 echo "configure: failed program was" >&5
25129 rm -f conftest.o conftest.s
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25133 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25137 if test $gcc_cv_as_eh_frame = buggy
; then
25139 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25143 # Test if the assembler supports the section flag 'e' or #exclude for
25144 # specifying an excluded section.
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25146 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25147 if ${gcc_cv_as_section_exclude_e+:} false
; then :
25148 $as_echo_n "(cached) " >&6
25150 gcc_cv_as_section_exclude_e
=no
25151 if test $in_tree_gas = yes; then
25152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25153 then gcc_cv_as_section_exclude_e
=yes
25155 elif test x
$gcc_cv_as != x
; then
25156 $as_echo '.section foo1,"e"
25157 .byte 0,0,0,0' > conftest.s
25158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25160 (eval $ac_try) 2>&5
25162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25163 test $ac_status = 0; }; }
25165 gcc_cv_as_section_exclude_e
=yes
25167 echo "configure: failed program was" >&5
25170 rm -f conftest.o conftest.s
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25174 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25177 if test $gcc_cv_as_section_exclude_e = no
; then
25178 case "${target}" in
25179 # Solaris as uses #exclude instead.
25181 case "${target}" in
25182 sparc
*-*-solaris2*)
25183 conftest_s
='.section "foo1", #exclude'
25185 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25186 conftest_s
='.section foo1, #exclude'
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25192 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25193 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
25194 $as_echo_n "(cached) " >&6
25196 gcc_cv_as_section_exclude_hash
=no
25197 if test x
$gcc_cv_as != x
; then
25198 $as_echo "$conftest_s
25199 .byte 0,0,0,0" > conftest.s
25200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25202 (eval $ac_try) 2>&5
25204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25205 test $ac_status = 0; }; }
25207 gcc_cv_as_section_exclude_hash
=yes
25209 echo "configure: failed program was" >&5
25212 rm -f conftest.o conftest.s
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25216 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25221 cat >>confdefs.h
<<_ACEOF
25222 #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`
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25227 $as_echo_n "checking assembler for section merging support... " >&6; }
25228 if ${gcc_cv_as_shf_merge+:} false
; then :
25229 $as_echo_n "(cached) " >&6
25231 gcc_cv_as_shf_merge
=no
25232 if test $in_tree_gas = yes; then
25233 if test $in_tree_gas_is_elf = yes \
25234 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25235 then gcc_cv_as_shf_merge
=yes
25237 elif test x
$gcc_cv_as != x
; then
25238 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25241 (eval $ac_try) 2>&5
25243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25244 test $ac_status = 0; }; }
25246 gcc_cv_as_shf_merge
=yes
25248 echo "configure: failed program was" >&5
25251 rm -f conftest.o conftest.s
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25255 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25258 if test $gcc_cv_as_shf_merge = no
; then
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25260 $as_echo_n "checking assembler for section merging support... " >&6; }
25261 if ${gcc_cv_as_shf_merge+:} false
; then :
25262 $as_echo_n "(cached) " >&6
25264 gcc_cv_as_shf_merge
=no
25265 if test $in_tree_gas = yes; then
25266 if test $in_tree_gas_is_elf = yes \
25267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25268 then gcc_cv_as_shf_merge
=yes
25270 elif test x
$gcc_cv_as != x
; then
25271 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25274 (eval $ac_try) 2>&5
25276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25277 test $ac_status = 0; }; }
25279 gcc_cv_as_shf_merge
=yes
25281 echo "configure: failed program was" >&5
25284 rm -f conftest.o conftest.s
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25288 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25293 cat >>confdefs.h
<<_ACEOF
25294 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25298 gcc_cv_ld_aligned_shf_merge
=yes
25300 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25302 sparc
*-*-solaris2.11
*)
25303 if test x
"$gnu_ld" = xno \
25304 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25305 gcc_cv_ld_aligned_shf_merge
=no
25310 cat >>confdefs.h
<<_ACEOF
25311 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
25316 $as_echo_n "checking assembler for stabs directive... " >&6; }
25317 if ${gcc_cv_as_stabs_directive+:} false
; then :
25318 $as_echo_n "(cached) " >&6
25320 gcc_cv_as_stabs_directive
=no
25321 if test x
$gcc_cv_as != x
; then
25322 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
25323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25325 (eval $ac_try) 2>&5
25327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; }
25330 gcc_cv_as_stabs_directive
=yes
25332 echo "configure: failed program was" >&5
25335 rm -f conftest.o conftest.s
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
25339 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
25340 if test $gcc_cv_as_stabs_directive = yes; then
25342 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25348 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25349 if ${gcc_cv_as_comdat_group+:} false
; then :
25350 $as_echo_n "(cached) " >&6
25352 gcc_cv_as_comdat_group
=no
25353 if test $in_tree_gas = yes; then
25354 if test $in_tree_gas_is_elf = yes \
25355 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25356 then gcc_cv_as_comdat_group
=yes
25358 elif test x
$gcc_cv_as != x
; then
25359 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25360 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25362 (eval $ac_try) 2>&5
25364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25365 test $ac_status = 0; }; }
25367 gcc_cv_as_comdat_group
=yes
25369 echo "configure: failed program was" >&5
25372 rm -f conftest.o conftest.s
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25376 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25379 if test $gcc_cv_as_comdat_group = yes; then
25380 gcc_cv_as_comdat_group_percent
=no
25381 gcc_cv_as_comdat_group_group
=no
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25384 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25385 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25386 $as_echo_n "(cached) " >&6
25388 gcc_cv_as_comdat_group_percent
=no
25389 if test $in_tree_gas = yes; then
25390 if test $in_tree_gas_is_elf = yes \
25391 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25392 then gcc_cv_as_comdat_group_percent
=yes
25394 elif test x
$gcc_cv_as != x
; then
25395 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25403 gcc_cv_as_comdat_group_percent
=yes
25405 echo "configure: failed program was" >&5
25408 rm -f conftest.o conftest.s
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25412 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25415 if test $gcc_cv_as_comdat_group_percent = yes; then
25416 gcc_cv_as_comdat_group_group
=no
25418 case "${target}" in
25419 # Sun as uses a completely different syntax.
25421 case "${target}" in
25422 sparc
*-*-solaris2*)
25424 .group foo,".text%foo",#comdat
25425 .section ".text%foo", #alloc,#execinstr,#progbits
25430 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25432 .group foo,.text%foo,#comdat
25433 .section .text%foo, "ax", @progbits
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25440 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25441 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25442 $as_echo_n "(cached) " >&6
25444 gcc_cv_as_comdat_group_group
=no
25445 if test x
$gcc_cv_as != x
; then
25446 $as_echo "$conftest_s" > conftest.s
25447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25449 (eval $ac_try) 2>&5
25451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25452 test $ac_status = 0; }; }
25454 gcc_cv_as_comdat_group_group
=yes
25456 echo "configure: failed program was" >&5
25459 rm -f conftest.o conftest.s
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25463 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25468 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25469 gcc_cv_as_comdat_group_group
=no
25473 if test x
"$ld_is_gold" = xyes
; then
25475 elif test $in_tree_ld = yes ; then
25477 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 \
25478 && test $in_tree_ld_is_elf = yes; then
25481 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25483 if test 0"$ld_date" -lt 20050308; then
25484 if test -n "$ld_date"; then
25485 # If there was date string, but was earlier than 2005-03-08, fail
25487 elif test "$ld_vers_major" -lt 2; then
25489 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25494 case "${target}" in
25495 *-*-solaris2.1
[1-9]*)
25497 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25498 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25501 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25502 # least ld version 1.2267.
25503 if test "$ld_vers_major" -gt 1; then
25505 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25507 elif test "$ld_vers_minor" -ge 2267; then
25512 # Assume linkers other than GNU ld don't support COMDAT group.
25517 # Allow overriding the automatic COMDAT group tests above.
25518 # Check whether --enable-comdat was given.
25519 if test "${enable_comdat+set}" = set; then :
25520 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25523 if test $comdat_group = no
; then
25524 gcc_cv_as_comdat_group
=no
25525 gcc_cv_as_comdat_group_percent
=no
25526 gcc_cv_as_comdat_group_group
=no
25529 cat >>confdefs.h
<<_ACEOF
25530 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25531 || test $gcc_cv_as_comdat_group_percent = yes \
25532 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25536 # Restrict this test to Solaris/x86: other targets define this statically.
25537 case "${target}" in
25538 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25540 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25541 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25542 hidden_linkonce
=yes
25544 case "${target}" in
25545 # Full support for hidden thunks in linkonce sections only appeared in
25546 # Solaris 11/OpenSolaris.
25547 *-*-solaris2.1
[1-9]*)
25548 hidden_linkonce
=yes
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25556 $as_echo "$hidden_linkonce" >&6; }
25558 cat >>confdefs.h
<<_ACEOF
25559 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25566 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25567 if ${gcc_cv_as_is_stmt+:} false
; then :
25568 $as_echo_n "(cached) " >&6
25570 gcc_cv_as_is_stmt
=no
25571 if test $in_tree_gas = yes; then
25572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
25573 then gcc_cv_as_is_stmt
=yes
25575 elif test x
$gcc_cv_as != x
; then
25578 .loc 1 1 0 is_stmt 1' > conftest.s
25579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25586 gcc_cv_as_is_stmt
=yes
25588 echo "configure: failed program was" >&5
25591 rm -f conftest.o conftest.s
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25595 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25596 if test $gcc_cv_as_is_stmt = yes; then
25598 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25604 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25605 if ${gcc_cv_as_discriminator+:} false
; then :
25606 $as_echo_n "(cached) " >&6
25608 gcc_cv_as_discriminator
=no
25609 if test $in_tree_gas = yes; then
25610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
25611 then gcc_cv_as_discriminator
=yes
25613 elif test x
$gcc_cv_as != x
; then
25616 .loc 1 1 0 discriminator 1' > conftest.s
25617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25624 gcc_cv_as_discriminator
=yes
25626 echo "configure: failed program was" >&5
25629 rm -f conftest.o conftest.s
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25633 $as_echo "$gcc_cv_as_discriminator" >&6; }
25634 if test $gcc_cv_as_discriminator = yes; then
25636 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25641 # Catch the newlib flag of the same name so we can gate GCC features on it.
25642 # Check whether --enable-newlib-nano-formatted-io was given.
25643 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25644 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25648 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25654 # Thread-local storage - the check is heavily parameterized.
25662 .section ".tdata","awT",@progbits
25665 ldq $27,__tls_get_addr($29) !literal!1
25666 lda $16,foo($29) !tlsgd!1
25667 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25668 ldq $27,__tls_get_addr($29) !literal!2
25669 lda $16,foo($29) !tlsldm!2
25670 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25671 ldq $1,foo($29) !gotdtprel
25672 ldah $2,foo($29) !dtprelhi
25673 lda $3,foo($2) !dtprello
25674 lda $4,foo($29) !dtprel
25675 ldq $1,foo($29) !gottprel
25676 ldah $2,foo($29) !tprelhi
25677 lda $3,foo($2) !tprello
25678 lda $4,foo($29) !tprel'
25681 tls_as_opt
=--fatal-warnings
25685 add_s r0,r0, @foo@tpoff'
25689 cris-
*-*|crisv32-
*-*)
25691 .section ".tdata","awT",@progbits
25698 tls_as_opt
=--fatal-warnings
25702 .section ".tdata","awT",@progbits
25705 call #gettlsoff(x)'
25714 .section ".tdata","awT",@progbits
25718 addil LT%foo-$tls_gdidx$,gp
25719 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25722 addil LT%foo-$tls_ldidx$,gp
25724 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25725 addil LR%foo-$tls_dtpoff$,%ret0
25726 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25728 addil LT%foo-$tls_ieoff$,gp
25729 ldw RT%foo-$tls_ieoff$(%r1),%t2
25732 addil LR%foo-$tls_leoff$,%t1
25733 ldo RR%foo-$tls_leoff$(%r1),%t2'
25736 tls_as_opt
=--fatal-warnings
25740 .section ".tdata","awT",%progbits
25743 .word foo(gottpoff)
25751 i
[34567]86-*-* | x86_64-
*-*)
25753 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25760 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25762 .section .tdata,"awt",@progbits'
25767 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25771 .section ".tdata","awT",@progbits'
25775 tls_as_opt
="--fatal-warnings"
25779 if test x
$on_solaris = xyes
; then
25781 yes) tls_as_opt
="$tls_as_opt --32" ;;
25784 conftest_s
="$conftest_s
25788 leal foo@tlsgd(,%ebx,1), %eax
25789 leal foo@tlsldm(%ebx), %eax
25790 leal foo@dtpoff(%eax), %edx
25791 movl foo@gottpoff(%ebx), %eax
25792 subl foo@gottpoff(%ebx), %eax
25793 addl foo@gotntpoff(%ebx), %eax
25794 movl foo@indntpoff, %eax
25795 movl \$foo@tpoff, %eax
25796 subl \$foo@tpoff, %eax
25797 leal foo@ntpoff(%ecx), %eax"
25800 if test x
$on_solaris = xyes
; then
25802 yes) tls_as_opt
="$tls_as_opt --64" ;;
25803 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25806 conftest_s
="$conftest_s
25810 leaq foo@tlsgd(%rip), %rdi
25811 leaq foo@tlsld(%rip), %rdi
25812 leaq foo@dtpoff(%rax), %rdx
25813 movq foo@gottpoff(%rip), %rax
25814 movq \$foo@tpoff, %rax"
25820 .section ".tdata","awT",@progbits
25823 addl r16 = @ltoff(@dtpmod(foo#)), gp
25824 addl r17 = @ltoff(@dtprel(foo#)), gp
25825 addl r18 = @ltoff(@tprel(foo#)), gp
25826 addl r19 = @dtprel(foo#), gp
25827 adds r21 = @dtprel(foo#), r13
25828 movl r23 = @dtprel(foo#)
25829 addl r20 = @tprel(foo#), gp
25830 adds r22 = @tprel(foo#), r13
25831 movl r24 = @tprel(foo#)'
25834 tls_as_opt
=--fatal-warnings
25838 .section .tdata,"awT",@progbits
25842 addik r5,r20,x@TLSGD
25843 addik r5,r20,x@TLSLDM'
25846 tls_as_opt
='--fatal-warnings'
25850 .section .tdata,"awT",@progbits
25854 addiu $4, $28, %tlsgd(x)
25855 addiu $4, $28, %tlsldm(x)
25856 lui $4, %dtprel_hi(x)
25857 addiu $4, $4, %dtprel_lo(x)
25858 lw $4, %gottprel(x)($28)
25859 lui $4, %tprel_hi(x)
25860 addiu $4, $4, %tprel_lo(x)'
25863 tls_as_opt
='-32 --fatal-warnings'
25867 .section .tdata,"awT",@progbits
25872 move.l x@TLSGD(%a5),%a0
25873 move.l x@TLSLDM(%a5),%a0
25874 move.l x@TLSLDO(%a5),%a0
25875 move.l x@TLSIE(%a5),%a0
25876 move.l x@TLSLE(%a5),%a0'
25879 tls_as_opt
='--fatal-warnings'
25883 .section ".tdata","awT",@progbits'
25886 tls_as_opt
="--fatal-warnings"
25890 .section ".tdata","awT",%progbits
25894 add x0, x0, #:tlsgd_lo12:x
25899 tls_as_opt
='--fatal-warnings'
25903 .section ".tdata","awT",@progbits
25906 l.movhi r3, tpoffha(foo)
25908 l.lwz r4, tpofflo(foo)(r3)'
25911 tls_as_opt
=--fatal-warnings
25915 .extern __get_tpointer
25933 .section ".tdata","awT",@progbits
25941 addi 3,2,ld0@got@tlsgd
25947 addi 3,2,x1@got@tlsld
25953 addis 9,3,x2@dtprel@ha
25954 addi 9,9,x2@dtprel@l
25957 ld 9,x3@got@dtprel(2)
25963 tls_as_opt
="-a64 --fatal-warnings"
25967 .section ".tdata","awT",@progbits
25975 addi 3,31,ld0@got@tlsgd
25977 addi 3,31,x1@got@tlsld
25980 addis 9,3,x2@dtprel@ha
25981 addi 9,9,x2@dtprel@l
25982 lwz 9,x3@got@tprel(31)
25985 addis 9,2,x2@tprel@ha
25986 addi 9,9,x2@tprel@l'
25989 tls_as_opt
="-a32 --fatal-warnings"
25993 .section .tdata,"awT",@progbits
25997 call __tls_get_addr'
26000 tls_as_opt
='--fatal-warnings'
26004 .section ".tdata","awT",@progbits
26011 .long foo@GOTNTPOFF
26012 .long foo@INDNTPOFF
26013 l %r1,foo@GOTNTPOFF(%r12)
26014 l %r1,0(%r1):tls_load:foo
26015 bas %r14,0(%r1,%r13):tls_gdcall:foo
26016 bas %r14,0(%r1,%r13):tls_ldcall:foo'
26019 tls_as_opt
="-m31 --fatal-warnings"
26023 .section ".tdata","awT",@progbits
26030 .quad foo@GOTNTPOFF
26031 lg %r1,foo@GOTNTPOFF(%r12)
26032 larl %r1,foo@INDNTPOFF
26033 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
26034 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
26037 tls_as_opt
="-m64 -Aesame --fatal-warnings"
26039 sh-
*-* | sh
[123456789lbe
]*-*-*)
26041 .section ".tdata","awT",@progbits
26051 tls_as_opt
=--fatal-warnings
26055 sparc
*-sun-solaris2.
*)
26062 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
26064 .section ".tdata",#alloc,#write,#tls'
26069 .section ".tdata","awT",@progbits'
26072 tls_as_opt
="-32 --fatal-warnings"
26074 conftest_s
="$conftest_s
26077 sethi %tgd_hi22(foo), %o0
26078 add %o0, %tgd_lo10(foo), %o1
26079 add %l7, %o1, %o0, %tgd_add(foo)
26080 call __tls_get_addr, %tgd_call(foo)
26081 sethi %tldm_hi22(foo), %l1
26082 add %l1, %tldm_lo10(foo), %l2
26083 add %l7, %l2, %o0, %tldm_add(foo)
26084 call __tls_get_addr, %tldm_call(foo)
26085 sethi %tldo_hix22(foo), %l3
26086 xor %l3, %tldo_lox10(foo), %l4
26087 add %o0, %l4, %l5, %tldo_add(foo)
26088 sethi %tie_hi22(foo), %o3
26089 add %o3, %tie_lo10(foo), %o3
26090 ld [%l7 + %o3], %o2, %tie_ld(foo)
26091 add %g7, %o2, %o4, %tie_add(foo)
26092 sethi %tle_hix22(foo), %l1
26093 xor %l1, %tle_lox10(foo), %o5
26094 ld [%g7 + %o5], %o1"
26098 .section ".tdata","awT",@progbits
26101 addli r0, zero, tls_gd(foo)
26102 auli r0, zero, tls_gd_ha16(foo)
26103 addli r0, r0, tls_gd_lo16(foo)
26105 addli r0, zero, tls_ie(foo)
26106 auli r0, r0, tls_ie_ha16(foo)
26107 addli r0, r0, tls_ie_lo16(foo)'
26110 tls_as_opt
="--fatal-warnings"
26114 .section ".tdata","awT",@progbits
26117 shl16insli r0, zero, hw0_last_tls_gd(foo)
26118 shl16insli r0, zero, hw1_last_tls_gd(foo)
26119 shl16insli r0, r0, hw0_tls_gd(foo)
26121 shl16insli r0, zero, hw1_last_tls_ie(foo)
26122 shl16insli r0, r0, hw0_tls_ie(foo)'
26125 tls_as_opt
="--fatal-warnings"
26129 .section ".tdata","awT",@progbits
26132 movi a8, foo@TLSFUNC
26133 movi a10, foo@TLSARG
26134 callx8.tls a8, foo@TLSCALL'
26140 if test "x$enable_tls" = xno
; then
26141 : # TLS explicitly disabled.
26142 elif test "x$enable_tls" = xyes
; then
26143 set_have_as_tls
=yes # TLS explicitly enabled.
26144 elif test -z "$tls_first_major"; then
26145 : # If we don't have a check, assume no support.
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26148 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26149 if ${gcc_cv_as_tls+:} false
; then :
26150 $as_echo_n "(cached) " >&6
26153 if test $in_tree_gas = yes; then
26154 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
26155 then gcc_cv_as_tls
=yes
26157 elif test x
$gcc_cv_as != x
; then
26158 $as_echo "$conftest_s" > conftest.s
26159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26161 (eval $ac_try) 2>&5
26163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26164 test $ac_status = 0; }; }
26168 echo "configure: failed program was" >&5
26171 rm -f conftest.o conftest.s
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26175 $as_echo "$gcc_cv_as_tls" >&6; }
26176 if test $gcc_cv_as_tls = yes; then
26177 set_have_as_tls
=yes
26181 if test $set_have_as_tls = yes ; then
26183 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26187 # Target-specific assembler checks.
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26190 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26191 gcc_cv_ld_static_dynamic
=no
26192 gcc_cv_ld_static_option
='-Bstatic'
26193 gcc_cv_ld_dynamic_option
='-Bdynamic'
26194 if test $in_tree_ld = yes ; then
26195 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
26196 gcc_cv_ld_static_dynamic
=yes
26198 elif test x
$gcc_cv_ld != x
; then
26199 # Check if linker supports -Bstatic/-Bdynamic option
26200 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
26201 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
26202 gcc_cv_ld_static_dynamic
=yes
26205 # AIX ld uses -b flags
26206 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
26207 gcc_cv_ld_static_dynamic
=yes
26208 gcc_cv_ld_static_option
="-bstatic"
26209 gcc_cv_ld_dynamic_option
="-bdynamic"
26211 # HP-UX ld uses -a flags to select between shared and archive.
26213 if test x
"$gnu_ld" = xno
; then
26214 gcc_cv_ld_static_dynamic
=yes
26215 gcc_cv_ld_static_option
="-aarchive_shared"
26216 gcc_cv_ld_dynamic_option
="-adefault"
26219 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26221 gcc_cv_ld_static_dynamic
=yes
26226 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
26228 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26231 cat >>confdefs.h
<<_ACEOF
26232 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26236 cat >>confdefs.h
<<_ACEOF
26237 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26242 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26245 $as_echo_n "checking linker --version-script option... " >&6; }
26246 gcc_cv_ld_version_script
=no
26247 ld_version_script_option
=''
26248 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26249 gcc_cv_ld_version_script
=yes
26250 ld_version_script_option
='--version-script'
26251 elif test x
$gcc_cv_ld != x
; then
26253 # Solaris 2 ld always supports -M. It also supports a subset of
26254 # --version-script since Solaris 11.4, but requires
26255 # -z gnu-version-script-compat to activate.
26257 gcc_cv_ld_version_script
=yes
26258 ld_version_script_option
='-M'
26262 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26264 $as_echo "$gcc_cv_ld_version_script" >&6; }
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26268 $as_echo_n "checking linker soname option... " >&6; }
26269 gcc_cv_ld_soname
=no
26270 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26271 gcc_cv_ld_soname
=yes
26272 ld_soname_option
='-soname'
26273 elif test x
$gcc_cv_ld != x
; then
26276 gcc_cv_ld_soname
=yes
26277 ld_soname_option
='-install_name'
26279 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26280 # ld compatiblity since some Solaris 10 update.
26282 gcc_cv_ld_soname
=yes
26283 ld_soname_option
='-h'
26287 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26289 $as_echo "$gcc_cv_ld_soname" >&6; }
26292 if test x
"$demangler_in_ld" = xyes
; then
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26294 $as_echo_n "checking linker --demangle support... " >&6; }
26295 gcc_cv_ld_demangle
=no
26296 if test $in_tree_ld = yes; then
26297 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 \
26298 gcc_cv_ld_demangle
=yes
26300 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26301 # Check if the GNU linker supports --demangle option
26302 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26303 gcc_cv_ld_demangle
=yes
26306 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26308 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26312 $as_echo "$gcc_cv_ld_demangle" >&6; }
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26316 $as_echo_n "checking linker plugin support... " >&6; }
26317 gcc_cv_lto_plugin
=0
26318 if test -f liblto_plugin.la
; then
26319 save_ld_ver
="$ld_ver"
26320 save_ld_vers_major
="$ld_vers_major"
26321 save_ld_vers_minor
="$ld_vers_minor"
26322 save_ld_is_gold
="$ld_is_gold"
26326 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26328 # FIXME: ld_is_gold?
26329 ld_vers_major
="$gcc_cv_gld_major_version"
26330 ld_vers_minor
="$gcc_cv_gld_minor_version"
26332 # Determine plugin linker version.
26333 # FIXME: Partial duplicate from above, generalize.
26334 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26335 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26336 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26338 ld_vers
=`echo $ld_ver | sed -n \
26339 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26341 ld_vers
=`echo $ld_ver | sed -n \
26342 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26344 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26345 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26349 # Determine plugin support.
26350 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26351 # Require GNU ld or gold 2.21+ for plugin support by default.
26352 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26353 gcc_cv_lto_plugin
=2
26354 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26355 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26356 gcc_cv_lto_plugin
=1
26360 ld_ver
="$save_ld_ver"
26361 ld_vers_major
="$save_ld_vers_major"
26362 ld_vers_minor
="$save_ld_vers_minor"
26363 ld_is_gold
="$save_ld_is_gold"
26366 cat >>confdefs.h
<<_ACEOF
26367 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26371 $as_echo "$gcc_cv_lto_plugin" >&6; }
26373 # Target OS-specific assembler checks.
26375 case "$target_os" in
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26378 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26379 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26380 $as_echo_n "(cached) " >&6
26382 gcc_cv_as_mmacosx_version_min
=no
26383 if test x
$gcc_cv_as != x
; then
26384 $as_echo '.text' > conftest.s
26385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }
26392 gcc_cv_as_mmacosx_version_min
=yes
26394 echo "configure: failed program was" >&5
26397 rm -f conftest.o conftest.s
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26401 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26402 if test $gcc_cv_as_mmacosx_version_min = yes; then
26404 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26411 # Target CPU-specific assembler checks.
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26416 $as_echo_n "checking assembler for -mabi option... " >&6; }
26417 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26418 $as_echo_n "(cached) " >&6
26420 gcc_cv_as_aarch64_mabi
=no
26421 if test x
$gcc_cv_as != x
; then
26422 $as_echo '.text' > conftest.s
26423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26425 (eval $ac_try) 2>&5
26427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26428 test $ac_status = 0; }; }
26430 gcc_cv_as_aarch64_mabi
=yes
26432 echo "configure: failed program was" >&5
26435 rm -f conftest.o conftest.s
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26439 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26442 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26444 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26447 if test x
$with_abi = xilp32
; then
26448 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26449 Upgrade the Assembler." "$LINENO" 5
26451 if test x
"$with_multilib_list" = xdefault
; then
26452 TM_MULTILIB_CONFIG
=lp64
26454 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26455 for aarch64_multilib
in ${aarch64_multilibs}; do
26456 case ${aarch64_multilib} in
26458 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26459 Upgrade the Assembler." "$LINENO" 5
26467 # Check if we have binutils support for relocations types needed by -fpic
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26469 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26470 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26471 $as_echo_n "(cached) " >&6
26473 gcc_cv_as_aarch64_picreloc
=no
26474 if test x
$gcc_cv_as != x
; then
26477 ldr x0, [x2, #:gotpage_lo15:globalsym]
26479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26481 (eval $ac_try) 2>&5
26483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26484 test $ac_status = 0; }; }
26486 gcc_cv_as_aarch64_picreloc
=yes
26488 echo "configure: failed program was" >&5
26491 rm -f conftest.o conftest.s
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26495 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26496 if test $gcc_cv_as_aarch64_picreloc = yes; then
26498 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26502 # Enable Branch Target Identification Mechanism and Return Address
26503 # Signing by default.
26504 # Check whether --enable-standard-branch-protection was given.
26505 if test "${enable_standard_branch_protection+set}" = set; then :
26506 enableval
=$enable_standard_branch_protection;
26509 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26514 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26515 Valid choices are 'yes' and 'no'." "$LINENO" 5
26521 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26522 # Check whether --enable-fix-cortex-a53-835769 was given.
26523 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26524 enableval
=$enable_fix_cortex_a53_835769;
26527 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26532 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26533 Valid choices are 'yes' and 'no'." "$LINENO" 5
26540 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26541 # Check whether --enable-fix-cortex-a53-843419 was given.
26542 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26543 enableval
=$enable_fix_cortex_a53_843419;
26546 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26551 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26552 Valid choices are 'yes' and 'no'." "$LINENO" 5
26561 # All TARGET_ABI_OSF targets.
26562 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26564 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26565 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26566 $as_echo_n "(cached) " >&6
26568 gcc_cv_as_alpha_explicit_relocs
=no
26569 if test $in_tree_gas = yes; then
26570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
26571 then gcc_cv_as_alpha_explicit_relocs
=yes
26573 elif test x
$gcc_cv_as != x
; then
26574 $as_echo ' .set nomacro
26576 extbl $3, $2, $3 !lituse_bytoff!1
26577 ldq $2, a($29) !literal!1
26578 ldq $4, b($29) !literal!2
26579 ldq_u $3, 0($2) !lituse_base!1
26580 ldq $27, f($29) !literal!5
26581 jsr $26, ($27), f !lituse_jsr!5
26582 ldah $29, 0($26) !gpdisp!3
26583 lda $0, c($29) !gprel
26584 ldah $1, d($29) !gprelhigh
26585 lda $1, d($1) !gprellow
26586 lda $29, 0($29) !gpdisp!3' > conftest.s
26587 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26594 gcc_cv_as_alpha_explicit_relocs
=yes
26596 echo "configure: failed program was" >&5
26599 rm -f conftest.o conftest.s
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26603 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26604 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26606 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26611 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26612 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26613 $as_echo_n "(cached) " >&6
26615 gcc_cv_as_alpha_jsrdirect_relocs
=no
26616 if test $in_tree_gas = yes; then
26617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
26618 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
26620 elif test x
$gcc_cv_as != x
; then
26621 $as_echo ' .set nomacro
26623 ldq $27, a($29) !literal!1
26624 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; }
26632 gcc_cv_as_alpha_jsrdirect_relocs
=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_alpha_jsrdirect_relocs" >&5
26641 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26642 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26644 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26652 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26653 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26654 $as_echo_n "(cached) " >&6
26656 gcc_cv_as_avr_mlink_relax
=no
26657 if test x
$gcc_cv_as != x
; then
26658 $as_echo '.text' > conftest.s
26659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26661 (eval $ac_try) 2>&5
26663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26664 test $ac_status = 0; }; }
26666 gcc_cv_as_avr_mlink_relax
=yes
26668 echo "configure: failed program was" >&5
26671 rm -f conftest.o conftest.s
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26675 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26676 if test $gcc_cv_as_avr_mlink_relax = yes; then
26678 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26684 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26685 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26686 $as_echo_n "(cached) " >&6
26688 gcc_cv_as_avr_mrmw
=no
26689 if test x
$gcc_cv_as != x
; then
26690 $as_echo '.text' > conftest.s
26691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26693 (eval $ac_try) 2>&5
26695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26696 test $ac_status = 0; }; }
26698 gcc_cv_as_avr_mrmw
=yes
26700 echo "configure: failed program was" >&5
26703 rm -f conftest.o conftest.s
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26707 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26708 if test $gcc_cv_as_avr_mrmw = yes; then
26710 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26716 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26717 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26718 $as_echo_n "(cached) " >&6
26720 gcc_cv_as_avr_mgccisr
=no
26721 if test x
$gcc_cv_as != x
; then
26727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; }
26734 gcc_cv_as_avr_mgccisr
=yes
26736 echo "configure: failed program was" >&5
26739 rm -f conftest.o conftest.s
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26743 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26744 if test $gcc_cv_as_avr_mgccisr = yes; then
26746 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26751 # Check how default linker description file implements .rodata for
26752 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26753 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26755 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26756 cat > conftest.s
<<EOF
26757 .section .rodata,"a",@progbits
26759 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26764 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26770 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26772 (eval $ac_try) 2>&5
26774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26775 test $ac_status = 0; }; }
26776 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26778 (eval $ac_try) 2>&5
26780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26781 test $ac_status = 0; }; }
26782 if test -s conftest.nm
26784 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26786 $as_echo "yes" >&6; }
26788 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26792 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26793 echo "$as_me: nm output was" >&5
26794 cat conftest.nm
>&5
26795 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26796 { $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
26797 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26801 $as_echo "test failed" >&6; }
26802 echo "$as_me: failed program was" >&5
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26805 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26807 rm -f conftest.s conftest.o conftest.elf conftest.nm
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26812 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26813 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26814 $as_echo_n "(cached) " >&6
26816 gcc_cv_as_cris_no_mul_bug
=no
26817 if test $in_tree_gas = yes; then
26818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26819 then gcc_cv_as_cris_no_mul_bug
=yes
26821 elif test x
$gcc_cv_as != x
; then
26822 $as_echo '.text' > conftest.s
26823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26825 (eval $ac_try) 2>&5
26827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26828 test $ac_status = 0; }; }
26830 gcc_cv_as_cris_no_mul_bug
=yes
26832 echo "configure: failed program was" >&5
26835 rm -f conftest.o conftest.s
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26839 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26840 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26842 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26850 $as_echo_n "checking assembler for -relax option... " >&6; }
26851 if ${gcc_cv_as_sparc_relax+:} false
; then :
26852 $as_echo_n "(cached) " >&6
26854 gcc_cv_as_sparc_relax
=no
26855 if test x
$gcc_cv_as != x
; then
26856 $as_echo '.text' > conftest.s
26857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26859 (eval $ac_try) 2>&5
26861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26862 test $ac_status = 0; }; }
26864 gcc_cv_as_sparc_relax
=yes
26866 echo "configure: failed program was" >&5
26869 rm -f conftest.o conftest.s
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26873 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26874 if test $gcc_cv_as_sparc_relax = yes; then
26876 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26882 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26883 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26884 $as_echo_n "(cached) " >&6
26886 gcc_cv_as_sparc_gotdata_op
=no
26887 if test x
$gcc_cv_as != x
; then
26893 sethi %gdop_hix22(foo), %g1
26894 xor %g1, %gdop_lox10(foo), %g1
26895 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26896 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26898 (eval $ac_try) 2>&5
26900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26901 test $ac_status = 0; }; }
26903 if test x
$gcc_cv_ld != x \
26904 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26905 if test x
$gcc_cv_objdump != x
; then
26906 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26907 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26908 gcc_cv_as_sparc_gotdata_op
=no
26910 gcc_cv_as_sparc_gotdata_op
=yes
26916 echo "configure: failed program was" >&5
26919 rm -f conftest.o conftest.s
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26923 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26924 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26926 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26932 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26933 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26934 $as_echo_n "(cached) " >&6
26936 gcc_cv_as_sparc_ua_pcrel
=no
26937 if test x
$gcc_cv_as != x
; then
26944 .uaword %r_disp32(foo)' > conftest.s
26945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26947 (eval $ac_try) 2>&5
26949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26950 test $ac_status = 0; }; }
26952 if test x
$gcc_cv_ld != x \
26953 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26954 gcc_cv_as_sparc_ua_pcrel
=yes
26958 echo "configure: failed program was" >&5
26961 rm -f conftest.o conftest.s
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26965 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26966 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26968 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26972 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26973 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26974 $as_echo_n "(cached) " >&6
26976 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26977 if test x
$gcc_cv_as != x
; then
26981 .uaword %r_disp32(foo)
26982 .byte 0x32, 0x33, 0x34
26986 .skip 4' > conftest.s
26987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26989 (eval $ac_try) 2>&5
26991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26992 test $ac_status = 0; }; }
26994 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26995 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26996 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26997 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26998 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26999 |
grep 'DISP32' > /dev
/null
2>&1; then
27002 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
27007 echo "configure: failed program was" >&5
27010 rm -f conftest.o conftest.s
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
27014 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
27015 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
27017 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
27023 # unaligned pcrel relocs
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
27026 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
27027 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
27028 $as_echo_n "(cached) " >&6
27030 gcc_cv_as_sparc_offsetable_lo10
=no
27031 if test x
$gcc_cv_as != x
; then
27033 or %g1, %lo(ab) + 12, %g1
27034 or %g1, %lo(ab + 12), %g1' > conftest.s
27035 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
27036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27037 (eval $ac_try) 2>&5
27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; }
27042 if test x
$gcc_cv_objdump != x \
27043 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
27044 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
27045 gcc_cv_as_sparc_offsetable_lo10
=yes
27048 echo "configure: failed program was" >&5
27051 rm -f conftest.o conftest.s
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
27055 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
27056 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
27058 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
27064 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
27065 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
27066 $as_echo_n "(cached) " >&6
27068 gcc_cv_as_sparc_fmaf
=no
27069 if test x
$gcc_cv_as != x
; then
27071 .register %g2, #scratch
27072 .register %g3, #scratch
27074 fmaddd %f0, %f2, %f4, %f6
27075 addxccc %g1, %g2, %g3
27076 fsrl32 %f2, %f4, %f8
27077 fnaddd %f10, %f12, %f14' > conftest.s
27078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
27079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27080 (eval $ac_try) 2>&5
27082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27083 test $ac_status = 0; }; }
27085 gcc_cv_as_sparc_fmaf
=yes
27087 echo "configure: failed program was" >&5
27090 rm -f conftest.o conftest.s
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
27094 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
27095 if test $gcc_cv_as_sparc_fmaf = yes; then
27097 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
27103 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
27104 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
27105 $as_echo_n "(cached) " >&6
27107 gcc_cv_as_sparc_sparc4
=no
27108 if test x
$gcc_cv_as != x
; then
27110 .register %g2, #scratch
27111 .register %g3, #scratch
27114 1: cwbneg %g2, %g3, 1f
27117 aes_kexpand0 %f4, %f6, %f8
27118 des_round %f38, %f40, %f42, %f44
27119 camellia_f %f54, %f56, %f58, %f60
27120 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
27121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -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_sparc_sparc4
=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_sparc_sparc4" >&5
27137 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27138 if test $gcc_cv_as_sparc_sparc4 = yes; then
27140 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27146 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27147 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
27148 $as_echo_n "(cached) " >&6
27150 gcc_cv_as_sparc_sparc5
=no
27151 if test x
$gcc_cv_as != x
; then
27153 .register %g2, #scratch
27154 .register %g3, #scratch
27156 subxc %g1, %g2, %g3
27157 fpadd8 %f0, %f2, %f4' > conftest.s
27158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
27159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27160 (eval $ac_try) 2>&5
27162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27163 test $ac_status = 0; }; }
27165 gcc_cv_as_sparc_sparc5
=yes
27167 echo "configure: failed program was" >&5
27170 rm -f conftest.o conftest.s
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27174 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27175 if test $gcc_cv_as_sparc_sparc5 = yes; then
27177 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27183 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27184 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
27185 $as_echo_n "(cached) " >&6
27187 gcc_cv_as_sparc_sparc6
=no
27188 if test x
$gcc_cv_as != x
; then
27190 .register %g2, #scratch
27191 .register %g3, #scratch
27194 fpsll64x %f0, %f2, %f4' > conftest.s
27195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27197 (eval $ac_try) 2>&5
27199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200 test $ac_status = 0; }; }
27202 gcc_cv_as_sparc_sparc6
=yes
27204 echo "configure: failed program was" >&5
27207 rm -f conftest.o conftest.s
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27211 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27212 if test $gcc_cv_as_sparc_sparc6 = yes; then
27214 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27220 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27221 if ${gcc_cv_as_sparc_leon+:} false
; then :
27222 $as_echo_n "(cached) " >&6
27224 gcc_cv_as_sparc_leon
=no
27225 if test x
$gcc_cv_as != x
; then
27227 .register %g2, #scratch
27228 .register %g3, #scratch
27232 casa [%g2] 0xb, %g3, %g1' > conftest.s
27233 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27235 (eval $ac_try) 2>&5
27237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27238 test $ac_status = 0; }; }
27240 gcc_cv_as_sparc_leon
=yes
27242 echo "configure: failed program was" >&5
27245 rm -f conftest.o conftest.s
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27249 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27250 if test $gcc_cv_as_sparc_leon = yes; then
27252 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27258 i
[34567]86-*-* | x86_64-
*-*)
27261 # Full C++ conformance when using a shared libstdc++-v3 requires some
27262 # support from the Cygwin DLL, which in more recent versions exports
27263 # wrappers to aid in interposing and redirecting operators new, delete,
27264 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27265 # are configuring for a version of Cygwin that exports the wrappers.
27266 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
27267 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27268 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
27269 gcc_ac_cygwin_dll_wrappers
=yes
27271 gcc_ac_cygwin_dll_wrappers
=no
27275 # Can't check presence of libc functions during cross-compile, so
27276 # we just have to assume we're building for an up-to-date target.
27277 gcc_ac_cygwin_dll_wrappers
=yes
27280 cat >>confdefs.h
<<_ACEOF
27281 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27286 cygwin
* | pe | mingw32
*)
27287 # Recent binutils allows the three-operand form of ".comm" on PE. This
27288 # definition is used unconditionally to initialise the default state of
27289 # the target option variable that governs usage of the feature.
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27291 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27292 if ${gcc_cv_as_comm_has_align+:} false
; then :
27293 $as_echo_n "(cached) " >&6
27295 gcc_cv_as_comm_has_align
=no
27296 if test $in_tree_gas = yes; then
27297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27298 then gcc_cv_as_comm_has_align
=yes
27300 elif test x
$gcc_cv_as != x
; then
27301 $as_echo '.comm foo,1,32' > conftest.s
27302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27304 (eval $ac_try) 2>&5
27306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27307 test $ac_status = 0; }; }
27309 gcc_cv_as_comm_has_align
=yes
27311 echo "configure: failed program was" >&5
27314 rm -f conftest.o conftest.s
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27318 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27322 cat >>confdefs.h
<<_ACEOF
27323 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27326 # Used for DWARF 2 in PE
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27328 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27329 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27330 $as_echo_n "(cached) " >&6
27332 gcc_cv_as_ix86_pe_secrel32
=no
27333 if test $in_tree_gas = yes; then
27334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
27335 then gcc_cv_as_ix86_pe_secrel32
=yes
27337 elif test x
$gcc_cv_as != x
; then
27341 .secrel32 foo' > conftest.s
27342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27344 (eval $ac_try) 2>&5
27346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27347 test $ac_status = 0; }; }
27349 if test x
$gcc_cv_ld != x \
27350 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27351 gcc_cv_as_ix86_pe_secrel32
=yes
27355 echo "configure: failed program was" >&5
27358 rm -f conftest.o conftest.s
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27362 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27363 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27365 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27369 # Test if the assembler supports the extended form of the .section
27370 # directive that specifies section alignment. LTO support uses this,
27371 # but normally only after installation, so we warn but don't fail the
27372 # configure if LTO is enabled but the assembler does not support it.
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27374 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27375 if ${gcc_cv_as_section_has_align+:} false
; then :
27376 $as_echo_n "(cached) " >&6
27378 gcc_cv_as_section_has_align
=no
27379 if test $in_tree_gas = yes; then
27380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
27381 then gcc_cv_as_section_has_align
=yes
27383 elif test x
$gcc_cv_as != x
; then
27384 $as_echo '.section lto_test,"dr0"' > conftest.s
27385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27387 (eval $ac_try) 2>&5
27389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27390 test $ac_status = 0; }; }
27392 gcc_cv_as_section_has_align
=yes
27394 echo "configure: failed program was" >&5
27397 rm -f conftest.o conftest.s
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27401 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27404 if test x
$gcc_cv_as_section_has_align != xyes
; then
27405 case ",$enable_languages," in
27407 { $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
27408 $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;}
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27416 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27417 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27418 $as_echo_n "(cached) " >&6
27420 gcc_cv_as_ix86_xbrace_comment
=no
27421 if test x
$gcc_cv_as != x
; then
27422 $as_echo '.text' > conftest.s
27423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27425 (eval $ac_try) 2>&5
27427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27428 test $ac_status = 0; }; }
27430 gcc_cv_as_ix86_xbrace_comment
=yes
27432 echo "configure: failed program was" >&5
27435 rm -f conftest.o conftest.s
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27439 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27440 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27442 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27448 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27449 if ${gcc_cv_as_ix86_filds+:} false
; then :
27450 $as_echo_n "(cached) " >&6
27452 gcc_cv_as_ix86_filds
=no
27453 if test x
$gcc_cv_as != x
; then
27454 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27457 (eval $ac_try) 2>&5
27459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27460 test $ac_status = 0; }; }
27462 gcc_cv_as_ix86_filds
=yes
27464 echo "configure: failed program was" >&5
27467 rm -f conftest.o conftest.s
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27471 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27472 if test $gcc_cv_as_ix86_filds = yes; then
27474 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27480 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27481 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27482 $as_echo_n "(cached) " >&6
27484 gcc_cv_as_ix86_fildq
=no
27485 if test x
$gcc_cv_as != x
; then
27486 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27489 (eval $ac_try) 2>&5
27491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27492 test $ac_status = 0; }; }
27494 gcc_cv_as_ix86_fildq
=yes
27496 echo "configure: failed program was" >&5
27499 rm -f conftest.o conftest.s
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27503 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27504 if test $gcc_cv_as_ix86_fildq = yes; then
27506 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27512 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27513 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27514 $as_echo_n "(cached) " >&6
27516 gcc_cv_as_ix86_cmov_sun_syntax
=no
27517 if test x
$gcc_cv_as != x
; then
27518 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27521 (eval $ac_try) 2>&5
27523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27524 test $ac_status = 0; }; }
27526 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27528 echo "configure: failed program was" >&5
27531 rm -f conftest.o conftest.s
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27535 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27536 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27538 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27544 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27545 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27546 $as_echo_n "(cached) " >&6
27548 gcc_cv_as_ix86_ffreep
=no
27549 if test x
$gcc_cv_as != x
; then
27550 $as_echo 'ffreep %st(1)' > conftest.s
27551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27553 (eval $ac_try) 2>&5
27555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27556 test $ac_status = 0; }; }
27558 gcc_cv_as_ix86_ffreep
=yes
27560 echo "configure: failed program was" >&5
27563 rm -f conftest.o conftest.s
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27567 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27568 if test $gcc_cv_as_ix86_ffreep = yes; then
27570 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27576 $as_echo_n "checking assembler for .quad directive... " >&6; }
27577 if ${gcc_cv_as_ix86_quad+:} false
; then :
27578 $as_echo_n "(cached) " >&6
27580 gcc_cv_as_ix86_quad
=no
27581 if test x
$gcc_cv_as != x
; then
27582 $as_echo '.quad 0' > conftest.s
27583 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27585 (eval $ac_try) 2>&5
27587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27588 test $ac_status = 0; }; }
27590 gcc_cv_as_ix86_quad
=yes
27592 echo "configure: failed program was" >&5
27595 rm -f conftest.o conftest.s
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27599 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27600 if test $gcc_cv_as_ix86_quad = yes; then
27602 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27608 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27609 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27610 $as_echo_n "(cached) " >&6
27612 gcc_cv_as_ix86_sahf
=no
27613 if test x
$gcc_cv_as != x
; then
27616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27618 (eval $ac_try) 2>&5
27620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27621 test $ac_status = 0; }; }
27623 gcc_cv_as_ix86_sahf
=yes
27625 echo "configure: failed program was" >&5
27628 rm -f conftest.o conftest.s
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27632 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27633 if test $gcc_cv_as_ix86_sahf = yes; then
27635 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27641 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27642 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27643 $as_echo_n "(cached) " >&6
27645 gcc_cv_as_ix86_interunit_movq
=no
27646 if test x
$gcc_cv_as != x
; then
27649 movq %rax, %xmm0' > conftest.s
27650 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27652 (eval $ac_try) 2>&5
27654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27655 test $ac_status = 0; }; }
27657 gcc_cv_as_ix86_interunit_movq
=yes
27659 echo "configure: failed program was" >&5
27662 rm -f conftest.o conftest.s
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27666 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27670 cat >>confdefs.h
<<_ACEOF
27671 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27676 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27677 if ${gcc_cv_as_ix86_hle+:} false
; then :
27678 $as_echo_n "(cached) " >&6
27680 gcc_cv_as_ix86_hle
=no
27681 if test x
$gcc_cv_as != x
; then
27682 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27685 (eval $ac_try) 2>&5
27687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27688 test $ac_status = 0; }; }
27690 gcc_cv_as_ix86_hle
=yes
27692 echo "configure: failed program was" >&5
27695 rm -f conftest.o conftest.s
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27699 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27700 if test $gcc_cv_as_ix86_hle = yes; then
27702 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27708 $as_echo_n "checking assembler for swap suffix... " >&6; }
27709 if ${gcc_cv_as_ix86_swap+:} false
; then :
27710 $as_echo_n "(cached) " >&6
27712 gcc_cv_as_ix86_swap
=no
27713 if test x
$gcc_cv_as != x
; then
27714 $as_echo 'movl.s %esp, %ebp' > conftest.s
27715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27717 (eval $ac_try) 2>&5
27719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27720 test $ac_status = 0; }; }
27722 gcc_cv_as_ix86_swap
=yes
27724 echo "configure: failed program was" >&5
27727 rm -f conftest.o conftest.s
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27731 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27732 if test $gcc_cv_as_ix86_swap = yes; then
27734 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27740 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27741 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27742 $as_echo_n "(cached) " >&6
27744 gcc_cv_as_ix86_diff_sect_delta
=no
27745 if test x
$gcc_cv_as != x
; then
27746 $as_echo '.section .rodata
27752 .L2: nop' > conftest.s
27753 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27755 (eval $ac_try) 2>&5
27757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27758 test $ac_status = 0; }; }
27760 gcc_cv_as_ix86_diff_sect_delta
=yes
27762 echo "configure: failed program was" >&5
27765 rm -f conftest.o conftest.s
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27769 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27770 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27772 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27778 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27779 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27780 $as_echo_n "(cached) " >&6
27782 gcc_cv_as_ix86_rep_lock_prefix
=no
27783 if test x
$gcc_cv_as != x
; then
27784 $as_echo 'rep movsl
27789 lock addl %edi, (%eax,%esi)
27790 lock orl $0, (%esp)' > conftest.s
27791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27793 (eval $ac_try) 2>&5
27795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27796 test $ac_status = 0; }; }
27798 gcc_cv_as_ix86_rep_lock_prefix
=yes
27800 echo "configure: failed program was" >&5
27803 rm -f conftest.o conftest.s
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27807 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27808 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27810 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27816 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27817 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27818 $as_echo_n "(cached) " >&6
27820 gcc_cv_as_ix86_ud2
=no
27821 if test x
$gcc_cv_as != x
; then
27822 $as_echo 'ud2' > conftest.s
27823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27825 (eval $ac_try) 2>&5
27827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27828 test $ac_status = 0; }; }
27830 gcc_cv_as_ix86_ud2
=yes
27832 echo "configure: failed program was" >&5
27835 rm -f conftest.o conftest.s
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27839 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27840 if test $gcc_cv_as_ix86_ud2 = yes; then
27842 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27847 # Enforce 32-bit output with gas and gld.
27848 if test x
$gas = xyes
; then
27849 as_ix86_gas_32_opt
="--32"
27851 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27852 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27853 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27855 ld_ix86_gld_32_opt
="-melf_i386"
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27860 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27861 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27862 $as_echo_n "(cached) " >&6
27864 gcc_cv_as_ix86_tlsgdplt
=no
27865 if test x
$gcc_cv_as != x
; then
27866 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27869 (eval $ac_try) 2>&5
27871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27872 test $ac_status = 0; }; }
27874 if test x
$gcc_cv_ld != x \
27875 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27876 gcc_cv_as_ix86_tlsgdplt
=yes
27880 echo "configure: failed program was" >&5
27883 rm -f conftest.o conftest.s
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27887 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27888 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27890 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27896 .section .tdata,"aw'$tls_section_flag'",@progbits
27898 .section .text,"ax",@progbits
27899 call tls_ld@tlsldmplt'
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27902 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27903 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27904 $as_echo_n "(cached) " >&6
27906 gcc_cv_as_ix86_tlsldmplt
=no
27907 if test x
$gcc_cv_as != x
; then
27908 $as_echo "$conftest_s" > conftest.s
27909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27911 (eval $ac_try) 2>&5
27913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27914 test $ac_status = 0; }; }
27916 if test x
$gcc_cv_ld != x \
27917 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27918 gcc_cv_as_ix86_tlsldmplt
=yes
27922 echo "configure: failed program was" >&5
27925 rm -f conftest.o conftest.s
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27929 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27933 cat >>confdefs.h
<<_ACEOF
27934 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27939 .section .text,"ax",@progbits
27941 .type _start, @function
27943 leal value@tlsldm(%ebx), %eax
27944 call ___tls_get_addr@plt
27946 .section .tdata,"aw'$tls_section_flag'",@progbits
27947 .type value, @object
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27950 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27951 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27952 $as_echo_n "(cached) " >&6
27954 gcc_cv_as_ix86_tlsldm
=no
27955 if test x
$gcc_cv_as != x
; then
27956 $as_echo "$conftest_s" > conftest.s
27957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27959 (eval $ac_try) 2>&5
27961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27962 test $ac_status = 0; }; }
27964 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27965 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27966 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27967 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27968 gcc_cv_as_ix86_tlsldm
=yes
27973 echo "configure: failed program was" >&5
27976 rm -f conftest.o conftest.s
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27980 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27984 cat >>confdefs.h
<<_ACEOF
27985 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27999 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
28000 if ${gcc_cv_as_ix86_got32x+:} false
; then :
28001 $as_echo_n "(cached) " >&6
28003 gcc_cv_as_ix86_got32x
=no
28004 if test x
$gcc_cv_as != x
; then
28005 $as_echo "$conftest_s" > conftest.s
28006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28008 (eval $ac_try) 2>&5
28010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28011 test $ac_status = 0; }; }
28013 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
28014 && test x
$gcc_cv_readelf != x \
28015 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
28016 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
28017 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
28018 if $gcc_cv_objdump -dw conftest
2>&1 \
28019 |
grep 0xffffff > /dev
/null
2>&1; then
28020 gcc_cv_as_ix86_got32x
=no
28022 gcc_cv_as_ix86_got32x
=yes
28027 echo "configure: failed program was" >&5
28030 rm -f conftest.o conftest.s
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
28034 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
28038 cat >>confdefs.h
<<_ACEOF
28039 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
28044 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
28045 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
28046 $as_echo_n "(cached) " >&6
28048 gcc_cv_as_ix86_gotoff_in_data
=no
28049 if test $in_tree_gas = yes; then
28050 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28051 then gcc_cv_as_ix86_gotoff_in_data
=yes
28053 elif test x
$gcc_cv_as != x
; then
28058 .long .L0@GOTOFF' > conftest.s
28059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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_ix86_gotoff_in_data
=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_ix86_gotoff_in_data" >&5
28075 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
28079 cat >>confdefs.h
<<_ACEOF
28080 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
28085 .section .text,"ax",@progbits
28087 .type _start, @function
28089 leal ld@tlsldm(%ecx), %eax
28090 call *___tls_get_addr@GOT(%ecx)
28091 leal gd@tlsgd(%ecx), %eax
28092 call *___tls_get_addr@GOT(%ecx)
28094 .section .tdata,"aw'$tls_section_flag'",@progbits
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
28103 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
28104 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
28105 $as_echo_n "(cached) " >&6
28107 gcc_cv_as_ix86_tls_get_addr_via_got
=no
28108 if test x
$gcc_cv_as != x
; then
28109 $as_echo "$conftest_s" > conftest.s
28110 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28112 (eval $ac_try) 2>&5
28114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28115 test $ac_status = 0; }; }
28117 if test x
$gcc_cv_ld != x \
28118 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
28119 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
28123 echo "configure: failed program was" >&5
28126 rm -f conftest.o conftest.s
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28130 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28134 cat >>confdefs.h
<<_ACEOF
28135 #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`
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28142 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28143 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
28144 $as_echo_n "(cached) " >&6
28146 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
28147 if test $in_tree_gas = yes; then
28148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28149 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
28151 elif test x
$gcc_cv_as != x
; then
28153 addl r15 = @ltoffx(x#), gp
28155 ld8.mov r16 = [r15], x#
28157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28159 (eval $ac_try) 2>&5
28161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28162 test $ac_status = 0; }; }
28164 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
28166 echo "configure: failed program was" >&5
28169 rm -f conftest.o conftest.s
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28173 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28174 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28176 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28188 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28189 if ${gcc_cv_as_machine_directive+:} false
; then :
28190 $as_echo_n "(cached) " >&6
28192 gcc_cv_as_machine_directive
=no
28193 if test x
$gcc_cv_as != x
; then
28194 $as_echo ' .machine ppc7400' > conftest.s
28195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28197 (eval $ac_try) 2>&5
28199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28200 test $ac_status = 0; }; }
28202 gcc_cv_as_machine_directive
=yes
28204 echo "configure: failed program was" >&5
28207 rm -f conftest.o conftest.s
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28211 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28214 if test x
$gcc_cv_as_machine_directive != xyes
; then
28215 echo "*** This target requires an assembler supporting \".machine\"" >&2
28216 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
28217 test x
$build = x
$target && exit 1
28223 *-*-aix*) conftest_s
=' .machine "pwr5"
28226 *-*-darwin*) conftest_s
=' .text
28228 *) conftest_s
=' .machine power4
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28234 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28235 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
28236 $as_echo_n "(cached) " >&6
28238 gcc_cv_as_powerpc_mfcrf
=no
28239 if test $in_tree_gas = yes; then
28240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28241 then gcc_cv_as_powerpc_mfcrf
=yes
28243 elif test x
$gcc_cv_as != x
; then
28244 $as_echo "$conftest_s" > conftest.s
28245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28247 (eval $ac_try) 2>&5
28249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28250 test $ac_status = 0; }; }
28252 gcc_cv_as_powerpc_mfcrf
=yes
28254 echo "configure: failed program was" >&5
28257 rm -f conftest.o conftest.s
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28261 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28262 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28264 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28270 *-*-aix*) conftest_s
=' .csect .text[PR]
28272 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28276 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28277 *) conftest_s
=' .text
28279 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28283 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28284 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
28285 $as_echo_n "(cached) " >&6
28287 gcc_cv_as_powerpc_rel16
=no
28288 if test $in_tree_gas = yes; then
28289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
28290 then gcc_cv_as_powerpc_rel16
=yes
28292 elif test x
$gcc_cv_as != x
; then
28293 $as_echo "$conftest_s" > conftest.s
28294 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28296 (eval $ac_try) 2>&5
28298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28299 test $ac_status = 0; }; }
28301 gcc_cv_as_powerpc_rel16
=yes
28303 echo "configure: failed program was" >&5
28306 rm -f conftest.o conftest.s
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28310 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28311 if test $gcc_cv_as_powerpc_rel16 = yes; then
28313 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28319 *-*-aix*) conftest_s
=' .machine "pwr7"
28322 *) conftest_s
=' .machine power7
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28328 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28329 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28330 $as_echo_n "(cached) " >&6
28332 gcc_cv_as_powerpc_vsx
=no
28333 if test $in_tree_gas = yes; then
28334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
28335 then gcc_cv_as_powerpc_vsx
=yes
28337 elif test x
$gcc_cv_as != x
; then
28338 $as_echo "$conftest_s" > conftest.s
28339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28341 (eval $ac_try) 2>&5
28343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28344 test $ac_status = 0; }; }
28346 gcc_cv_as_powerpc_vsx
=yes
28348 echo "configure: failed program was" >&5
28351 rm -f conftest.o conftest.s
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28355 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28356 if test $gcc_cv_as_powerpc_vsx = yes; then
28358 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28364 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28365 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28366 $as_echo_n "(cached) " >&6
28368 gcc_cv_as_powerpc_gnu_attribute
=no
28369 if test $in_tree_gas = yes; then
28370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28371 then gcc_cv_as_powerpc_gnu_attribute
=yes
28373 elif test x
$gcc_cv_as != x
; then
28374 $as_echo '.gnu_attribute 4,1' > conftest.s
28375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28377 (eval $ac_try) 2>&5
28379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28380 test $ac_status = 0; }; }
28382 gcc_cv_as_powerpc_gnu_attribute
=yes
28384 echo "configure: failed program was" >&5
28387 rm -f conftest.o conftest.s
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28391 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28392 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28394 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28400 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28401 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28402 $as_echo_n "(cached) " >&6
28404 gcc_cv_as_powerpc_entry_markers
=no
28405 if test $in_tree_gas = yes; then
28406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28407 then gcc_cv_as_powerpc_entry_markers
=yes
28409 elif test x
$gcc_cv_as != x
; then
28410 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28411 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28413 (eval $ac_try) 2>&5
28415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28416 test $ac_status = 0; }; }
28418 gcc_cv_as_powerpc_entry_markers
=yes
28420 echo "configure: failed program was" >&5
28423 rm -f conftest.o conftest.s
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28427 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28428 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28430 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28436 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28437 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28438 $as_echo_n "(cached) " >&6
28440 gcc_cv_as_powerpc_pltseq_markers
=no
28441 if test $in_tree_gas = yes; then
28442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28443 then gcc_cv_as_powerpc_pltseq_markers
=yes
28445 elif test x
$gcc_cv_as != x
; then
28446 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28449 (eval $ac_try) 2>&5
28451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28452 test $ac_status = 0; }; }
28454 gcc_cv_as_powerpc_pltseq_markers
=yes
28456 echo "configure: failed program was" >&5
28459 rm -f conftest.o conftest.s
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28463 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28464 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28466 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28474 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28475 if ${gcc_cv_as_aix_ref+:} false
; then :
28476 $as_echo_n "(cached) " >&6
28478 gcc_cv_as_aix_ref
=no
28479 if test $in_tree_gas = yes; then
28480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28481 then gcc_cv_as_aix_ref
=yes
28483 elif test x
$gcc_cv_as != x
; then
28484 $as_echo ' .csect stuff[rw]
28490 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28492 (eval $ac_try) 2>&5
28494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28495 test $ac_status = 0; }; }
28497 gcc_cv_as_aix_ref
=yes
28499 echo "configure: failed program was" >&5
28502 rm -f conftest.o conftest.s
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28506 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28507 if test $gcc_cv_as_aix_ref = yes; then
28509 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28515 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28516 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28517 $as_echo_n "(cached) " >&6
28519 gcc_cv_as_aix_dwloc
=no
28520 if test $in_tree_gas = yes; then
28521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28522 then gcc_cv_as_aix_dwloc
=yes
28524 elif test x
$gcc_cv_as != x
; then
28525 $as_echo ' .dwsect 0xA0000
28529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28531 (eval $ac_try) 2>&5
28533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28534 test $ac_status = 0; }; }
28536 gcc_cv_as_aix_dwloc
=yes
28538 echo "configure: failed program was" >&5
28541 rm -f conftest.o conftest.s
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28545 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28546 if test $gcc_cv_as_aix_dwloc = yes; then
28548 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28558 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28559 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28560 $as_echo_n "(cached) " >&6
28562 gcc_cv_as_mips_explicit_relocs
=no
28563 if test $in_tree_gas = yes; then
28564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28565 then gcc_cv_as_mips_explicit_relocs
=yes
28567 elif test x
$gcc_cv_as != x
; then
28568 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28571 (eval $ac_try) 2>&5
28573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28574 test $ac_status = 0; }; }
28576 gcc_cv_as_mips_explicit_relocs
=yes
28578 echo "configure: failed program was" >&5
28581 rm -f conftest.o conftest.s
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28585 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28586 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28587 if test x
$target_cpu_default = x
28588 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28589 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28595 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28596 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28597 $as_echo_n "(cached) " >&6
28599 gcc_cv_as_mips_no_shared
=no
28600 if test $in_tree_gas = yes; then
28601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
28602 then gcc_cv_as_mips_no_shared
=yes
28604 elif test x
$gcc_cv_as != x
; then
28605 $as_echo 'nop' > conftest.s
28606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28608 (eval $ac_try) 2>&5
28610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28611 test $ac_status = 0; }; }
28613 gcc_cv_as_mips_no_shared
=yes
28615 echo "configure: failed program was" >&5
28618 rm -f conftest.o conftest.s
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28622 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28623 if test $gcc_cv_as_mips_no_shared = yes; then
28625 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28631 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28632 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28633 $as_echo_n "(cached) " >&6
28635 gcc_cv_as_mips_gnu_attribute
=no
28636 if test $in_tree_gas = yes; then
28637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28638 then gcc_cv_as_mips_gnu_attribute
=yes
28640 elif test x
$gcc_cv_as != x
; then
28641 $as_echo '.gnu_attribute 4,1' > conftest.s
28642 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28644 (eval $ac_try) 2>&5
28646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28647 test $ac_status = 0; }; }
28649 gcc_cv_as_mips_gnu_attribute
=yes
28651 echo "configure: failed program was" >&5
28654 rm -f conftest.o conftest.s
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28658 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28659 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28661 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28667 $as_echo_n "checking assembler for .module support... " >&6; }
28668 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28669 $as_echo_n "(cached) " >&6
28671 gcc_cv_as_mips_dot_module
=no
28672 if test x
$gcc_cv_as != x
; then
28673 $as_echo '.module mips2
28674 .module fp=xx' > conftest.s
28675 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28677 (eval $ac_try) 2>&5
28679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28680 test $ac_status = 0; }; }
28682 gcc_cv_as_mips_dot_module
=yes
28684 echo "configure: failed program was" >&5
28687 rm -f conftest.o conftest.s
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28691 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28692 if test $gcc_cv_as_mips_dot_module = yes; then
28694 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28698 if test x
$gcc_cv_as_mips_dot_module = xno \
28699 && test x
$with_fp_32 != x
; then
28700 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28704 $as_echo_n "checking assembler for .micromips support... " >&6; }
28705 if ${gcc_cv_as_micromips_support+:} false
; then :
28706 $as_echo_n "(cached) " >&6
28708 gcc_cv_as_micromips_support
=no
28709 if test x
$gcc_cv_as != x
; then
28710 $as_echo '.set micromips' > conftest.s
28711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28713 (eval $ac_try) 2>&5
28715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28716 test $ac_status = 0; }; }
28718 gcc_cv_as_micromips_support
=yes
28720 echo "configure: failed program was" >&5
28723 rm -f conftest.o conftest.s
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28727 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28728 if test $gcc_cv_as_micromips_support = yes; then
28730 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28736 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28737 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28738 $as_echo_n "(cached) " >&6
28740 gcc_cv_as_mips_dtprelword
=no
28741 if test $in_tree_gas = yes; then
28742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28743 then gcc_cv_as_mips_dtprelword
=yes
28745 elif test x
$gcc_cv_as != x
; then
28746 $as_echo '.section .tdata,"awT",@progbits
28750 .dtprelword x+0x8000' > conftest.s
28751 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28753 (eval $ac_try) 2>&5
28755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28756 test $ac_status = 0; }; }
28758 gcc_cv_as_mips_dtprelword
=yes
28760 echo "configure: failed program was" >&5
28763 rm -f conftest.o conftest.s
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28767 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28768 if test $gcc_cv_as_mips_dtprelword = yes; then
28770 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28776 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28777 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28778 $as_echo_n "(cached) " >&6
28780 gcc_cv_as_mips_dspr1_mult
=no
28781 if test x
$gcc_cv_as != x
; then
28782 $as_echo ' .set mips32r2
28790 multu $ac3,$4,$5' > conftest.s
28791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28793 (eval $ac_try) 2>&5
28795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28796 test $ac_status = 0; }; }
28798 gcc_cv_as_mips_dspr1_mult
=yes
28800 echo "configure: failed program was" >&5
28803 rm -f conftest.o conftest.s
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28807 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28808 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28810 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28816 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28817 gcc_cv_as_ld_jalr_reloc
=no
28818 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28819 if test $in_tree_ld = yes ; then
28820 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 \
28821 && test $in_tree_ld_is_elf = yes; then
28822 gcc_cv_as_ld_jalr_reloc
=yes
28824 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28825 echo ' .ent x' > conftest.s
28826 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28827 echo ' lw $25,%call16(y)($28)' >> conftest.s
28828 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28829 echo '1: jalr $25' >> conftest.s
28830 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28831 echo '1: jalr $25' >> conftest.s
28832 echo ' .end x' >> conftest.s
28833 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28834 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28835 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28836 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28837 gcc_cv_as_ld_jalr_reloc
=yes
28843 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28844 if test x
$target_cpu_default = x
; then
28845 target_cpu_default
=MASK_RELAX_PIC_CALLS
28847 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28851 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28854 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28855 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28856 $as_echo_n "(cached) " >&6
28858 gcc_cv_ld_mips_personality_relaxation
=no
28859 if test $in_tree_ld = yes ; then
28860 if test "$gcc_cv_gld_major_version" -eq 2 \
28861 -a "$gcc_cv_gld_minor_version" -ge 21 \
28862 -o "$gcc_cv_gld_major_version" -gt 2; then
28863 gcc_cv_ld_mips_personality_relaxation
=yes
28865 elif test x
$gcc_cv_as != x \
28866 -a x
$gcc_cv_ld != x \
28867 -a x
$gcc_cv_readelf != x
; then
28868 cat > conftest.s
<<EOF
28870 .cfi_personality 0x80,indirect_ptr
28877 .section .data,"aw",@progbits
28881 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28882 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28883 if $gcc_cv_readelf -d conftest
2>&1 \
28884 |
grep TEXTREL
> /dev
/null
2>&1; then
28886 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28887 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28890 gcc_cv_ld_mips_personality_relaxation
=yes
28894 rm -f conftest.s conftest.o conftest
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28897 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28898 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28900 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28905 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28906 if ${gcc_cv_as_mips_nan+:} false
; then :
28907 $as_echo_n "(cached) " >&6
28909 gcc_cv_as_mips_nan
=no
28910 if test x
$gcc_cv_as != x
; then
28911 $as_echo '' > conftest.s
28912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28914 (eval $ac_try) 2>&5
28916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28917 test $ac_status = 0; }; }
28919 gcc_cv_as_mips_nan
=yes
28921 echo "configure: failed program was" >&5
28924 rm -f conftest.o conftest.s
28927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28928 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28929 if test $gcc_cv_as_mips_nan = yes; then
28931 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28935 if test x
$gcc_cv_as_mips_nan = xno \
28936 && test x
$with_nan != x
; then
28937 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28941 # Earlier GAS versions generically support .gnu_attribute, but the
28942 # msp430 assembler will not do anything with it.
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28944 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28945 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28946 $as_echo_n "(cached) " >&6
28948 gcc_cv_as_msp430_gnu_attribute
=no
28949 if test $in_tree_gas = yes; then
28950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28951 then gcc_cv_as_msp430_gnu_attribute
=yes
28953 elif test x
$gcc_cv_as != x
; then
28954 $as_echo '.gnu_attribute 4,1' > conftest.s
28955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28957 (eval $ac_try) 2>&5
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; }
28962 gcc_cv_as_msp430_gnu_attribute
=yes
28964 echo "configure: failed program was" >&5
28967 rm -f conftest.o conftest.s
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28971 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28972 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28974 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28979 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28980 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28981 $as_echo_n "(cached) " >&6
28983 gcc_cv_as_msp430_mspabi_attribute
=no
28984 if test $in_tree_gas = yes; then
28985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28986 then gcc_cv_as_msp430_mspabi_attribute
=yes
28988 elif test x
$gcc_cv_as != x
; then
28989 $as_echo '.mspabi_attribute 4,1' > conftest.s
28990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28992 (eval $ac_try) 2>&5
28994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28995 test $ac_status = 0; }; }
28997 gcc_cv_as_msp430_mspabi_attribute
=yes
28999 echo "configure: failed program was" >&5
29002 rm -f conftest.o conftest.s
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
29006 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
29007 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
29009 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
29013 if test x
$enable_newlib_nano_formatted_io = xyes
; then
29015 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
29020 # Versions 2.33 and earlier lacked support for the %gotoff relocation
29021 # syntax that is documented in the ABI specification.
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
29023 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
29024 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
29025 $as_echo_n "(cached) " >&6
29027 gcc_cv_as_nios2_gotoff_relocation
=no
29028 if test x
$gcc_cv_as != x
; then
29029 $as_echo ' .extern foo
29031 .long %gotoff(foo)' > conftest.s
29032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29034 (eval $ac_try) 2>&5
29036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29037 test $ac_status = 0; }; }
29039 gcc_cv_as_nios2_gotoff_relocation
=yes
29041 echo "configure: failed program was" >&5
29044 rm -f conftest.o conftest.s
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
29048 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
29049 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
29051 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
29057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
29058 $as_echo_n "checking assembler for .attribute support... " >&6; }
29059 if ${gcc_cv_as_riscv_attribute+:} false
; then :
29060 $as_echo_n "(cached) " >&6
29062 gcc_cv_as_riscv_attribute
=no
29063 if test $in_tree_gas = yes; then
29064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
29065 then gcc_cv_as_riscv_attribute
=yes
29067 elif test x
$gcc_cv_as != x
; then
29068 $as_echo '.attribute stack_align,4' > conftest.s
29069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29071 (eval $ac_try) 2>&5
29073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29074 test $ac_status = 0; }; }
29076 gcc_cv_as_riscv_attribute
=yes
29078 echo "configure: failed program was" >&5
29081 rm -f conftest.o conftest.s
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
29085 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
29086 if test $gcc_cv_as_riscv_attribute = yes; then
29088 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29095 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29096 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
29097 $as_echo_n "(cached) " >&6
29099 gcc_cv_as_s390_gnu_attribute
=no
29100 if test $in_tree_gas = yes; then
29101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
29102 then gcc_cv_as_s390_gnu_attribute
=yes
29104 elif test x
$gcc_cv_as != x
; then
29105 $as_echo '.gnu_attribute 8,1' > conftest.s
29106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29108 (eval $ac_try) 2>&5
29110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29111 test $ac_status = 0; }; }
29113 gcc_cv_as_s390_gnu_attribute
=yes
29115 echo "configure: failed program was" >&5
29118 rm -f conftest.o conftest.s
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29122 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29123 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29125 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29130 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29131 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
29132 $as_echo_n "(cached) " >&6
29134 gcc_cv_as_s390_machine_machinemode
=no
29135 if test $in_tree_gas = yes; then
29136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
29137 then gcc_cv_as_s390_machine_machinemode
=yes
29139 elif test x
$gcc_cv_as != x
; then
29140 $as_echo ' .machinemode push
29143 .machine pop' > conftest.s
29144 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29146 (eval $ac_try) 2>&5
29148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29149 test $ac_status = 0; }; }
29151 gcc_cv_as_s390_machine_machinemode
=yes
29153 echo "configure: failed program was" >&5
29156 rm -f conftest.o conftest.s
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29160 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29161 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29163 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29168 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29169 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
29170 $as_echo_n "(cached) " >&6
29172 gcc_cv_as_s390_architecture_modifiers
=no
29173 if test $in_tree_gas = yes; then
29174 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
29175 then gcc_cv_as_s390_architecture_modifiers
=yes
29177 elif test x
$gcc_cv_as != x
; then
29178 $as_echo ' .machine z13+vx ' > conftest.s
29179 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29181 (eval $ac_try) 2>&5
29183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29184 test $ac_status = 0; }; }
29186 gcc_cv_as_s390_architecture_modifiers
=yes
29188 echo "configure: failed program was" >&5
29191 rm -f conftest.o conftest.s
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29195 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29196 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29198 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29203 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29204 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
29205 $as_echo_n "(cached) " >&6
29207 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
29208 if test $in_tree_gas = yes; then
29209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
29210 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29212 elif test x
$gcc_cv_as != x
; then
29213 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29214 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29216 (eval $ac_try) 2>&5
29218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29219 test $ac_status = 0; }; }
29221 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29223 echo "configure: failed program was" >&5
29226 rm -f conftest.o conftest.s
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29230 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29231 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29233 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29241 # Mips and HP-UX need the GNU assembler.
29242 # Linux on IA64 might be able to use the Intel assembler.
29245 mips
*-*-* |
*-*-hpux* )
29246 if test x
$gas_flag = xyes \
29247 ||
test x
"$host" != x
"$build" \
29248 ||
test ! -x "$gcc_cv_as" \
29249 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29252 echo "*** This configuration requires the GNU assembler" >&2
29258 # ??? Not all targets support dwarf2 debug_line, even within a version
29259 # of gas. Moreover, we need to emit a valid instruction to trigger any
29260 # info to the output file. So, as supported targets are added to gas 2.11,
29261 # add some instruction here to (also) show we expect this might work.
29262 # ??? Once 2.11 is released, probably need to add first known working
29263 # version to the per-target configury.
29264 case "$cpu_type" in
29265 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
29266 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29267 | tilegx | tilepro | visium | xstormy16 | xtensa
)
29277 if test x
"$insn" != x
; then
29279 .file 1 \"conftest.s\"
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29283 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29284 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29285 $as_echo_n "(cached) " >&6
29287 gcc_cv_as_dwarf2_debug_line
=no
29288 if test $in_tree_gas = yes; then
29289 if test $in_tree_gas_is_elf = yes \
29290 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29291 then gcc_cv_as_dwarf2_debug_line
=yes
29293 elif test x
$gcc_cv_as != x
; then
29294 $as_echo "$conftest_s" > conftest.s
29295 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29297 (eval $ac_try) 2>&5
29299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29300 test $ac_status = 0; }; }
29302 if test x
$gcc_cv_objdump != x \
29303 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29304 |
grep debug_line
> /dev
/null
2>&1; then
29305 gcc_cv_as_dwarf2_debug_line
=yes
29306 elif test x
$gcc_cv_otool != x \
29307 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29308 |
grep debug_line
> /dev
/null
2>&1; then
29309 gcc_cv_as_dwarf2_debug_line
=yes
29312 echo "configure: failed program was" >&5
29315 rm -f conftest.o conftest.s
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29319 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29323 # The .debug_line file table must be in the exact order that
29324 # we specified the files, since these indices are also used
29325 # by DW_AT_decl_file. Approximate this test by testing if
29326 # the assembler bitches if the same index is assigned twice.
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29328 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29329 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29330 $as_echo_n "(cached) " >&6
29332 gcc_cv_as_dwarf2_file_buggy
=no
29333 if test x
$gcc_cv_as != x
; then
29334 $as_echo ' .file 1 "foo.s"
29335 .file 1 "bar.s"' > conftest.s
29336 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29338 (eval $ac_try) 2>&5
29340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29341 test $ac_status = 0; }; }
29343 gcc_cv_as_dwarf2_file_buggy
=yes
29345 echo "configure: failed program was" >&5
29348 rm -f conftest.o conftest.s
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29352 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29356 if test $gcc_cv_as_dwarf2_debug_line = yes \
29357 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29359 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29362 if test $gcc_cv_as_leb128 = yes; then
29364 .file 1 \"conftest.s\"
29365 .loc 1 3 0 view .LVU1
29371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29372 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29373 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29374 $as_echo_n "(cached) " >&6
29376 gcc_cv_as_dwarf2_debug_view
=no
29377 if test $in_tree_gas = yes; then
29378 if test $in_tree_gas_is_elf = yes \
29379 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
29380 then gcc_cv_as_dwarf2_debug_view
=yes
29382 elif test x
$gcc_cv_as != x
; then
29383 $as_echo "$conftest_s" > conftest.s
29384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29386 (eval $ac_try) 2>&5
29388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29389 test $ac_status = 0; }; }
29391 gcc_cv_as_dwarf2_debug_view
=yes
29393 echo "configure: failed program was" >&5
29396 rm -f conftest.o conftest.s
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29400 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29401 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29403 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29411 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29412 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29413 $as_echo_n "(cached) " >&6
29415 gcc_cv_as_gdwarf2_flag
=no
29416 if test $in_tree_gas = yes; then
29417 if test $in_tree_gas_is_elf = yes \
29418 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29419 then gcc_cv_as_gdwarf2_flag
=yes
29421 elif test x
$gcc_cv_as != x
; then
29422 $as_echo "$insn" > conftest.s
29423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29425 (eval $ac_try) 2>&5
29427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29428 test $ac_status = 0; }; }
29430 gcc_cv_as_gdwarf2_flag
=yes
29432 echo "configure: failed program was" >&5
29435 rm -f conftest.o conftest.s
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29439 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29440 if test $gcc_cv_as_gdwarf2_flag = yes; then
29442 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29448 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29449 if ${gcc_cv_as_gstabs_flag+:} false
; then :
29450 $as_echo_n "(cached) " >&6
29452 gcc_cv_as_gstabs_flag
=no
29453 if test $in_tree_gas = yes; then
29454 if test $in_tree_gas_is_elf = yes \
29455 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29456 then gcc_cv_as_gstabs_flag
=yes
29458 elif test x
$gcc_cv_as != x
; then
29459 $as_echo "$insn" > conftest.s
29460 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29462 (eval $ac_try) 2>&5
29464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29465 test $ac_status = 0; }; }
29467 gcc_cv_as_gstabs_flag
=yes
29469 echo "configure: failed program was" >&5
29472 rm -f conftest.o conftest.s
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29476 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29477 if test $gcc_cv_as_gstabs_flag = yes; then
29479 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29485 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29486 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29487 $as_echo_n "(cached) " >&6
29489 gcc_cv_as_debug_prefix_map_flag
=no
29490 if test $in_tree_gas = yes; then
29491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
29492 then gcc_cv_as_debug_prefix_map_flag
=yes
29494 elif test x
$gcc_cv_as != x
; then
29495 $as_echo "$insn" > conftest.s
29496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29498 (eval $ac_try) 2>&5
29500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29501 test $ac_status = 0; }; }
29503 gcc_cv_as_debug_prefix_map_flag
=yes
29505 echo "configure: failed program was" >&5
29508 rm -f conftest.o conftest.s
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29512 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29513 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29515 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29522 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29523 if ${gcc_cv_as_compress_debug+:} false
; then :
29524 $as_echo_n "(cached) " >&6
29526 gcc_cv_as_compress_debug
=no
29527 if test x
$gcc_cv_as != x
; then
29528 $as_echo '' > conftest.s
29529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29531 (eval $ac_try) 2>&5
29533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29534 test $ac_status = 0; }; }
29536 # gas compiled without zlib cannot compress debug sections and warns
29537 # about it, but still exits successfully. So check for this, too.
29538 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29540 gcc_cv_as_compress_debug
=0
29541 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29542 # defaulting to the ELF gABI format.
29543 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
29545 gcc_cv_as_compress_debug
=2
29546 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29547 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29548 # Before binutils 2.26, gas only supported --compress-debug-options and
29549 # emitted the traditional GNU format.
29550 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
29552 gcc_cv_as_compress_debug
=1
29553 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29554 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29556 gcc_cv_as_compress_debug
=0
29559 echo "configure: failed program was" >&5
29562 rm -f conftest.o conftest.s
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29566 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29570 cat >>confdefs.h
<<_ACEOF
29571 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29575 cat >>confdefs.h
<<_ACEOF
29576 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29580 cat >>confdefs.h
<<_ACEOF
29581 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29586 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29587 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29588 $as_echo_n "(cached) " >&6
29590 gcc_cv_as_lcomm_with_alignment
=no
29591 if test x
$gcc_cv_as != x
; then
29592 $as_echo '.lcomm bar,4,16' > conftest.s
29593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29595 (eval $ac_try) 2>&5
29597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29598 test $ac_status = 0; }; }
29600 gcc_cv_as_lcomm_with_alignment
=yes
29602 echo "configure: failed program was" >&5
29605 rm -f conftest.o conftest.s
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29609 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29610 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29612 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29617 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29618 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29619 && test "$prefix" != "NONE"; then
29621 cat >>confdefs.h
<<_ACEOF
29622 #define PREFIX_INCLUDE_DIR "$prefix/include"
29627 # Determine the version of glibc, if any, used on the target.
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29629 $as_echo_n "checking for target glibc version... " >&6; }
29631 # Check whether --with-glibc-version was given.
29632 if test "${with_glibc_version+set}" = set; then :
29633 withval
=$with_glibc_version;
29634 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29635 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29636 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29638 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
29642 glibc_version_major
=0
29643 glibc_version_minor
=0
29644 if test -f $target_header_dir/features.h \
29645 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29646 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29647 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29648 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29653 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29655 cat >>confdefs.h
<<_ACEOF
29656 #define TARGET_GLIBC_MAJOR $glibc_version_major
29660 cat >>confdefs.h
<<_ACEOF
29661 #define TARGET_GLIBC_MINOR $glibc_version_minor
29665 # Check whether --enable-gnu-unique-object was given.
29666 if test "${enable_gnu_unique_object+set}" = set; then :
29667 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29669 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29670 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29674 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29675 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
29676 $as_echo_n "(cached) " >&6
29678 gcc_cv_as_gnu_unique_object
=no
29679 if test $in_tree_gas = yes; then
29680 if test $in_tree_gas_is_elf = yes \
29681 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
29682 then gcc_cv_as_gnu_unique_object
=yes
29684 elif test x
$gcc_cv_as != x
; then
29685 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29686 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29688 (eval $ac_try) 2>&5
29690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29691 test $ac_status = 0; }; }
29693 gcc_cv_as_gnu_unique_object
=yes
29695 echo "configure: failed program was" >&5
29698 rm -f conftest.o conftest.s
29701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29702 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29703 if test $gcc_cv_as_gnu_unique_object = yes; then
29704 # We need to unquote above to to use the definition from config.gcc.
29705 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29707 if test $glibc_version_major -gt 2 \
29708 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29709 enable_gnu_unique_object
=yes
29716 if test x
$enable_gnu_unique_object = xyes
; then
29718 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29723 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29724 if ${gcc_cv_as_line_zero+:} false
; then :
29725 $as_echo_n "(cached) " >&6
29727 gcc_cv_as_line_zero
=no
29728 if test $in_tree_gas = yes; then
29729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
29730 then gcc_cv_as_line_zero
=yes
29732 elif test "x$gcc_cv_as" != x
; then
29733 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29734 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29736 (eval $ac_try) 2>&5
29738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29739 test $ac_status = 0; }; } &&
29740 test "x`cat conftest.out`" = x
29742 gcc_cv_as_line_zero
=yes
29744 echo "configure: failed program was" >&5
29746 echo "configure: error output was" >&5
29747 cat conftest.out
>&5
29749 rm -f conftest.o conftest.s conftest.out
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29753 $as_echo "$gcc_cv_as_line_zero" >&6; }
29754 if test "x$gcc_cv_as_line_zero" = xyes
; then
29756 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29761 $as_echo_n "checking support for thin archives... " >&6; }
29762 thin_archive_support
=no
29763 echo 'int main (void) { return 0; }' > conftest.c
29764 if ($AR --version |
sed 1q |
grep "GNU ar" \
29765 && $CC $CFLAGS -c conftest.c \
29766 && $AR rcT conftest.a conftest.o \
29767 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
29768 thin_archive_support
=yes
29770 rm -f conftest.c conftest.o conftest.a conftest
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29772 $as_echo "$thin_archive_support" >&6; }
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29776 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29777 gcc_cv_ld_eh_frame_hdr
=no
29778 if test $in_tree_ld = yes ; then
29779 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 \
29780 && test $in_tree_ld_is_elf = yes; then
29781 gcc_cv_ld_eh_frame_hdr
=yes
29783 elif test x
$gcc_cv_ld != x
; then
29784 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29785 # Check if linker supports --eh-frame-hdr option
29786 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
29787 gcc_cv_ld_eh_frame_hdr
=yes
29792 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29793 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
29794 gcc_cv_ld_eh_frame_hdr
=yes
29801 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
29803 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29807 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29810 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29811 gcc_cv_ld_eh_frame_ciev3
=no
29812 if test $in_tree_ld = yes ; then
29813 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 \
29814 && test $in_tree_ld_is_elf = yes; then
29815 gcc_cv_ld_eh_frame_ciev3
=yes
29817 elif test x
$gcc_cv_ld != x
; then
29818 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29819 gcc_cv_ld_eh_frame_ciev3
=yes
29820 if test 0"$ld_date" -lt 20040513; then
29821 if test -n "$ld_date"; then
29822 # If there was date string, but was earlier than 2004-05-13, fail
29823 gcc_cv_ld_eh_frame_ciev3
=no
29824 elif test "$ld_vers_major" -lt 2; then
29825 gcc_cv_ld_eh_frame_ciev3
=no
29826 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29827 gcc_cv_ld_eh_frame_ciev3
=no
29833 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29834 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
29835 gcc_cv_ld_eh_frame_ciev3
=yes
29842 cat >>confdefs.h
<<_ACEOF
29843 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29847 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29850 $as_echo_n "checking linker position independent executable support... " >&6; }
29852 if test $in_tree_ld = yes ; then
29854 # Full PIE support on Solaris was only introduced in gld 2.26.
29855 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
29856 *) gcc_gld_pie_min_version
=15 ;;
29858 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 \
29859 && test $in_tree_ld_is_elf = yes; then
29862 elif test x
$gcc_cv_ld != x
; then
29863 # Check if linker supports -pie option
29864 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
29868 if echo "$ld_ver" |
grep GNU
> /dev
/null \
29869 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29876 *-*-solaris2.1
[1-9]*)
29877 # Solaris 11.3 added PIE support.
29878 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
29885 if test x
"$gcc_cv_ld_pie" = xyes
; then
29887 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29891 $as_echo "$gcc_cv_ld_pie" >&6; }
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29894 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29895 gcc_cv_ld_pie_copyreloc
=no
29896 if test $gcc_cv_ld_pie = yes ; then
29897 if test $in_tree_ld = yes ; then
29898 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
29899 gcc_cv_ld_pie_copyreloc
=yes
29901 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29902 # Check if linker supports -pie option with copy reloc
29904 i?
86-*-linux* | x86_64-
*-linux*)
29905 cat > conftest1.s
<<EOF
29908 .type a_glob, @object
29913 cat > conftest2.s
<<EOF
29916 .type main, @function
29918 movl %eax, a_glob(%rip)
29921 .section .data.rel,"aw",@progbits
29926 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29927 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
29928 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29929 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
29930 gcc_cv_ld_pie_copyreloc
=yes
29932 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29938 cat >>confdefs.h
<<_ACEOF
29939 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29943 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29946 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29947 gcc_cv_ld_eh_gc_sections
=no
29948 if test $in_tree_ld = yes ; then
29949 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 \
29950 && test $in_tree_ld_is_elf = yes; then
29951 gcc_cv_ld_eh_gc_sections
=yes
29953 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
29954 cat > conftest.s
<<EOF
29957 .type _start, @function
29960 .size _start, .-_start
29961 .section .text.foo,"ax",@progbits
29962 .type foo, @function
29966 .section .gcc_except_table.foo,"a",@progbits
29969 .section .eh_frame,"a",@progbits
29972 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
29973 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
29974 |
grep "gc-sections option ignored" > /dev
/null
; then
29975 gcc_cv_ld_eh_gc_sections
=no
29976 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
29977 |
grep gcc_except_table
> /dev
/null
; then
29978 gcc_cv_ld_eh_gc_sections
=yes
29979 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
29980 if test x
$gcc_cv_as_comdat_group != xyes
; then
29981 gcc_cv_ld_eh_gc_sections
=no
29982 cat > conftest.s
<<EOF
29985 .type _start, @function
29988 .size _start, .-_start
29989 .section .gnu.linkonce.t.foo,"ax",@progbits
29990 .type foo, @function
29994 .section .gcc_except_table.foo,"a",@progbits
29997 .section .eh_frame,"a",@progbits
30000 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30001 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30002 |
grep "gc-sections option ignored" > /dev
/null
; then
30003 gcc_cv_ld_eh_gc_sections
=no
30004 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30005 |
grep gcc_except_table
> /dev
/null
; then
30006 gcc_cv_ld_eh_gc_sections
=yes
30012 rm -f conftest.s conftest.o conftest
30016 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30017 gcc_cv_ld_eh_gc_sections
=no
30020 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30022 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30026 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30029 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30030 gcc_cv_ld_eh_gc_sections_bug
=no
30031 if test $in_tree_ld = yes ; then
30032 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 \
30033 && test $in_tree_ld_is_elf = yes; then
30034 gcc_cv_ld_eh_gc_sections_bug
=yes
30036 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
30037 gcc_cv_ld_eh_gc_sections_bug
=yes
30038 cat > conftest.s
<<EOF
30041 .type _start, @function
30044 .size _start, .-_start
30045 .section .text.startup.foo,"ax",@progbits
30046 .type foo, @function
30050 .section .gcc_except_table.foo,"a",@progbits
30053 .section .eh_frame,"a",@progbits
30056 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30057 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30058 |
grep "gc-sections option ignored" > /dev
/null
; then
30060 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30061 |
grep gcc_except_table
> /dev
/null
; then
30062 gcc_cv_ld_eh_gc_sections_bug
=no
30065 rm -f conftest.s conftest.o conftest
30067 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30069 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30073 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30076 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30077 # gold/gld support compressed debug sections since binutils 2.19/2.21
30078 # In binutils 2.26, gld gained support for the ELF gABI format.
30079 if test $in_tree_ld = yes ; then
30080 gcc_cv_ld_compress_debug
=0
30081 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 \
30082 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30083 gcc_cv_ld_compress_debug
=2
30084 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30085 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 \
30086 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
30087 gcc_cv_ld_compress_debug
=3
30088 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30089 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 \
30090 && test $in_tree_ld_is_elf = yes; then
30091 gcc_cv_ld_compress_debug
=1
30093 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30094 if test "$ld_vers_major" -lt 2 \
30095 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30096 gcc_cv_ld_compress_debug
=0
30097 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30098 gcc_cv_ld_compress_debug
=1
30100 gcc_cv_ld_compress_debug
=3
30101 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30103 if test $ld_is_gold = yes; then
30104 gcc_cv_ld_compress_debug
=2
30105 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30108 case "${target}" in
30110 # Introduced in Solaris 11.2.
30111 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30112 gcc_cv_ld_compress_debug
=3
30113 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30115 gcc_cv_ld_compress_debug
=0
30119 # Assume linkers other than GNU ld don't support compessed debug
30121 gcc_cv_ld_compress_debug
=0
30126 cat >>confdefs.h
<<_ACEOF
30127 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30131 cat >>confdefs.h
<<_ACEOF
30132 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30136 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30138 if test x
"$ld64_flag" = x
"yes"; then
30140 # Set defaults for possibly untestable items.
30141 gcc_cv_ld64_export_dynamic
=0
30143 if test "$build" = "$host"; then
30149 # On Darwin, because of FAT library support, it is often possible to execute
30150 # exes from compatible archs even when the host differs from the build system.
30151 case "$build","$host" in
30152 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30153 darwin_try_test
=1;;
30157 # If the configurer specified a minimum ld64 version to be supported, then use
30158 # that to determine feature support.
30159 if test x
"${gcc_cv_ld64_version}" != x
; then
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30161 $as_echo_n "checking ld64 specified version... " >&6; }
30162 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30164 $as_echo "$gcc_cv_ld64_major" >&6; }
30165 if test "$gcc_cv_ld64_major" -ge 236; then
30166 gcc_cv_ld64_export_dynamic
=1
30168 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30169 # If the version was not specified, try to find it.
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30171 $as_echo_n "checking linker version... " >&6; }
30172 if test x
"${gcc_cv_ld64_version}" = x
; then
30173 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30176 $as_echo "$gcc_cv_ld64_version" >&6; }
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30179 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30180 gcc_cv_ld64_export_dynamic
=1
30181 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30182 gcc_cv_ld64_export_dynamic
=0
30184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30185 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30188 if test x
"${gcc_cv_ld64_version}" != x
; then
30190 cat >>confdefs.h
<<_ACEOF
30191 #define LD64_VERSION "${gcc_cv_ld64_version}"
30197 cat >>confdefs.h
<<_ACEOF
30198 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30208 $as_echo_n "checking linker --as-needed support... " >&6; }
30209 if ${gcc_cv_ld_as_needed+:} false
; then :
30210 $as_echo_n "(cached) " >&6
30212 gcc_cv_ld_as_needed
=no
30213 gcc_cv_ld_as_needed_option
='--as-needed'
30214 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30215 if test $in_tree_ld = yes ; then
30216 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 \
30217 && test $in_tree_ld_is_elf = yes; then
30218 gcc_cv_ld_as_needed
=yes
30219 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30220 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30221 gcc_cv_ld_no_as_needed_option
='--pop-state'
30224 elif test x
$gcc_cv_ld != x
; then
30225 # Check if linker supports --as-needed and --no-as-needed options
30226 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30227 gcc_cv_ld_as_needed
=yes
30228 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30229 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30230 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30231 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30232 # Use these options only when both ld.bfd and ld.gold support
30233 # --push-state/--pop-state, which unfortunately wasn't added
30234 # at the same time.
30235 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30236 gcc_cv_ld_no_as_needed_option
='--pop-state'
30239 case "$target:$gnu_ld" in
30241 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30243 gcc_cv_ld_as_needed
=yes
30244 gcc_cv_ld_as_needed_option
="-z ignore"
30245 gcc_cv_ld_no_as_needed_option
="-z record"
30249 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30250 # dl_iterate_phdr, i.e. since Solaris 11.
30252 *-*-solaris2.1
[1-9]*)
30254 i?
86-*-* | x86_64-
*-*)
30255 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30256 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30257 gcc_cv_ld_as_needed
=no
30263 gcc_cv_ld_as_needed
=no
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30269 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30270 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30272 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30275 cat >>confdefs.h
<<_ACEOF
30276 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30280 cat >>confdefs.h
<<_ACEOF
30281 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30287 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30288 saved_LDFLAGS
="$LDFLAGS"
30289 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30290 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30292 /* end confdefs.h. */
30293 int main(void) {return 0;}
30295 if ac_fn_cxx_try_link
"$LINENO"; then :
30296 gcc_cv_ld_clearcap
=yes; break
30298 gcc_cv_ld_clearcap
=no
30300 rm -f core conftest.err conftest.
$ac_objext \
30301 conftest
$ac_exeext conftest.
$ac_ext
30303 LDFLAGS
="$saved_LDFLAGS"
30304 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30306 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30308 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30312 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30318 emul_name
="-melf32lppc"
30321 emul_name
="-melf32ppc"
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30325 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30326 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30327 $as_echo_n "(cached) " >&6
30329 gcc_cv_ld_ppc_attr
=no
30330 if test x
"$ld_is_gold" = xyes
; then
30331 gcc_cv_ld_ppc_attr
=yes
30332 elif test $in_tree_ld = yes ; then
30333 if test "$gcc_cv_gld_major_version" -eq 2 \
30334 -a "$gcc_cv_gld_minor_version" -ge 28 \
30335 -o "$gcc_cv_gld_major_version" -gt 2; then
30336 gcc_cv_ld_ppc_attr
=yes
30338 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30339 # check that merging the long double .gnu_attribute doesn't warn
30340 cat > conftest1.s
<<EOF
30343 cat > conftest2.s
<<EOF
30346 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30347 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30348 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30349 && test ! -s conftest.err
; then
30350 gcc_cv_ld_ppc_attr
=yes
30352 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30357 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30358 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30360 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30366 case "$target:$tm_file" in
30367 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30370 emul_name
="-melf64lppc"
30373 emul_name
="-melf64ppc"
30376 emul_name
="-melf64ppc_fbsd"
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30380 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30381 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30382 $as_echo_n "(cached) " >&6
30384 gcc_cv_ld_no_dot_syms
=no
30385 if test x
"$ld_is_gold" = xyes
; then
30386 gcc_cv_ld_no_dot_syms
=yes
30387 elif test $in_tree_ld = yes ; then
30388 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
30389 gcc_cv_ld_no_dot_syms
=yes
30391 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30392 cat > conftest1.s
<<EOF
30396 cat > conftest2.s
<<EOF
30397 .section ".opd","aw"
30400 .type foo,@function
30402 .quad .LEfoo,.TOC.@tocbase,0
30408 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30409 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30410 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30411 gcc_cv_ld_no_dot_syms
=yes
30413 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30418 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30419 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30421 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30426 $as_echo_n "checking linker large toc support... " >&6; }
30427 if ${gcc_cv_ld_large_toc+:} false
; then :
30428 $as_echo_n "(cached) " >&6
30430 gcc_cv_ld_large_toc
=no
30431 if test x
"$ld_is_gold" = xyes
; then
30432 gcc_cv_ld_large_toc
=yes
30433 elif test $in_tree_ld = yes ; then
30434 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
30435 gcc_cv_ld_large_toc
=yes
30437 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30438 cat > conftest.s
<<EOF
30439 .section ".tbss","awT",@nobits
30445 addis 9,13,ie0@got@tprel@ha
30446 ld 9,ie0@got@tprel@l(9)
30448 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30449 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
30450 gcc_cv_ld_large_toc
=yes
30452 rm -f conftest conftest.o conftest.s
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30457 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30458 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30460 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30465 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30466 if ${gcc_cv_ld_toc_align+:} false
; then :
30467 $as_echo_n "(cached) " >&6
30469 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30470 cat > conftest.s
<<EOF
30475 .section .data.rel.ro,"aw",@progbits
30480 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30481 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30482 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)) }'`
30484 rm -f conftest conftest.o conftest.s
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30489 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30490 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30492 cat >>confdefs.h
<<_ACEOF
30493 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30503 $as_echo_n "checking linker large toc support... " >&6; }
30504 if ${gcc_cv_ld_large_toc+:} false
; then :
30505 $as_echo_n "(cached) " >&6
30507 gcc_cv_ld_large_toc
=no
30508 if test x
$gcc_cv_as != x
; then
30509 cat > conftest.s
<<EOF
30519 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
30520 gcc_cv_ld_large_toc
=yes
30522 rm -f conftest conftest.o conftest.s
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30527 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30528 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30530 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30537 $as_echo_n "checking linker --build-id support... " >&6; }
30538 if ${gcc_cv_ld_buildid+:} false
; then :
30539 $as_echo_n "(cached) " >&6
30541 gcc_cv_ld_buildid
=no
30542 if test $in_tree_ld = yes ; then
30543 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30544 "$gcc_cv_gld_minor_version" -ge 18 -o \
30545 "$gcc_cv_gld_major_version" -gt 2 \
30546 && test $in_tree_ld_is_elf = yes; then
30547 gcc_cv_ld_buildid
=yes
30549 elif test x
$gcc_cv_ld != x
; then
30550 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
30551 gcc_cv_ld_buildid
=yes
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30556 $as_echo "$gcc_cv_ld_buildid" >&6; }
30557 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30559 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30563 # Check whether --enable-linker-build-id was given.
30564 if test "${enable_linker_build_id+set}" = set; then :
30565 enableval
=$enable_linker_build_id;
30567 enable_linker_build_id
=no
30571 if test x
"$enable_linker_build_id" = xyes
; then
30572 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30574 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30578 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30582 # In binutils 2.21, GNU ld gained support for new emulations fully
30583 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30585 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30586 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
30587 $as_echo_n "(cached) " >&6
30589 gcc_cv_ld_sol2_emulation
=no
30590 if test $in_tree_ld = yes ; then
30591 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30592 "$gcc_cv_gld_minor_version" -ge 21 -o \
30593 "$gcc_cv_gld_major_version" -gt 2 \
30594 && test $in_tree_ld_is_elf = yes; then
30595 gcc_cv_ld_sol2_emulation
=yes
30597 elif test x
$gcc_cv_ld != x
; then
30598 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
30599 grep _sol2
> /dev
/null
; then
30600 gcc_cv_ld_sol2_emulation
=yes
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30605 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30606 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
30608 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30613 $as_echo_n "checking linker --sysroot support... " >&6; }
30614 if ${gcc_cv_ld_sysroot+:} false
; then :
30615 $as_echo_n "(cached) " >&6
30617 gcc_cv_ld_sysroot
=no
30618 if test $in_tree_ld = yes ; then
30619 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
30620 gcc_cv_ld_sysroot
=yes
30622 elif test x
$gcc_cv_ld != x
; then
30623 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
30624 gcc_cv_ld_sysroot
=yes
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30629 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30630 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
30632 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30638 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30640 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30641 if ${gcc_cv_solaris_crts+:} false
; then :
30642 $as_echo_n "(cached) " >&6
30644 gcc_cv_solaris_crts
=no
30645 if test x
$host != x
$target; then
30646 if test "x$with_sysroot" = xyes
; then
30647 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
30649 target_sysroot
="${with_sysroot}"
30652 target_libdir
="$target_sysroot/usr/lib"
30653 # At the time they were added, gcrt1.o became a symlink for backwards
30654 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30656 i?
86-*-solaris2* | x86_64-
*-solaris2*)
30657 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
30659 sparc
*-*-solaris2*)
30660 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30665 $as_echo "$gcc_cv_solaris_crts" >&6; }
30668 if test x
$gcc_cv_solaris_crts = xyes
; then
30670 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30674 # Check whether --enable-libssp was given.
30675 if test "${enable_libssp+set}" = set; then :
30676 enableval
=$enable_libssp; case "${enableval}" in
30680 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
30686 # Test for stack protector support in target C library.
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30688 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30689 if ${gcc_cv_libc_provides_ssp+:} false
; then :
30690 $as_echo_n "(cached) " >&6
30692 gcc_cv_libc_provides_ssp
=no
30693 if test "x$enable_libssp" = "xno"; then
30694 gcc_cv_libc_provides_ssp
=yes
30695 elif test "x$enable_libssp" = "xyes"; then
30696 gcc_cv_libc_provides_ssp
=no
30700 # All versions of musl provide stack protector
30701 gcc_cv_libc_provides_ssp
=yes;;
30702 *-*-linux* |
*-*-kfreebsd*-gnu)
30703 # glibc 2.4 and later provides __stack_chk_fail and
30704 # either __stack_chk_guard, or TLS access to stack guard canary.
30706 if test $glibc_version_major -gt 2 \
30707 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30708 gcc_cv_libc_provides_ssp
=yes
30711 if test -f $target_header_dir/features.h \
30712 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30713 $target_header_dir/features.h
> /dev
/null
; then
30714 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30715 $target_header_dir/features.h
> /dev
/null
&& \
30716 test -f $target_header_dir/bits
/uClibc_config.h
&& \
30717 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30718 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
30719 gcc_cv_libc_provides_ssp
=yes
30721 # all versions of Bionic support stack protector
30722 elif test -f $target_header_dir/sys
/cdefs.h \
30723 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30724 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
30725 gcc_cv_libc_provides_ssp
=yes
30730 # Avoid complicated tests (see
30731 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30732 # simply assert that glibc does provide this, which is true for all
30733 # realistically usable GNU/Hurd configurations.
30734 # All supported versions of musl provide it as well
30735 gcc_cv_libc_provides_ssp
=yes;;
30736 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
30737 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30738 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
30739 gcc_cv_libc_provides_ssp
=yes
30741 echo "no __stack_chk_fail on this target"
30745 *) gcc_cv_libc_provides_ssp
=no
;;
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30750 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30752 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
30754 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30758 # Check whether --enable-default-ssp was given.
30759 # Check whether --enable-default-ssp was given.
30760 if test "${enable_default_ssp+set}" = set; then :
30761 enableval
=$enable_default_ssp;
30762 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
30764 ia64
*-*-*) enable_default_ssp
=no
;;
30765 *) enable_default_ssp
=$enableval ;;
30768 enable_default_ssp
=no
30771 enable_default_ssp
=no
30774 if test x
$enable_default_ssp = xyes
; then
30776 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30781 # Test for <sys/sdt.h> on the target.
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30784 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30786 if test -f $target_header_dir/sys
/sdt.h
; then
30789 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30793 $as_echo "$have_sys_sdt_h" >&6; }
30795 # Check if TFmode long double should be used by default or not.
30796 # Some glibc targets used DFmode long double, but with glibc 2.4
30797 # and later they can use TFmode.
30799 powerpc
*-*-linux* | \
30800 sparc
*-*-linux* | \
30804 # Check whether --with-long-double-128 was given.
30805 if test "${with_long_double_128+set}" = set; then :
30806 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
30810 s390
*-*-linux-musl*)
30811 gcc_cv_target_ldbl128
=yes
30813 powerpc
*-*-linux-musl*)
30814 gcc_cv_target_ldbl128
=no
30818 if test $glibc_version_major -gt 2 \
30819 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30820 gcc_cv_target_ldbl128
=yes
30823 gcc_cv_target_ldbl128
=no
30824 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
30825 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
30826 && gcc_cv_target_ldbl128
=yes
30837 if test x
$gcc_cv_target_ldbl128 = xyes
; then
30839 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30843 # Check if TFmode long double target should use the IBM extended double or IEEE
30844 # 128-bit floating point formats if long doubles are 128-bits long. The long
30845 # double type can only be switched on powerpc64 bit Linux systems where VSX is
30846 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
30849 # Check whether --with-long-double-format was given.
30850 if test "${with_long_double_format+set}" = set; then :
30851 withval
=$with_long_double_format;
30852 case "$target:$with_long_double_format" in
30853 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
30856 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
30857 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30858 case "$with_cpu" in
30859 power7 | power8 | power9 | power1
*)
30863 as_fn_error $?
"Configuration option --with-long-double-format is only \
30864 supported if the default cpu is power7 or newer" "$LINENO" 5
30865 with_long_double_format
=""
30869 xpowerpc64
*-*-linux*:*)
30870 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30871 with_long_double_format
=""
30874 as_fn_error $?
"Configure option --with-long-double-format is only supported \
30875 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30876 with_long_double_format
=""
30882 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
30883 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
30884 gcc_cv_libc_provides_hwcap_in_tcb
=no
30888 if test $glibc_version_major -gt 2 \
30889 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
30890 gcc_cv_libc_provides_hwcap_in_tcb
=yes
30894 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
30896 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
30900 # Check if the target LIBC handles PT_GNU_STACK.
30901 gcc_cv_libc_gnustack
=unknown
30905 if test $glibc_version_major -gt 2 \
30906 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
30907 gcc_cv_libc_gnustack
=yes
30911 if test x
$gcc_cv_libc_gnustack = xyes
; then
30913 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
30918 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
30919 gcc_cv_target_dl_iterate_phdr
=unknown
30922 # <link.h> needs both a dl_iterate_phdr declaration and support for
30923 # compilation with largefile support.
30924 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
30925 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
30926 gcc_cv_target_dl_iterate_phdr
=yes
30928 gcc_cv_target_dl_iterate_phdr
=no
30931 *-*-dragonfly* |
*-*-freebsd*)
30932 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
30933 gcc_cv_target_dl_iterate_phdr
=yes
30935 gcc_cv_target_dl_iterate_phdr
=no
30939 gcc_cv_target_dl_iterate_phdr
=yes
30943 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
30945 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
30949 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
30951 # We no longer support different GC mechanisms. Emit an error if
30952 # the user configures with --with-gc.
30954 # Check whether --with-gc was given.
30955 if test "${with_gc+set}" = set; then :
30956 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
30960 # Libraries to use on the host. This will normally be set by the top
30961 # level Makefile. Here we simply capture the value for our Makefile.
30962 if test -z "${HOST_LIBS+set}"; then
30967 # Use the system's zlib library.
30969 # Use the system's zlib library.
30970 zlibdir
="-L\$(top_builddir)/../zlib"
30971 zlibinc
="-I\$(top_srcdir)/../zlib"
30973 # Check whether --with-system-zlib was given.
30974 if test "${with_system_zlib+set}" = set; then :
30975 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
30987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
30988 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
30989 # Check whether --enable-maintainer-mode was given.
30990 if test "${enable_maintainer_mode+set}" = set; then :
30991 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30998 $as_echo "$maintainer_mode" >&6; }
31000 if test "$maintainer_mode" = "yes"; then
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31008 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31009 # Check whether --enable-link-mutex was given.
31010 if test "${enable_link_mutex+set}" = set; then :
31011 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31017 $as_echo "$do_link_mutex" >&6; }
31019 if test "$do_link_mutex" = "yes"; then
31022 DO_LINK_MUTEX
=false
31030 # Make empty files to contain the specs and options for each language.
31031 # Then add #include lines to for a compiler that has specs and/or options.
31037 # These (without "all_") are set in each config-lang.in.
31038 # `language' must be a single word so is spelled singularly.
31041 all_outputs
='Makefile'
31042 # List of language configure and makefile fragments.
31043 all_lang_configurefrags
=
31044 all_lang_makefrags
=
31045 # Additional files for gengtype
31046 all_gtfiles
="$target_gtfiles"
31048 # These are the languages that are set in --enable-languages,
31049 # and are available in the GCC tree.
31050 all_selected_languages
=
31052 # Add the language fragments.
31053 # Languages are added via two mechanisms. Some information must be
31054 # recorded in makefile variables, these are defined in config-lang.in.
31055 # We accumulate them and plug them into the main Makefile.
31056 # The other mechanism is a set of hooks for each of the main targets
31057 # like `clean', `install', etc.
31059 language_hooks
="Make-hooks"
31061 for lang
in ${srcdir}/*/config-lang.
in
31063 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31065 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31066 if test "x$lang_alias" = x
31068 echo "$lang doesn't set \$language." 1>&2
31071 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31072 subdirs
="$subdirs $subdir"
31074 # $gcc_subdir is where the gcc integration files are to be found
31075 # for a language, both for internal compiler purposes (compiler
31076 # sources implementing front-end to GCC tree converters), and for
31077 # build infrastructure purposes (Make-lang.in, etc.)
31079 # This will be <subdir> (relative to $srcdir) if a line like
31080 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31081 # is found in <langdir>/config-lang.in, and will remain <langdir>
31084 # Except for the language alias (fetched above), the regular
31085 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31086 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31087 # only this and the language alias.
31089 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31090 if [ "$gcc_subdir" = "" ]; then
31091 gcc_subdir
="$subdir"
31094 case ",$enable_languages," in
31096 all_selected_languages
="$all_selected_languages $lang_alias"
31097 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31098 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31109 .
${srcdir}/$gcc_subdir/config-lang.
in
31110 if test "x$language" = x
31112 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31117 case ",$enable_languages," in
31118 *,$lang_alias,*) ;;
31120 for i
in $subdir_requires; do
31121 test -f "${srcdir}/$i/config-lang.in" && continue
31129 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31130 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31131 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31132 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31133 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31135 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31136 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31138 all_languages
="$all_languages $language"
31139 all_compilers
="$all_compilers $compilers"
31140 all_outputs
="$all_outputs $outputs"
31141 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31142 case ",$enable_languages," in
31145 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31155 for language
in $all_selected_languages
31157 check_languages
="$check_languages check-$language"
31160 selftest_languages
=
31161 for language
in $all_selected_languages
31163 selftest_languages
="$selftest_languages selftest-$language"
31166 # We link each language in with a set of hooks, reached indirectly via
31167 # lang.${target}. Only do so for selected languages.
31171 target_list
="all.cross start.encap rest.encap tags \
31172 install-common install-man install-info install-pdf install-html dvi \
31173 pdf html uninstall info man srcextra srcman srcinfo \
31174 mostlyclean clean distclean maintainer-clean install-plugin"
31176 for t
in $target_list
31179 for lang
in $all_selected_languages
31183 echo "lang.$t: $x" >> Make-hooks
31187 # Option include files
31190 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31191 option_includes
="option-includes.mk"
31200 echo "dir ." > .gdbinit
31201 echo "dir ${srcdir}" >> .gdbinit
31202 if test x
$gdb_needs_out_file_path = xyes
31204 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31206 if test "x$subdirs" != x
; then
31209 echo "dir ${srcdir}/$s" >> .gdbinit
31212 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31213 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31215 # Put a breakpoint on __asan_report_error to help with debugging buffer
31218 *-fsanitize=address
*)
31219 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31223 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31227 # Find a directory in which to install a shared libgcc.
31229 # Check whether --enable-version-specific-runtime-libs was given.
31230 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31231 enableval
=$enable_version_specific_runtime_libs;
31235 # Substitute configuration variables
31304 if test x
${build} = x
${host} ; then
31305 if test x
${host} = x
${target} ; then
31306 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31308 echo "Links are now set up to build a cross-compiler" 1>&2
31309 echo " from ${host} to ${target}." 1>&2
31312 if test x
${host} = x
${target} ; then
31313 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31314 echo " for ${target}." 1>&2
31316 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31317 echo " from ${host} to ${target}." 1>&2
31326 if test "x${ISLLIBS}" != "x" ; then
31328 $as_echo "#define HAVE_isl 1" >>confdefs.h
31332 # Check for plugin support
31333 # Check whether --enable-plugin was given.
31334 if test "${enable_plugin+set}" = set; then :
31335 enableval
=$enable_plugin; enable_plugin
=$enableval
31337 enable_plugin
=yes; default_plugin
=yes
31346 # Since plugin support under MinGW is not as straightforward as on
31347 # other platforms (e.g., we have to link import library, etc), we
31348 # only enable it if explicitly requested.
31349 if test x
"$default_plugin" = x
"yes"; then
31351 elif test x
"$enable_plugin" = x
"yes"; then
31352 # Use make's target variable to derive import library name.
31353 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31358 if test x
$build = x
$host; then
31359 export_sym_check
="nm${exeext} -g"
31360 elif test x
$host = x
$target; then
31361 export_sym_check
="$gcc_cv_nm -g"
31367 if test x
$build = x
$host; then
31368 export_sym_check
="objdump${exeext} -T"
31369 elif test x
$host = x
$target; then
31370 export_sym_check
="$gcc_cv_objdump -T"
31377 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31380 $as_echo_n "checking for exported symbols... " >&6; }
31381 if test "x$export_sym_check" != x
; then
31382 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31383 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31384 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31385 : # No need to use a flag
31386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31387 $as_echo "yes" >&6; }
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31390 $as_echo "yes" >&6; }
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31392 $as_echo_n "checking for -rdynamic... " >&6; }
31393 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31394 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31395 plugin_rdynamic
=yes
31396 pluginlibs
="-rdynamic"
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31402 $as_echo "$plugin_rdynamic" >&6; }
31405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31406 $as_echo "unable to check" >&6; }
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31412 $as_echo_n "checking for library containing dlopen... " >&6; }
31413 if ${ac_cv_search_dlopen+:} false
; then :
31414 $as_echo_n "(cached) " >&6
31416 ac_func_search_save_LIBS
=$LIBS
31417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31418 /* end confdefs.h. */
31420 /* Override any GCC internal prototype to avoid an error.
31421 Use char because int might match the return type of a GCC
31422 builtin and then its argument prototype would still apply. */
31435 for ac_lib
in '' dl
; do
31436 if test -z "$ac_lib"; then
31437 ac_res
="none required"
31440 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31442 if ac_fn_cxx_try_link
"$LINENO"; then :
31443 ac_cv_search_dlopen
=$ac_res
31445 rm -f core conftest.err conftest.
$ac_objext \
31447 if ${ac_cv_search_dlopen+:} false
; then :
31451 if ${ac_cv_search_dlopen+:} false
; then :
31454 ac_cv_search_dlopen
=no
31456 rm conftest.
$ac_ext
31457 LIBS
=$ac_func_search_save_LIBS
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31460 $as_echo "$ac_cv_search_dlopen" >&6; }
31461 ac_res
=$ac_cv_search_dlopen
31462 if test "$ac_res" != no
; then :
31463 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31467 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
31468 pluginlibs
="$pluginlibs -ldl"
31472 # Check that we can build shared objects with -fPIC -shared
31473 saved_LDFLAGS
="$LDFLAGS"
31474 saved_CFLAGS
="$CFLAGS"
31477 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31478 CFLAGS
="$CFLAGS -fPIC"
31479 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
31482 CFLAGS
="$CFLAGS -fPIC"
31483 LDFLAGS
="$LDFLAGS -fPIC -shared"
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31487 $as_echo_n "checking for -fPIC -shared... " >&6; }
31488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31489 /* end confdefs.h. */
31499 if ac_fn_cxx_try_link
"$LINENO"; then :
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31501 $as_echo "yes" >&6; }; have_pic_shared
=yes
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31504 $as_echo "no" >&6; }; have_pic_shared
=no
31506 rm -f core conftest.err conftest.
$ac_objext \
31507 conftest
$ac_exeext conftest.
$ac_ext
31508 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
31512 LDFLAGS
="$saved_LDFLAGS"
31513 CFLAGS
="$saved_CFLAGS"
31515 # If plugin support had been requested but not available, fail.
31516 if test x
"$enable_plugin" = x
"no" ; then
31517 if test x
"$default_plugin" != x
"yes"; then
31519 Building GCC with plugin support requires a host that supports
31520 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31527 if test x
"$enable_plugin" = x
"yes"; then
31529 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31534 # Enable --enable-host-shared
31535 # Check whether --enable-host-shared was given.
31536 if test "${enable_host_shared+set}" = set; then :
31537 enableval
=$enable_host_shared; PICFLAG
=-fPIC
31546 # Check whether --enable-libquadmath-support was given.
31547 if test "${enable_libquadmath_support+set}" = set; then :
31548 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
31550 ENABLE_LIBQUADMATH_SUPPORT
=yes
31553 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31555 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31560 # Specify what hash style to use by default.
31562 # Check whether --with-linker-hash-style was given.
31563 if test "${with_linker_hash_style+set}" = set; then :
31564 withval
=$with_linker_hash_style; case x
"$withval" in
31566 LINKER_HASH_STYLE
=sysv
31569 LINKER_HASH_STYLE
=gnu
31572 LINKER_HASH_STYLE
=both
31575 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31579 LINKER_HASH_STYLE
=''
31582 if test x
"${LINKER_HASH_STYLE}" != x
; then
31584 cat >>confdefs.h
<<_ACEOF
31585 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31590 # Specify what should be the default of -fdiagnostics-color option.
31592 # Check whether --with-diagnostics-color was given.
31593 if test "${with_diagnostics_color+set}" = set; then :
31594 withval
=$with_diagnostics_color; case x
"$withval" in
31596 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
31599 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
31602 DIAGNOSTICS_COLOR_DEFAULT
=-1
31605 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
31608 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31612 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
31616 cat >>confdefs.h
<<_ACEOF
31617 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31621 # Specify what should be the default of -fdiagnostics-urls option.
31623 # Check whether --with-diagnostics-urls was given.
31624 if test "${with_diagnostics_urls+set}" = set; then :
31625 withval
=$with_diagnostics_urls; case x
"$withval" in
31627 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
31630 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
31633 DIAGNOSTICS_URLS_DEFAULT
=-1
31636 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
31639 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31643 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
31647 cat >>confdefs.h
<<_ACEOF
31648 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
31652 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
31653 # of jit/jit-playback.c.
31654 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
31655 echo "gcc_driver_version: ${gcc_driver_version}"
31656 cat > gcc-driver-name.h
<<EOF
31657 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31660 # Check whether --enable-default-pie was given.
31661 # Check whether --enable-default-pie was given.
31662 if test "${enable_default_pie+set}" = set; then :
31663 enableval
=$enable_default_pie; enable_default_pie
=$enableval
31665 enable_default_pie
=no
31668 if test x
$enable_default_pie = xyes
; then
31670 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31675 # Check if -fno-PIE works.
31676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31677 $as_echo_n "checking for -fno-PIE option... " >&6; }
31678 if ${gcc_cv_c_no_fpie+:} false
; then :
31679 $as_echo_n "(cached) " >&6
31681 saved_CXXFLAGS
="$CXXFLAGS"
31682 CXXFLAGS
="$CXXFLAGS -fno-PIE"
31683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31684 /* end confdefs.h. */
31685 int main(void) {return 0;}
31687 if ac_fn_cxx_try_compile
"$LINENO"; then :
31688 gcc_cv_c_no_fpie
=yes
31690 gcc_cv_c_no_fpie
=no
31692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31693 CXXFLAGS
="$saved_CXXFLAGS"
31695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31696 $as_echo "$gcc_cv_c_no_fpie" >&6; }
31697 if test "$gcc_cv_c_no_fpie" = "yes"; then
31698 NO_PIE_CFLAGS
="-fno-PIE"
31702 # Check if -no-pie works.
31703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31704 $as_echo_n "checking for -no-pie option... " >&6; }
31705 if ${gcc_cv_no_pie+:} false
; then :
31706 $as_echo_n "(cached) " >&6
31708 saved_LDFLAGS
="$LDFLAGS"
31709 LDFLAGS
="$LDFLAGS -no-pie"
31710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31711 /* end confdefs.h. */
31712 int main(void) {return 0;}
31714 if ac_fn_cxx_try_link
"$LINENO"; then :
31719 rm -f core conftest.err conftest.
$ac_objext \
31720 conftest
$ac_exeext conftest.
$ac_ext
31721 LDFLAGS
="$saved_LDFLAGS"
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31724 $as_echo "$gcc_cv_no_pie" >&6; }
31725 if test "$gcc_cv_no_pie" = "yes"; then
31726 NO_PIE_FLAG
="-no-pie"
31730 # Enable Intel CET on Intel CET enabled host if jit is enabled.
31731 # Check whether --enable-cet was given.
31732 if test "${enable_cet+set}" = set; then :
31733 enableval
=$enable_cet;
31734 case "$enableval" in
31736 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31745 $as_echo_n "checking for CET support... " >&6; }
31748 i
[34567]86-*-linux* | x86_64-
*-linux*)
31750 save_CFLAGS
="$CFLAGS"
31751 CFLAGS
="$CFLAGS -fcf-protection"
31752 case "$enable_cet" in
31754 # Check if target supports multi-byte NOPs
31755 # and if assembler supports CET insn.
31756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31757 /* end confdefs.h. */
31763 #if !defined(__SSE2__)
31764 #error target does not support multi-byte NOPs
31773 if ac_fn_cxx_try_compile
"$LINENO"; then :
31778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31781 # Check if assembler supports CET.
31782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31783 /* end confdefs.h. */
31793 if ac_fn_cxx_try_compile
"$LINENO"; then :
31796 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
31798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31801 CFLAGS
="$save_CFLAGS"
31809 save_CFLAGS
="$CFLAGS"
31810 CFLAGS
="$CFLAGS -fcf-protection=none"
31811 save_LDFLAGS
="$LDFLAGS"
31812 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
31813 if test x
$may_have_cet = xyes
; then
31814 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
31815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31816 /* end confdefs.h. */
31826 if ac_fn_cxx_try_link
"$LINENO"; then :
31831 rm -f core conftest.err conftest.
$ac_objext \
31832 conftest
$ac_exeext conftest.
$ac_ext
31835 if test x
$may_have_cet = xyes
; then
31836 if test x
$cross_compiling = xno
; then
31837 if test "$cross_compiling" = yes; then :
31838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31840 as_fn_error $?
"cannot run test program while cross compiling
31841 See \`config.log' for more details" "$LINENO" 5; }
31843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31844 /* end confdefs.h. */
31852 __attribute__ ((noinline, noclone))
31853 xxx (void (*f) (void))
31859 __attribute__ ((noinline, noclone))
31873 if ac_fn_cxx_try_run
"$LINENO"; then :
31878 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
31879 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
31882 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
31883 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
31887 # Enable CET in cross compiler if possible so that it will run on both
31888 # CET and non-CET hosts.
31891 if test x
$enable_cet = xyes
; then
31892 CET_HOST_FLAGS
="-fcf-protection"
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31894 $as_echo "yes" >&6; }
31896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31897 $as_echo "no" >&6; }
31899 CFLAGS
="$save_CFLAGS"
31900 LDFLAGS
="$save_LDFLAGS"
31902 case x
$enable_languages in
31911 # Check linker supports '-z bndplt'
31912 ld_bndplt_support
=no
31913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
31914 $as_echo_n "checking linker -z bndplt option... " >&6; }
31915 if test x
"$ld_is_gold" = xno
; then
31916 if test $in_tree_ld = yes ; then
31917 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
31918 ld_bndplt_support
=yes
31920 elif test x
$gcc_cv_ld != x
; then
31921 # Check if linker supports -a bndplt option
31922 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
31923 ld_bndplt_support
=yes
31927 if test x
"$ld_bndplt_support" = xyes
; then
31929 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
31933 $as_echo "$ld_bndplt_support" >&6; }
31935 # Check linker supports '--push-state'/'--pop-state'
31936 ld_pushpopstate_support
=no
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
31938 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
31939 if test x
"$ld_is_gold" = xno
; then
31940 if test $in_tree_ld = yes ; then
31941 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
31942 ld_pushpopstate_support
=yes
31944 elif test x
$gcc_cv_ld != x
; then
31945 # Check if linker supports --push-state/--pop-state options
31946 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
31947 ld_pushpopstate_support
=yes
31951 if test x
"$ld_pushpopstate_support" = xyes
; then
31953 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
31957 $as_echo "$ld_pushpopstate_support" >&6; }
31959 # Configure the subdirectories
31960 # AC_CONFIG_SUBDIRS($subdirs)
31962 # Create the Makefile
31963 # and configure language subdirectories
31964 ac_config_files
="$ac_config_files $all_outputs"
31967 ac_config_commands
="$ac_config_commands default"
31969 cat >confcache
<<\_ACEOF
31970 # This file is a shell script that caches the results of configure
31971 # tests run on this system so they can be shared between configure
31972 # scripts and configure runs, see configure's option --config-cache.
31973 # It is not useful on other systems. If it contains results you don't
31974 # want to keep, you may remove or edit it.
31976 # config.status only pays attention to the cache file if you give it
31977 # the --recheck option to rerun configure.
31979 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31980 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31981 # following values.
31985 # The following way of writing the cache mishandles newlines in values,
31986 # but we know of no workaround that is simple, portable, and efficient.
31987 # So, we kill variables containing newlines.
31988 # Ultrix sh set writes to stderr and can't be redirected directly,
31989 # and sets the high bit in the cache file unless we assign to the vars.
31991 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31992 eval ac_val
=\$
$ac_var
31996 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31997 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32000 _ | IFS | as_nl
) ;; #(
32001 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32002 *) { eval $ac_var=; unset $ac_var;} ;;
32008 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32009 *${as_nl}ac_space
=\
*)
32010 # `set' does not quote correctly, so add quotes: double-quote
32011 # substitution turns \\\\ into \\, and sed turns \\ into \.
32014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32017 # `set' quotes correctly as required by POSIX, so do not add quotes.
32018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32027 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32029 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32031 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32032 if test -w "$cache_file"; then
32033 if test "x$cache_file" != "x/dev/null"; then
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32035 $as_echo "$as_me: updating cache $cache_file" >&6;}
32036 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32037 cat confcache
>"$cache_file"
32039 case $cache_file in #(
32041 mv -f confcache
"$cache_file"$$
&&
32042 mv -f "$cache_file"$$
"$cache_file" ;; #(
32044 mv -f confcache
"$cache_file" ;;
32049 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32050 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32055 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32056 # Let make expand exec_prefix.
32057 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32059 DEFS
=-DHAVE_CONFIG_H
32064 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32065 # 1. Remove the extension, and $U if already installed.
32066 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32067 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32068 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32069 # will be set to the directory where LIBOBJS objects are built.
32070 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32071 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32073 LIBOBJS
=$ac_libobjs
32075 LTLIBOBJS
=$ac_ltlibobjs
32080 : "${CONFIG_STATUS=./config.status}"
32082 ac_clean_files_save
=$ac_clean_files
32083 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32085 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32087 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32089 # Generated by $as_me.
32090 # Run this file to recreate the current configuration.
32091 # Compiler output produced by configure, useful for debugging
32092 # configure, is in config.log if it exists.
32095 ac_cs_recheck=false
32098 SHELL=\${CONFIG_SHELL-$SHELL}
32101 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32102 ## -------------------- ##
32103 ## M4sh Initialization. ##
32104 ## -------------------- ##
32106 # Be more Bourne compatible
32107 DUALCASE
=1; export DUALCASE
# for MKS sh
32108 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32112 # is contrary to our usage. Disable this feature.
32113 alias -g '${1+"$@"}'='"$@"'
32114 setopt NO_GLOB_SUBST
32116 case `(set -o) 2>/dev/null` in #(
32128 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32129 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32132 # Prefer a ksh shell builtin over an external printf program on Solaris,
32133 # but without wasting forks for bash or zsh.
32134 if test -z "$BASH_VERSION$ZSH_VERSION" \
32135 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32136 as_echo='print
-r --'
32137 as_echo_n='print
-rn --'
32138 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32139 as_echo='printf %s
\n'
32140 as_echo_n='printf %s
'
32142 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32143 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32144 as_echo_n='/usr
/ucb
/echo -n'
32146 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32147 as_echo_n_body='eval
32151 expr "X$arg" : "X\\(.*\\)$as_nl";
32152 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32154 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32156 export as_echo_n_body
32157 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32159 export as_echo_body
32160 as_echo='sh
-c $as_echo_body as_echo
'
32163 # The user is always right.
32164 if test "${PATH_SEPARATOR+set}" != set; then
32166 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32167 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32174 # We need space, tab and new line, in precisely that order. Quoting is
32175 # there to prevent editors from complaining about space-tab.
32176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32177 # splitting by setting IFS to empty value.)
32180 # Find who we are. Look in the path if we contain no directory separator.
32183 *[\\/]* ) as_myself=$0 ;;
32184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32185 for as_dir in $PATH
32188 test -z "$as_dir" && as_dir=.
32189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32195 # We did not find ourselves, most probably we were run as `sh COMMAND'
32196 # in which case we are not to be found in the path.
32197 if test "x$as_myself" = x
; then
32200 if test ! -f "$as_myself"; then
32201 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32205 # Unset variables that we do not need and which cause bugs (e.g. in
32206 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32207 # suppresses any "Segmentation fault" message there. '((' could
32208 # trigger a bug in pdksh 5.2.14.
32209 for as_var
in BASH_ENV ENV MAIL MAILPATH
32210 do eval test x\
${$as_var+set} = xset \
32211 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32224 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32227 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32228 # ----------------------------------------
32229 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32230 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32231 # script with STATUS, using 1 if that was 0.
32234 as_status
=$1; test $as_status -eq 0 && as_status
=1
32236 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32237 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32239 $as_echo "$as_me: error: $2" >&2
32240 as_fn_exit
$as_status
32244 # as_fn_set_status STATUS
32245 # -----------------------
32246 # Set $? to STATUS, without forking.
32247 as_fn_set_status
()
32250 } # as_fn_set_status
32252 # as_fn_exit STATUS
32253 # -----------------
32254 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32258 as_fn_set_status
$1
32264 # Portably unset VAR.
32267 { eval $1=; unset $1;}
32269 as_unset
=as_fn_unset
32270 # as_fn_append VAR VALUE
32271 # ----------------------
32272 # Append the text in VALUE to the end of the definition contained in VAR. Take
32273 # advantage of any shell optimizations that allow amortized linear growth over
32274 # repeated appends, instead of the typical quadratic growth present in naive
32276 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32277 eval 'as_fn_append ()
32288 # as_fn_arith ARG...
32289 # ------------------
32290 # Perform arithmetic evaluation on the ARGs, and store the result in the
32291 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32292 # must be portable across $(()) and expr.
32293 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32294 eval 'as_fn_arith ()
32301 as_val
=`expr "$@" || test $? -eq 1`
32306 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32307 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32313 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32314 as_basename
=basename
32319 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32325 as_me
=`$as_basename -- "$0" ||
32326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32327 X"$0" : 'X\(//\)$' \| \
32328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32330 sed '/^.*\/\([^/][^/]*\)\/*$/{
32344 # Avoid depending upon Character Ranges.
32345 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32346 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32347 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32348 as_cr_digits
='0123456789'
32349 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32351 ECHO_C
= ECHO_N
= ECHO_T
=
32352 case `echo -n x` in #(((((
32354 case `echo 'xy\c'` in
32355 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32357 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32364 rm -f conf$$ conf$$.exe conf$$.
file
32365 if test -d conf$$.dir
; then
32366 rm -f conf$$.dir
/conf$$.
file
32369 mkdir conf$$.dir
2>/dev
/null
32371 if (echo >conf$$.
file) 2>/dev
/null
; then
32372 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32374 # ... but there are two gotchas:
32375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32377 # In both cases, we have to default to `cp -pR'.
32378 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
32380 elif ln conf$$.
file conf$$
2>/dev
/null
; then
32388 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
32389 rmdir conf$$.dir
2>/dev
/null
32394 # Create "$as_dir" as a directory, including parents if necessary.
32399 -*) as_dir
=.
/$as_dir;;
32401 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
32405 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32406 *) as_qdir
=$as_dir;;
32408 as_dirs
="'$as_qdir' $as_dirs"
32409 as_dir
=`$as_dirname -- "$as_dir" ||
32410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32411 X"$as_dir" : 'X\(//\)[^/]' \| \
32412 X"$as_dir" : 'X\(//\)$' \| \
32413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32414 $as_echo X"$as_dir" |
32415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32419 /^X\(\/\/\)[^/].*/{
32432 test -d "$as_dir" && break
32434 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32435 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
32439 if mkdir
-p .
2>/dev
/null
; then
32440 as_mkdir_p
='mkdir -p "$as_dir"'
32442 test -d .
/-p && rmdir .
/-p
32447 # as_fn_executable_p FILE
32448 # -----------------------
32449 # Test if FILE is an executable regular file.
32450 as_fn_executable_p
()
32452 test -f "$1" && test -x "$1"
32453 } # as_fn_executable_p
32454 as_test_x
='test -x'
32455 as_executable_p
=as_fn_executable_p
32457 # Sed expression to map a string onto a valid CPP name.
32458 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32460 # Sed expression to map a string onto a valid variable name.
32461 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32465 ## ----------------------------------- ##
32466 ## Main body of $CONFIG_STATUS script. ##
32467 ## ----------------------------------- ##
32469 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
32471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32472 # Save the log message, to keep $0 and so on meaningful, and to
32473 # report actual input values of CONFIG_FILES etc. instead of their
32474 # values after options handling.
32476 This file was extended by $as_me, which was
32477 generated by GNU Autoconf 2.69. Invocation command line was
32479 CONFIG_FILES = $CONFIG_FILES
32480 CONFIG_HEADERS = $CONFIG_HEADERS
32481 CONFIG_LINKS = $CONFIG_LINKS
32482 CONFIG_COMMANDS = $CONFIG_COMMANDS
32485 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32490 case $ac_config_files in *"
32491 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
32494 case $ac_config_headers in *"
32495 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
32499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32500 # Files that config.status was made for.
32501 config_files="$ac_config_files"
32502 config_headers="$ac_config_headers"
32503 config_links="$ac_config_links"
32504 config_commands="$ac_config_commands"
32508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32510 \`$as_me' instantiates files and other configuration actions
32511 from templates according to the current configuration. Unless the files
32512 and actions are specified as TAGs, all are instantiated by default.
32514 Usage: $0 [OPTION]... [TAG]...
32516 -h, --help print this help, then exit
32517 -V, --version print version number and configuration settings, then exit
32518 --config print configuration, then exit
32519 -q, --quiet, --silent
32520 do not print progress messages
32521 -d, --debug don't remove temporary files
32522 --recheck update $as_me by reconfiguring in the same conditions
32523 --file=FILE[:TEMPLATE]
32524 instantiate the configuration file FILE
32525 --header=FILE[:TEMPLATE]
32526 instantiate the configuration header FILE
32528 Configuration files:
32531 Configuration headers:
32534 Configuration links:
32537 Configuration commands:
32540 Report bugs to the package provider."
32543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32547 configured by $0, generated by GNU Autoconf 2.69,
32548 with options \\"\$ac_cs_config\\"
32550 Copyright (C) 2012 Free Software Foundation, Inc.
32551 This config.status script is free software; the Free Software Foundation
32552 gives unlimited permission to copy, distribute and modify it."
32557 test -n "\$AWK" || AWK=awk
32560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32561 # The default lists apply if the user does not specify any file.
32567 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32568 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
32572 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32584 # Handling of the options.
32585 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
32587 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
32588 $as_echo "$ac_cs_version"; exit ;;
32589 --config |
--confi |
--conf |
--con |
--co |
--c )
32590 $as_echo "$ac_cs_config"; exit ;;
32591 --debug |
--debu |
--deb |
--de |
--d |
-d )
32593 --file |
--fil |
--fi |
--f )
32596 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32597 '') as_fn_error $?
"missing file argument" ;;
32599 as_fn_append CONFIG_FILES
" '$ac_optarg'"
32600 ac_need_defaults
=false
;;
32601 --header |
--heade |
--head |
--hea )
32604 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32606 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
32607 ac_need_defaults
=false
;;
32609 # Conflict between --help and --header
32610 as_fn_error $?
"ambiguous option: \`$1'
32611 Try \`$0 --help' for more information.";;
32612 --help |
--hel |
-h )
32613 $as_echo "$ac_cs_usage"; exit ;;
32614 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32615 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32618 # This is an error.
32619 -*) as_fn_error $?
"unrecognized option: \`$1'
32620 Try \`$0 --help' for more information." ;;
32622 *) as_fn_append ac_config_targets
" $1"
32623 ac_need_defaults
=false
;;
32629 ac_configure_extra_args
=
32631 if $ac_cs_silent; then
32633 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32638 if \$ac_cs_recheck; then
32639 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32642 CONFIG_SHELL='$SHELL'
32643 export CONFIG_SHELL
32648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32653 ## Running $as_me. ##
32659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32663 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32664 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32671 # Handling of arguments.
32672 for ac_config_target
in $ac_config_targets
32674 case $ac_config_target in
32675 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
32676 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
32677 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
32678 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
32679 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
32680 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
32681 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
32682 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
32683 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
32685 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32690 # If the user did not use the arguments to specify the items to instantiate,
32691 # then the envvar interface is used. Set only those that are not.
32692 # We use the long form for the default assignment because of an extremely
32693 # bizarre bug on SunOS 4.1.3.
32694 if $ac_need_defaults; then
32695 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32696 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32697 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
32698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32701 # Have a temporary directory for convenience. Make it in the build tree
32702 # simply because there is no reason against having it here, and in addition,
32703 # creating and moving files from /tmp can sometimes cause problems.
32704 # Hook for its removal unless debugging.
32705 # Note that there is a small window in which the directory will not be cleaned:
32706 # after its creation but before its name has been assigned to `$tmp'.
32710 trap 'exit_status=$?
32711 : "${ac_tmp:=$tmp}"
32712 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32714 trap 'as_fn_exit 1' 1 2 13 15
32716 # Create a (secure) tmp directory for tmp files.
32719 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32723 tmp
=.
/conf$$
-$RANDOM
32724 (umask 077 && mkdir
"$tmp")
32725 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32728 # Set up the scripts for CONFIG_FILES section.
32729 # No need to generate them if there are no CONFIG_FILES.
32730 # This happens for instance with `./config.status config.h'.
32731 if test -n "$CONFIG_FILES"; then
32733 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
32734 ac_cs_awk_getline
=:
32735 ac_cs_awk_pipe_init
=
32736 ac_cs_awk_read_file
='
32737 while ((getline aline < (F[key])) > 0)
32740 ac_cs_awk_pipe_fini
=
32742 ac_cs_awk_getline
=false
32743 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
32744 ac_cs_awk_read_file
='
32746 print "cat " F[key] " &&"
32747 '$ac_cs_awk_pipe_init
32748 # The final `:' finishes the AND list.
32749 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
32751 ac_cr
=`echo X | tr X '\015'`
32752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32753 # But we know of no other shell where ac_cr would be empty at this
32754 # point, so we can use a bashism as a fallback.
32755 if test "x$ac_cr" = x
; then
32756 eval ac_cr
=\$
\'\\r
\'
32758 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32762 ac_cs_awk_cr
=$ac_cr
32765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32768 # Create commands to substitute file output variables.
32770 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32771 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32772 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
32775 } >conf$
$files.sh
&&
32776 . .
/conf$
$files.sh ||
32777 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
32778 rm -f conf$
$files.sh
32781 echo "cat >conf$$subs.awk <<_ACEOF" &&
32782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32784 } >conf$$subs.sh ||
32785 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32788 for ac_last_try in false false false false false :; do
32789 . ./conf$$subs.sh ||
32790 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32792 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32793 if test $ac_delim_n = $ac_delim_num; then
32795 elif $ac_last_try; then
32796 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32798 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32801 rm -f conf$$subs.sh
32803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32804 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
32808 s/^/S["/; s
/!.
*/"]=/
32818 s/\(.\{148\}\)..*/\1/
32820 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32825 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32832 s/\(.\{148\}\)..*/\1/
32834 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32838 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32843 ' <conf$$subs.awk | sed '
32848 ' >>$CONFIG_STATUS || ac_write_fail=1
32849 rm -f conf$$subs.awk
32850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32852 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
32853 for (key in S) S_is_set[key] = 1
32855 \$ac_cs_awk_pipe_init
32859 nfields = split(line, field, "@
")
32861 len = length(field[1])
32862 for (i = 2; i < nfields; i++) {
32864 keylen = length(key)
32865 if (S_is_set[key]) {
32867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32868 len += length(value) + length(field[++i])
32873 if (nfields == 3 && !substed) {
32875 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32876 \$ac_cs_awk_read_file
32882 \$ac_cs_awk_pipe_fini
32885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32886 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32887 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32890 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
32891 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
32894 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32895 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
32896 # trailing colons and then remove the whole line if VPATH becomes empty
32897 # (actually we leave an empty line to preserve line numbers).
32898 if test "x
$srcdir" = x.; then
32899 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32918 fi # test -n "$CONFIG_FILES"
32920 # Set up the scripts for CONFIG_HEADERS section.
32921 # No need to generate them if there are no CONFIG_HEADERS.
32922 # This happens for instance with `./config.status Makefile'.
32923 if test -n "$CONFIG_HEADERS"; then
32924 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
32928 # Transform confdefs.h into an awk script `defines.awk', embedded as
32929 # here-document in config.status, that substitutes the proper values into
32930 # config.h.in to produce config.h.
32932 # Create a delimiter string that does not exist in confdefs.h, to ease
32933 # handling of long lines.
32935 for ac_last_try in false false :; do
32936 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
32937 if test -z "$ac_tt"; then
32939 elif $ac_last_try; then
32940 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
32942 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32946 # For the awk script, D is an array of macro values keyed by name,
32947 # likewise P contains macro parameters if any. Preserve backslash
32948 # newline sequences.
32950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32952 s/.\{148\}/&'"$ac_delim"'/g
32955 s/^[ ]*#[ ]*define[ ][ ]*/ /
32962 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32964 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32969 D["\
1"]=" \
3\\\\\\n
"\\/p
32971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32976 s/.\{148\}/&'"$ac_delim"'/g
32981 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32984 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32986 ' <confdefs.h | sed '
32987 s/'"$ac_delim"'/"\\\
32988 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32991 for (key in D) D_is_set[key] = 1
32994 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32996 split(line, arg, " ")
32997 if (arg[1] == "#") {
33001 defundef
= substr
(arg
[1], 2)
33004 split(mac1
, mac2
, "(") #)
33006 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33007 if (D_is_set
[macro
]) {
33008 # Preserve the white space surrounding the "#".
33009 print prefix
"define", macro P
[macro
] D
[macro
]
33012 # Replace #undef with comments. This is necessary, for example,
33013 # in the case of _POSIX_SOURCE, which is predefined and required
33014 # on some systems where configure will not decide to define it.
33015 if (defundef
== "undef") {
33016 print
"/*", prefix defundef
, macro
, "*/"
33024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33025 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33026 fi # test -n "$CONFIG_HEADERS"
33029 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33034 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33036 case $ac_mode$ac_tag in
33038 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33039 :[FH
]-) ac_tag
=-:-;;
33040 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33057 -) ac_f
="$ac_tmp/stdin";;
33058 *) # Look for the file first in the build tree, then in the source tree
33059 # (if the path is not absolute). The absolute path cannot be DOS-style,
33060 # because $ac_f cannot contain `:'.
33064 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33066 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33068 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33069 as_fn_append ac_file_inputs
" '$ac_f'"
33072 # Let's still pretend it is `configure' which instantiates (i.e., don't
33073 # use $as_me), people would be surprised to read:
33074 # /* config.h. Generated by config.status. */
33075 configure_input
='Generated from '`
33076 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33078 if test x
"$ac_file" != x-
; then
33079 configure_input
="$ac_file. $configure_input"
33080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33081 $as_echo "$as_me: creating $ac_file" >&6;}
33083 # Neutralize special characters interpreted by sed in replacement strings.
33084 case $configure_input in #(
33085 *\
&* |
*\|
* |
*\\* )
33086 ac_sed_conf_input
=`$as_echo "$configure_input" |
33087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33088 *) ac_sed_conf_input
=$configure_input;;
33092 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33093 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33098 ac_dir
=`$as_dirname -- "$ac_file" ||
33099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33100 X"$ac_file" : 'X\(//\)[^/]' \| \
33101 X"$ac_file" : 'X\(//\)$' \| \
33102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33103 $as_echo X"$ac_file" |
33104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33108 /^X\(\/\/\)[^/].*/{
33121 as_dir
="$ac_dir"; as_fn_mkdir_p
33125 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33127 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33128 # A ".." for each directory in $ac_dir_suffix.
33129 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33130 case $ac_top_builddir_sub in
33131 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33132 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33135 ac_abs_top_builddir
=$ac_pwd
33136 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33137 # for backward compatibility:
33138 ac_top_builddir
=$ac_top_build_prefix
33141 .
) # We are building in place.
33143 ac_top_srcdir
=$ac_top_builddir_sub
33144 ac_abs_top_srcdir
=$ac_pwd ;;
33145 [\\/]* | ?
:[\\/]* ) # Absolute name.
33146 ac_srcdir
=$srcdir$ac_dir_suffix;
33147 ac_top_srcdir
=$srcdir
33148 ac_abs_top_srcdir
=$srcdir ;;
33149 *) # Relative name.
33150 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33151 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33152 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33154 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33166 # If the template does not know about datarootdir, expand it.
33167 # FIXME: This hack should be removed a few years after 2.60.
33168 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33179 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33180 *datarootdir
*) ac_datarootdir_seen
=yes;;
33181 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33183 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33186 ac_datarootdir_hack='
33187 s&@datadir@&$datadir&g
33188 s&@docdir@&$docdir&g
33189 s&@infodir@&$infodir&g
33190 s&@localedir@&$localedir&g
33191 s&@mandir@&$mandir&g
33192 s&\\\${datarootdir}&$datarootdir&g' ;;
33196 # Neutralize VPATH when `$srcdir' = `.'.
33197 # Shell code in configure.ac might set extrasub.
33198 # FIXME: do we really want to maintain this feature?
33199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33200 ac_sed_extra="$ac_vpsub
33203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33205 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33206 s|@configure_input@|
$ac_sed_conf_input|
;t t
33207 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33208 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33209 s
&@srcdir@
&$ac_srcdir&;t t
33210 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33211 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33212 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33213 s
&@builddir@
&$ac_builddir&;t t
33214 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33215 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33216 $ac_datarootdir_hack
33218 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33219 if $ac_cs_awk_getline; then
33220 $AWK -f "$ac_tmp/subs.
awk"
33222 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33224 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33226 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33227 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33228 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33229 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33231 which seems to be undefined. Please make sure it is defined" >&5
33232 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33233 which seems to be undefined. Please make sure it is defined" >&2;}
33235 rm -f "$ac_tmp/stdin"
33237 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33238 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33246 if test x"$ac_file" != x-; then
33248 $as_echo "/* $configure_input */" \
33249 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33250 } >"$ac_tmp/config.h" \
33251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33252 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33253 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33254 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33257 mv "$ac_tmp/config.h" "$ac_file" \
33258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33261 $as_echo "/* $configure_input */" \
33262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33263 || as_fn_error $? "could not create -" "$LINENO" 5
33271 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33274 # Prefer the file from the source tree if names are identical.
33275 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33276 ac_source=$srcdir/$ac_source
33279 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33280 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33282 if test ! -r "$ac_source"; then
33283 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33287 # Try a relative symlink, then a hard link, then a copy.
33289 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33290 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33292 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33293 ln "$ac_source" "$ac_file" 2>/dev/null ||
33294 cp -p "$ac_source" "$ac_file" ||
33295 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33298 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33299 $as_echo "$as_me: executing $ac_file commands" >&6;}
33304 case $ac_file$ac_mode in
33305 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33307 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33308 for lang in $subdirs c-family common analyzer
33310 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33312 "as":F) chmod +x as ;;
33313 "collect-ld":F) chmod +x collect-ld ;;
33314 "nm":F) chmod +x nm ;;
33316 case ${CONFIG_HEADERS} in
33317 *auto-host.h:config.in*)
33320 # Make sure all the subdirs exist.
33321 for d in $subdirs doc build common c-family
33323 test -d $d || mkdir $d
33333 ac_clean_files=$ac_clean_files_save
33335 test $ac_write_fail = 0 ||
33336 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33339 # configure is writing to config.log, and then calls config.status.
33340 # config.status does its own redirection, appending to config.log.
33341 # Unfortunately, on DOS this fails, as config.log is still kept open
33342 # by configure, so config.status won't be able to
write to it
; its
33343 # output is simply discarded. So we exec the FD to /dev/null,
33344 # effectively closing config.log, so it can be properly (re)opened and
33345 # appended to by config.status. When coming back to configure, we
33346 # need to make the FD available again.
33347 if test "$no_create" != yes; then
33349 ac_config_status_args
=
33350 test "$silent" = yes &&
33351 ac_config_status_args
="$ac_config_status_args --quiet"
33353 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33355 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33356 # would make configure fail if this is the last instruction.
33357 $ac_cs_success || as_fn_exit
1
33359 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33361 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}