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
661 common_out_object_file
677 gcc_gxx_include_dir_add_sysroot
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
687 TM_MULTILIB_EXCEPTIONS_CONFIG
697 build_xm_include_list
699 build_install_headers_dir
701 all_selected_languages
719 ld_version_script_option
724 ORIGINAL_NM_FOR_TARGET
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
731 ORIGINAL_AS_FOR_TARGET
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
760 BUILD_SYSTEM_HEADER_DIR
779 NATIVE_SYSTEM_HEADER_DIR
813 real_target_noncanonical
814 enable_as_accelerator
829 valgrind_path_defines
859 CROSS_SYSTEM_HEADER_DIR
860 TARGET_SYSTEM_ROOT_DEFINE
862 SYSROOT_CFLAGS_FOR_TARGET
908 program_transform_name
919 ac_subst_files
='option_includes
922 enable_option_checking
925 with_native_system_header_dir
930 enable_generated_files_in_srcdir
937 enable_build_format_warnings
941 enable_gather_detailed_mem_stats
942 enable_valgrind_annotations
946 with_stack_clash_protection_guard_size
964 enable_sjlj_exceptions
965 with_gcc_major_version_only
967 enable_mingw_wildcard
968 enable_large_address_aware
969 enable_leading_mingw64_underscores
972 enable_win32_registry
980 enable_gnu_indirect_function
981 enable_initfini_array
983 enable_standard_branch_protection
984 enable_fix_cortex_a53_835769
985 enable_fix_cortex_a53_843419
987 enable_gnu_unique_object
988 enable_linker_build_id
992 with_long_double_format
995 enable_maintainer_mode
997 enable_version_specific_runtime_libs
1000 enable_libquadmath_support
1001 with_linker_hash_style
1002 with_diagnostics_color
1005 ac_precious_vars
='build_alias
1024 # Initialize some variables set by options.
1026 ac_init_version
=false
1027 ac_unrecognized_opts
=
1028 ac_unrecognized_sep
=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file
=/dev
/null
1038 program_transform_name
=s
,x
,x
,
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir
='${exec_prefix}/bin'
1053 sbindir
='${exec_prefix}/sbin'
1054 libexecdir
='${exec_prefix}/libexec'
1055 datarootdir
='${prefix}/share'
1056 datadir
='${datarootdir}'
1057 sysconfdir
='${prefix}/etc'
1058 sharedstatedir
='${prefix}/com'
1059 localstatedir
='${prefix}/var'
1060 includedir
='${prefix}/include'
1061 oldincludedir
='/usr/include'
1062 docdir
='${datarootdir}/doc/${PACKAGE}'
1063 infodir
='${datarootdir}/info'
1068 libdir
='${exec_prefix}/lib'
1069 localedir
='${datarootdir}/locale'
1070 mandir
='${datarootdir}/man'
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\
$ac_option
1084 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1089 # Accept the important Cygnus configure options, so we can diagnose typos.
1091 case $ac_dashdash$ac_option in
1095 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1097 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1098 bindir
=$ac_optarg ;;
1100 -build |
--build |
--buil |
--bui |
--bu)
1101 ac_prev
=build_alias
;;
1102 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1103 build_alias
=$ac_optarg ;;
1105 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1106 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1107 ac_prev
=cache_file
;;
1108 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1109 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1110 cache_file
=$ac_optarg ;;
1112 --config-cache |
-C)
1113 cache_file
=config.cache
;;
1115 -datadir |
--datadir |
--datadi |
--datad)
1117 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1118 datadir
=$ac_optarg ;;
1120 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1121 |
--dataroo |
--dataro |
--datar)
1122 ac_prev
=datarootdir
;;
1123 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1124 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1125 datarootdir
=$ac_optarg ;;
1127 -disable-* |
--disable-*)
1128 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1131 as_fn_error $?
"invalid feature name: $ac_useropt"
1132 ac_useropt_orig
=$ac_useropt
1133 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "enable_
$ac_useropt"
1138 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1139 ac_unrecognized_sep
=', ';;
1141 eval enable_
$ac_useropt=no
;;
1143 -docdir |
--docdir |
--docdi |
--doc |
--do)
1145 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1146 docdir
=$ac_optarg ;;
1148 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1150 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1151 dvidir
=$ac_optarg ;;
1153 -enable-* |
--enable-*)
1154 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1157 as_fn_error $?
"invalid feature name: $ac_useropt"
1158 ac_useropt_orig
=$ac_useropt
1159 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1162 "enable_
$ac_useropt"
1164 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1165 ac_unrecognized_sep
=', ';;
1167 eval enable_
$ac_useropt=\
$ac_optarg ;;
1169 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1170 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1171 |
--exec |
--exe |
--ex)
1172 ac_prev
=exec_prefix
;;
1173 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1174 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1175 |
--exec=* |
--exe=* |
--ex=*)
1176 exec_prefix
=$ac_optarg ;;
1178 -gas |
--gas |
--ga |
--g)
1179 # Obsolete; use --with-gas.
1182 -help |
--help |
--hel |
--he |
-h)
1183 ac_init_help
=long
;;
1184 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1185 ac_init_help
=recursive
;;
1186 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1187 ac_init_help
=short
;;
1189 -host |
--host |
--hos |
--ho)
1190 ac_prev
=host_alias
;;
1191 -host=* |
--host=* |
--hos=* |
--ho=*)
1192 host_alias
=$ac_optarg ;;
1194 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1196 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1198 htmldir
=$ac_optarg ;;
1200 -includedir |
--includedir |
--includedi |
--included |
--include \
1201 |
--includ |
--inclu |
--incl |
--inc)
1202 ac_prev
=includedir
;;
1203 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1204 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1205 includedir
=$ac_optarg ;;
1207 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1209 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1210 infodir
=$ac_optarg ;;
1212 -libdir |
--libdir |
--libdi |
--libd)
1214 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1215 libdir
=$ac_optarg ;;
1217 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1218 |
--libexe |
--libex |
--libe)
1219 ac_prev
=libexecdir
;;
1220 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1221 |
--libexe=* |
--libex=* |
--libe=*)
1222 libexecdir
=$ac_optarg ;;
1224 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1225 ac_prev
=localedir
;;
1226 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1227 localedir
=$ac_optarg ;;
1229 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1230 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1231 ac_prev
=localstatedir
;;
1232 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1233 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1234 localstatedir
=$ac_optarg ;;
1236 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1238 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1239 mandir
=$ac_optarg ;;
1241 -nfp |
--nfp |
--nf)
1242 # Obsolete; use --without-fp.
1245 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1246 |
--no-cr |
--no-c |
-n)
1249 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1250 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1253 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1254 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1255 |
--oldin |
--oldi |
--old |
--ol |
--o)
1256 ac_prev
=oldincludedir
;;
1257 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1258 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1259 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1260 oldincludedir
=$ac_optarg ;;
1262 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1264 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1265 prefix
=$ac_optarg ;;
1267 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1268 |
--program-pre |
--program-pr |
--program-p)
1269 ac_prev
=program_prefix
;;
1270 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1271 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1272 program_prefix
=$ac_optarg ;;
1274 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1275 |
--program-suf |
--program-su |
--program-s)
1276 ac_prev
=program_suffix
;;
1277 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1278 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1279 program_suffix
=$ac_optarg ;;
1281 -program-transform-name |
--program-transform-name \
1282 |
--program-transform-nam |
--program-transform-na \
1283 |
--program-transform-n |
--program-transform- \
1284 |
--program-transform |
--program-transfor \
1285 |
--program-transfo |
--program-transf \
1286 |
--program-trans |
--program-tran \
1287 |
--progr-tra |
--program-tr |
--program-t)
1288 ac_prev
=program_transform_name
;;
1289 -program-transform-name=* |
--program-transform-name=* \
1290 |
--program-transform-nam=* |
--program-transform-na=* \
1291 |
--program-transform-n=* |
--program-transform-=* \
1292 |
--program-transform=* |
--program-transfor=* \
1293 |
--program-transfo=* |
--program-transf=* \
1294 |
--program-trans=* |
--program-tran=* \
1295 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1296 program_transform_name
=$ac_optarg ;;
1298 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1300 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1301 pdfdir
=$ac_optarg ;;
1303 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1305 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1309 |
-silent |
--silent |
--silen |
--sile |
--sil)
1312 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1314 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1316 sbindir
=$ac_optarg ;;
1318 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1319 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1320 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1322 ac_prev
=sharedstatedir
;;
1323 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1324 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1325 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1327 sharedstatedir
=$ac_optarg ;;
1329 -site |
--site |
--sit)
1331 -site=* |
--site=* |
--sit=*)
1334 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1336 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1337 srcdir
=$ac_optarg ;;
1339 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1340 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1341 ac_prev
=sysconfdir
;;
1342 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1343 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1344 sysconfdir
=$ac_optarg ;;
1346 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1347 ac_prev
=target_alias
;;
1348 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1349 target_alias
=$ac_optarg ;;
1351 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1354 -version |
--version |
--versio |
--versi |
--vers |
-V)
1355 ac_init_version
=: ;;
1358 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1361 as_fn_error $?
"invalid package name: $ac_useropt"
1362 ac_useropt_orig
=$ac_useropt
1363 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1368 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1369 ac_unrecognized_sep
=', ';;
1371 eval with_
$ac_useropt=\
$ac_optarg ;;
1373 -without-* |
--without-*)
1374 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1377 as_fn_error $?
"invalid package name: $ac_useropt"
1378 ac_useropt_orig
=$ac_useropt
1379 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1384 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1385 ac_unrecognized_sep
=', ';;
1387 eval with_
$ac_useropt=no
;;
1390 # Obsolete; use --with-x.
1393 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1394 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1395 ac_prev
=x_includes
;;
1396 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1397 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1398 x_includes
=$ac_optarg ;;
1400 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1401 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1402 ac_prev
=x_libraries
;;
1403 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1404 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1405 x_libraries
=$ac_optarg ;;
1407 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1408 Try \`$0 --help' for more information"
1412 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1413 # Reject names that are not valid shell variable names.
1414 case $ac_envvar in #(
1415 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1416 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1418 eval $ac_envvar=\
$ac_optarg
1419 export $ac_envvar ;;
1422 # FIXME: should be removed in autoconf 3.0.
1423 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1425 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1432 if test -n "$ac_prev"; then
1433 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1434 as_fn_error $?
"missing argument to $ac_option"
1437 if test -n "$ac_unrecognized_opts"; then
1438 case $enable_option_checking in
1440 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1441 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1445 # Check all directory arguments for consistency.
1446 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447 datadir sysconfdir sharedstatedir localstatedir includedir \
1448 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449 libdir localedir mandir
1451 eval ac_val
=\$
$ac_var
1452 # Remove trailing slashes.
1455 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1456 eval $ac_var=\
$ac_val;;
1458 # Be sure to have absolute directory names.
1460 [\\/$
]* | ?
:[\\/]* ) continue;;
1461 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1463 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1471 target
=$target_alias
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x
; then
1475 if test "x$build_alias" = x
; then
1476 cross_compiling
=maybe
1477 elif test "x$build_alias" != "x$host_alias"; then
1483 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1485 test "$silent" = yes && exec 6>/dev
/null
1488 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di
=`ls -di .` &&
1490 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1491 as_fn_error $?
"working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 as_fn_error $?
"pwd does not report name of working directory"
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted
=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir
=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$as_myself" : 'X\(//\)[^/]' \| \
1503 X"$as_myself" : 'X\(//\)$' \| \
1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1528 ac_srcdir_defaulted
=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1532 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1534 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1546 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 for ac_var
in $ac_precious_vars; do
1549 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1551 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1556 # Report the --help message.
1558 if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1562 \`configure' configures this package to adapt to many kinds of systems.
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE. See below for descriptions of some of the useful variables.
1569 Defaults for the options are specified in brackets.
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking ...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1582 Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 [$ac_default_prefix]
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1593 For better control, use the options below.
1595 Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1620 --program-prefix=PREFIX prepend PREFIX to installed program names
1621 --program-suffix=SUFFIX append SUFFIX to installed program names
1622 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1625 --build=BUILD configure
for building on BUILD
[guessed
]
1626 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1627 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1631 if test -n "$ac_init_help"; then
1636 --disable-option-checking ignore unrecognized
--enable/--with options
1637 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1638 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1639 --enable-generated-files-in-srcdir
1640 put copies of generated files
in source dir intended
1641 for creating
source tarballs
for users without
1642 texinfo bison or flex
1643 --disable-largefile omit support
for large files
1644 --disable-build-format-warnings
1645 don
't use -Wformat while building GCC
1646 --enable-werror-always enable -Werror despite compiler version
1647 --enable-checking[=LIST]
1648 enable expensive run-time checks. With LIST, enable
1649 only specific categories of checks. Categories are:
1650 yes,no,all,none,release. Flags are:
1651 assert,df,extra,fold,gc,gcac,gimple,misc,
1652 rtlflag,rtl,runtime,tree,valgrind,types
1653 --enable-coverage[=LEVEL]
1654 enable compiler's code coverage collection. Use to
1655 measure compiler performance and
locate unused parts
1656 of the compiler. With LEVEL
, specify optimization.
1657 Values are opt
, noopt
, default is noopt
1658 --enable-gather-detailed-mem-stats
1659 enable detailed memory allocation stats gathering
1660 --enable-valgrind-annotations
1661 enable valgrind runtime interaction
1662 --enable-multilib enable library support
for multiple ABIs
1663 --enable-multiarch enable support
for multiarch paths
1664 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1665 --enable-decimal-float={no
,yes,bid
,dpd
}
1666 enable decimal float extension to C. Selecting
'bid'
1667 or
'dpd' choses
which decimal floating point format
1669 --enable-fixed-point enable fixed-point arithmetic extension to C
1670 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1672 --enable-tls enable or disable generation of tls code overriding
1673 the assembler check
for tls support
1674 --enable-vtable-verify enable vtable verification feature
1675 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1676 GNU Objective-C runtime
1677 --disable-shared don't provide a shared libgcc
1678 --disable-gcov don
't provide libgcov and related host tools
1679 --enable-languages=LIST specify which front-ends to build
1680 --disable-rpath do not hardcode runtime library paths
1681 --enable-sjlj-exceptions
1682 arrange to use setjmp/longjmp exception handling
1683 --enable-secureplt enable -msecure-plt by default for PowerPC
1684 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1685 Default to platform configuration
1686 --enable-large-address-aware
1687 Link mingw executables with --large-address-aware
1688 --enable-leading-mingw64-underscores
1689 enable leading underscores on 64 bit mingw targets
1690 --enable-cld enable -mcld by default for 32bit x86
1691 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1693 --disable-win32-registry
1694 disable lookup of installation paths in the Registry
1696 --enable-win32-registry enable registry lookup (default)
1697 --enable-win32-registry=KEY
1698 use KEY instead of GCC version as the last portion
1700 --enable-shared[=PKGS] build shared libraries [default=yes]
1701 --enable-static[=PKGS] build static libraries [default=yes]
1702 --enable-fast-install[=PKGS]
1703 optimize for fast installation [default=yes]
1704 --disable-libtool-lock avoid locking (might break parallel builds)
1705 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1706 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1707 --enable-gnu-indirect-function
1708 enable the use of the @gnu_indirect_function to
1710 --enable-initfini-array use .init_array/.fini_array sections
1711 --enable-comdat enable COMDAT group support
1713 --enable-standard-branch-protection
1714 enable Branch Target Identification Mechanism and
1715 Return Address Signing by default for AArch64
1716 --disable-standard-branch-protection
1717 disable Branch Target Identification Mechanism and
1718 Return Address Signing by default for AArch64
1721 --enable-fix-cortex-a53-835769
1722 enable workaround for AArch64 Cortex-A53 erratum
1724 --disable-fix-cortex-a53-835769
1725 disable workaround for AArch64 Cortex-A53 erratum
1729 --enable-fix-cortex-a53-843419
1730 enable workaround for AArch64 Cortex-A53 erratum
1732 --disable-fix-cortex-a53-843419
1733 disable workaround for AArch64 Cortex-A53 erratum
1736 --enable-gnu-unique-object
1737 enable the use of the @gnu_unique_object ELF
1738 extension on glibc systems
1739 --enable-linker-build-id
1740 compiler will always pass --build-id to linker
1741 --enable-libssp enable linking against libssp
1742 --enable-default-ssp enable Stack Smashing Protection as default
1743 --enable-maintainer-mode
1744 enable make rules and dependencies not useful (and
1745 sometimes confusing) to the casual installer
1746 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1747 thrashing on the build machine
1748 --enable-version-specific-runtime-libs
1749 specify that runtime libraries should be installed
1750 in a compiler-specific directory
1751 --enable-plugin enable plugin support
1752 --enable-host-shared build host code as shared libraries
1753 --disable-libquadmath-support
1754 disable libquadmath support for Fortran
1755 --enable-default-pie enable Position Independent Executable as default
1758 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1759 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1760 --with-build-libsubdir=DIR Directory where to find libraries for build system
1761 --with-local-prefix=DIR specifies directory to put local include
1762 --with-native-system-header-dir=dir
1763 use dir as the directory to look for standard
1764 system header files in. Defaults to /usr/include.
1765 --with-build-sysroot=sysroot
1766 use sysroot as the system root during the build
1767 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1768 --with-gxx-include-dir=DIR
1769 specifies directory to put g++ header files
1770 --with-cpp-install-dir=DIR
1771 install the user visible C preprocessor in DIR
1772 (relative to PREFIX) as well as PREFIX/bin
1773 --with-gnu-ld arrange to work with GNU ld
1774 --with-ld arrange to use the specified ld (full pathname)
1775 --with-demangler-in-ld try to use demangler in GNU ld
1776 --with-gnu-as arrange to work with GNU as
1777 --with-as arrange to use the specified as (full pathname)
1778 --with-stabs arrange to use stabs instead of host debug format
1779 --with-stack-clash-protection-guard-size=size
1780 Set the default stack clash protection guard size
1781 for specific targets as a power of two in bytes.
1782 --with-dwarf2 force the default debug format to be DWARF 2
1783 --with-specs=SPECS add SPECS to driver command-line processing
1784 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1785 --with-bugurl=URL Direct users to URL to report a bug
1786 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1787 --with-gnu-ld assume the C compiler uses GNU ld default=no
1788 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1789 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1790 --with-gcc-major-version-only
1791 use only GCC major number
in filesystem paths
1792 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1794 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1795 --with-plugin-ld=[ARG
] specify the plugin linker
1796 --with-glibc-version=M.N
1797 assume GCC used with glibc version M.N or later
1798 --with-long-double-128 use
128-bit long double by default
1799 --with-long-double-format={ieee
,ibm
}
1800 Specify whether PowerPC long double uses IEEE or IBM format
1802 --with-gc={page
,zone
} this option is not supported anymore. It used to
1803 choose the garbage collection mechanism to use with
1805 --with-system-zlib use installed libz
1806 --with-linker-hash-style={sysv
,gnu
,both
}
1807 specify the linker
hash style
1808 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1809 specify the default of
-fdiagnostics-color option
1810 auto-if-env stands
for -fdiagnostics-color=auto
if
1811 GCC_COLOR environment variable is present and
1812 -fdiagnostics-color=never otherwise
1814 Some influential environment variables
:
1815 CC C compiler
command
1816 CFLAGS C compiler flags
1817 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1818 nonstandard directory
<lib dir
>
1819 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1820 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1821 you have headers
in a nonstandard directory
<include dir
>
1822 CXX C
++ compiler
command
1823 CXXFLAGS C
++ compiler flags
1824 CXXCPP C
++ preprocessor
1826 GMPLIBS How to link GMP
1827 GMPINC How to
find GMP include files
1828 ISLLIBS How to link isl
1829 ISLINC How to
find isl include files
1831 Use these variables to override the choices made by
`configure' or to help
1832 it to find libraries and programs with nonstandard names/locations.
1834 Report bugs to the package provider.
1839 if test "$ac_init_help" = "recursive"; then
1840 # If there are subdirs, report their specific --help.
1841 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1842 test -d "$ac_dir" ||
1843 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1848 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1850 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1851 # A ".." for each directory in $ac_dir_suffix.
1852 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1853 case $ac_top_builddir_sub in
1854 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1855 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1858 ac_abs_top_builddir=$ac_pwd
1859 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1860 # for backward compatibility:
1861 ac_top_builddir=$ac_top_build_prefix
1864 .) # We are building in place.
1866 ac_top_srcdir=$ac_top_builddir_sub
1867 ac_abs_top_srcdir=$ac_pwd ;;
1868 [\\/]* | ?:[\\/]* ) # Absolute name.
1869 ac_srcdir=$srcdir$ac_dir_suffix;
1870 ac_top_srcdir=$srcdir
1871 ac_abs_top_srcdir=$srcdir ;;
1873 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1874 ac_top_srcdir=$ac_top_build_prefix$srcdir
1875 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1877 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1879 cd "$ac_dir" || { ac_status=$?; continue; }
1880 # Check for guested configure.
1881 if test -f "$ac_srcdir/configure.gnu"; then
1883 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1884 elif test -f "$ac_srcdir/configure"; then
1886 $SHELL "$ac_srcdir/configure" --help=recursive
1888 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1890 cd "$ac_pwd" || { ac_status=$?; break; }
1894 test -n "$ac_init_help" && exit $ac_status
1895 if $ac_init_version; then
1898 generated by GNU Autoconf 2.69
1900 Copyright (C) 2012 Free Software Foundation, Inc.
1901 This configure script is free software; the Free Software Foundation
1902 gives unlimited permission to copy, distribute and modify it.
1907 ## ------------------------ ##
1908 ## Autoconf initialization. ##
1909 ## ------------------------ ##
1911 # ac_fn_c_try_compile LINENO
1912 # --------------------------
1913 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_c_try_compile ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext
1918 if { { ac_try="$ac_compile"
1920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1921 *) ac_try_echo
=$ac_try;;
1923 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_compile") 2>conftest.err
1927 if test -s conftest.err
; then
1928 grep -v '^ *+' conftest.err
>conftest.er1
1929 cat conftest.er1
>&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest.
$ac_objext; then :
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.
$ac_ext >&5
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status
$ac_retval
1947 } # ac_fn_c_try_compile
1949 # ac_fn_cxx_try_compile LINENO
1950 # ----------------------------
1951 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_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_cxx_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_cxx_try_compile
1987 # ac_fn_cxx_try_cpp LINENO
1988 # ------------------------
1989 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_cpp ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if { { ac_try="$ac_cpp conftest.$ac_ext"
1995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1996 *) ac_try_echo
=$ac_try;;
1998 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2002 if test -s conftest.err
; then
2003 grep -v '^ *+' conftest.err
>conftest.er1
2004 cat conftest.er1
>&5
2005 mv -f conftest.er1 conftest.err
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } > conftest.i
&& {
2009 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.
$ac_ext >&5
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 as_fn_set_status
$ac_retval
2022 } # ac_fn_cxx_try_cpp
2024 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2025 # ---------------------------------------------------------
2026 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2027 # the include files in INCLUDES and setting the cache variable VAR
2029 ac_fn_cxx_check_header_mongrel
()
2031 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2032 if eval \
${$3+:} false
; then :
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \
${$3+:} false
; then :
2036 $as_echo_n "(cached) " >&6
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2042 # Is the header compilable?
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2044 $as_echo_n "checking $2 usability... " >&6; }
2045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2050 if ac_fn_cxx_try_compile
"$LINENO"; then :
2051 ac_header_compiler
=yes
2053 ac_header_compiler
=no
2055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2057 $as_echo "$ac_header_compiler" >&6; }
2059 # Is the header present?
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2061 $as_echo_n "checking $2 presence... " >&6; }
2062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2066 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2067 ac_header_preproc
=yes
2069 ac_header_preproc
=no
2071 rm -f conftest.err conftest.i conftest.
$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2073 $as_echo "$ac_header_preproc" >&6; }
2075 # So? What about this header?
2076 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2079 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2081 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2085 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2087 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2089 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2091 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2093 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \
${$3+:} false
; then :
2099 $as_echo_n "(cached) " >&6
2101 eval "$3=\$ac_header_compiler"
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_cxx_check_header_mongrel
2111 # ac_fn_cxx_try_run LINENO
2112 # ------------------------
2113 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2114 # that executables *can* be run.
2115 ac_fn_cxx_try_run
()
2117 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2118 if { { ac_try
="$ac_link"
2120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_link") 2>&5
2127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2129 { { case "(($ac_try" in
2130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2131 *) ac_try_echo
=$ac_try;;
2133 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_try") 2>&5
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; }; }; then :
2141 $as_echo "$as_me: program exited with status $ac_status" >&5
2142 $as_echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.
$ac_ext >&5
2145 ac_retval
=$ac_status
2147 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 as_fn_set_status
$ac_retval
2151 } # ac_fn_cxx_try_run
2153 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2154 # ---------------------------------------------------------
2155 # Tests whether HEADER exists and can be compiled using the include files in
2156 # INCLUDES, setting the cache variable VAR accordingly.
2157 ac_fn_cxx_check_header_compile
()
2159 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 $as_echo_n "checking for $2... " >&6; }
2162 if eval \
${$3+:} false
; then :
2163 $as_echo_n "(cached) " >&6
2165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2170 if ac_fn_cxx_try_compile
"$LINENO"; then :
2175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_cxx_check_header_compile
2184 # ac_fn_c_try_cpp LINENO
2185 # ----------------------
2186 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2189 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2190 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } > conftest.i && {
2206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2207 test ! -s conftest.err
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 as_fn_set_status $ac_retval
2221 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2222 # ----------------------------------------------
2223 # Tries to find the compile-time value of EXPR in a program that includes
2224 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2226 ac_fn_cxx_compute_int ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 if test "$cross_compiling" = yes; then
2230 # Depending upon the size, compute the lo and hi bounds.
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2237 static int test_array [1 - 2 * !(($2) >= 0)];
2239 return test_array [0];
2245 if ac_fn_cxx_try_compile "$LINENO"; then :
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256 return test_array [0];
2262 if ac_fn_cxx_try_compile "$LINENO"; then :
2263 ac_hi=$ac_mid; break
2265 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2266 if test $ac_lo -le $ac_mid; then
2270 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 static int test_array [1 - 2 * !(($2) < 0)];
2283 return test_array [0];
2289 if ac_fn_cxx_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2298 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2300 return test_array [0];
2306 if ac_fn_cxx_try_compile "$LINENO"; then :
2307 ac_lo=$ac_mid; break
2309 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2310 if test $ac_mid -le $ac_hi; then
2314 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 # Binary search between lo and hi bounds.
2325 while test "x$ac_lo" != "x$ac_hi"; do
2326 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2333 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2335 return test_array [0];
2341 if ac_fn_cxx_try_compile "$LINENO"; then :
2344 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2356 static long int longval () { return $2; }
2357 static unsigned long int ulongval () { return $2; }
2364 FILE *f = fopen ("conftest.val", "w");
2369 long int i = longval ();
2372 fprintf (f, "%ld", i);
2376 unsigned long int i = ulongval ();
2379 fprintf (f, "%lu", i);
2381 /* Do not output a trailing newline, as this causes \r\n confusion
2382 on some platforms. */
2383 return ferror (f) || fclose (f) != 0;
2389 if ac_fn_cxx_try_run "$LINENO"; then :
2390 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2395 conftest.$ac_objext conftest.beam conftest.$ac_ext
2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400 as_fn_set_status $ac_retval
2402 } # ac_fn_cxx_compute_int
2404 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2405 # ---------------------------------------------
2406 # Tests whether TYPE exists after having included INCLUDES, setting cache
2407 # variable VAR accordingly.
2408 ac_fn_cxx_check_type ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2412 $as_echo_n "checking for $2... " >&6; }
2413 if eval \${$3+:} false; then :
2414 $as_echo_n "(cached) " >&6
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2429 if ac_fn_cxx_try_compile "$LINENO"; then :
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2442 if ac_fn_cxx_try_compile "$LINENO"; then :
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456 } # ac_fn_cxx_check_type
2458 # ac_fn_c_find_intX_t LINENO BITS VAR
2459 # -----------------------------------
2460 # Finds a signed integer type with width BITS, setting cache variable VAR
2462 ac_fn_c_find_intX_t ()
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2466 $as_echo_n "checking for int$2_t... " >&6; }
2467 if eval \${$3+:} false; then :
2468 $as_echo_n "(cached) " >&6
2471 # Order is important - never check a type that is potentially smaller
2472 # than half of the expected target width.
2473 for ac_type in int$2_t 'int' 'long int' \
2474 'long long int' 'short int' 'signed char'; do
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2477 $ac_includes_default
2478 enum { N = $2 / 2 - 1 };
2482 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2484 return test_array [0];
2490 if ac_fn_cxx_try_compile "$LINENO"; then :
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2493 $ac_includes_default
2494 enum { N = $2 / 2 - 1 };
2498 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2499 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2501 return test_array [0];
2507 if ac_fn_cxx_try_compile "$LINENO"; then :
2514 eval "$3=\$ac_type" ;;
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 if eval test \"x\$"$3"\" = x"no"; then :
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2529 $as_echo "$ac_res" >&6; }
2530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532 } # ac_fn_c_find_intX_t
2534 # ac_fn_cxx_try_link LINENO
2535 # -------------------------
2536 # Try to link conftest.$ac_ext, and return whether this succeeded.
2537 ac_fn_cxx_try_link ()
2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540 rm -f conftest.$ac_objext conftest$ac_exeext
2541 if { { ac_try="$ac_link"
2543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2544 *) ac_try_echo
=$ac_try;;
2546 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2547 $as_echo "$ac_try_echo"; } >&5
2548 (eval "$ac_link") 2>conftest.err
2550 if test -s conftest.err
; then
2551 grep -v '^ *+' conftest.err
>conftest.er1
2552 cat conftest.er1
>&5
2553 mv -f conftest.er1 conftest.err
2555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2556 test $ac_status = 0; } && {
2557 test -z "$ac_cxx_werror_flag" ||
2558 test ! -s conftest.err
2559 } && test -s conftest
$ac_exeext && {
2560 test "$cross_compiling" = yes ||
2561 test -x conftest
$ac_exeext
2565 $as_echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.
$ac_ext >&5
2570 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2571 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2572 # interfere with the next link command; also delete a directory that is
2573 # left behind by Apple's compiler. We do this before executing the actions.
2574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576 as_fn_set_status
$ac_retval
2578 } # ac_fn_cxx_try_link
2580 # ac_fn_c_find_uintX_t LINENO BITS VAR
2581 # ------------------------------------
2582 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2584 ac_fn_c_find_uintX_t
()
2586 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2588 $as_echo_n "checking for uint$2_t... " >&6; }
2589 if eval \
${$3+:} false
; then :
2590 $as_echo_n "(cached) " >&6
2593 # Order is important - never check a type that is potentially smaller
2594 # than half of the expected target width.
2595 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2596 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2599 $ac_includes_default
2603 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2605 return test_array [0];
2611 if ac_fn_cxx_try_compile
"$LINENO"; then :
2616 eval "$3=\$ac_type" ;;
2619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2620 if eval test \"x\$
"$3"\" = x
"no"; then :
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629 $as_echo "$ac_res" >&6; }
2630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2632 } # ac_fn_c_find_uintX_t
2634 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2635 # ------------------------------------------------
2636 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2637 ac_fn_cxx_check_header_preproc
()
2639 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2641 $as_echo_n "checking for $2... " >&6; }
2642 if eval \
${$3+:} false
; then :
2643 $as_echo_n "(cached) " >&6
2645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h. */
2649 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2654 rm -f conftest.err conftest.i conftest.
$ac_ext
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661 } # ac_fn_cxx_check_header_preproc
2663 # ac_fn_cxx_check_func LINENO FUNC VAR
2664 # ------------------------------------
2665 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2666 ac_fn_cxx_check_func
()
2668 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2670 $as_echo_n "checking for $2... " >&6; }
2671 if eval \
${$3+:} false
; then :
2672 $as_echo_n "(cached) " >&6
2674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2678 #define $2 innocuous_$2
2680 /* System header to define __stub macros and hopefully few prototypes,
2681 which can conflict with char $2 (); below.
2682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683 <limits.h> exists even on freestanding compilers. */
2686 # include <limits.h>
2688 # include <assert.h>
2693 /* Override any GCC internal prototype to avoid an error.
2694 Use char because int might match the return type of a GCC
2695 builtin and then its argument prototype would still apply. */
2700 /* The GNU C library defines this for functions which it implements
2701 to always fail with ENOSYS. Some functions are actually named
2702 something starting with __ and the normal name is an alias. */
2703 #if defined __stub_$2 || defined __stub___$2
2715 if ac_fn_cxx_try_link
"$LINENO"; then :
2720 rm -f core conftest.err conftest.
$ac_objext \
2721 conftest
$ac_exeext conftest.
$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728 } # ac_fn_cxx_check_func
2730 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2731 # -----------------------------------------------
2732 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2734 ac_fn_cxx_check_decl
()
2736 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2737 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2738 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2740 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2741 if eval \
${$3+:} false
; then :
2742 $as_echo_n "(cached) " >&6
2744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2750 #ifndef $as_decl_name
2752 (void) $as_decl_use;
2754 (void) $as_decl_name;
2762 if ac_fn_cxx_try_compile
"$LINENO"; then :
2767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771 $as_echo "$ac_res" >&6; }
2772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2774 } # ac_fn_cxx_check_decl
2776 # ac_fn_c_try_link LINENO
2777 # -----------------------
2778 # Try to link conftest.$ac_ext, and return whether this succeeded.
2781 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2782 rm -f conftest.
$ac_objext conftest
$ac_exeext
2783 if { { ac_try
="$ac_link"
2785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790 (eval "$ac_link") 2>conftest.err
2792 if test -s conftest.err; then
2793 grep -v '^ *+' conftest.err >conftest.er1
2794 cat conftest.er1 >&5
2795 mv -f conftest.er1 conftest.err
2797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798 test $ac_status = 0; } && {
2799 test -z "$ac_c_werror_flag" ||
2800 test ! -s conftest.err
2801 } && test -s conftest$ac_exeext && {
2802 test "$cross_compiling" = yes ||
2803 test -x conftest$ac_exeext
2807 $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2814 # interfere with the next link command; also delete a directory that is
2815 # left behind by Apple's compiler. We do this before executing the actions.
2816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2818 as_fn_set_status $ac_retval
2820 } # ac_fn_c_try_link
2822 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2823 # ----------------------------------------------
2824 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2825 ac_fn_c_check_header_preproc ()
2827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2829 $as_echo_n "checking for $2... " >&6; }
2830 if eval \${$3+:} false; then :
2831 $as_echo_n "(cached) " >&6
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2837 if ac_fn_c_try_cpp "$LINENO"; then :
2842 rm -f conftest.err conftest.i conftest.$ac_ext
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2846 $as_echo "$ac_res" >&6; }
2847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2849 } # ac_fn_c_check_header_preproc
2851 # ac_fn_c_check_func LINENO FUNC VAR
2852 # ----------------------------------
2853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2854 ac_fn_c_check_func ()
2856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2858 $as_echo_n "checking for $2... " >&6; }
2859 if eval \${$3+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h. */
2864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2866 #define $2 innocuous_$2
2868 /* System header to define __stub macros and hopefully few prototypes,
2869 which can conflict with char $2 (); below.
2870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871 <limits.h> exists even on freestanding compilers. */
2874 # include <limits.h>
2876 # include <assert.h>
2881 /* Override any GCC internal prototype to avoid an error.
2882 Use char because int might match the return type of a GCC
2883 builtin and then its argument prototype would still apply. */
2888 /* The GNU C library defines this for functions which it implements
2889 to always fail with ENOSYS. Some functions are actually named
2890 something starting with __ and the normal name is an alias. */
2891 #if defined __stub_$2 || defined __stub___$2
2903 if ac_fn_c_try_link "$LINENO"; then :
2908 rm -f core conftest.err conftest.$ac_objext \
2909 conftest$ac_exeext conftest.$ac_ext
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916 } # ac_fn_c_check_func
2917 cat >config.log <<_ACEOF
2918 This file contains any messages produced by compilers while
2919 running configure, to aid debugging if configure makes a mistake.
2921 It was created by $as_me, which was
2922 generated by GNU Autoconf 2.69. Invocation command line was
2934 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2935 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2936 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2937 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2938 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2940 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2941 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2943 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2944 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2945 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2946 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2947 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2948 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2949 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 test -z "$as_dir" && as_dir=.
2958 $as_echo "PATH: $as_dir"
2974 # Keep a trace of the command line.
2975 # Strip out --no-create and --no-recursion so they do not pile up.
2976 # Strip out --silent because we don't want to record it for future runs.
2977 # Also quote any args containing shell meta-characters.
2978 # Make two passes to allow for proper duplicate-argument suppression.
2982 ac_must_keep_next=false
2988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2990 | -silent | --silent | --silen | --sile | --sil)
2993 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2998 as_fn_append ac_configure_args1 " '$ac_arg'"
2999 if test $ac_must_keep_next = true; then
3000 ac_must_keep_next=false # Got value, back to normal.
3003 *=* | --config-cache | -C | -disable-* | --disable-* \
3004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3006 | -with-* | --with-* | -without-* | --without-* | --x)
3007 case "$ac_configure_args0 " in
3008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3011 -* ) ac_must_keep_next=true ;;
3014 as_fn_append ac_configure_args " '$ac_arg'"
3019 { ac_configure_args0=; unset ac_configure_args0;}
3020 { ac_configure_args1=; unset ac_configure_args1;}
3022 # When interrupted or exit'd, cleanup temporary files, and complete
3023 # config.log. We remove comments because anyway the quotes in there
3024 # would cause problems or look ugly.
3025 # WARNING: Use '\'' to represent an apostrophe within the trap.
3026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3027 trap 'exit_status=$?
3028 # Save into config.log some information that might help in debugging.
3032 $as_echo "## ---------------- ##
3033 ## Cache variables. ##
3034 ## ---------------- ##"
3036 # The following way of writing the cache mishandles newlines in values,
3038 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3039 eval ac_val=\$$ac_var
3043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3047 _ | IFS | as_nl) ;; #(
3048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3049 *) { eval $ac_var=; unset $ac_var;} ;;
3054 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3055 *${as_nl}ac_space=\ *)
3057 "s/'\''/'\''\\\\'\'''\''/g;
3058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3068 $as_echo "## ----------------- ##
3069 ## Output variables. ##
3070 ## ----------------- ##"
3072 for ac_var in $ac_subst_vars
3074 eval ac_val=\$$ac_var
3076 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3078 $as_echo "$ac_var='\''$ac_val'\''"
3082 if test -n "$ac_subst_files"; then
3083 $as_echo "## ------------------- ##
3084 ## File substitutions. ##
3085 ## ------------------- ##"
3087 for ac_var in $ac_subst_files
3089 eval ac_val=\$$ac_var
3091 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3093 $as_echo "$ac_var='\''$ac_val'\''"
3098 if test -s confdefs.h; then
3099 $as_echo "## ----------- ##
3106 test "$ac_signal" != 0 &&
3107 $as_echo "$as_me: caught signal $ac_signal"
3108 $as_echo "$as_me: exit $exit_status"
3110 rm -f core *.core core.conftest.* &&
3111 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3114 for ac_signal in 1 2 13 15; do
3115 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3120 rm -f -r conftest* confdefs.h
3122 $as_echo "/* confdefs.h */" > confdefs.h
3124 # Predefined preprocessor variables.
3126 cat >>confdefs.h <<_ACEOF
3127 #define PACKAGE_NAME "$PACKAGE_NAME"
3130 cat >>confdefs.h <<_ACEOF
3131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3134 cat >>confdefs.h <<_ACEOF
3135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3138 cat >>confdefs.h <<_ACEOF
3139 #define PACKAGE_STRING "$PACKAGE_STRING"
3142 cat >>confdefs.h <<_ACEOF
3143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE_URL "$PACKAGE_URL"
3151 # Let the site file select an alternate cache file if it wants to.
3152 # Prefer an explicitly selected file to automatically selected ones.
3155 if test -n "$CONFIG_SITE"; then
3156 # We do not want a PATH search for config.site.
3157 case $CONFIG_SITE in #((
3158 -*) ac_site_file1=./$CONFIG_SITE;;
3159 */*) ac_site_file1=$CONFIG_SITE;;
3160 *) ac_site_file1=./$CONFIG_SITE;;
3162 elif test "x$prefix" != xNONE; then
3163 ac_site_file1=$prefix/share/config.site
3164 ac_site_file2=$prefix/etc/config.site
3166 ac_site_file1=$ac_default_prefix/share/config.site
3167 ac_site_file2=$ac_default_prefix/etc/config.site
3169 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3171 test "x$ac_site_file" = xNONE && continue
3172 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3174 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3175 sed 's/^/| /' "$ac_site_file" >&5
3177 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "failed to load site
script $ac_site_file
3180 See \
`config.log' for more details" "$LINENO" 5; }
3184 if test -r "$cache_file"; then
3185 # Some versions of bash will fail to source /dev/null (special files
3186 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3187 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3189 $as_echo "$as_me: loading cache $cache_file" >&6;}
3191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3192 *) . "./$cache_file";;
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3197 $as_echo "$as_me: creating cache $cache_file" >&6;}
3201 # Check that the precious variables saved in the cache have kept the same
3203 ac_cache_corrupted=false
3204 for ac_var in $ac_precious_vars; do
3205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3206 eval ac_new_set=\$ac_env_${ac_var}_set
3207 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3208 eval ac_new_val=\$ac_env_${ac_var}_value
3209 case $ac_old_set,$ac_new_set in
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3212 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3213 ac_cache_corrupted=: ;;
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3216 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3217 ac_cache_corrupted=: ;;
3220 if test "x$ac_old_val" != "x$ac_new_val"; then
3221 # differences in whitespace do not lead to failure.
3222 ac_old_val_w=`echo x
$ac_old_val`
3223 ac_new_val_w=`echo x
$ac_new_val`
3224 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3226 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3227 ac_cache_corrupted=:
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3230 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3231 eval $ac_var=\$ac_old_val
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3234 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3236 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3239 # Pass precious variables to config.status.
3240 if test "$ac_new_set" = set; then
3242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3243 *) ac_arg=$ac_var=$ac_new_val ;;
3245 case " $ac_configure_args " in
3246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3247 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3251 if $ac_cache_corrupted; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3255 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3256 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3258 ## -------------------- ##
3259 ## Main body of script. ##
3260 ## -------------------- ##
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3276 gcc_version=`cat $srcdir/BASE-VER
`
3278 # Determine the host, build, and target systems
3280 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3281 if test -f "$ac_dir/install-sh"; then
3283 ac_install_sh="$ac_aux_dir/install-sh -c"
3285 elif test -f "$ac_dir/install.sh"; then
3287 ac_install_sh="$ac_aux_dir/install.sh -c"
3289 elif test -f "$ac_dir/shtool"; then
3291 ac_install_sh="$ac_aux_dir/shtool install -c"
3295 if test -z "$ac_aux_dir"; then
3296 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3299 # These three variables are undocumented and unsupported,
3300 # and are intended to be withdrawn in a future Autoconf release.
3301 # They can cause serious problems if a builder's source tree is in a directory
3302 # whose full name contains unusual characters.
3303 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3304 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3305 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3308 # Make sure we can run config.sub.
3309 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3310 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3313 $as_echo_n "checking build system type... " >&6; }
3314 if ${ac_cv_build+:} false; then :
3315 $as_echo_n "(cached) " >&6
3317 ac_build_alias=$build_alias
3318 test "x$ac_build_alias" = x &&
3319 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3320 test "x$ac_build_alias" = x &&
3321 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3322 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3323 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3327 $as_echo "$ac_cv_build" >&6; }
3328 case $ac_cv_build in
3330 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3333 ac_save_IFS=$IFS; IFS='-'
3339 # Remember, the first character of IFS is used to create $*,
3340 # except with old shells:
3343 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3347 $as_echo_n "checking host system type... " >&6; }
3348 if ${ac_cv_host+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 if test "x$host_alias" = x; then
3352 ac_cv_host=$ac_cv_build
3354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3360 $as_echo "$ac_cv_host" >&6; }
3363 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3366 ac_save_IFS=$IFS; IFS='-'
3372 # Remember, the first character of IFS is used to create $*,
3373 # except with old shells:
3376 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3380 $as_echo_n "checking target system type... " >&6; }
3381 if ${ac_cv_target+:} false; then :
3382 $as_echo_n "(cached) " >&6
3384 if test "x$target_alias" = x; then
3385 ac_cv_target=$ac_cv_host
3387 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3388 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3393 $as_echo "$ac_cv_target" >&6; }
3394 case $ac_cv_target in
3396 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3398 target=$ac_cv_target
3399 ac_save_IFS=$IFS; IFS='-'
3405 # Remember, the first character of IFS is used to create $*,
3406 # except with old shells:
3409 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3412 # The aliases save the names the user supplied, while $host etc.
3413 # will get canonicalized.
3414 test -n "$target_alias" &&
3415 test "$program_prefix$program_suffix$program_transform_name" = \
3417 program_prefix=${target_alias}-
3419 # Determine the noncanonical host name, for Ada.
3420 case ${build_alias} in
3421 "") build_noncanonical=${build} ;;
3422 *) build_noncanonical=${build_alias} ;;
3425 case ${host_alias} in
3426 "") host_noncanonical=${build_noncanonical} ;;
3427 *) host_noncanonical=${host_alias} ;;
3433 # Determine the noncanonical target name, for directory use.
3434 case ${target_alias} in
3435 "") target_noncanonical=${host_noncanonical} ;;
3436 *) target_noncanonical=${target_alias} ;;
3442 # Used for constructing correct paths for offload compilers.
3443 real_target_noncanonical=${target_noncanonical}
3446 # Determine the target- and build-specific subdirectories
3448 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3449 # have matching libraries, they should use host libraries: Makefile.tpl
3450 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3451 # However, they still use the build modules, because the corresponding
3452 # host modules (e.g. bison) are only built for the host when bootstrap
3454 # - build_subdir is where we find build modules, and never changes.
3455 # - build_libsubdir is where we find build libraries, and can be overridden.
3457 # Prefix 'build-' so this never conflicts with target_subdir.
3458 build_subdir="build-${build_noncanonical}"
3460 # Check whether --with-build-libsubdir was given.
3461 if test "${with_build_libsubdir+set}" = set; then :
3462 withval=$with_build_libsubdir; build_libsubdir="$withval"
3464 build_libsubdir="$build_subdir"
3467 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3468 if ( test $srcdir = . && test -d gcc ) \
3469 || test -d $srcdir/../host-${host_noncanonical}; then
3470 host_subdir="host-${host_noncanonical}"
3475 target_subdir=${target_noncanonical}
3478 # Set program_transform_name
3479 test "$program_prefix" != NONE &&
3480 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3481 # Use a double $ so make ignores it.
3482 test "$program_suffix" != NONE &&
3483 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3484 # Double any \ or $.
3485 # By default was `s
,x
,x
', remove it if useless.
3486 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3487 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3490 # Check for bogus environment variables.
3491 # Test if LIBRARY_PATH contains the notation for the current directory
3492 # since this would lead to problems installing/building glibc.
3493 # LIBRARY_PATH contains the current directory if one of the following
3495 # - one of the terminals (":" and ";") is the first or last sign
3496 # - two terminals occur directly after each other
3497 # - the path contains an element with a dot in it
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3499 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3500 case ${LIBRARY_PATH} in
3501 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3502 library_path_setting="contains current directory"
3505 library_path_setting="ok"
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3509 $as_echo "$library_path_setting" >&6; }
3510 if test "$library_path_setting" != "ok"; then
3512 *** LIBRARY_PATH shouldn't contain the current directory when
3513 *** building gcc. Please change the environment variable
3514 *** and run configure again.
" "$LINENO" 5
3517 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3518 # since this would lead to problems installing/building glibc.
3519 # GCC_EXEC_PREFIX contains the current directory if one of the following
3521 # - one of the terminals (":" and ";") is the first or last sign
3522 # - two terminals occur directly after each other
3523 # - the path contains an element with a dot in it
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3525 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3526 case ${GCC_EXEC_PREFIX} in
3527 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3528 gcc_exec_prefix_setting="contains current directory
"
3531 gcc_exec_prefix_setting="ok
"
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3535 $as_echo "$gcc_exec_prefix_setting" >&6; }
3536 if test "$gcc_exec_prefix_setting" != "ok
"; then
3538 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3539 *** building gcc. Please change the environment variable
3540 *** and run configure again." "$LINENO" 5
3547 # Specify the local prefix
3550 # Check whether --with-local-prefix was given.
3551 if test "${with_local_prefix+set}" = set; then :
3552 withval=$with_local_prefix; case "${withval}" in
3553 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3555 *) local_prefix=$with_local_prefix ;;
3560 # Default local prefix if it is empty
3561 if test x$local_prefix = x; then
3562 local_prefix=/usr/local
3566 # Check whether --with-native-system-header-dir was given.
3567 if test "${with_native_system_header_dir+set}" = set; then :
3568 withval=$with_native_system_header_dir;
3569 case ${with_native_system_header_dir} in
3570 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3571 /* | [A-Za-z]:[\\/]*) ;;
3572 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3574 configured_native_system_header_dir="${withval}"
3577 configured_native_system_header_dir=
3582 # Check whether --with-build-sysroot was given.
3583 if test "${with_build_sysroot+set}" = set; then :
3584 withval=$with_build_sysroot; if test x"$withval" != x ; then
3585 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3588 SYSROOT_CFLAGS_FOR_TARGET=
3593 if test "x$prefix" = xNONE; then
3594 test_prefix=/usr/local
3598 if test "x$exec_prefix" = xNONE; then
3599 test_exec_prefix=$test_prefix
3601 test_exec_prefix=$exec_prefix
3605 # Check whether --with-sysroot was given.
3606 if test "${with_sysroot+set}" = set; then :
3607 withval=$with_sysroot;
3608 case ${with_sysroot} in
3610 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3612 case ${with_sysroot} in
3613 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3614 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3617 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3618 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3620 case ${TARGET_SYSTEM_ROOT} in
3621 "${test_prefix}"|"${test_prefix}/"*|\
3622 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3623 '${prefix}'|'${prefix}/'*|\
3624 '${exec_prefix}'|'${exec_prefix}/'*)
3625 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3626 TARGET_SYSTEM_ROOT_DEFINE="$t"
3633 TARGET_SYSTEM_ROOT_DEFINE=
3634 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3642 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3643 # passed in by the toplevel make and thus we'd get different behavior
3644 # depending on where we built the sources.
3645 gcc_gxx_include_dir
=
3646 # Specify the g++ header file directory
3648 # Check whether --with-gxx-include-dir was given.
3649 if test "${with_gxx_include_dir+set}" = set; then :
3650 withval
=$with_gxx_include_dir; case "${withval}" in
3651 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3653 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3658 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3659 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3660 # relative to the sysroot.
3661 gcc_gxx_include_dir_add_sysroot
=0
3663 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3664 if test x
${gcc_gxx_include_dir} = x
; then
3665 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3666 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3668 libstdcxx_incdir
='include/c++/$(version)'
3669 if test x
$host != x
$target; then
3670 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3672 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3674 elif test "${with_sysroot+set}" = set; then
3675 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3676 if test "${gcc_gxx_without_sysroot}"; then
3677 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3678 gcc_gxx_include_dir_add_sysroot
=1
3683 # Check whether --with-cpp_install_dir was given.
3684 if test "${with_cpp_install_dir+set}" = set; then :
3685 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3686 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3687 elif test x
$withval != xno
; then
3688 cpp_install_dir
=$withval
3693 # We would like to our source tree to be readonly. However when releases or
3694 # pre-releases are generated, the flex/bison generated files as well as the
3695 # various formats of manuals need to be included along with the rest of the
3696 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3700 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3701 # Check whether --enable-generated-files-in-srcdir was given.
3702 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3703 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3705 generated_files_in_srcdir
=no
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3710 $as_echo "$generated_files_in_srcdir" >&6; }
3712 if test "$generated_files_in_srcdir" = "yes"; then
3719 # -------------------
3720 # Find default linker
3721 # -------------------
3725 # Check whether --with-gnu-ld was given.
3726 if test "${with_gnu_ld+set}" = set; then :
3727 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3734 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3738 # With pre-defined ld
3740 # Check whether --with-ld was given.
3741 if test "${with_ld+set}" = set; then :
3742 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3745 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3746 if test ! -x "$DEFAULT_LINKER"; then
3747 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3748 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3750 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3754 cat >>confdefs.h
<<_ACEOF
3755 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3761 $as_echo_n "checking whether a default linker was specified... " >&6; }
3762 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3763 if test x
"$gnu_ld_flag" = x
"no"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3765 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3768 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3775 # With demangler in GNU ld
3777 # Check whether --with-demangler-in-ld was given.
3778 if test "${with_demangler_in_ld+set}" = set; then :
3779 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3785 # ----------------------
3786 # Find default assembler
3787 # ----------------------
3791 # Check whether --with-gnu-as was given.
3792 if test "${with_gnu_as+set}" = set; then :
3793 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3800 # Check whether --with-as was given.
3801 if test "${with_as+set}" = set; then :
3802 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3805 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3806 if test ! -x "$DEFAULT_ASSEMBLER"; then
3807 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3808 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3812 cat >>confdefs.h
<<_ACEOF
3813 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3819 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3820 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3821 if test x
"$gas_flag" = x
"no"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3823 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3826 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3837 # If a non-executable a.out is present (e.g. created by GNU as above even if
3838 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3839 # file, even when creating an executable, so an execution test fails.
3840 # Remove possible default executable files to avoid this.
3842 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3843 # Autoconf includes it.
3844 rm -f a.out a.exe b.out
3846 # Find the native compiler
3848 ac_cpp
='$CPP $CPPFLAGS'
3849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3854 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_CC+:} false
; then :
3858 $as_echo_n "(cached) " >&6
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC
="$CC" # Let the user override the test.
3863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir
=.
3868 for ac_exec_ext
in '' $ac_executable_extensions; do
3869 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3891 if test -z "$ac_cv_prog_CC"; then
3893 # Extract the first word of "gcc", so it can be a program name with args.
3894 set dummy gcc
; ac_word
=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3898 $as_echo_n "(cached) " >&6
3900 if test -n "$ac_ct_CC"; then
3901 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir
=.
3908 for ac_exec_ext
in '' $ac_executable_extensions; do
3909 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_CC
="gcc"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3921 if test -n "$ac_ct_CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3923 $as_echo "$ac_ct_CC" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3929 if test "x$ac_ct_CC" = x
; then
3932 case $cross_compiling:$ac_tool_warned in
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936 ac_tool_warned
=yes ;;
3944 if test -z "$CC"; then
3945 if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3947 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_CC+:} false
; then :
3951 $as_echo_n "(cached) " >&6
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC
="$CC" # Let the user override the test.
3956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir
=.
3961 for ac_exec_ext
in '' $ac_executable_extensions; do
3962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3985 if test -z "$CC"; then
3986 # Extract the first word of "cc", so it can be a program name with args.
3987 set dummy cc
; ac_word
=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if ${ac_cv_prog_CC+:} false
; then :
3991 $as_echo_n "(cached) " >&6
3993 if test -n "$CC"; then
3994 ac_cv_prog_CC
="$CC" # Let the user override the test.
3997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4001 test -z "$as_dir" && as_dir
=.
4002 for ac_exec_ext
in '' $ac_executable_extensions; do
4003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4005 ac_prog_rejected
=yes
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 if test $ac_prog_rejected = yes; then
4017 # We found a bogon in the path, so make sure we never use it.
4018 set dummy
$ac_cv_prog_CC
4020 if test $# != 0; then
4021 # We chose a different compiler from the bogus one.
4022 # However, it has the same basename, so the bogon will be chosen
4023 # first if we set CC to just the basename; use the full file name.
4025 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4031 if test -n "$CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4033 $as_echo "$CC" >&6; }
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4041 if test -z "$CC"; then
4042 if test -n "$ac_tool_prefix"; then
4043 for ac_prog
in cl.exe
4045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 $as_echo_n "checking for $ac_word... " >&6; }
4049 if ${ac_cv_prog_CC+:} false
; then :
4050 $as_echo_n "(cached) " >&6
4052 if test -n "$CC"; then
4053 ac_cv_prog_CC
="$CC" # Let the user override the test.
4055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir
=.
4060 for ac_exec_ext
in '' $ac_executable_extensions; do
4061 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 if test -n "$CC"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075 $as_echo "$CC" >&6; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4082 test -n "$CC" && break
4085 if test -z "$CC"; then
4087 for ac_prog
in cl.exe
4089 # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy
$ac_prog; ac_word
=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -n "$ac_ct_CC"; then
4097 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir
=.
4104 for ac_exec_ext
in '' $ac_executable_extensions; do
4105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_ac_ct_CC
="$ac_prog"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4117 if test -n "$ac_ct_CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4119 $as_echo "$ac_ct_CC" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4126 test -n "$ac_ct_CC" && break
4129 if test "x$ac_ct_CC" = x
; then
4132 case $cross_compiling:$ac_tool_warned in
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned
=yes ;;
4145 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $?
"no acceptable C compiler found in \$PATH
4148 See \`config.log' for more details" "$LINENO" 5; }
4150 # Provide some information about the compiler.
4151 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4154 for ac_option
in --version -v -V -qversion; do
4155 { { ac_try
="$ac_compiler $ac_option >&5"
4157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4161 $as_echo "$ac_try_echo"; } >&5
4162 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4164 if test -s conftest.err; then
4166 ... rest of stderr output deleted ...
4167 10q' conftest.err >conftest.er1
4168 cat conftest.er1 >&5
4170 rm -f conftest.er1 conftest.err
4171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4172 test $ac_status = 0; }
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4186 ac_clean_files_save=$ac_clean_files
4187 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4188 # Try to create an executable without -o first, disregard a.out.
4189 # It will help us diagnose broken compilers, and finding out an intuition
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4192 $as_echo_n "checking whether the C compiler works... " >&6; }
4193 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4195 # The possible output files:
4196 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4199 for ac_file in $ac_files
4202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4203 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4208 if { { ac_try="$ac_link_default"
4210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4211 *) ac_try_echo
=$ac_try;;
4213 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_link_default") 2>&5
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }; then :
4219 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4220 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4221 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4222 # so that the user can short-circuit this test for compilers unknown to
4224 for ac_file
in $ac_files ''
4226 test -f "$ac_file" ||
continue
4228 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4231 # We found the default executable, but exeext='' is most
4235 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4237 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4239 # We set ac_cv_exeext here because the later test for it is not
4240 # safe: cross compilers may not add the suffix if given an `-o'
4241 # argument, so we may need to know it at that point already.
4242 # Even if this section looks crufty: it has the advantage of
4249 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4254 if test -z "$ac_file"; then :
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.
$ac_ext >&5
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error
77 "C compiler cannot create executables
4263 See \`config.log' for more details" "$LINENO" 5; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4266 $as_echo "yes" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4269 $as_echo_n "checking for C compiler default output file name... " >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4271 $as_echo "$ac_file" >&6; }
4272 ac_exeext
=$ac_cv_exeext
4274 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4275 ac_clean_files
=$ac_clean_files_save
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4277 $as_echo_n "checking for suffix of executables... " >&6; }
4278 if { { ac_try
="$ac_link"
4280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_link") 2>&5
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; }; then :
4289 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4290 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4291 # work properly (i.e., refer to `conftest.exe'), while it won't with
4293 for ac_file
in conftest.exe conftest conftest.
*; do
4294 test -f "$ac_file" ||
continue
4296 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4297 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4306 See \`config.log' for more details" "$LINENO" 5; }
4308 rm -f conftest conftest
$ac_cv_exeext
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4310 $as_echo "$ac_cv_exeext" >&6; }
4312 rm -f conftest.
$ac_ext
4313 EXEEXT
=$ac_cv_exeext
4315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4321 FILE *f = fopen ("conftest.out", "w");
4322 return ferror (f) || fclose (f) != 0;
4328 ac_clean_files
="$ac_clean_files conftest.out"
4329 # Check that the compiler produces executables we can run. If not, either
4330 # the compiler is broken, or we cross compile.
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4332 $as_echo_n "checking whether we are cross compiling... " >&6; }
4333 if test "$cross_compiling" != yes; then
4334 { { ac_try
="$ac_link"
4336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_link") 2>&5
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }
4345 if { ac_try='./conftest$ac_cv_exeext'
4346 { { case "(($ac_try" in
4347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4348 *) ac_try_echo
=$ac_try;;
4350 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352 (eval "$ac_try") 2>&5
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }; }; then
4358 if test "$cross_compiling" = maybe
; then
4361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363 as_fn_error $?
"cannot run C compiled programs.
4364 If you meant to cross compile, use \`--host'.
4365 See \`config.log' for more details" "$LINENO" 5; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4370 $as_echo "$cross_compiling" >&6; }
4372 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4373 ac_clean_files
=$ac_clean_files_save
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4375 $as_echo_n "checking for suffix of object files... " >&6; }
4376 if ${ac_cv_objext+:} false
; then :
4377 $as_echo_n "(cached) " >&6
4379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4390 rm -f conftest.o conftest.obj
4391 if { { ac_try
="$ac_compile"
4393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397 $as_echo "$ac_try_echo"; } >&5
4398 (eval "$ac_compile") 2>&5
4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401 test $ac_status = 0; }; then :
4402 for ac_file in conftest.o conftest.obj conftest.*; do
4403 test -f "$ac_file" || continue;
4405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4406 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4411 $as_echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4417 See \
`config.log' for more details" "$LINENO" 5; }
4419 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4422 $as_echo "$ac_cv_objext" >&6; }
4423 OBJEXT=$ac_cv_objext
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4426 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4427 if ${ac_cv_c_compiler_gnu+:} false; then :
4428 $as_echo_n "(cached) " >&6
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4444 if ac_fn_c_try_compile "$LINENO"; then :
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4454 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4455 if test $ac_compiler_gnu = yes; then
4460 ac_test_CFLAGS=${CFLAGS+set}
4461 ac_save_CFLAGS=$CFLAGS
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4463 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4464 if ${ac_cv_prog_cc_g+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 ac_save_c_werror_flag=$ac_c_werror_flag
4468 ac_c_werror_flag=yes
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4482 if ac_fn_c_try_compile "$LINENO"; then :
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4497 if ac_fn_c_try_compile "$LINENO"; then :
4500 ac_c_werror_flag=$ac_save_c_werror_flag
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4513 if ac_fn_c_try_compile "$LINENO"; then :
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 ac_c_werror_flag=$ac_save_c_werror_flag
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4524 $as_echo "$ac_cv_prog_cc_g" >&6; }
4525 if test "$ac_test_CFLAGS" = set; then
4526 CFLAGS=$ac_save_CFLAGS
4527 elif test $ac_cv_prog_cc_g = yes; then
4528 if test "$GCC" = yes; then
4534 if test "$GCC" = yes; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4541 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4542 if ${ac_cv_prog_cc_c89+:} false; then :
4543 $as_echo_n "(cached) " >&6
4545 ac_cv_prog_cc_c89=no
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4552 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4553 struct buf { int x; };
4554 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4555 static char *e (p, i)
4561 static char *f (char * (*g) (char **, int), char **p, ...)
4566 s = g (p, va_arg (v,int));
4571 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4572 function prototypes and stuff, but not '\xHH' hex character constants.
4573 These don't provoke an error unfortunately, instead are silently treated
4574 as 'x'. The following induces an error, until -std is added to get
4575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4576 array size at least. It's necessary to write '\x00'==0 to get something
4577 that's true only with -std. */
4578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4580 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4581 inside strings and character constants. */
4583 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4585 int test (int i, double x);
4586 struct s1 {int (*f) (int a);};
4587 struct s2 {int (*f) (double a);};
4588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4594 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4599 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4602 CC="$ac_save_CC $ac_arg"
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_prog_cc_c89=$ac_arg
4606 rm -f core conftest.err conftest.$ac_objext
4607 test "x$ac_cv_prog_cc_c89" != "xno" && break
4609 rm -f conftest.$ac_ext
4614 case "x$ac_cv_prog_cc_c89" in
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4617 $as_echo "none needed" >&6; } ;;
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4620 $as_echo "unsupported" >&6; } ;;
4622 CC="$CC $ac_cv_prog_cc_c89"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4624 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4626 if test "x$ac_cv_prog_cc_c89" != xno; then :
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637 ac_cpp='$CXXCPP $CPPFLAGS'
4638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4641 if test -z "$CXX"; then
4642 if test -n "$CCC"; then
4645 if test -n "$ac_tool_prefix"; then
4646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CXX+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 if test -n "$CXX"; then
4656 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 if test -n "$CXX"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4678 $as_echo "$CXX" >&6; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$CXX" && break
4688 if test -z "$CXX"; then
4690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4692 # Extract the first word of "$ac_prog", so it can be a program name with args.
4693 set dummy $ac_prog; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -n "$ac_ct_CXX"; then
4700 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_ac_ct_CXX="$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4720 if test -n "$ac_ct_CXX"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4722 $as_echo "$ac_ct_CXX" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4729 test -n "$ac_ct_CXX" && break
4732 if test "x$ac_ct_CXX" = x; then
4735 case $cross_compiling:$ac_tool_warned in
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4747 # Provide some information about the compiler.
4748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4751 for ac_option in --version -v -V -qversion; do
4752 { { ac_try="$ac_compiler $ac_option >&5"
4754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4755 *) ac_try_echo
=$ac_try;;
4757 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758 $as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4761 if test -s conftest.err
; then
4763 ... rest of stderr output deleted ...
4764 10q' conftest.err
>conftest.er1
4765 cat conftest.er1
>&5
4767 rm -f conftest.er1 conftest.err
4768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769 test $ac_status = 0; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4773 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4774 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4775 $as_echo_n "(cached) " >&6
4777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4791 if ac_fn_cxx_try_compile
"$LINENO"; then :
4796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4797 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4801 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4802 if test $ac_compiler_gnu = yes; then
4807 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4808 ac_save_CXXFLAGS
=$CXXFLAGS
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4810 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4811 if ${ac_cv_prog_cxx_g+:} false
; then :
4812 $as_echo_n "(cached) " >&6
4814 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4815 ac_cxx_werror_flag
=yes
4818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4829 if ac_fn_cxx_try_compile
"$LINENO"; then :
4830 ac_cv_prog_cxx_g
=yes
4833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4844 if ac_fn_cxx_try_compile
"$LINENO"; then :
4847 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4860 if ac_fn_cxx_try_compile
"$LINENO"; then :
4861 ac_cv_prog_cxx_g
=yes
4863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4868 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4871 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4872 if test "$ac_test_CXXFLAGS" = set; then
4873 CXXFLAGS
=$ac_save_CXXFLAGS
4874 elif test $ac_cv_prog_cxx_g = yes; then
4875 if test "$GXX" = yes; then
4881 if test "$GXX" = yes; then
4888 ac_cpp
='$CPP $CPPFLAGS'
4889 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4896 if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4898 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_GNATBIND+:} false
; then :
4902 $as_echo_n "(cached) " >&6
4904 if test -n "$GNATBIND"; then
4905 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir
=.
4912 for ac_exec_ext
in '' $ac_executable_extensions; do
4913 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 GNATBIND
=$ac_cv_prog_GNATBIND
4925 if test -n "$GNATBIND"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4927 $as_echo "$GNATBIND" >&6; }
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4935 if test -z "$ac_cv_prog_GNATBIND"; then
4936 ac_ct_GNATBIND
=$GNATBIND
4937 # Extract the first word of "gnatbind", so it can be a program name with args.
4938 set dummy gnatbind
; ac_word
=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4942 $as_echo_n "(cached) " >&6
4944 if test -n "$ac_ct_GNATBIND"; then
4945 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir
=.
4952 for ac_exec_ext
in '' $ac_executable_extensions; do
4953 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4965 if test -n "$ac_ct_GNATBIND"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4967 $as_echo "$ac_ct_GNATBIND" >&6; }
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4973 if test "x$ac_ct_GNATBIND" = x
; then
4976 case $cross_compiling:$ac_tool_warned in
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980 ac_tool_warned
=yes ;;
4982 GNATBIND
=$ac_ct_GNATBIND
4985 GNATBIND
="$ac_cv_prog_GNATBIND"
4988 if test -n "$ac_tool_prefix"; then
4989 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4990 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_prog_GNATMAKE+:} false
; then :
4994 $as_echo_n "(cached) " >&6
4996 if test -n "$GNATMAKE"; then
4997 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir
=.
5004 for ac_exec_ext
in '' $ac_executable_extensions; do
5005 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 GNATMAKE
=$ac_cv_prog_GNATMAKE
5017 if test -n "$GNATMAKE"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5019 $as_echo "$GNATMAKE" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5027 if test -z "$ac_cv_prog_GNATMAKE"; then
5028 ac_ct_GNATMAKE
=$GNATMAKE
5029 # Extract the first word of "gnatmake", so it can be a program name with args.
5030 set dummy gnatmake
; ac_word
=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5034 $as_echo_n "(cached) " >&6
5036 if test -n "$ac_ct_GNATMAKE"; then
5037 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir
=.
5044 for ac_exec_ext
in '' $ac_executable_extensions; do
5045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5057 if test -n "$ac_ct_GNATMAKE"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5059 $as_echo "$ac_ct_GNATMAKE" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5065 if test "x$ac_ct_GNATMAKE" = x
; then
5068 case $cross_compiling:$ac_tool_warned in
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned
=yes ;;
5074 GNATMAKE
=$ac_ct_GNATMAKE
5077 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5081 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5082 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5083 $as_echo_n "(cached) " >&6
5085 cat >conftest.adb
<<EOF
5086 procedure conftest is begin null; end conftest;
5088 acx_cv_cc_gcc_supports_ada
=no
5089 # There is a bug in old released versions of GCC which causes the
5090 # driver to exit successfully when the appropriate language module
5091 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5092 # Therefore we must check for the error message as well as an
5093 # unsuccessful exit.
5094 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5095 # given a .adb file, but produce no object file. So we must check
5096 # if an object file was really produced to guard against this.
5097 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5098 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5099 acx_cv_cc_gcc_supports_ada
=yes
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5104 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5106 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5113 # Do configure tests with the C++ compiler, since that's what we build with.
5115 ac_cpp
='$CXXCPP $CPPFLAGS'
5116 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5121 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5122 # optimizations to be activated explicitly by the toplevel.
5124 */prev-gcc
/xgcc
*) ;;
5125 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5126 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5131 # Determine PICFLAG for target gnatlib.
5137 # PIC is the default on some targets or must not be used.
5139 # For darwin, common symbols are not allowed in MH_DYLIB files
5141 # If we are using a compiler supporting mdynamic-no-pic
5142 # and the option has been tested as safe to add, then cancel
5143 # it here, since the code generated is incompatible with shared
5145 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5146 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5150 # PIC is the default.
5153 # PIC is the default for 64-bit PA HP-UX.
5155 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5157 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5159 i
[34567]86-*-interix[3-9]*)
5160 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5161 # Instead, we relocate shared libraries at runtime.
5163 i
[34567]86-*-nto-qnx*)
5164 # QNX uses GNU C++, but need to define -shared option too, otherwise
5166 PICFLAG_FOR_TARGET
='-fPIC -shared'
5168 i
[34567]86-pc-msdosdjgpp*)
5169 # DJGPP does not support shared libraries at all.
5172 # On IA64 HP-UX, PIC is the default but the pic flag
5173 # sets the default TLS model and affects inlining.
5174 PICFLAG_FOR_TARGET
=-fPIC
5177 # PIC is the default.
5179 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5180 # All AIX code is PIC.
5183 # Some targets support both -fPIC and -fpic, but prefer the latter.
5185 i
[34567]86-*-* | x86_64-
*-*)
5186 PICFLAG_FOR_TARGET
=-fpic
5188 # FIXME: Override -fPIC default in libgcc only?
5189 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5190 PICFLAG_FOR_TARGET
=-fpic
5192 # FIXME: Simplify to sh*-*-netbsd*?
5193 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5194 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5195 PICFLAG_FOR_TARGET
=-fpic
5197 # Default to -fPIC unless specified otherwise.
5199 PICFLAG_FOR_TARGET
=-fPIC
5203 # If the user explicitly uses -fpic/-fPIC, keep that.
5204 case "${CFLAGS_FOR_TARGET}" in
5206 PICFLAG_FOR_TARGET
=-fpic
5209 PICFLAG_FOR_TARGET
=-fPIC
5215 # -------------------------
5216 # Check C compiler features
5217 # -------------------------
5221 ac_cpp
='$CXXCPP $CPPFLAGS'
5222 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5226 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5227 if test -z "$CXXCPP"; then
5228 if ${ac_cv_prog_CXXCPP+:} false
; then :
5229 $as_echo_n "(cached) " >&6
5231 # Double quotes because CXXCPP needs to be expanded
5232 for CXXCPP
in "$CXX -E" "/lib/cpp"
5235 for ac_cxx_preproc_warn_flag
in '' yes
5237 # Use a header file that comes with gcc, so configuring glibc
5238 # with a fresh cross-compiler works.
5239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240 # <limits.h> exists even on freestanding compilers.
5241 # On the NeXT, cc -E runs the code through the compiler's parser,
5242 # not just through cpp. "Syntax error" is here to catch this case.
5243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5246 # include <limits.h>
5248 # include <assert.h>
5252 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5255 # Broken: fails on valid input.
5258 rm -f conftest.err conftest.i conftest.
$ac_ext
5260 # OK, works on sane cases. Now check whether nonexistent headers
5261 # can be detected and how.
5262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 #include <ac_nonexistent.h>
5266 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5267 # Broken: success on invalid input.
5270 # Passes both tests.
5274 rm -f conftest.err conftest.i conftest.
$ac_ext
5277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278 rm -f conftest.i conftest.err conftest.
$ac_ext
5279 if $ac_preproc_ok; then :
5284 ac_cv_prog_CXXCPP
=$CXXCPP
5287 CXXCPP
=$ac_cv_prog_CXXCPP
5289 ac_cv_prog_CXXCPP
=$CXXCPP
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5292 $as_echo "$CXXCPP" >&6; }
5294 for ac_cxx_preproc_warn_flag
in '' yes
5296 # Use a header file that comes with gcc, so configuring glibc
5297 # with a fresh cross-compiler works.
5298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5299 # <limits.h> exists even on freestanding compilers.
5300 # On the NeXT, cc -E runs the code through the compiler's parser,
5301 # not just through cpp. "Syntax error" is here to catch this case.
5302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5305 # include <limits.h>
5307 # include <assert.h>
5311 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5314 # Broken: fails on valid input.
5317 rm -f conftest.err conftest.i conftest.
$ac_ext
5319 # OK, works on sane cases. Now check whether nonexistent headers
5320 # can be detected and how.
5321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <ac_nonexistent.h>
5325 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5326 # Broken: success on invalid input.
5329 # Passes both tests.
5333 rm -f conftest.err conftest.i conftest.
$ac_ext
5336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337 rm -f conftest.i conftest.err conftest.
$ac_ext
5338 if $ac_preproc_ok; then :
5341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5343 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5344 See \`config.log' for more details" "$LINENO" 5; }
5348 ac_cpp
='$CXXCPP $CPPFLAGS'
5349 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5355 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5356 if ${ac_cv_path_GREP+:} false
; then :
5357 $as_echo_n "(cached) " >&6
5359 if test -z "$GREP"; then
5360 ac_path_GREP_found
=false
5361 # Loop through the user's path and test for each of PROGNAME-LIST
5362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5363 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5366 test -z "$as_dir" && as_dir
=.
5367 for ac_prog
in grep ggrep
; do
5368 for ac_exec_ext
in '' $ac_executable_extensions; do
5369 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5370 as_fn_executable_p
"$ac_path_GREP" ||
continue
5371 # Check for GNU ac_path_GREP and select it if it is found.
5372 # Check for GNU $ac_path_GREP
5373 case `"$ac_path_GREP" --version 2>&1` in
5375 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5378 $as_echo_n 0123456789 >"conftest.in"
5381 cat "conftest.in" "conftest.in" >"conftest.tmp"
5382 mv "conftest.tmp" "conftest.in"
5383 cp "conftest.in" "conftest.nl"
5384 $as_echo 'GREP' >> "conftest.nl"
5385 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5386 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5387 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5388 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5389 # Best one so far, save it but keep looking for a better one
5390 ac_cv_path_GREP
="$ac_path_GREP"
5391 ac_path_GREP_max
=$ac_count
5393 # 10*(2^10) chars as input seems more than enough
5394 test $ac_count -gt 10 && break
5396 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5399 $ac_path_GREP_found && break 3
5404 if test -z "$ac_cv_path_GREP"; then
5405 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5408 ac_cv_path_GREP
=$GREP
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5413 $as_echo "$ac_cv_path_GREP" >&6; }
5414 GREP
="$ac_cv_path_GREP"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5418 $as_echo_n "checking for egrep... " >&6; }
5419 if ${ac_cv_path_EGREP+:} false
; then :
5420 $as_echo_n "(cached) " >&6
5422 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5423 then ac_cv_path_EGREP
="$GREP -E"
5425 if test -z "$EGREP"; then
5426 ac_path_EGREP_found
=false
5427 # Loop through the user's path and test for each of PROGNAME-LIST
5428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5429 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5432 test -z "$as_dir" && as_dir
=.
5433 for ac_prog
in egrep; do
5434 for ac_exec_ext
in '' $ac_executable_extensions; do
5435 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5436 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5437 # Check for GNU ac_path_EGREP and select it if it is found.
5438 # Check for GNU $ac_path_EGREP
5439 case `"$ac_path_EGREP" --version 2>&1` in
5441 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5444 $as_echo_n 0123456789 >"conftest.in"
5447 cat "conftest.in" "conftest.in" >"conftest.tmp"
5448 mv "conftest.tmp" "conftest.in"
5449 cp "conftest.in" "conftest.nl"
5450 $as_echo 'EGREP' >> "conftest.nl"
5451 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5452 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5453 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5454 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5455 # Best one so far, save it but keep looking for a better one
5456 ac_cv_path_EGREP
="$ac_path_EGREP"
5457 ac_path_EGREP_max
=$ac_count
5459 # 10*(2^10) chars as input seems more than enough
5460 test $ac_count -gt 10 && break
5462 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5465 $ac_path_EGREP_found && break 3
5470 if test -z "$ac_cv_path_EGREP"; then
5471 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5474 ac_cv_path_EGREP
=$EGREP
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5480 $as_echo "$ac_cv_path_EGREP" >&6; }
5481 EGREP
="$ac_cv_path_EGREP"
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5485 $as_echo_n "checking for ANSI C header files... " >&6; }
5486 if ${ac_cv_header_stdc+:} false
; then :
5487 $as_echo_n "(cached) " >&6
5489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5504 if ac_fn_cxx_try_compile
"$LINENO"; then :
5505 ac_cv_header_stdc
=yes
5507 ac_cv_header_stdc
=no
5509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 if test $ac_cv_header_stdc = yes; then
5512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5519 $EGREP "memchr" >/dev
/null
2>&1; then :
5522 ac_cv_header_stdc
=no
5528 if test $ac_cv_header_stdc = yes; then
5529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536 $EGREP "free" >/dev
/null
2>&1; then :
5539 ac_cv_header_stdc
=no
5545 if test $ac_cv_header_stdc = yes; then
5546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5547 if test "$cross_compiling" = yes; then :
5550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5554 #if ((' ' & 0x0FF) == 0x020)
5555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5558 # define ISLOWER(c) \
5559 (('a' <= (c) && (c) <= 'i') \
5560 || ('j' <= (c) && (c) <= 'r') \
5561 || ('s' <= (c) && (c) <= 'z'))
5562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570 for (i = 0; i < 256; i++)
5571 if (XOR (islower (i), ISLOWER (i))
5572 || toupper (i) != TOUPPER (i))
5577 if ac_fn_cxx_try_run
"$LINENO"; then :
5580 ac_cv_header_stdc
=no
5582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5589 $as_echo "$ac_cv_header_stdc" >&6; }
5590 if test $ac_cv_header_stdc = yes; then
5592 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5596 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5597 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5598 inttypes.h stdint.h unistd.h
5600 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5601 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5603 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5604 cat >>confdefs.h
<<_ACEOF
5605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5614 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5615 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5622 if test "$MINIX" = yes; then
5624 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5627 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5630 $as_echo "#define _MINIX 1" >>confdefs.h
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5636 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5637 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5638 $as_echo_n "(cached) " >&6
5640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5643 # define __EXTENSIONS__ 1
5644 $ac_includes_default
5653 if ac_fn_cxx_try_compile
"$LINENO"; then :
5654 ac_cv_safe_to_define___extensions__
=yes
5656 ac_cv_safe_to_define___extensions__
=no
5658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5661 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5662 test $ac_cv_safe_to_define___extensions__ = yes &&
5663 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5665 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5667 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5669 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5671 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5675 ac_cpp
='$CPP $CPPFLAGS'
5676 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5680 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5681 # On Suns, sometimes $CPP names a directory.
5682 if test -n "$CPP" && test -d "$CPP"; then
5685 if test -z "$CPP"; then
5686 if ${ac_cv_prog_CPP+:} false
; then :
5687 $as_echo_n "(cached) " >&6
5689 # Double quotes because CPP needs to be expanded
5690 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5693 for ac_c_preproc_warn_flag
in '' yes
5695 # Use a header file that comes with gcc, so configuring glibc
5696 # with a fresh cross-compiler works.
5697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5698 # <limits.h> exists even on freestanding compilers.
5699 # On the NeXT, cc -E runs the code through the compiler's parser,
5700 # not just through cpp. "Syntax error" is here to catch this case.
5701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5704 # include <limits.h>
5706 # include <assert.h>
5710 if ac_fn_c_try_cpp
"$LINENO"; then :
5713 # Broken: fails on valid input.
5716 rm -f conftest.err conftest.i conftest.
$ac_ext
5718 # OK, works on sane cases. Now check whether nonexistent headers
5719 # can be detected and how.
5720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #include <ac_nonexistent.h>
5724 if ac_fn_c_try_cpp
"$LINENO"; then :
5725 # Broken: success on invalid input.
5728 # Passes both tests.
5732 rm -f conftest.err conftest.i conftest.
$ac_ext
5735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736 rm -f conftest.i conftest.err conftest.
$ac_ext
5737 if $ac_preproc_ok; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5750 $as_echo "$CPP" >&6; }
5752 for ac_c_preproc_warn_flag
in '' yes
5754 # Use a header file that comes with gcc, so configuring glibc
5755 # with a fresh cross-compiler works.
5756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757 # <limits.h> exists even on freestanding compilers.
5758 # On the NeXT, cc -E runs the code through the compiler's parser,
5759 # not just through cpp. "Syntax error" is here to catch this case.
5760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5763 # include <limits.h>
5765 # include <assert.h>
5769 if ac_fn_c_try_cpp
"$LINENO"; then :
5772 # Broken: fails on valid input.
5775 rm -f conftest.err conftest.i conftest.
$ac_ext
5777 # OK, works on sane cases. Now check whether nonexistent headers
5778 # can be detected and how.
5779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 #include <ac_nonexistent.h>
5783 if ac_fn_c_try_cpp
"$LINENO"; then :
5784 # Broken: success on invalid input.
5787 # Passes both tests.
5791 rm -f conftest.err conftest.i conftest.
$ac_ext
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.i conftest.err conftest.
$ac_ext
5796 if $ac_preproc_ok; then :
5799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5801 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5802 See \`config.log' for more details" "$LINENO" 5; }
5806 ac_cpp
='$CXXCPP $CPPFLAGS'
5807 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5812 $as_echo_n "checking for inline... " >&6; }
5813 if ${ac_cv_c_inline+:} false
; then :
5814 $as_echo_n "(cached) " >&6
5817 for ac_kw
in inline __inline__ __inline
; do
5818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5822 static $ac_kw foo_t static_foo () {return 0; }
5823 $ac_kw foo_t foo () {return 0; }
5827 if ac_fn_cxx_try_compile
"$LINENO"; then :
5828 ac_cv_c_inline
=$ac_kw
5830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5831 test "$ac_cv_c_inline" != no
&& break
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5836 $as_echo "$ac_cv_c_inline" >&6; }
5838 case $ac_cv_c_inline in
5841 case $ac_cv_c_inline in
5843 *) ac_val
=$ac_cv_c_inline;;
5845 cat >>confdefs.h
<<_ACEOF
5847 #define inline $ac_val
5854 # Check whether --enable-largefile was given.
5855 if test "${enable_largefile+set}" = set; then :
5856 enableval
=$enable_largefile;
5859 if test "$enable_largefile" != no
; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5862 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5863 if ${ac_cv_sys_largefile_CC+:} false
; then :
5864 $as_echo_n "(cached) " >&6
5866 ac_cv_sys_largefile_CC
=no
5867 if test "$GCC" != yes; then
5870 # IRIX 6.2 and later do not support large files by default,
5871 # so use the C compiler's -n32 option if that helps.
5872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 #include <sys/types.h>
5875 /* Check that off_t can represent 2**63 - 1 correctly.
5876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5877 since some C++ compilers masquerading as C compilers
5878 incorrectly reject 9223372036854775807. */
5879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5881 && LARGE_OFF_T % 2147483647 == 1)
5891 if ac_fn_cxx_try_compile
"$LINENO"; then :
5894 rm -f core conftest.err conftest.
$ac_objext
5896 if ac_fn_cxx_try_compile
"$LINENO"; then :
5897 ac_cv_sys_largefile_CC
=' -n32'; break
5899 rm -f core conftest.err conftest.
$ac_objext
5903 rm -f conftest.
$ac_ext
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5907 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5908 if test "$ac_cv_sys_largefile_CC" != no
; then
5909 CC
=$CC$ac_cv_sys_largefile_CC
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5913 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5914 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5915 $as_echo_n "(cached) " >&6
5918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 #include <sys/types.h>
5921 /* Check that off_t can represent 2**63 - 1 correctly.
5922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5923 since some C++ compilers masquerading as C compilers
5924 incorrectly reject 9223372036854775807. */
5925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5927 && LARGE_OFF_T % 2147483647 == 1)
5937 if ac_fn_cxx_try_compile
"$LINENO"; then :
5938 ac_cv_sys_file_offset_bits
=no
; break
5940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 #define _FILE_OFFSET_BITS 64
5944 #include <sys/types.h>
5945 /* Check that off_t can represent 2**63 - 1 correctly.
5946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5947 since some C++ compilers masquerading as C compilers
5948 incorrectly reject 9223372036854775807. */
5949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5951 && LARGE_OFF_T % 2147483647 == 1)
5961 if ac_fn_cxx_try_compile
"$LINENO"; then :
5962 ac_cv_sys_file_offset_bits
=64; break
5964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5965 ac_cv_sys_file_offset_bits
=unknown
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5970 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5971 case $ac_cv_sys_file_offset_bits in #(
5974 cat >>confdefs.h
<<_ACEOF
5975 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5980 if test $ac_cv_sys_file_offset_bits = unknown
; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5982 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5983 if ${ac_cv_sys_large_files+:} false
; then :
5984 $as_echo_n "(cached) " >&6
5987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989 #include <sys/types.h>
5990 /* Check that off_t can represent 2**63 - 1 correctly.
5991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5992 since some C++ compilers masquerading as C compilers
5993 incorrectly reject 9223372036854775807. */
5994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5996 && LARGE_OFF_T % 2147483647 == 1)
6006 if ac_fn_cxx_try_compile
"$LINENO"; then :
6007 ac_cv_sys_large_files
=no
; break
6009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #define _LARGE_FILES 1
6013 #include <sys/types.h>
6014 /* Check that off_t can represent 2**63 - 1 correctly.
6015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6016 since some C++ compilers masquerading as C compilers
6017 incorrectly reject 9223372036854775807. */
6018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6020 && LARGE_OFF_T % 2147483647 == 1)
6030 if ac_fn_cxx_try_compile
"$LINENO"; then :
6031 ac_cv_sys_large_files
=1; break
6033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6034 ac_cv_sys_large_files
=unknown
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6039 $as_echo "$ac_cv_sys_large_files" >&6; }
6040 case $ac_cv_sys_large_files in #(
6043 cat >>confdefs.h
<<_ACEOF
6044 #define _LARGE_FILES $ac_cv_sys_large_files
6055 # sizeof(char) is 1 by definition.
6056 # The cast to long int works around a bug in the HP C Compiler
6057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6059 # This bug is HP SR number 8606223364.
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6061 $as_echo_n "checking size of void *... " >&6; }
6062 if ${ac_cv_sizeof_void_p+:} false
; then :
6063 $as_echo_n "(cached) " >&6
6065 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6068 if test "$ac_cv_type_void_p" = yes; then
6069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6071 as_fn_error
77 "cannot compute sizeof (void *)
6072 See \`config.log' for more details" "$LINENO" 5; }
6074 ac_cv_sizeof_void_p
=0
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6080 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6084 cat >>confdefs.h
<<_ACEOF
6085 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6089 # The cast to long int works around a bug in the HP C Compiler
6090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6092 # This bug is HP SR number 8606223364.
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6094 $as_echo_n "checking size of short... " >&6; }
6095 if ${ac_cv_sizeof_short+:} false
; then :
6096 $as_echo_n "(cached) " >&6
6098 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6101 if test "$ac_cv_type_short" = yes; then
6102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6104 as_fn_error
77 "cannot compute sizeof (short)
6105 See \`config.log' for more details" "$LINENO" 5; }
6107 ac_cv_sizeof_short
=0
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6113 $as_echo "$ac_cv_sizeof_short" >&6; }
6117 cat >>confdefs.h
<<_ACEOF
6118 #define SIZEOF_SHORT $ac_cv_sizeof_short
6122 # The cast to long int works around a bug in the HP C Compiler
6123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6125 # This bug is HP SR number 8606223364.
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6127 $as_echo_n "checking size of int... " >&6; }
6128 if ${ac_cv_sizeof_int+:} false
; then :
6129 $as_echo_n "(cached) " >&6
6131 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6134 if test "$ac_cv_type_int" = yes; then
6135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6137 as_fn_error
77 "cannot compute sizeof (int)
6138 See \`config.log' for more details" "$LINENO" 5; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6146 $as_echo "$ac_cv_sizeof_int" >&6; }
6150 cat >>confdefs.h
<<_ACEOF
6151 #define SIZEOF_INT $ac_cv_sizeof_int
6155 # The cast to long int works around a bug in the HP C Compiler
6156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6158 # This bug is HP SR number 8606223364.
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6160 $as_echo_n "checking size of long... " >&6; }
6161 if ${ac_cv_sizeof_long+:} false
; then :
6162 $as_echo_n "(cached) " >&6
6164 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6167 if test "$ac_cv_type_long" = yes; then
6168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6170 as_fn_error
77 "cannot compute sizeof (long)
6171 See \`config.log' for more details" "$LINENO" 5; }
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6179 $as_echo "$ac_cv_sizeof_long" >&6; }
6183 cat >>confdefs.h
<<_ACEOF
6184 #define SIZEOF_LONG $ac_cv_sizeof_long
6188 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6189 if test "x$ac_cv_type_long_long" = xyes
; then :
6191 cat >>confdefs.h
<<_ACEOF
6192 #define HAVE_LONG_LONG 1
6195 # The cast to long int works around a bug in the HP C Compiler
6196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6198 # This bug is HP SR number 8606223364.
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6200 $as_echo_n "checking size of long long... " >&6; }
6201 if ${ac_cv_sizeof_long_long+:} false
; then :
6202 $as_echo_n "(cached) " >&6
6204 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6207 if test "$ac_cv_type_long_long" = yes; then
6208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6210 as_fn_error
77 "cannot compute sizeof (long long)
6211 See \`config.log' for more details" "$LINENO" 5; }
6213 ac_cv_sizeof_long_long
=0
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6219 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6223 cat >>confdefs.h
<<_ACEOF
6224 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6230 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6231 case $ac_cv_c_int8_t in #(
6235 cat >>confdefs.h
<<_ACEOF
6236 #define int8_t $ac_cv_c_int8_t
6241 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6242 case $ac_cv_c_int16_t in #(
6246 cat >>confdefs.h
<<_ACEOF
6247 #define int16_t $ac_cv_c_int16_t
6252 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6253 case $ac_cv_c_int32_t in #(
6257 cat >>confdefs.h
<<_ACEOF
6258 #define int32_t $ac_cv_c_int32_t
6263 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6264 case $ac_cv_c_int64_t in #(
6268 cat >>confdefs.h
<<_ACEOF
6269 #define int64_t $ac_cv_c_int64_t
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6276 $as_echo_n "checking for unsigned long long int... " >&6; }
6277 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6278 $as_echo_n "(cached) " >&6
6280 ac_cv_type_unsigned_long_long_int
=yes
6281 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6285 /* For now, do not test the preprocessor; as of 2007 there are too many
6286 implementations with broken preprocessors. Perhaps this can
6287 be revisited in 2012. In the meantime, code should not expect
6288 #if to work with literals wider than 32 bits. */
6289 /* Test literals. */
6290 long long int ll = 9223372036854775807ll;
6291 long long int nll = -9223372036854775807LL;
6292 unsigned long long int ull = 18446744073709551615ULL;
6293 /* Test constant expressions. */
6294 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6296 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6302 /* Test availability of runtime routines for shift and division. */
6303 long long int llmax = 9223372036854775807ll;
6304 unsigned long long int ullmax = 18446744073709551615ull;
6305 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6306 | (llmax / ll) | (llmax % ll)
6307 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6308 | (ullmax / ull) | (ullmax % ull));
6314 if ac_fn_cxx_try_link
"$LINENO"; then :
6317 ac_cv_type_unsigned_long_long_int
=no
6319 rm -f core conftest.err conftest.
$ac_objext \
6320 conftest
$ac_exeext conftest.
$ac_ext
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6324 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6325 if test $ac_cv_type_unsigned_long_long_int = yes; then
6327 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6334 $as_echo_n "checking for long long int... " >&6; }
6335 if ${ac_cv_type_long_long_int+:} false
; then :
6336 $as_echo_n "(cached) " >&6
6338 ac_cv_type_long_long_int
=yes
6339 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6340 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6341 if test $ac_cv_type_long_long_int = yes; then
6342 if test "$cross_compiling" = yes; then :
6345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6350 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6351 # define LLONG_MAX (HALF - 1 + HALF)
6356 long long int n = 1;
6360 long long int m = n << i;
6363 if (LLONG_MAX / 2 < m)
6371 if ac_fn_cxx_try_run
"$LINENO"; then :
6374 ac_cv_type_long_long_int
=no
6376 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6377 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6384 $as_echo "$ac_cv_type_long_long_int" >&6; }
6385 if test $ac_cv_type_long_long_int = yes; then
6387 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6393 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6394 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6396 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6399 test $ac_cv_type_long_long_int = yes \
6400 && ac_type
='long long int' \
6401 || ac_type
='long int'
6403 cat >>confdefs.h
<<_ACEOF
6404 #define intmax_t $ac_type
6411 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6412 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6414 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6417 for ac_type
in 'int' 'long int' 'long long int'; do
6418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 $ac_includes_default
6424 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6426 return test_array [0];
6432 if ac_fn_cxx_try_compile
"$LINENO"; then :
6434 cat >>confdefs.h
<<_ACEOF
6435 #define intptr_t $ac_type
6440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6441 test -z "$ac_type" && break
6446 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6447 case $ac_cv_c_uint8_t in #(
6451 $as_echo "#define _UINT8_T 1" >>confdefs.h
6454 cat >>confdefs.h
<<_ACEOF
6455 #define uint8_t $ac_cv_c_uint8_t
6460 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6461 case $ac_cv_c_uint16_t in #(
6466 cat >>confdefs.h
<<_ACEOF
6467 #define uint16_t $ac_cv_c_uint16_t
6472 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6473 case $ac_cv_c_uint32_t in #(
6477 $as_echo "#define _UINT32_T 1" >>confdefs.h
6480 cat >>confdefs.h
<<_ACEOF
6481 #define uint32_t $ac_cv_c_uint32_t
6486 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6487 case $ac_cv_c_uint64_t in #(
6491 $as_echo "#define _UINT64_T 1" >>confdefs.h
6494 cat >>confdefs.h
<<_ACEOF
6495 #define uint64_t $ac_cv_c_uint64_t
6502 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6503 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6505 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6508 test $ac_cv_type_unsigned_long_long_int = yes \
6509 && ac_type
='unsigned long long int' \
6510 || ac_type
='unsigned long int'
6512 cat >>confdefs.h
<<_ACEOF
6513 #define uintmax_t $ac_type
6520 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6521 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6523 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6526 for ac_type
in 'unsigned int' 'unsigned long int' \
6527 'unsigned long long int'; do
6528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 $ac_includes_default
6534 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6536 return test_array [0];
6542 if ac_fn_cxx_try_compile
"$LINENO"; then :
6544 cat >>confdefs.h
<<_ACEOF
6545 #define uintptr_t $ac_type
6550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6551 test -z "$ac_type" && break
6568 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6569 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6572 # check what underlying integer type int64_t uses
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6574 $as_echo_n "checking for int64_t underlying type... " >&6; }
6575 if ${ac_cv_int64_t_type+:} false
; then :
6576 $as_echo_n "(cached) " >&6
6579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6582 #ifdef HAVE_STDINT_H
6585 template <typename T> struct X { };
6587 struct X<long> { typedef long t; };
6597 if ac_fn_cxx_try_compile
"$LINENO"; then :
6598 ac_cv_int64_t_type
=long
6600 ac_cv_int64_t_type
="long long"
6602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6605 $as_echo "$ac_cv_int64_t_type" >&6; }
6606 if test "$ac_cv_int64_t_type" = "long"; then
6608 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6614 #ifdef HAVE_STDINT_H
6617 template <typename T> struct X { };
6619 struct X<long long> { typedef long long t; };
6629 if ac_fn_cxx_try_compile
"$LINENO"; then :
6632 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6638 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6639 if ${ac_cv_std_swap_in_utility+:} false
; then :
6640 $as_echo_n "(cached) " >&6
6643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6651 int a, b; std::swap(a,b);
6656 if ac_fn_cxx_try_compile
"$LINENO"; then :
6657 ac_cv_std_swap_in_utility
=yes
6659 ac_cv_std_swap_in_utility
=no
6661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6664 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6665 if test $ac_cv_std_swap_in_utility = yes; then
6667 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6671 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6672 # If the host compiler is affected by the bug, and we build with optimization
6673 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6674 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6675 # Since there is no reliable feature check for the presence of this bug,
6676 # we simply use a GCC version number check. (This should never trigger for
6677 # stages 2 or 3 of a native bootstrap.)
6679 if test "$GCC" = yes; then
6680 saved_CXXFLAGS
="$CXXFLAGS"
6682 # The following test compilation will succeed if and only if $CXX accepts
6683 # -fno-strict-aliasing *and* is older than GCC 4.3.
6684 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6686 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6690 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6691 #error compiler not affected by placement new aliasing bug
6695 if ac_fn_cxx_try_compile
"$LINENO"; then :
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6697 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6704 CXXFLAGS
="$saved_CXXFLAGS"
6710 # ---------------------
6711 # Warnings and checking
6712 # ---------------------
6714 # Check $CC warning features (if it's GCC).
6715 # We want to use -pedantic, but we don't want warnings about
6718 # * overlong strings
6719 # * C++11 narrowing conversions in { }
6720 # So, we only use -pedantic if we can disable those warnings.
6722 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6723 # Check whether --enable-build-format-warnings was given.
6724 if test "${enable_build_format_warnings+set}" = set; then :
6725 enableval
=$enable_build_format_warnings;
6727 enable_build_format_warnings
=yes
6730 if test $enable_build_format_warnings = no
; then :
6736 ac_cpp
='$CXXCPP $CPPFLAGS'
6737 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6742 save_CXXFLAGS
="$CXXFLAGS"
6743 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6744 # Do the check with the no- prefix removed since gcc silently
6745 # accepts any -Wno-* option on purpose
6746 case $real_option in
6747 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6748 *) option
=$real_option ;;
6750 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6753 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6754 if eval \
${$as_acx_Woption+:} false
; then :
6755 $as_echo_n "(cached) " >&6
6758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6769 if ac_fn_cxx_try_compile
"$LINENO"; then :
6770 eval "$as_acx_Woption=yes"
6772 eval "$as_acx_Woption=no"
6774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6777 eval ac_res
=\$
$as_acx_Woption
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6781 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6784 CXXFLAGS
="$save_CXXFLAGS"
6786 ac_cpp
='$CXXCPP $CPPFLAGS'
6787 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6794 ac_cpp
='$CPP $CPPFLAGS'
6795 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6800 save_CFLAGS
="$CFLAGS"
6801 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6802 # Do the check with the no- prefix removed since gcc silently
6803 # accepts any -Wno-* option on purpose
6804 case $real_option in
6805 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6806 *) option
=$real_option ;;
6808 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6811 $as_echo_n "checking whether $CC supports $option... " >&6; }
6812 if eval \
${$as_acx_Woption+:} false
; then :
6813 $as_echo_n "(cached) " >&6
6816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6827 if ac_fn_c_try_compile
"$LINENO"; then :
6828 eval "$as_acx_Woption=yes"
6830 eval "$as_acx_Woption=no"
6832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6835 eval ac_res
=\$
$as_acx_Woption
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6837 $as_echo "$ac_res" >&6; }
6838 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6839 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6842 CFLAGS
="$save_CFLAGS"
6844 ac_cpp
='$CXXCPP $CPPFLAGS'
6845 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6851 ac_cpp
='$CXXCPP $CPPFLAGS'
6852 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6853 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6854 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6857 save_CXXFLAGS
="$CXXFLAGS"
6858 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6859 # Do the check with the no- prefix removed since gcc silently
6860 # accepts any -Wno-* option on purpose
6861 case $real_option in
6862 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6863 *) option
=$real_option ;;
6865 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6868 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6869 if eval \
${$as_acx_Woption+:} false
; then :
6870 $as_echo_n "(cached) " >&6
6873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6884 if ac_fn_cxx_try_compile
"$LINENO"; then :
6885 eval "$as_acx_Woption=yes"
6887 eval "$as_acx_Woption=no"
6889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6892 eval ac_res
=\$
$as_acx_Woption
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6894 $as_echo "$ac_res" >&6; }
6895 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6896 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6899 CXXFLAGS
="$save_CXXFLAGS"
6901 ac_cpp
='$CXXCPP $CPPFLAGS'
6902 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6903 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6904 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6908 ac_cpp
='$CPP $CPPFLAGS'
6909 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6914 save_CFLAGS
="$CFLAGS"
6915 for real_option
in -Wold-style-definition -Wc++-compat; do
6916 # Do the check with the no- prefix removed since gcc silently
6917 # accepts any -Wno-* option on purpose
6918 case $real_option in
6919 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6920 *) option
=$real_option ;;
6922 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6925 $as_echo_n "checking whether $CC supports $option... " >&6; }
6926 if eval \
${$as_acx_Woption+:} false
; then :
6927 $as_echo_n "(cached) " >&6
6930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6941 if ac_fn_c_try_compile
"$LINENO"; then :
6942 eval "$as_acx_Woption=yes"
6944 eval "$as_acx_Woption=no"
6946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6949 eval ac_res
=\$
$as_acx_Woption
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6951 $as_echo "$ac_res" >&6; }
6952 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6953 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6956 CFLAGS
="$save_CFLAGS"
6958 ac_cpp
='$CXXCPP $CPPFLAGS'
6959 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6965 ac_cpp
='$CXXCPP $CPPFLAGS'
6966 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6970 # Do the check with the no- prefix removed from the warning options
6971 # since gcc silently accepts any -Wno-* option on purpose
6972 if test "$GXX" = yes; then :
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6974 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6975 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
6976 $as_echo_n "(cached) " >&6
6978 save_CXXFLAGS
="$CXXFLAGS"
6979 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6991 if ac_fn_cxx_try_compile
"$LINENO"; then :
6992 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6994 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6997 CXXFLAGS
="$save_CXXFLAGS"
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7000 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7001 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7002 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7007 ac_cpp
='$CXXCPP $CPPFLAGS'
7008 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7014 ac_cpp
='$CXXCPP $CPPFLAGS'
7015 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7019 # Check whether --enable-werror-always was given.
7020 if test "${enable_werror_always+set}" = set; then :
7021 enableval
=$enable_werror_always;
7023 enable_werror_always
=no
7026 if test $enable_werror_always = yes; then :
7027 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7031 ac_cpp
='$CXXCPP $CPPFLAGS'
7032 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7038 # The above macros do nothing if the compiler is not GCC. However, the
7039 # Makefile has more goo to add other flags, so these variables are used
7040 # to enable warnings only for GCC.
7043 if test "x$GCC" = "xyes"; then
7044 warn_cflags
='$(GCC_WARN_CFLAGS)'
7045 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7050 # Disable exceptions and RTTI if building with g++
7052 ac_cpp
='$CPP $CPPFLAGS'
7053 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7058 save_CFLAGS
="$CFLAGS"
7059 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7060 # Do the check with the no- prefix removed since gcc silently
7061 # accepts any -Wno-* option on purpose
7062 case $real_option in
7063 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7064 *) option
=$real_option ;;
7066 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7069 $as_echo_n "checking whether $CC supports $option... " >&6; }
7070 if eval \
${$as_acx_Woption+:} false
; then :
7071 $as_echo_n "(cached) " >&6
7074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7085 if ac_fn_c_try_compile
"$LINENO"; then :
7086 eval "$as_acx_Woption=yes"
7088 eval "$as_acx_Woption=no"
7090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7093 eval ac_res
=\$
$as_acx_Woption
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7095 $as_echo "$ac_res" >&6; }
7096 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7097 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7100 CFLAGS
="$save_CFLAGS"
7102 ac_cpp
='$CXXCPP $CPPFLAGS'
7103 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7109 # Enable expensive internal checks
7111 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7115 # Check whether --enable-checking was given.
7116 if test "${enable_checking+set}" = set; then :
7117 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7120 # Determine the default checks.
7121 if test x
$is_release = x
; then
7122 ac_checking_flags
=yes,extra
7124 ac_checking_flags
=release
7128 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7129 for check
in release
$ac_checking_flags
7132 # these set all the flags to specific states
7133 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7134 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7135 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7136 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7137 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7138 ac_types_checking
=1 ;;
7139 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7140 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7141 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7142 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7143 ac_tree_checking
= ; ac_valgrind_checking
= ;
7144 ac_types_checking
= ;;
7145 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7146 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7147 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7148 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7149 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7150 ac_types_checking
=1 ;;
7151 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7152 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7153 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7154 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7155 ac_tree_checking
= ; ac_valgrind_checking
= ;
7156 ac_types_checking
= ;;
7157 # these enable particular checks
7158 assert
) ac_assert_checking
=1 ;;
7159 df
) ac_df_checking
=1 ;;
7160 extra
) ac_extra_checking
=1 ;;
7161 fold) ac_fold_checking
=1 ;;
7162 gc
) ac_gc_checking
=1 ;;
7163 gcac
) ac_gc_always_collect
=1 ;;
7164 gimple
) ac_gimple_checking
=1 ;;
7165 misc
) ac_checking
=1 ;;
7166 rtl
) ac_rtl_checking
=1 ;;
7167 rtlflag
) ac_rtlflag_checking
=1 ;;
7168 runtime
) ac_runtime_checking
=1 ;;
7169 tree
) ac_tree_checking
=1 ;;
7170 types
) ac_types_checking
=1 ;;
7171 valgrind
) ac_valgrind_checking
=1 ;;
7172 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7178 if test x
$ac_checking != x
; then
7180 $as_echo "#define CHECKING_P 1" >>confdefs.h
7182 nocommon_flag
=-fno-common
7184 $as_echo "#define CHECKING_P 0" >>confdefs.h
7188 if test x
$ac_extra_checking != x
; then
7190 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7193 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7196 if test x
$ac_df_checking != x
; then
7198 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7201 if test x
$ac_assert_checking != x
; then
7203 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7206 if test x
$ac_gimple_checking != x
; then
7208 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7212 if test x
$ac_runtime_checking != x
; then
7214 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7217 if test x
$ac_tree_checking != x
; then
7219 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7223 if test x
$ac_types_checking != x
; then
7225 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7229 if test x
$ac_rtl_checking != x
; then
7231 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7234 if test x
$ac_rtlflag_checking != x
; then
7236 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7239 if test x
$ac_gc_checking != x
; then
7241 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7244 if test x
$ac_gc_always_collect != x
; then
7246 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7249 if test x
$ac_fold_checking != x
; then
7251 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7254 valgrind_path_defines
=
7257 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7258 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7266 # It is certainly possible that there's valgrind but no valgrind.h.
7267 # GCC relies on making annotations so we must have both.
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7269 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #include <valgrind/memcheck.h>
7273 #ifndef VALGRIND_DISCARD
7274 #error VALGRIND_DISCARD not defined
7277 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7278 gcc_cv_header_valgrind_memcheck_h
=yes
7280 gcc_cv_header_valgrind_memcheck_h
=no
7282 rm -f conftest.err conftest.i conftest.
$ac_ext
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7284 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7286 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <memcheck.h>
7290 #ifndef VALGRIND_DISCARD
7291 #error VALGRIND_DISCARD not defined
7294 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7295 gcc_cv_header_memcheck_h
=yes
7297 gcc_cv_header_memcheck_h
=no
7299 rm -f conftest.err conftest.i conftest.
$ac_ext
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7301 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7302 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7304 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7307 if test $gcc_cv_header_memcheck_h = yes; then
7309 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7313 if test x
$ac_valgrind_checking != x
; then
7315 # Prepare PATH_SEPARATOR.
7316 # The user is always right.
7317 if test "${PATH_SEPARATOR+set}" != set; then
7318 echo "#! /bin/sh" >conf$$.sh
7319 echo "exit 0" >>conf$$.sh
7321 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7329 # Find out how to test for executable files. Don't use a zero-byte file,
7330 # as systems may use methods other than mode bits to determine executability.
7331 cat >conf$$.
file <<_ASEOF
7335 chmod +x conf$$.
file
7336 if test -x conf$$.
file >/dev
/null
2>&1; then
7337 ac_executable_p
="test -x"
7339 ac_executable_p
="test -f"
7343 # Extract the first word of "valgrind", so it can be a program name with args.
7344 set dummy valgrind
; ac_word
=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_path_valgrind_path+:} false
; then :
7348 $as_echo_n "(cached) " >&6
7350 case "$valgrind_path" in
7352 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7355 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7356 for ac_dir
in $PATH; do
7358 test -z "$ac_dir" && ac_dir
=.
7359 for ac_exec_ext
in '' $ac_executable_extensions; do
7360 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7361 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7362 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7372 valgrind_path
="$ac_cv_path_valgrind_path"
7373 if test -n "$valgrind_path"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7375 $as_echo "$valgrind_path" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7381 if test "x$valgrind_path" = "x" \
7382 ||
(test $have_valgrind_h = no \
7383 && test $gcc_cv_header_memcheck_h = no \
7384 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7385 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7387 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7388 valgrind_command
="$valgrind_path -q"
7390 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7396 # Enable code coverage collection
7397 # Check whether --enable-coverage was given.
7398 if test "${enable_coverage+set}" = set; then :
7399 enableval
=$enable_coverage; case "${enableval}" in
7401 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7404 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7407 # a.k.a. --disable-coverage
7411 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7420 # Check whether --enable-gather-detailed-mem-stats was given.
7421 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7422 enableval
=$enable_gather_detailed_mem_stats;
7424 enable_gather_detailed_mem_stats
=no
7427 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7429 cat >>confdefs.h
<<_ACEOF
7430 #define GATHER_STATISTICS $gather_stats
7434 # Check whether --enable-valgrind-annotations was given.
7435 if test "${enable_valgrind_annotations+set}" = set; then :
7436 enableval
=$enable_valgrind_annotations;
7438 enable_valgrind_annotations
=no
7441 if test x
$enable_valgrind_annotations != xno \
7442 ||
test x
$ac_valgrind_checking != x
; then
7443 if (test $have_valgrind_h = no \
7444 && test $gcc_cv_header_memcheck_h = no \
7445 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7446 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7449 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7453 # -------------------------------
7454 # Miscenalleous configure options
7455 # -------------------------------
7459 # Check whether --with-stabs was given.
7460 if test "${with_stabs+set}" = set; then :
7461 withval
=$with_stabs; stabs
="$with_stabs"
7467 # Determine whether or not multilibs are enabled.
7468 # Check whether --enable-multilib was given.
7469 if test "${enable_multilib+set}" = set; then :
7470 enableval
=$enable_multilib;
7477 # Determine whether or not multiarch is enabled.
7478 # Check whether --enable-multiarch was given.
7479 if test "${enable_multiarch+set}" = set; then :
7480 enableval
=$enable_multiarch; case "${enableval}" in
7481 yes|no|auto
) enable_multiarch
=$enableval;;
7482 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7485 enable_multiarch
=auto
7488 if test x
${enable_multiarch} = xauto
; then
7489 if test x
${with_native_system_header_dir} != x
; then
7490 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7493 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7494 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7499 $as_echo_n "checking for multiarch configuration... " >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7502 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7504 # needed for setting the multiarch name for soft-float/hard-float ABIs
7508 # default stack clash protection guard size as power of twos in bytes.
7509 # Please keep these in sync with params.def.
7513 # Keep the default value when the option is not used to 0, this allows us to
7514 # distinguish between the cases where the user specifially set a value via
7515 # configure and when the normal default value is used.
7517 # Check whether --with-stack-clash-protection-guard-size was given.
7518 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7519 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7521 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7524 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7525 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7526 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7527 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
7531 cat >>confdefs.h
<<_ACEOF
7532 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7536 # Enable __cxa_atexit for C++.
7537 # Check whether --enable-__cxa_atexit was given.
7538 if test "${enable___cxa_atexit+set}" = set; then :
7539 enableval
=$enable___cxa_atexit;
7543 # Enable C extension for decimal float if target supports it.
7545 # Check whether --enable-decimal-float was given.
7546 if test "${enable_decimal_float+set}" = set; then :
7547 enableval
=$enable_decimal_float;
7548 case $enable_decimal_float in
7549 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7550 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7551 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7557 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7558 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7559 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7560 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7561 enable_decimal_float
=yes
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7565 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7566 enable_decimal_float
=no
7573 # x86's use BID format instead of DPD
7574 case x
$enable_decimal_float in
7577 i?
86*-*-* | x86_64
*-*-*)
7578 enable_decimal_float
=bid
7581 enable_decimal_float
=dpd
7584 default_decimal_float
=$enable_decimal_float
7587 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7588 # dependency on libdecnumber.
7589 default_decimal_float
=dpd
7596 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7598 cat >>confdefs.h
<<_ACEOF
7599 #define ENABLE_DECIMAL_FLOAT $dfp
7603 # Use default_decimal_float for dependency.
7604 enable_decimal_float
=$default_decimal_float
7606 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7608 cat >>confdefs.h
<<_ACEOF
7609 #define ENABLE_DECIMAL_BID_FORMAT $bid
7613 # Enable C extension for fixed-point arithmetic.
7614 # Check whether --enable-fixed-point was given.
7615 if test "${enable_fixed_point+set}" = set; then :
7616 enableval
=$enable_fixed_point;
7621 enable_fixed_point
=yes
7625 enable_fixed_point
=yes
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7629 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7630 enable_fixed_point
=no
7638 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7640 cat >>confdefs.h
<<_ACEOF
7641 #define ENABLE_FIXED_POINT $fixedpoint
7646 # Pass with no value to take the default
7647 # Pass with a value to specify a thread package
7648 # Check whether --enable-threads was given.
7649 if test "${enable_threads+set}" = set; then :
7650 enableval
=$enable_threads;
7656 # Check whether --enable-tls was given.
7657 if test "${enable_tls+set}" = set; then :
7658 enableval
=$enable_tls;
7661 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7662 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7670 # Check whether --enable-vtable-verify was given.
7671 if test "${enable_vtable_verify+set}" = set; then :
7672 enableval
=$enable_vtable_verify;
7674 enable_vtable_verify
=no
7677 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7679 cat >>confdefs.h
<<_ACEOF
7680 #define ENABLE_VTABLE_VERIFY $vtable_verify
7684 # Check whether --enable-objc-gc was given.
7685 if test "${enable_objc_gc+set}" = set; then :
7686 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7697 # Check whether --with-dwarf2 was given.
7698 if test "${with_dwarf2+set}" = set; then :
7699 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7705 # Check whether --enable-shared was given.
7706 if test "${enable_shared+set}" = set; then :
7707 enableval
=$enable_shared;
7708 case $enable_shared in
7712 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7713 for pkg
in $enableval; do
7714 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7728 # Check whether --enable-gcov was given.
7729 if test "${enable_gcov+set}" = set; then :
7730 enableval
=$enable_gcov;
7738 # Check whether --with-specs was given.
7739 if test "${with_specs+set}" = set; then :
7740 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7750 # Check whether --with-pkgversion was given.
7751 if test "${with_pkgversion+set}" = set; then :
7752 withval
=$with_pkgversion; case "$withval" in
7753 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7755 *) PKGVERSION
="($withval) " ;;
7766 # Check whether --with-bugurl was given.
7767 if test "${with_bugurl+set}" = set; then :
7768 withval
=$with_bugurl; case "$withval" in
7769 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7772 *) BUGURL
="$withval"
7776 BUGURL
="https://gcc.gnu.org/bugs/"
7786 REPORT_BUGS_TO
="<$BUGURL>"
7787 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7794 # Sanity check enable_languages in case someone does not run the toplevel
7795 # configure # script.
7796 # Check whether --enable-languages was given.
7797 if test "${enable_languages+set}" = set; then :
7798 enableval
=$enable_languages; case ,${enable_languages}, in
7800 # go safe -- we cannot be much sure without the toplevel
7802 # analysis of which target libs are present and usable
7806 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7811 enable_languages
=c
,${enable_languages}
7819 if test x
"$enable_as_accelerator_for" != x
; then
7821 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7823 enable_as_accelerator
=yes
7826 # In this case we expect offload compiler to be built as native, so we
7827 # need to rename the driver to avoid clashes with host's drivers.
7828 program_transform_name
="s&^&${target}-&" ;;
7830 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7831 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7832 accel_dir_suffix
=/accel
/${target_noncanonical}
7833 real_target_noncanonical
=${enable_as_accelerator_for}
7839 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7840 tgt
=`echo $tgt | sed 's/=.*//'`
7842 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7848 if test x
"$offload_targets" = x
; then
7849 offload_targets
=$tgt
7851 offload_targets
="$offload_targets,$tgt"
7855 cat >>confdefs.h
<<_ACEOF
7856 #define OFFLOAD_TARGETS "$offload_targets"
7859 if test x
"$enable_offloading" != x
; then
7861 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7865 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7869 if test x
"$enable_hsa" = x1
; then
7871 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7876 # Check whether --with-multilib-list was given.
7877 if test "${with_multilib_list+set}" = set; then :
7878 withval
=$with_multilib_list; :
7880 with_multilib_list
=default
7884 # -------------------------
7885 # Checks for other programs
7886 # -------------------------
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7889 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7891 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7892 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7893 $as_echo_n "(cached) " >&6
7895 cat >conftest.
make <<\_ACEOF
7898 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7900 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7901 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7903 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7905 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7909 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7911 $as_echo "yes" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 SET_MAKE
="MAKE=${MAKE-make}"
7920 # Find some useful tools
7921 for ac_prog
in gawk mawk nawk
awk
7923 # Extract the first word of "$ac_prog", so it can be a program name with args.
7924 set dummy
$ac_prog; ac_word
=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_AWK+:} false
; then :
7928 $as_echo_n "(cached) " >&6
7930 if test -n "$AWK"; then
7931 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7937 test -z "$as_dir" && as_dir
=.
7938 for ac_exec_ext
in '' $ac_executable_extensions; do
7939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_AWK
="$ac_prog"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 if test -n "$AWK"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7953 $as_echo "$AWK" >&6; }
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7960 test -n "$AWK" && break
7963 # We need awk to create options.c and options.h.
7964 # Bail out if it's missing.
7966 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7970 $as_echo_n "checking whether ln -s works... " >&6; }
7971 if ${gcc_cv_prog_LN_S+:} false
; then :
7972 $as_echo_n "(cached) " >&6
7974 rm -f conftestdata_t
7975 echo >conftestdata_f
7976 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7978 gcc_cv_prog_LN_S
="ln -s"
7980 if ln conftestdata_f conftestdata_t
2>/dev
/null
7984 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7986 gcc_cv_prog_LN_S
="cp -p"
7992 rm -f conftestdata_f conftestdata_t
7995 LN_S
="$gcc_cv_prog_LN_S"
7996 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7998 $as_echo "yes" >&6; }
8000 if test "$gcc_cv_prog_LN_S" = "ln"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8002 $as_echo "no, using ln" >&6; }
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8005 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8010 $as_echo_n "checking whether ln works... " >&6; }
8011 if ${acx_cv_prog_LN+:} false
; then :
8012 $as_echo_n "(cached) " >&6
8014 rm -f conftestdata_t
8015 echo >conftestdata_f
8016 if ln conftestdata_f conftestdata_t
2>/dev
/null
8022 rm -f conftestdata_f conftestdata_t
8025 if test $acx_cv_prog_LN = no
; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8028 $as_echo "no, using $LN" >&6; }
8030 LN
="$acx_cv_prog_LN"
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8032 $as_echo "yes" >&6; }
8035 if test -n "$ac_tool_prefix"; then
8036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8037 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_RANLIB+:} false
; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$RANLIB"; then
8044 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir
=.
8051 for ac_exec_ext
in '' $ac_executable_extensions; do
8052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 RANLIB
=$ac_cv_prog_RANLIB
8064 if test -n "$RANLIB"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8066 $as_echo "$RANLIB" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8074 if test -z "$ac_cv_prog_RANLIB"; then
8075 ac_ct_RANLIB
=$RANLIB
8076 # Extract the first word of "ranlib", so it can be a program name with args.
8077 set dummy ranlib
; ac_word
=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8081 $as_echo_n "(cached) " >&6
8083 if test -n "$ac_ct_RANLIB"; then
8084 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8090 test -z "$as_dir" && as_dir
=.
8091 for ac_exec_ext
in '' $ac_executable_extensions; do
8092 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8104 if test -n "$ac_ct_RANLIB"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8106 $as_echo "$ac_ct_RANLIB" >&6; }
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8112 if test "x$ac_ct_RANLIB" = x
; then
8115 case $cross_compiling:$ac_tool_warned in
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119 ac_tool_warned
=yes ;;
8121 RANLIB
=$ac_ct_RANLIB
8124 RANLIB
="$ac_cv_prog_RANLIB"
8130 # Find a good install program. We prefer a C program (faster),
8131 # so one script is as good as another. But avoid the broken or
8132 # incompatible versions:
8133 # SysV /etc/install, /usr/sbin/install
8134 # SunOS /usr/etc/install
8135 # IRIX /sbin/install
8137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8139 # ./install, which can be erroneously created by make from ./install.sh.
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8141 $as_echo_n "checking for a BSD compatible install... " >&6; }
8142 if test -z "$INSTALL"; then
8143 if ${ac_cv_path_install+:} false
; then :
8144 $as_echo_n "(cached) " >&6
8146 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8147 for ac_dir
in $PATH; do
8148 # Account for people who put trailing slashes in PATH elements.
8150 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8152 # OSF1 and SCO ODT 3.0 have their own names for install.
8153 for ac_prog
in ginstall scoinst
install; do
8154 if test -f $ac_dir/$ac_prog; then
8155 if test $ac_prog = install &&
8156 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8157 # AIX install. It has an incompatible calling convention.
8158 # OSF/1 installbsd also uses dspmsg, but is usable.
8161 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8172 if test "${ac_cv_path_install+set}" = set; then
8173 INSTALL
="$ac_cv_path_install"
8175 # As a last resort, use the slow shell script. We don't cache a
8176 # path for INSTALL within a source directory, because that will
8177 # break other packages using the cache if that directory is
8178 # removed, or if the path is relative.
8179 INSTALL
="$ac_install_sh"
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8183 $as_echo "$INSTALL" >&6; }
8185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8186 # It thinks the first close brace ends the variable substitution.
8187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8189 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8192 # See if cmp has --ignore-initial.
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8194 $as_echo_n "checking for cmp's capabilities... " >&6; }
8195 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8196 $as_echo_n "(cached) " >&6
8200 gcc_cv_prog_cmp_skip
=slowcompare
8201 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8202 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8205 gcc_cv_prog_cmp_skip
=gnucompare
8208 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8209 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8210 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8213 gcc_cv_prog_cmp_skip
=fastcompare
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8221 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8222 make_compare_target
=$gcc_cv_prog_cmp_skip
8226 # See if we have the mktemp command.
8227 # Extract the first word of "mktemp", so it can be a program name with args.
8228 set dummy mktemp
; ac_word
=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8232 $as_echo_n "(cached) " >&6
8234 if test -n "$have_mktemp_command"; then
8235 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8241 test -z "$as_dir" && as_dir
=.
8242 for ac_exec_ext
in '' $ac_executable_extensions; do
8243 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_have_mktemp_command
="yes"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8255 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8256 if test -n "$have_mktemp_command"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8258 $as_echo "$have_mktemp_command" >&6; }
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8266 # See if makeinfo has been installed and is modern enough
8267 # that we can use it.
8269 # Extract the first word of "makeinfo", so it can be a program name with args.
8270 set dummy makeinfo
; ac_word
=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8274 $as_echo_n "(cached) " >&6
8276 if test -n "$MAKEINFO"; then
8277 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8283 test -z "$as_dir" && as_dir
=.
8284 for ac_exec_ext
in '' $ac_executable_extensions; do
8285 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8286 ac_cv_prog_MAKEINFO
="makeinfo"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 MAKEINFO
=$ac_cv_prog_MAKEINFO
8297 if test -n "$MAKEINFO"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8299 $as_echo "$MAKEINFO" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8306 if test -n "$MAKEINFO"; then
8307 # Found it, now check the version.
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8309 $as_echo_n "checking for modern makeinfo... " >&6; }
8310 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8311 $as_echo_n "(cached) " >&6
8313 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8314 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8316 case $ac_prog_version in
8317 '') gcc_cv_prog_makeinfo_modern
=no
;;
8318 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8319 *) gcc_cv_prog_makeinfo_modern
=no
;;
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8324 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8326 gcc_cv_prog_makeinfo_modern
=no
8328 if test $gcc_cv_prog_makeinfo_modern = no
; then
8329 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8332 if test $gcc_cv_prog_makeinfo_modern = no
; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8334 *** Makeinfo is missing or too old.
8335 *** Info documentation will not be built." >&5
8336 $as_echo "$as_me: WARNING:
8337 *** Makeinfo is missing or too old.
8338 *** Info documentation will not be built." >&2;}
8345 # Is pod2man recent enough to regenerate manpages?
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8347 $as_echo_n "checking for recent Pod::Man... " >&6; }
8348 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8350 $as_echo "yes" >&6; }
8351 GENERATED_MANPAGES
=generated-manpages
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8359 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8364 # Extract the first word of "$ac_prog", so it can be a program name with args.
8365 set dummy
$ac_prog; ac_word
=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if ${ac_cv_prog_FLEX+:} false
; then :
8369 $as_echo_n "(cached) " >&6
8371 if test -n "$FLEX"; then
8372 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir
=.
8379 for ac_exec_ext
in '' $ac_executable_extensions; do
8380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_FLEX
="$ac_prog"
8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 FLEX
=$ac_cv_prog_FLEX
8392 if test -n "$FLEX"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8394 $as_echo "$FLEX" >&6; }
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8401 test -n "$FLEX" && break
8403 test -n "$FLEX" || FLEX
="$MISSING flex"
8407 for ac_prog
in bison
8409 # Extract the first word of "$ac_prog", so it can be a program name with args.
8410 set dummy
$ac_prog; ac_word
=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if ${ac_cv_prog_BISON+:} false
; then :
8414 $as_echo_n "(cached) " >&6
8416 if test -n "$BISON"; then
8417 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8423 test -z "$as_dir" && as_dir
=.
8424 for ac_exec_ext
in '' $ac_executable_extensions; do
8425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8426 ac_cv_prog_BISON
="$ac_prog"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 BISON
=$ac_cv_prog_BISON
8437 if test -n "$BISON"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8439 $as_echo "$BISON" >&6; }
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8446 test -n "$BISON" && break
8448 test -n "$BISON" || BISON
="$MISSING bison"
8451 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8452 # check for build == host before using them.
8455 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8456 && test -d ..
/binutils
; then
8457 NM
='${objdir}/../binutils/nm-new'
8459 # Extract the first word of "nm", so it can be a program name with args.
8460 set dummy nm
; ac_word
=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_NM+:} false
; then :
8464 $as_echo_n "(cached) " >&6
8466 if test -n "$NM"; then
8467 ac_cv_prog_NM
="$NM" # Let the user override the test.
8469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8473 test -z "$as_dir" && as_dir
=.
8474 for ac_exec_ext
in '' $ac_executable_extensions; do
8475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8488 if test -n "$NM"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8490 $as_echo "$NM" >&6; }
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8500 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8501 && test -d ..
/binutils
; then
8502 AR
='${objdir}/../binutils/ar'
8504 # Extract the first word of "ar", so it can be a program name with args.
8505 set dummy
ar; ac_word
=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_AR+:} false
; then :
8509 $as_echo_n "(cached) " >&6
8511 if test -n "$AR"; then
8512 ac_cv_prog_AR
="$AR" # Let the user override the test.
8514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8518 test -z "$as_dir" && as_dir
=.
8519 for ac_exec_ext
in '' $ac_executable_extensions; do
8520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8533 if test -n "$AR"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8535 $as_echo "$AR" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8544 # The jit documentation looks better if built with sphinx, but can be
8545 # built with texinfo if sphinx is not available.
8546 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8547 # Extract the first word of "sphinx-build", so it can be a program name with args.
8548 set dummy sphinx-build
; ac_word
=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8552 $as_echo_n "(cached) " >&6
8554 if test -n "$doc_build_sys"; then
8555 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8561 test -z "$as_dir" && as_dir
=.
8562 for ac_exec_ext
in '' $ac_executable_extensions; do
8563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8564 ac_cv_prog_doc_build_sys
="sphinx"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8575 doc_build_sys
=$ac_cv_prog_doc_build_sys
8576 if test -n "$doc_build_sys"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8578 $as_echo "$doc_build_sys" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8586 # --------------------
8587 # Checks for C headers
8588 # --------------------
8590 # Need to reject headers which give warnings, so that the -Werror bootstrap
8591 # works later. *sigh* This needs to come before all header checks.
8593 ac_c_preproc_warn_flag
=yes
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8596 $as_echo_n "checking for ANSI C header files... " >&6; }
8597 if ${ac_cv_header_stdc+:} false
; then :
8598 $as_echo_n "(cached) " >&6
8600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8615 if ac_fn_cxx_try_compile
"$LINENO"; then :
8616 ac_cv_header_stdc
=yes
8618 ac_cv_header_stdc
=no
8620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8622 if test $ac_cv_header_stdc = yes; then
8623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8630 $EGREP "memchr" >/dev
/null
2>&1; then :
8633 ac_cv_header_stdc
=no
8639 if test $ac_cv_header_stdc = yes; then
8640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8647 $EGREP "free" >/dev
/null
2>&1; then :
8650 ac_cv_header_stdc
=no
8656 if test $ac_cv_header_stdc = yes; then
8657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8658 if test "$cross_compiling" = yes; then :
8661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8665 #if ((' ' & 0x0FF) == 0x020)
8666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8669 # define ISLOWER(c) \
8670 (('a' <= (c) && (c) <= 'i') \
8671 || ('j' <= (c) && (c) <= 'r') \
8672 || ('s' <= (c) && (c) <= 'z'))
8673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8681 for (i = 0; i < 256; i++)
8682 if (XOR (islower (i), ISLOWER (i))
8683 || toupper (i) != TOUPPER (i))
8688 if ac_fn_cxx_try_run
"$LINENO"; then :
8691 ac_cv_header_stdc
=no
8693 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8694 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8700 $as_echo "$ac_cv_header_stdc" >&6; }
8701 if test $ac_cv_header_stdc = yes; then
8703 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8708 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8709 if ${ac_cv_header_time+:} false
; then :
8710 $as_echo_n "(cached) " >&6
8712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <sys/types.h>
8715 #include <sys/time.h>
8721 if ((struct tm *) 0)
8727 if ac_fn_cxx_try_compile
"$LINENO"; then :
8728 ac_cv_header_time
=yes
8730 ac_cv_header_time
=no
8732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8735 $as_echo "$ac_cv_header_time" >&6; }
8736 if test $ac_cv_header_time = yes; then
8738 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8743 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8744 if ${gcc_cv_header_string+:} false
; then :
8745 $as_echo_n "(cached) " >&6
8747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8750 #include <strings.h>
8759 if ac_fn_cxx_try_compile
"$LINENO"; then :
8760 gcc_cv_header_string
=yes
8762 gcc_cv_header_string
=no
8764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8767 $as_echo "$gcc_cv_header_string" >&6; }
8768 if test $gcc_cv_header_string = yes; then
8770 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8775 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8776 if ${ac_cv_header_sys_wait_h+:} false
; then :
8777 $as_echo_n "(cached) " >&6
8779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 #include <sys/types.h>
8782 #include <sys/wait.h>
8784 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8787 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8795 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8800 if ac_fn_cxx_try_compile
"$LINENO"; then :
8801 ac_cv_header_sys_wait_h
=yes
8803 ac_cv_header_sys_wait_h
=no
8805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8808 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8809 if test $ac_cv_header_sys_wait_h = yes; then
8811 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8816 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8817 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8818 $as_echo_n "(cached) " >&6
8820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822 #include <sys/types.h>
8823 #include <termios.h>
8829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8830 $EGREP "yes" >/dev
/null
2>&1; then :
8831 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8833 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8839 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8841 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8843 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8844 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8845 $as_echo_n "(cached) " >&6
8847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8849 #include <sys/types.h>
8850 #include <sys/ioctl.h>
8856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8857 $EGREP "yes" >/dev
/null
2>&1; then :
8858 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8860 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8866 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8868 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8870 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8875 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8876 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8877 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8878 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8880 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8881 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8882 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8883 cat >>confdefs.h
<<_ACEOF
8884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8891 # Check for thread headers.
8892 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8893 if test "x$ac_cv_header_thread_h" = xyes
; then :
8899 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8900 if test "x$ac_cv_header_pthread_h" = xyes
; then :
8907 # These tests can't be done till we know if we have limits.h.
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8909 $as_echo_n "checking for CHAR_BIT... " >&6; }
8910 if ${gcc_cv_decl_char_bit+:} false
; then :
8911 $as_echo_n "(cached) " >&6
8913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #ifdef HAVE_LIMITS_H
8922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8923 $EGREP "found" >/dev
/null
2>&1; then :
8924 gcc_cv_decl_char_bit
=yes
8926 gcc_cv_decl_char_bit
=no
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8933 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8934 if test $gcc_cv_decl_char_bit = no
; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8936 $as_echo_n "checking number of bits in a byte... " >&6; }
8937 if ${gcc_cv_c_nbby+:} false
; then :
8938 $as_echo_n "(cached) " >&6
8942 while test $i -lt 65; do
8943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8950 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8951 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8957 if ac_fn_cxx_try_compile
"$LINENO"; then :
8958 gcc_cv_c_nbby
=$i; break
8960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8963 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8967 $as_echo "$gcc_cv_c_nbby" >&6; }
8968 if test $gcc_cv_c_nbby = failed
; then
8969 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
8972 cat >>confdefs.h
<<_ACEOF
8973 #define CHAR_BIT $gcc_cv_c_nbby
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8979 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8980 if ${ac_cv_c_bigendian+:} false
; then :
8981 $as_echo_n "(cached) " >&6
8983 ac_cv_c_bigendian
=unknown
8984 # See if we're dealing with a universal compiler.
8985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987 #ifndef __APPLE_CC__
8988 not a universal capable compiler
8993 if ac_fn_cxx_try_compile
"$LINENO"; then :
8995 # Check for potential -arch flags. It is not universal unless
8996 # there are at least two -arch flags with different values.
8999 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9000 if test -n "$ac_prev"; then
9002 i?
86 | x86_64 | ppc | ppc64
)
9003 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9006 ac_cv_c_bigendian
=universal
9012 elif test "x$ac_word" = "x-arch"; then
9017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9018 if test $ac_cv_c_bigendian = unknown
; then
9019 # See if sys/param.h defines the BYTE_ORDER macro.
9020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 #include <sys/types.h>
9023 #include <sys/param.h>
9028 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9029 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9038 if ac_fn_cxx_try_compile
"$LINENO"; then :
9039 # It does; now see whether it defined to BIG_ENDIAN or not.
9040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 #include <sys/types.h>
9043 #include <sys/param.h>
9048 #if BYTE_ORDER != BIG_ENDIAN
9056 if ac_fn_cxx_try_compile
"$LINENO"; then :
9057 ac_cv_c_bigendian
=yes
9059 ac_cv_c_bigendian
=no
9061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9065 if test $ac_cv_c_bigendian = unknown
; then
9066 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9074 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9082 if ac_fn_cxx_try_compile
"$LINENO"; then :
9083 # It does; now see whether it defined to _BIG_ENDIAN or not.
9084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9099 if ac_fn_cxx_try_compile
"$LINENO"; then :
9100 ac_cv_c_bigendian
=yes
9102 ac_cv_c_bigendian
=no
9104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9108 if test $ac_cv_c_bigendian = unknown
; then
9109 # Compile a test program.
9110 if test "$cross_compiling" = yes; then :
9111 # Try to guess by grepping values from an object file.
9112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114 short int ascii_mm[] =
9115 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9116 short int ascii_ii[] =
9117 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9118 int use_ascii (int i) {
9119 return ascii_mm[i] + ascii_ii[i];
9121 short int ebcdic_ii[] =
9122 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9123 short int ebcdic_mm[] =
9124 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9125 int use_ebcdic (int i) {
9126 return ebcdic_mm[i] + ebcdic_ii[i];
9133 return use_ascii (foo) == use_ebcdic (foo);
9138 if ac_fn_cxx_try_compile
"$LINENO"; then :
9139 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9140 ac_cv_c_bigendian
=yes
9142 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9143 if test "$ac_cv_c_bigendian" = unknown
; then
9144 ac_cv_c_bigendian
=no
9146 # finding both strings is unlikely to happen, but who knows?
9147 ac_cv_c_bigendian
=unknown
9151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 $ac_includes_default
9160 /* Are we little or big endian? From Harbison&Steele. */
9164 char c[sizeof (long int)];
9167 return u.c[sizeof (long int) - 1] == 1;
9173 if ac_fn_cxx_try_run
"$LINENO"; then :
9174 ac_cv_c_bigendian
=no
9176 ac_cv_c_bigendian
=yes
9178 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9179 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9185 $as_echo "$ac_cv_c_bigendian" >&6; }
9186 case $ac_cv_c_bigendian in #(
9188 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9194 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9198 as_fn_error $?
"unknown endianness
9199 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9203 # ----------------------
9204 # Checks for C++ headers
9205 # ----------------------
9208 ac_cpp
='$CXXCPP $CPPFLAGS'
9209 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9210 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9211 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9213 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9214 if test -z "$CXXCPP"; then
9215 if ${ac_cv_prog_CXXCPP+:} false
; then :
9216 $as_echo_n "(cached) " >&6
9218 # Double quotes because CXXCPP needs to be expanded
9219 for CXXCPP
in "$CXX -E" "/lib/cpp"
9222 for ac_cxx_preproc_warn_flag
in '' yes
9224 # Use a header file that comes with gcc, so configuring glibc
9225 # with a fresh cross-compiler works.
9226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9227 # <limits.h> exists even on freestanding compilers.
9228 # On the NeXT, cc -E runs the code through the compiler's parser,
9229 # not just through cpp. "Syntax error" is here to catch this case.
9230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9233 # include <limits.h>
9235 # include <assert.h>
9239 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9242 # Broken: fails on valid input.
9245 rm -f conftest.err conftest.i conftest.
$ac_ext
9247 # OK, works on sane cases. Now check whether nonexistent headers
9248 # can be detected and how.
9249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251 #include <ac_nonexistent.h>
9253 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9254 # Broken: success on invalid input.
9257 # Passes both tests.
9261 rm -f conftest.err conftest.i conftest.
$ac_ext
9264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9265 rm -f conftest.i conftest.err conftest.
$ac_ext
9266 if $ac_preproc_ok; then :
9271 ac_cv_prog_CXXCPP
=$CXXCPP
9274 CXXCPP
=$ac_cv_prog_CXXCPP
9276 ac_cv_prog_CXXCPP
=$CXXCPP
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9279 $as_echo "$CXXCPP" >&6; }
9281 for ac_cxx_preproc_warn_flag
in '' yes
9283 # Use a header file that comes with gcc, so configuring glibc
9284 # with a fresh cross-compiler works.
9285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 # <limits.h> exists even on freestanding compilers.
9287 # On the NeXT, cc -E runs the code through the compiler's parser,
9288 # not just through cpp. "Syntax error" is here to catch this case.
9289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9292 # include <limits.h>
9294 # include <assert.h>
9298 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9301 # Broken: fails on valid input.
9304 rm -f conftest.err conftest.i conftest.
$ac_ext
9306 # OK, works on sane cases. Now check whether nonexistent headers
9307 # can be detected and how.
9308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 #include <ac_nonexistent.h>
9312 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9313 # Broken: success on invalid input.
9316 # Passes both tests.
9320 rm -f conftest.err conftest.i conftest.
$ac_ext
9323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9324 rm -f conftest.i conftest.err conftest.
$ac_ext
9325 if $ac_preproc_ok; then :
9328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9331 See \`config.log' for more details" >&5
9332 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9333 See \`config.log' for more details" >&2;}; }
9337 ac_cpp
='$CXXCPP $CPPFLAGS'
9338 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9339 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9340 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9343 for ac_header
in unordered_map
9345 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9346 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9347 cat >>confdefs.h
<<_ACEOF
9348 #define HAVE_UNORDERED_MAP 1
9354 for ac_header
in tr1/unordered_map
9356 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9357 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9358 cat >>confdefs.h
<<_ACEOF
9359 #define HAVE_TR1_UNORDERED_MAP 1
9365 for ac_header
in ext
/hash_map
9367 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9368 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9369 cat >>confdefs.h
<<_ACEOF
9370 #define HAVE_EXT_HASH_MAP 1
9378 # Dependency checking.
9381 rm -rf .tst
2>/dev
/null
9382 mkdir .tst
2>/dev
/null
9383 if test -d .tst
; then
9388 rmdir .tst
2>/dev
/null
9390 DEPDIR
="${am__leading_dot}deps"
9392 ac_config_commands
="$ac_config_commands depdir"
9395 ac_config_commands
="$ac_config_commands gccdepdir"
9398 depcc
="$CXX" am_compiler_list
=
9400 am_depcomp
=$ac_aux_dir/depcomp
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9402 $as_echo_n "checking dependency style of $depcc... " >&6; }
9403 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9404 $as_echo_n "(cached) " >&6
9406 if test -f "$am_depcomp"; then
9407 # We make a subdir and do the tests there. Otherwise we can end up
9408 # making bogus files that we don't know about and never remove. For
9409 # instance it was reported that on HP-UX the gcc test will end up
9410 # making a dummy file named `D' -- because `-MD' means `put the output
9413 # Copy depcomp to subdir because otherwise we won't find it if we're
9414 # using a relative directory.
9415 cp "$am_depcomp" conftest.dir
9417 # We will build objects and dependencies in a subdirectory because
9418 # it helps to detect inapplicable dependency modes. For instance
9419 # both Tru64's cc and ICC support -MD to output dependencies as a
9420 # side effect of compilation, but ICC will put the dependencies in
9421 # the current directory while Tru64 will put them in the object
9425 am_cv_CXX_dependencies_compiler_type
=none
9426 if test "$am_compiler_list" = ""; then
9427 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9429 for depmode
in $am_compiler_list; do
9430 if test $depmode = none
; then break; fi
9432 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9433 # Setup a source with many dependencies, because some compilers
9434 # like to wrap large dependency lists on column 80 (with \), and
9435 # we should not choose a depcomp mode which is confused by this.
9437 # We need to recreate these files for each test, as the compiler may
9438 # overwrite some of them when testing with obscure command lines.
9439 # This happens at least with the AIX C compiler.
9441 for i
in 1 2 3 4 5 6; do
9442 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9443 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9444 # Solaris 8's {/usr,}/bin/sh.
9445 touch sub
/conftst
$i.h
9447 echo "include sub/conftest.Po" > confmf
9449 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9450 # mode. It turns out that the SunPro C++ compiler does not properly
9451 # handle `-M -o', and we need to detect this.
9452 depcmd
="depmode=$depmode \
9453 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9455 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9456 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9457 if env
$depcmd > conftest.err
2>&1 &&
9458 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9459 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9460 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9461 # icc doesn't choke on unknown options, it will just issue warnings
9462 # or remarks (even with -Werror). So we grep stderr for any message
9463 # that says an option was ignored or not supported.
9464 # When given -MP, icc 7.0 and 7.1 complain thusly:
9465 # icc: Command line warning: ignoring option '-M'; no argument required
9466 # The diagnosis changed in icc 8.0:
9467 # icc: Command line remark: option '-MP' not supported
9468 if (grep 'ignoring option' conftest.err ||
9469 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9470 am_cv_CXX_dependencies_compiler_type
=$depmode
9471 $as_echo "$as_me:$LINENO: success" >&5
9475 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9476 sed -e 's/^/| /' < conftest.err
>&5
9482 am_cv_CXX_dependencies_compiler_type
=none
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9487 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9488 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9489 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9490 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9500 # These libraries may be used by collect2.
9501 # We may need a special search path to get them linked.
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9503 $as_echo_n "checking for collect2 libraries... " >&6; }
9504 if ${gcc_cv_collect2_libs+:} false
; then :
9505 $as_echo_n "(cached) " >&6
9508 for libs
in '' -lld -lmld \
9509 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9510 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9516 /* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9531 if ac_fn_cxx_try_link
"$LINENO"; then :
9532 gcc_cv_collect2_libs
="$libs"; break
9534 rm -f core conftest.err conftest.
$ac_objext \
9535 conftest
$ac_exeext conftest.
$ac_ext
9538 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9541 $as_echo "$gcc_cv_collect2_libs" >&6; }
9542 case $gcc_cv_collect2_libs in
9544 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9548 # When building Ada code on Alpha, we need exc_resume which is usually in
9549 # -lexc. So test for it.
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9553 $as_echo_n "checking for library containing exc_resume... " >&6; }
9554 if ${ac_cv_search_exc_resume+:} false
; then :
9555 $as_echo_n "(cached) " >&6
9557 ac_func_search_save_LIBS
=$LIBS
9558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9571 return exc_resume ();
9576 for ac_lib
in '' exc
; do
9577 if test -z "$ac_lib"; then
9578 ac_res
="none required"
9581 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9583 if ac_fn_cxx_try_link
"$LINENO"; then :
9584 ac_cv_search_exc_resume
=$ac_res
9586 rm -f core conftest.err conftest.
$ac_objext \
9588 if ${ac_cv_search_exc_resume+:} false
; then :
9592 if ${ac_cv_search_exc_resume+:} false
; then :
9595 ac_cv_search_exc_resume
=no
9598 LIBS
=$ac_func_search_save_LIBS
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9601 $as_echo "$ac_cv_search_exc_resume" >&6; }
9602 ac_res
=$ac_cv_search_exc_resume
9603 if test "$ac_res" != no
; then :
9604 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9612 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9616 $as_echo_n "checking for library containing kstat_open... " >&6; }
9617 if ${ac_cv_search_kstat_open+:} false
; then :
9618 $as_echo_n "(cached) " >&6
9620 ac_func_search_save_LIBS
=$LIBS
9621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9624 /* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9634 return kstat_open ();
9639 for ac_lib
in '' kstat
; do
9640 if test -z "$ac_lib"; then
9641 ac_res
="none required"
9644 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9646 if ac_fn_cxx_try_link
"$LINENO"; then :
9647 ac_cv_search_kstat_open
=$ac_res
9649 rm -f core conftest.err conftest.
$ac_objext \
9651 if ${ac_cv_search_kstat_open+:} false
; then :
9655 if ${ac_cv_search_kstat_open+:} false
; then :
9658 ac_cv_search_kstat_open
=no
9661 LIBS
=$ac_func_search_save_LIBS
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9664 $as_echo "$ac_cv_search_kstat_open" >&6; }
9665 ac_res
=$ac_cv_search_kstat_open
9666 if test "$ac_res" != no
; then :
9667 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9671 EXTRA_GCC_LIBS
="$LIBS"
9675 # Some systems put ldexp and frexp in libm instead of libc; assume
9676 # they're both in the same place. jcf-dump needs them.
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9680 $as_echo_n "checking for library containing ldexp... " >&6; }
9681 if ${ac_cv_search_ldexp+:} false
; then :
9682 $as_echo_n "(cached) " >&6
9684 ac_func_search_save_LIBS
=$LIBS
9685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9703 for ac_lib
in '' m
; do
9704 if test -z "$ac_lib"; then
9705 ac_res
="none required"
9708 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9710 if ac_fn_cxx_try_link
"$LINENO"; then :
9711 ac_cv_search_ldexp
=$ac_res
9713 rm -f core conftest.err conftest.
$ac_objext \
9715 if ${ac_cv_search_ldexp+:} false
; then :
9719 if ${ac_cv_search_ldexp+:} false
; then :
9722 ac_cv_search_ldexp
=no
9725 LIBS
=$ac_func_search_save_LIBS
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9728 $as_echo "$ac_cv_search_ldexp" >&6; }
9729 ac_res
=$ac_cv_search_ldexp
9730 if test "$ac_res" != no
; then :
9731 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9739 # Some systems need dlopen
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9743 $as_echo_n "checking for library containing dlopen... " >&6; }
9744 if ${ac_cv_search_dlopen+:} false
; then :
9745 $as_echo_n "(cached) " >&6
9747 ac_func_search_save_LIBS
=$LIBS
9748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9766 for ac_lib
in '' dl
; do
9767 if test -z "$ac_lib"; then
9768 ac_res
="none required"
9771 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9773 if ac_fn_cxx_try_link
"$LINENO"; then :
9774 ac_cv_search_dlopen
=$ac_res
9776 rm -f core conftest.err conftest.
$ac_objext \
9778 if ${ac_cv_search_dlopen+:} false
; then :
9782 if ${ac_cv_search_dlopen+:} false
; then :
9785 ac_cv_search_dlopen
=no
9788 LIBS
=$ac_func_search_save_LIBS
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9791 $as_echo "$ac_cv_search_dlopen" >&6; }
9792 ac_res
=$ac_cv_search_dlopen
9793 if test "$ac_res" != no
; then :
9794 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9802 # Use <inttypes.h> only if it exists,
9803 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9806 $as_echo_n "checking for inttypes.h... " >&6; }
9807 if ${gcc_cv_header_inttypes_h+:} false
; then :
9808 $as_echo_n "(cached) " >&6
9810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 #define __STDC_FORMAT_MACROS
9813 #include <sys/types.h>
9814 #include <inttypes.h>
9826 if ac_fn_cxx_try_compile
"$LINENO"; then :
9827 gcc_cv_header_inttypes_h
=yes
9829 gcc_cv_header_inttypes_h
=no
9831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9835 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9836 if test $gcc_cv_header_inttypes_h = yes; then
9838 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9844 for ac_func
in times clock kill getrlimit setrlimit atoq \
9845 popen sysconf strsignal getrusage nl_langinfo \
9846 gettimeofday mbstowcs wcswidth mmap setlocale \
9847 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
9849 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9850 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9851 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9852 cat >>confdefs.h
<<_ACEOF
9853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9860 if test x
$ac_cv_func_mbstowcs = xyes
; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9862 $as_echo_n "checking whether mbstowcs works... " >&6; }
9863 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
9864 $as_echo_n "(cached) " >&6
9866 if test "$cross_compiling" = yes; then :
9867 gcc_cv_func_mbstowcs_works
=yes
9869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9878 if ac_fn_cxx_try_run
"$LINENO"; then :
9879 gcc_cv_func_mbstowcs_works
=yes
9881 gcc_cv_func_mbstowcs_works
=no
9883 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9884 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9889 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9890 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9892 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9897 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9898 if test "x$ac_cv_type_ssize_t" = xyes
; then :
9902 cat >>confdefs.h
<<_ACEOF
9908 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9909 if test "x$ac_cv_type_caddr_t" = xyes
; then :
9913 cat >>confdefs.h
<<_ACEOF
9914 #define caddr_t char *
9921 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9922 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
9923 gcc_header_sys_mman_h
=yes
9925 gcc_header_sys_mman_h
=no
9928 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9929 if test "x$ac_cv_func_mmap" = xyes
; then :
9935 if test "$gcc_header_sys_mman_h" != yes \
9936 ||
test "$gcc_func_mmap" != yes; then
9937 gcc_cv_func_mmap_file
=no
9938 gcc_cv_func_mmap_dev_zero
=no
9939 gcc_cv_func_mmap_anon
=no
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9942 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9943 if ${gcc_cv_func_mmap_file+:} false
; then :
9944 $as_echo_n "(cached) " >&6
9946 # Add a system to this blacklist if
9947 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9948 # memory area containing the same data that you'd get if you applied
9949 # read() to the same fd. The only system known to have a problem here
9950 # is VMS, where text files have record structure.
9953 gcc_cv_func_mmap_file
=no
;;
9955 gcc_cv_func_mmap_file
=yes;;
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9959 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9961 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9962 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
9963 $as_echo_n "(cached) " >&6
9965 # Add a system to this blacklist if it has mmap() but /dev/zero
9966 # does not exist, or if mmapping /dev/zero does not give anonymous
9967 # zeroed pages with both the following properties:
9968 # 1. If you map N consecutive pages in with one call, and then
9969 # unmap any subset of those pages, the pages that were not
9970 # explicitly unmapped remain accessible.
9971 # 2. If you map two adjacent blocks of memory and then unmap them
9972 # both at once, they must both go away.
9973 # Systems known to be in this category are Windows (all variants),
9976 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9977 gcc_cv_func_mmap_dev_zero
=no
;;
9979 gcc_cv_func_mmap_dev_zero
=yes;;
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9983 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9985 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9987 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9988 if ${gcc_cv_decl_map_anon+:} false
; then :
9989 $as_echo_n "(cached) " >&6
9991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 #include <sys/types.h>
9994 #include <sys/mman.h>
9997 #ifndef MAP_ANONYMOUS
9998 #define MAP_ANONYMOUS MAP_ANON
10004 int n = MAP_ANONYMOUS;
10009 if ac_fn_cxx_try_compile
"$LINENO"; then :
10010 gcc_cv_decl_map_anon
=yes
10012 gcc_cv_decl_map_anon
=no
10014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10017 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10019 if test $gcc_cv_decl_map_anon = no
; then
10020 gcc_cv_func_mmap_anon
=no
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10023 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10024 if ${gcc_cv_func_mmap_anon+:} false
; then :
10025 $as_echo_n "(cached) " >&6
10027 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10028 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10029 # doesn't give anonymous zeroed pages with the same properties listed
10030 # above for use of /dev/zero.
10031 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10033 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10034 gcc_cv_func_mmap_anon
=no
;;
10036 gcc_cv_func_mmap_anon
=yes;;
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10040 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10044 if test $gcc_cv_func_mmap_file = yes; then
10046 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10049 if test $gcc_cv_func_mmap_dev_zero = yes; then
10051 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10054 if test $gcc_cv_func_mmap_anon = yes; then
10056 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10063 # Under VMS, vfork works very differently than on Unix. The standard test
10064 # won't work, and it isn't easily adaptable. It makes more sense to
10066 ac_cv_func_vfork_works
=yes
10069 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10070 if test "x$ac_cv_type_pid_t" = xyes
; then :
10074 cat >>confdefs.h
<<_ACEOF
10080 for ac_header
in vfork.h
10082 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10083 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10084 cat >>confdefs.h
<<_ACEOF
10085 #define HAVE_VFORK_H 1
10091 for ac_func
in fork vfork
10093 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10094 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10095 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10096 cat >>confdefs.h
<<_ACEOF
10097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10103 if test "x$ac_cv_func_fork" = xyes
; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10105 $as_echo_n "checking for working fork... " >&6; }
10106 if ${ac_cv_func_fork_works+:} false
; then :
10107 $as_echo_n "(cached) " >&6
10109 if test "$cross_compiling" = yes; then :
10110 ac_cv_func_fork_works
=cross
10112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 $ac_includes_default
10119 /* By Ruediger Kuhlmann. */
10120 return fork () < 0;
10126 if ac_fn_cxx_try_run
"$LINENO"; then :
10127 ac_cv_func_fork_works
=yes
10129 ac_cv_func_fork_works
=no
10131 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10132 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10137 $as_echo "$ac_cv_func_fork_works" >&6; }
10140 ac_cv_func_fork_works
=$ac_cv_func_fork
10142 if test "x$ac_cv_func_fork_works" = xcross
; then
10144 *-*-amigaos* |
*-*-msdosdjgpp*)
10145 # Override, as these systems have only a dummy fork() stub
10146 ac_cv_func_fork_works
=no
10149 ac_cv_func_fork_works
=yes
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10153 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10155 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10156 if test "x$ac_cv_func_vfork" = xyes
; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10158 $as_echo_n "checking for working vfork... " >&6; }
10159 if ${ac_cv_func_vfork_works+:} false
; then :
10160 $as_echo_n "(cached) " >&6
10162 if test "$cross_compiling" = yes; then :
10163 ac_cv_func_vfork_works
=cross
10165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10167 /* Thanks to Paul Eggert for this test. */
10168 $ac_includes_default
10169 #include <sys/wait.h>
10170 #ifdef HAVE_VFORK_H
10171 # include <vfork.h>
10173 /* On some sparc systems, changes by the child to local and incoming
10174 argument registers are propagated back to the parent. The compiler
10175 is told about this with #include <vfork.h>, but some compilers
10176 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10177 static variable whose address is put into a register that is
10178 clobbered by the vfork. */
10181 sparc_address_test (int arg)
10183 sparc_address_test (arg) int arg;
10186 static pid_t child;
10204 pid_t parent = getpid ();
10207 sparc_address_test (0);
10212 /* Here is another test for sparc vfork register problems. This
10213 test uses lots of local variables, at least as many local
10214 variables as main has allocated so far including compiler
10215 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10216 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10217 reuse the register of parent for one of the local variables,
10218 since it will think that parent can't possibly be used any more
10219 in this routine. Assigning to the local variable will thus
10220 munge parent in the parent process. */
10222 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10223 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10224 /* Convince the compiler that p..p7 are live; otherwise, it might
10225 use the same hardware register for all 8 local variables. */
10226 if (p != p1 || p != p2 || p != p3 || p != p4
10227 || p != p5 || p != p6 || p != p7)
10230 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10231 from child file descriptors. If the child closes a descriptor
10232 before it execs or exits, this munges the parent's descriptor
10233 as well. Test for this by closing stdout in the child. */
10234 _exit(close(fileno(stdout)) != 0);
10239 while (wait(&status) != child)
10242 /* Was there some problem with vforking? */
10245 /* Did the child fail? (This shouldn't happen.) */
10248 /* Did the vfork/compiler bug occur? */
10249 || parent != getpid()
10251 /* Did the file descriptor bug occur? */
10252 || fstat(fileno(stdout), &st) != 0
10257 if ac_fn_cxx_try_run
"$LINENO"; then :
10258 ac_cv_func_vfork_works
=yes
10260 ac_cv_func_vfork_works
=no
10262 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10263 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10268 $as_echo "$ac_cv_func_vfork_works" >&6; }
10271 if test "x$ac_cv_func_fork_works" = xcross
; then
10272 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10274 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10277 if test "x$ac_cv_func_vfork_works" = xyes
; then
10279 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10283 $as_echo "#define vfork fork" >>confdefs.h
10286 if test "x$ac_cv_func_fork_works" = xyes
; then
10288 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10294 if test "X$prefix" = "XNONE"; then
10295 acl_final_prefix
="$ac_default_prefix"
10297 acl_final_prefix
="$prefix"
10299 if test "X$exec_prefix" = "XNONE"; then
10300 acl_final_exec_prefix
='${prefix}'
10302 acl_final_exec_prefix
="$exec_prefix"
10304 acl_save_prefix
="$prefix"
10305 prefix
="$acl_final_prefix"
10306 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10307 prefix
="$acl_save_prefix"
10310 # Check whether --with-gnu-ld was given.
10311 if test "${with_gnu_ld+set}" = set; then :
10312 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10317 # Prepare PATH_SEPARATOR.
10318 # The user is always right.
10319 if test "${PATH_SEPARATOR+set}" != set; then
10320 echo "#! /bin/sh" >conf$$.sh
10321 echo "exit 0" >>conf$$.sh
10323 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10331 if test "$GCC" = yes; then
10332 # Check if gcc -print-prog-name=ld gives a path.
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10334 $as_echo_n "checking for ld used by GCC... " >&6; }
10337 # gcc leaves a trailing carriage return which upsets mingw
10338 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10340 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10343 # Accept absolute paths.
10344 [\\/]* |
[A-Za-z
]:[\\/]*)
10345 re_direlt
='/[^/][^/]*/\.\./'
10346 # Canonicalize the path of ld
10347 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10348 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10349 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10351 test -z "$LD" && LD
="$ac_prog"
10354 # If it fails, then pretend we aren't using GCC.
10358 # If it is relative, then search for the first ld in PATH.
10359 with_gnu_ld
=unknown
10362 elif test "$with_gnu_ld" = yes; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10364 $as_echo_n "checking for GNU ld... " >&6; }
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10367 $as_echo_n "checking for non-GNU ld... " >&6; }
10369 if ${acl_cv_path_LD+:} false
; then :
10370 $as_echo_n "(cached) " >&6
10372 if test -z "$LD"; then
10373 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10374 for ac_dir
in $PATH; do
10375 test -z "$ac_dir" && ac_dir
=.
10376 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10377 acl_cv_path_LD
="$ac_dir/$ac_prog"
10378 # Check to see if the program is GNU ld. I'd rather use --version,
10379 # but apparently some GNU ld's only accept -v.
10380 # Break only if it was the GNU/non-GNU ld that we prefer.
10381 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10382 test "$with_gnu_ld" != no
&& break
10384 test "$with_gnu_ld" != yes && break
10390 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10394 LD
="$acl_cv_path_LD"
10395 if test -n "$LD"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10397 $as_echo "$LD" >&6; }
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10402 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10404 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10405 if ${acl_cv_prog_gnu_ld+:} false
; then :
10406 $as_echo_n "(cached) " >&6
10408 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10409 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10410 acl_cv_prog_gnu_ld
=yes
10412 acl_cv_prog_gnu_ld
=no
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10416 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10417 with_gnu_ld
=$acl_cv_prog_gnu_ld
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10422 $as_echo_n "checking for shared library run path origin... " >&6; }
10423 if ${acl_cv_rpath+:} false
; then :
10424 $as_echo_n "(cached) " >&6
10427 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10428 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10430 rm -f .
/conftest.sh
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10435 $as_echo "$acl_cv_rpath" >&6; }
10437 libext
="$acl_cv_libext"
10438 shlibext
="$acl_cv_shlibext"
10439 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10440 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10441 hardcode_direct
="$acl_cv_hardcode_direct"
10442 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10443 # Check whether --enable-rpath was given.
10444 if test "${enable_rpath+set}" = set; then :
10445 enableval
=$enable_rpath; :
10459 acl_save_prefix
="$prefix"
10460 prefix
="$acl_final_prefix"
10461 acl_save_exec_prefix
="$exec_prefix"
10462 exec_prefix
="$acl_final_exec_prefix"
10464 eval additional_includedir
=\"$includedir\"
10465 eval additional_libdir
=\"$libdir\"
10467 exec_prefix
="$acl_save_exec_prefix"
10468 prefix
="$acl_save_prefix"
10471 # Check whether --with-libiconv-prefix was given.
10472 if test "${with_libiconv_prefix+set}" = set; then :
10473 withval
=$with_libiconv_prefix;
10474 if test "X$withval" = "Xno"; then
10477 if test "X$withval" = "X"; then
10479 acl_save_prefix
="$prefix"
10480 prefix
="$acl_final_prefix"
10481 acl_save_exec_prefix
="$exec_prefix"
10482 exec_prefix
="$acl_final_exec_prefix"
10484 eval additional_includedir
=\"$includedir\"
10485 eval additional_libdir
=\"$libdir\"
10487 exec_prefix
="$acl_save_exec_prefix"
10488 prefix
="$acl_save_prefix"
10491 additional_includedir
="$withval/include"
10492 additional_libdir
="$withval/lib"
10503 names_already_handled
=
10504 names_next_round
='iconv '
10505 while test -n "$names_next_round"; do
10506 names_this_round
="$names_next_round"
10508 for name
in $names_this_round; do
10510 for n
in $names_already_handled; do
10511 if test "$n" = "$name"; then
10512 already_handled
=yes
10516 if test -z "$already_handled"; then
10517 names_already_handled
="$names_already_handled $name"
10518 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10519 eval value
=\"\
$HAVE_LIB$uppername\"
10520 if test -n "$value"; then
10521 if test "$value" = yes; then
10522 eval value
=\"\
$LIB$uppername\"
10523 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10524 eval value
=\"\
$LTLIB$uppername\"
10525 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10534 if test $use_additional = yes; then
10535 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10536 found_dir
="$additional_libdir"
10537 found_so
="$additional_libdir/lib$name.$shlibext"
10538 if test -f "$additional_libdir/lib$name.la"; then
10539 found_la
="$additional_libdir/lib$name.la"
10542 if test -f "$additional_libdir/lib$name.$libext"; then
10543 found_dir
="$additional_libdir"
10544 found_a
="$additional_libdir/lib$name.$libext"
10545 if test -f "$additional_libdir/lib$name.la"; then
10546 found_la
="$additional_libdir/lib$name.la"
10551 if test "X$found_dir" = "X"; then
10552 for x
in $LDFLAGS $LTLIBICONV; do
10554 acl_save_prefix
="$prefix"
10555 prefix
="$acl_final_prefix"
10556 acl_save_exec_prefix
="$exec_prefix"
10557 exec_prefix
="$acl_final_exec_prefix"
10559 exec_prefix
="$acl_save_exec_prefix"
10560 prefix
="$acl_save_prefix"
10564 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10565 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10567 found_so
="$dir/lib$name.$shlibext"
10568 if test -f "$dir/lib$name.la"; then
10569 found_la
="$dir/lib$name.la"
10572 if test -f "$dir/lib$name.$libext"; then
10574 found_a
="$dir/lib$name.$libext"
10575 if test -f "$dir/lib$name.la"; then
10576 found_la
="$dir/lib$name.la"
10582 if test "X$found_dir" != "X"; then
10587 if test "X$found_dir" != "X"; then
10588 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10589 if test "X$found_so" != "X"; then
10590 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10591 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10594 for x
in $ltrpathdirs; do
10595 if test "X$x" = "X$found_dir"; then
10600 if test -z "$haveit"; then
10601 ltrpathdirs
="$ltrpathdirs $found_dir"
10603 if test "$hardcode_direct" = yes; then
10604 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10606 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10607 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10609 for x
in $rpathdirs; do
10610 if test "X$x" = "X$found_dir"; then
10615 if test -z "$haveit"; then
10616 rpathdirs
="$rpathdirs $found_dir"
10620 for x
in $LDFLAGS $LIBICONV; do
10622 acl_save_prefix
="$prefix"
10623 prefix
="$acl_final_prefix"
10624 acl_save_exec_prefix
="$exec_prefix"
10625 exec_prefix
="$acl_final_exec_prefix"
10627 exec_prefix
="$acl_save_exec_prefix"
10628 prefix
="$acl_save_prefix"
10630 if test "X$x" = "X-L$found_dir"; then
10635 if test -z "$haveit"; then
10636 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10638 if test "$hardcode_minus_L" != no
; then
10639 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10641 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10647 if test "X$found_a" != "X"; then
10648 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10650 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10653 additional_includedir
=
10654 case "$found_dir" in
10656 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10657 additional_includedir
="$basedir/include"
10660 if test "X$additional_includedir" != "X"; then
10661 if test "X$additional_includedir" != "X/usr/include"; then
10663 if test "X$additional_includedir" = "X/usr/local/include"; then
10664 if test -n "$GCC"; then
10666 linux
*) haveit
=yes;;
10670 if test -z "$haveit"; then
10671 for x
in $CPPFLAGS $INCICONV; do
10673 acl_save_prefix
="$prefix"
10674 prefix
="$acl_final_prefix"
10675 acl_save_exec_prefix
="$exec_prefix"
10676 exec_prefix
="$acl_final_exec_prefix"
10678 exec_prefix
="$acl_save_exec_prefix"
10679 prefix
="$acl_save_prefix"
10681 if test "X$x" = "X-I$additional_includedir"; then
10686 if test -z "$haveit"; then
10687 if test -d "$additional_includedir"; then
10688 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10694 if test -n "$found_la"; then
10695 save_libdir
="$libdir"
10696 case "$found_la" in
10697 */* |
*\\*) .
"$found_la" ;;
10698 *) .
"./$found_la" ;;
10700 libdir
="$save_libdir"
10701 for dep
in $dependency_libs; do
10704 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10705 if test "X$additional_libdir" != "X/usr/lib"; then
10707 if test "X$additional_libdir" = "X/usr/local/lib"; then
10708 if test -n "$GCC"; then
10710 linux
*) haveit
=yes;;
10714 if test -z "$haveit"; then
10716 for x
in $LDFLAGS $LIBICONV; do
10718 acl_save_prefix
="$prefix"
10719 prefix
="$acl_final_prefix"
10720 acl_save_exec_prefix
="$exec_prefix"
10721 exec_prefix
="$acl_final_exec_prefix"
10723 exec_prefix
="$acl_save_exec_prefix"
10724 prefix
="$acl_save_prefix"
10726 if test "X$x" = "X-L$additional_libdir"; then
10731 if test -z "$haveit"; then
10732 if test -d "$additional_libdir"; then
10733 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10737 for x
in $LDFLAGS $LTLIBICONV; do
10739 acl_save_prefix
="$prefix"
10740 prefix
="$acl_final_prefix"
10741 acl_save_exec_prefix
="$exec_prefix"
10742 exec_prefix
="$acl_final_exec_prefix"
10744 exec_prefix
="$acl_save_exec_prefix"
10745 prefix
="$acl_save_prefix"
10747 if test "X$x" = "X-L$additional_libdir"; then
10752 if test -z "$haveit"; then
10753 if test -d "$additional_libdir"; then
10754 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10761 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10762 if test "$enable_rpath" != no
; then
10764 for x
in $rpathdirs; do
10765 if test "X$x" = "X$dir"; then
10770 if test -z "$haveit"; then
10771 rpathdirs
="$rpathdirs $dir"
10774 for x
in $ltrpathdirs; do
10775 if test "X$x" = "X$dir"; then
10780 if test -z "$haveit"; then
10781 ltrpathdirs
="$ltrpathdirs $dir"
10786 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10789 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10792 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10793 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10799 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10800 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10806 if test "X$rpathdirs" != "X"; then
10807 if test -n "$hardcode_libdir_separator"; then
10809 for found_dir
in $rpathdirs; do
10810 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10812 acl_save_libdir
="$libdir"
10814 eval flag
=\"$hardcode_libdir_flag_spec\"
10815 libdir
="$acl_save_libdir"
10816 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10818 for found_dir
in $rpathdirs; do
10819 acl_save_libdir
="$libdir"
10820 libdir
="$found_dir"
10821 eval flag
=\"$hardcode_libdir_flag_spec\"
10822 libdir
="$acl_save_libdir"
10823 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10827 if test "X$ltrpathdirs" != "X"; then
10828 for found_dir
in $ltrpathdirs; do
10829 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10840 $as_echo_n "checking for iconv... " >&6; }
10841 if ${am_cv_func_iconv+:} false
; then :
10842 $as_echo_n "(cached) " >&6
10845 am_cv_func_iconv
="no, consider installing GNU libiconv"
10847 am_save_CPPFLAGS
="$CPPFLAGS"
10848 CPPFLAGS
="$CPPFLAGS $INCICONV"
10849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851 #include <stdlib.h>
10856 iconv_t cd = iconv_open("","");
10857 iconv(cd,NULL,NULL,NULL,NULL);
10863 if ac_fn_cxx_try_link
"$LINENO"; then :
10864 am_cv_func_iconv
=yes
10866 rm -f core conftest.err conftest.
$ac_objext \
10867 conftest
$ac_exeext conftest.
$ac_ext
10868 CPPFLAGS
="$am_save_CPPFLAGS"
10870 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10871 for _libs
in .libs _libs
; do
10872 am_save_CPPFLAGS
="$CPPFLAGS"
10873 am_save_LIBS
="$LIBS"
10874 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10875 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 #include <stdlib.h>
10883 iconv_t cd = iconv_open("","");
10884 iconv(cd,NULL,NULL,NULL,NULL);
10890 if ac_fn_cxx_try_link
"$LINENO"; then :
10891 INCICONV
="-I../libiconv/include"
10892 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10893 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10894 am_cv_lib_iconv
=yes
10895 am_cv_func_iconv
=yes
10897 rm -f core conftest.err conftest.
$ac_objext \
10898 conftest
$ac_exeext conftest.
$ac_ext
10899 CPPFLAGS
="$am_save_CPPFLAGS"
10900 LIBS
="$am_save_LIBS"
10901 if test "$am_cv_func_iconv" = "yes"; then
10907 if test "$am_cv_func_iconv" != yes; then
10908 am_save_CPPFLAGS
="$CPPFLAGS"
10909 am_save_LIBS
="$LIBS"
10910 CPPFLAGS
="$CPPFLAGS $INCICONV"
10911 LIBS
="$LIBS $LIBICONV"
10912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #include <stdlib.h>
10919 iconv_t cd = iconv_open("","");
10920 iconv(cd,NULL,NULL,NULL,NULL);
10926 if ac_fn_cxx_try_link
"$LINENO"; then :
10927 am_cv_lib_iconv
=yes
10928 am_cv_func_iconv
=yes
10930 rm -f core conftest.err conftest.
$ac_objext \
10931 conftest
$ac_exeext conftest.
$ac_ext
10932 CPPFLAGS
="$am_save_CPPFLAGS"
10933 LIBS
="$am_save_LIBS"
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10938 $as_echo "$am_cv_func_iconv" >&6; }
10939 if test "$am_cv_func_iconv" = yes; then
10941 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10944 if test "$am_cv_lib_iconv" = yes; then
10946 for element
in $INCICONV; do
10948 for x
in $CPPFLAGS; do
10950 acl_save_prefix
="$prefix"
10951 prefix
="$acl_final_prefix"
10952 acl_save_exec_prefix
="$exec_prefix"
10953 exec_prefix
="$acl_final_exec_prefix"
10955 exec_prefix
="$acl_save_exec_prefix"
10956 prefix
="$acl_save_prefix"
10958 if test "X$x" = "X$element"; then
10963 if test -z "$haveit"; then
10964 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10969 $as_echo_n "checking how to link with libiconv... " >&6; }
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10971 $as_echo "$LIBICONV" >&6; }
10979 if test "$am_cv_func_iconv" = yes; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10981 $as_echo_n "checking for iconv declaration... " >&6; }
10982 if ${am_cv_proto_iconv+:} false
; then :
10983 $as_echo_n "(cached) " >&6
10986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10989 #include <stdlib.h>
10995 #if defined(__STDC__) || defined(__cplusplus)
10996 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11009 if ac_fn_cxx_try_compile
"$LINENO"; then :
11010 am_cv_proto_iconv_arg1
=""
11012 am_cv_proto_iconv_arg1
="const"
11014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11015 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);"
11018 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11020 }$am_cv_proto_iconv" >&5
11022 }$am_cv_proto_iconv" >&6; }
11024 cat >>confdefs.h
<<_ACEOF
11025 #define ICONV_CONST $am_cv_proto_iconv_arg1
11031 # Until we have in-tree GNU iconv:
11033 if test -f "$LTLIBICONV"; then
11034 LIBICONV_DEP
=$LTLIBICONV
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11040 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11041 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11042 $as_echo_n "(cached) " >&6
11044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11046 #include <locale.h>
11055 if ac_fn_cxx_try_link
"$LINENO"; then :
11056 am_cv_val_LC_MESSAGES
=yes
11058 am_cv_val_LC_MESSAGES
=no
11060 rm -f core conftest.err conftest.
$ac_objext \
11061 conftest
$ac_exeext conftest.
$ac_ext
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11064 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11065 if test $am_cv_val_LC_MESSAGES = yes; then
11067 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11074 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11075 if ${am_cv_langinfo_codeset+:} false
; then :
11076 $as_echo_n "(cached) " >&6
11078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080 #include <langinfo.h>
11084 char* cs = nl_langinfo(CODESET);
11089 if ac_fn_cxx_try_link
"$LINENO"; then :
11090 am_cv_langinfo_codeset
=yes
11092 am_cv_langinfo_codeset
=no
11094 rm -f core conftest.err conftest.
$ac_objext \
11095 conftest
$ac_exeext conftest.
$ac_ext
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11099 $as_echo "$am_cv_langinfo_codeset" >&6; }
11100 if test $am_cv_langinfo_codeset = yes; then
11102 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11107 # We will need to find libiberty.h and ansidecl.h
11108 saved_CFLAGS
="$CFLAGS"
11109 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11110 saved_CXXFLAGS
="$CXXFLAGS"
11111 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11113 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11114 # normal autoconf function for these. But force definition of
11115 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11116 # basename handling in libiberty.h.
11117 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11118 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11119 #undef HAVE_DECL_BASENAME
11120 #define HAVE_DECL_BASENAME 1
11121 #include \"ansidecl.h\"
11122 #include \"system.h\"
11124 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11130 cat >>confdefs.h
<<_ACEOF
11131 #define HAVE_DECL_BASENAME $ac_have_decl
11133 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11134 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11135 #undef HAVE_DECL_BASENAME
11136 #define HAVE_DECL_BASENAME 1
11137 #include \"ansidecl.h\"
11138 #include \"system.h\"
11140 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11146 cat >>confdefs.h
<<_ACEOF
11147 #define HAVE_DECL_STRSTR $ac_have_decl
11151 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11152 madvise stpcpy strnlen strsignal strverscmp \
11153 strtol strtoul strtoll strtoull setenv unsetenv \
11154 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11155 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
11157 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11159 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11160 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11161 $as_echo_n "(cached) " >&6
11163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11166 #define $ac_tr_decl 1
11168 #include "ansidecl.h"
11169 #include "system.h"
11175 char *(*pfn) = (char *(*)) $ac_func ;
11181 if ac_fn_cxx_try_compile
"$LINENO"; then :
11182 eval "gcc_cv_have_decl_$ac_func=yes"
11184 eval "gcc_cv_have_decl_$ac_func=no"
11186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11189 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11191 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11192 #define $ac_tr_decl 1
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11198 #define $ac_tr_decl 0
11206 for ac_func
in getrlimit setrlimit getrusage
11208 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11210 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11211 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11212 $as_echo_n "(cached) " >&6
11214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11217 #define $ac_tr_decl 1
11219 #include "ansidecl.h"
11220 #include "system.h"
11221 #ifdef HAVE_SYS_RESOURCE_H
11222 #include <sys/resource.h>
11230 char *(*pfn) = (char *(*)) $ac_func ;
11236 if ac_fn_cxx_try_compile
"$LINENO"; then :
11237 eval "gcc_cv_have_decl_$ac_func=yes"
11239 eval "gcc_cv_have_decl_$ac_func=no"
11241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11244 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11247 #define $ac_tr_decl 1
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11253 #define $ac_tr_decl 0
11261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11264 #include "ansidecl.h"
11265 #include "system.h"
11266 #ifdef HAVE_SYS_RESOURCE_H
11267 #include <sys/resource.h>
11278 if ac_fn_cxx_try_compile
"$LINENO"; then :
11282 $as_echo "#define rlim_t long" >>confdefs.h
11285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11287 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11288 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11289 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11290 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11291 for ac_func
in ldgetname
11293 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11295 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11296 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11297 $as_echo_n "(cached) " >&6
11299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11302 #define $ac_tr_decl 1
11304 #include "ansidecl.h"
11305 #include "system.h"
11306 #ifdef HAVE_LDFCN_H
11317 char *(*pfn) = (char *(*)) $ac_func ;
11323 if ac_fn_cxx_try_compile
"$LINENO"; then :
11324 eval "gcc_cv_have_decl_$ac_func=yes"
11326 eval "gcc_cv_have_decl_$ac_func=no"
11328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11331 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11334 #define $ac_tr_decl 1
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11340 #define $ac_tr_decl 0
11348 for ac_func
in times
11350 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11352 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11353 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11354 $as_echo_n "(cached) " >&6
11356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11359 #define $ac_tr_decl 1
11361 #include "ansidecl.h"
11362 #include "system.h"
11363 #ifdef HAVE_SYS_TIMES_H
11364 #include <sys/times.h>
11372 char *(*pfn) = (char *(*)) $ac_func ;
11378 if ac_fn_cxx_try_compile
"$LINENO"; then :
11379 eval "gcc_cv_have_decl_$ac_func=yes"
11381 eval "gcc_cv_have_decl_$ac_func=no"
11383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11386 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11389 #define $ac_tr_decl 1
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11395 #define $ac_tr_decl 0
11403 for ac_func
in sigaltstack
11405 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11407 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11408 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11409 $as_echo_n "(cached) " >&6
11411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11414 #define $ac_tr_decl 1
11416 #include "ansidecl.h"
11417 #include "system.h"
11418 #include <signal.h>
11425 char *(*pfn) = (char *(*)) $ac_func ;
11431 if ac_fn_cxx_try_compile
"$LINENO"; then :
11432 eval "gcc_cv_have_decl_$ac_func=yes"
11434 eval "gcc_cv_have_decl_$ac_func=no"
11436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11439 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11442 #define $ac_tr_decl 1
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11448 #define $ac_tr_decl 0
11456 # More time-related stuff.
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11458 $as_echo_n "checking for struct tms... " >&6; }
11459 if ${ac_cv_struct_tms+:} false
; then :
11460 $as_echo_n "(cached) " >&6
11463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11466 #include "ansidecl.h"
11467 #include "system.h"
11468 #ifdef HAVE_SYS_TIMES_H
11469 #include <sys/times.h>
11480 if ac_fn_cxx_try_compile
"$LINENO"; then :
11481 ac_cv_struct_tms
=yes
11483 ac_cv_struct_tms
=no
11485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11488 $as_echo "$ac_cv_struct_tms" >&6; }
11489 if test $ac_cv_struct_tms = yes; then
11491 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11495 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11496 # revisit after autoconf 2.50.
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11498 $as_echo_n "checking for clock_t... " >&6; }
11499 if ${gcc_cv_type_clock_t+:} false
; then :
11500 $as_echo_n "(cached) " >&6
11503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11506 #include "ansidecl.h"
11507 #include "system.h"
11517 if ac_fn_cxx_try_compile
"$LINENO"; then :
11518 gcc_cv_type_clock_t
=yes
11520 gcc_cv_type_clock_t
=no
11522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11525 $as_echo "$gcc_cv_type_clock_t" >&6; }
11526 if test $gcc_cv_type_clock_t = yes; then
11528 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11532 # Check if F_SETLKW is supported by fcntl.
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11534 $as_echo_n "checking for F_SETLKW... " >&6; }
11535 if ${ac_cv_f_setlkw+:} false
; then :
11536 $as_echo_n "(cached) " >&6
11539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11552 return fcntl (1, F_SETLKW, &fl);
11557 if ac_fn_cxx_try_compile
"$LINENO"; then :
11562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11565 $as_echo "$ac_cv_f_setlkw" >&6; }
11566 if test $ac_cv_f_setlkw = yes; then
11568 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11572 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11573 CFLAGS
="$saved_CFLAGS"
11574 CXXFLAGS
="$saved_CXXFLAGS"
11576 # mkdir takes a single argument on some systems.
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11578 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11579 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11580 $as_echo_n "(cached) " >&6
11582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11585 #include <sys/types.h>
11586 #ifdef HAVE_SYS_STAT_H
11587 # include <sys/stat.h>
11589 #ifdef HAVE_UNISTD_H
11590 # include <unistd.h>
11592 #ifdef HAVE_DIRECT_H
11593 # include <direct.h>
11603 if ac_fn_cxx_try_compile
"$LINENO"; then :
11604 gcc_cv_mkdir_takes_one_arg
=no
11606 gcc_cv_mkdir_takes_one_arg
=yes
11608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11611 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11612 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11614 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11625 # With Setjmp/Longjmp based exception handling.
11626 # Check whether --enable-sjlj-exceptions was given.
11627 if test "${enable_sjlj_exceptions+set}" = set; then :
11628 enableval
=$enable_sjlj_exceptions; case $target in
11630 if test $enableval != yes; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11632 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11637 force_sjlj_exceptions
=yes
11641 force_sjlj_exceptions
=yes
11645 force_sjlj_exceptions
=yes
11649 force_sjlj_exceptions
=no
11654 if test $force_sjlj_exceptions = yes; then
11655 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11657 cat >>confdefs.h
<<_ACEOF
11658 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11663 # --------------------------------------------------------
11664 # Build, host, and target specific configuration fragments
11665 # --------------------------------------------------------
11667 # Collect build-machine-specific information.
11668 .
${srcdir}/config.build ||
exit 1
11670 # Collect host-machine-specific information.
11671 .
${srcdir}/config.
host ||
exit 1
11675 # Collect target-machine-specific information.
11676 .
${srcdir}/config.gcc ||
exit 1
11678 extra_objs
="${host_extra_objs} ${extra_objs}"
11679 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11681 # Default the target-machine variables that were not explicitly set.
11682 if test x
"$tm_file" = x
11683 then tm_file
=$cpu_type/$cpu_type.h
; fi
11685 if test x
"$extra_headers" = x
11686 then extra_headers
=; fi
11688 if test x
$md_file = x
11689 then md_file
=$cpu_type/$cpu_type.md
; fi
11691 if test x
$out_file = x
11692 then out_file
=$cpu_type/$cpu_type.c
; fi
11694 if test x
"$tmake_file" = x
11695 then tmake_file
=$cpu_type/t-
$cpu_type
11698 # Support --enable-initfini-array.
11699 if test x
$enable_initfini_array != xno
; then
11700 tm_file
="${tm_file} initfini-array.h"
11703 if test x
"$dwarf2" = xyes
11704 then tm_file
="$tm_file tm-dwarf2.h"
11707 # Say what files are being used for the output code and MD file.
11708 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11709 echo "Using \`$srcdir/config/$md_file' as machine description file."
11711 # If any of the xm_file variables contain nonexistent files, warn
11712 # about them and drop them.
11715 for x
in $build_xm_file; do
11716 if test -f $srcdir/config
/$x
11718 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11719 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11722 build_xm_file
="$bx"
11725 for x
in $host_xm_file; do
11726 if test -f $srcdir/config
/$x
11728 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11729 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11735 for x
in $xm_file; do
11736 if test -f $srcdir/config
/$x
11738 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11739 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11745 for f
in $tm_file; do
11748 if test $count = ax
; then
11749 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11751 echo "Using the following target machine macro files:"
11752 for f
in $tm_file; do
11753 echo " $srcdir/config/$f"
11757 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11759 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11763 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11765 cat >>confdefs.h
<<_ACEOF
11766 #define HAVE_GNU_LD $gnu_ld_bool
11770 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11772 cat >>confdefs.h
<<_ACEOF
11773 #define HAVE_GNU_AS $gnu_as_bool
11778 for f
in $host_xm_file; do
11781 if test $count = a
; then
11783 elif test $count = ax
; then
11784 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11786 echo "Using the following host machine macro files:"
11787 for f
in $host_xm_file; do
11788 echo " $srcdir/config/$f"
11791 echo "Using ${out_host_hook_obj} for host machine hooks."
11793 if test "$host_xm_file" != "$build_xm_file"; then
11795 for f
in $build_xm_file; do
11798 if test $count = a
; then
11800 elif test $count = ax
; then
11801 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11803 echo "Using the following build machine macro files:"
11804 for f
in $build_xm_file; do
11805 echo " $srcdir/config/$f"
11810 if test -n "$configured_native_system_header_dir"; then
11811 native_system_header_dir
=$configured_native_system_header_dir
11813 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11817 powerpc
*-*-darwin*)
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11819 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11820 if ${gcc_cv_mcontext_underscores+:} false
; then :
11821 $as_echo_n "(cached) " >&6
11823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11826 #include <sys/cdefs.h>
11827 #include <sys/signal.h>
11828 #include <ucontext.h>
11829 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11832 if ac_fn_cxx_try_compile
"$LINENO"; then :
11833 gcc_cv_mcontext_underscores
=no
11835 gcc_cv_mcontext_underscores
=yes
11837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11840 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11841 if test $gcc_cv_mcontext_underscores = yes; then
11843 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11853 # Check if a valid thread package
11854 case ${enable_threads} in
11857 target_thread_file
='single'
11861 target_thread_file
='single'
11863 aix | dce | lynx | mipssde | posix | rtems | \
11864 single | tpf | vxworks | win32
)
11865 target_thread_file
=${enable_threads}
11868 echo "${enable_threads} is an unknown thread package" 1>&2
11873 if test x
${thread_file} = x
; then
11874 # No thread file set by target-specific clauses in config.gcc,
11875 # so use file chosen by default logic above
11876 thread_file
=${target_thread_file}
11884 if test x
$enable___cxa_atexit = xyes || \
11885 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11886 if test x
$host = x
$target; then
11888 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11889 # keyed to flag_use_cxa_atexit
11897 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11898 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
11901 echo "__cxa_atexit can't be enabled on this target"
11907 # We can't check for __cxa_atexit when building a cross, so assume
11911 if test x
$use_cxa_atexit = xyes
; then
11913 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11918 # Look for a file containing extra machine modes.
11919 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11920 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11923 cat >>confdefs.h
<<_ACEOF
11924 #define EXTRA_MODES_FILE "config/$extra_modes"
11929 # Convert extra_options into a form suitable for Makefile use.
11932 for f
in $extra_options; do
11933 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11934 all_opt_files
="$all_opt_files $srcdir/config/$f"
11938 # auto-host.h is the file containing items generated by autoconf and is
11939 # the first file included by config.h.
11940 # If host=build, it is correct to have bconfig include auto-host.h
11941 # as well. If host!=build, we are in error and need to do more
11942 # work to find out the build config parameters.
11943 if test x
$host = x
$build
11945 build_auto
=auto-host.h
11947 # We create a subdir, then run autoconf in the subdir.
11948 # To prevent recursion we set host and build for the new
11949 # invocation of configure to the build for this invocation
11956 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11957 *) realsrcdir
=..
/${srcdir};;
11959 # Clearing GMPINC is necessary to prevent host headers being
11960 # used by the build compiler. Defining GENERATOR_FILE stops
11961 # system.h from including gmp.h.
11962 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11963 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11964 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11965 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11966 ${realsrcdir}/configure \
11967 --enable-languages=${enable_languages-all} \
11968 --target=$target_alias --host=$build_alias --build=$build_alias
11970 # We just finished tests for the build machine, so rename
11971 # the file auto-build.h in the gcc directory.
11972 mv auto-host.h ..
/auto-build.h
11975 build_auto
=auto-build.h
11979 tm_file
="${tm_file} defaults.h"
11980 tm_p_file
="${tm_p_file} tm-preds.h"
11981 tm_d_file
="${tm_d_file} defaults.h"
11982 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11983 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11984 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11985 # put this back in temporarily.
11986 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11992 # Compile in configure arguments.
11993 if test -f configargs.h
; then
11994 # Being re-configured.
11995 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11996 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11997 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11998 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12001 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12004 # Double all backslashes and backslash all quotes to turn
12005 # gcc_config_arguments into a C string.
12006 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12007 $gcc_config_arguments
12009 gcc_config_arguments_str
=`cat conftest.out`
12012 cat > configargs.h
<<EOF
12013 /* Generated automatically. */
12014 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12015 static const char thread_model[] = "$thread_file";
12017 static const struct {
12018 const char *name, *value;
12019 } configure_default_options[] = $configure_default_options;
12022 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12023 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12024 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12025 if test -f $srcdir/REVISION
; then
12026 gcc_REVISION
=`cat $srcdir/REVISION`
12030 cat > plugin-version.h
<<EOF
12031 #include "configargs.h"
12033 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12034 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12035 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12036 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12038 static char basever[] = "$gcc_BASEVER";
12039 static char datestamp[] = "$gcc_DATESTAMP";
12040 static char devphase[] = "$gcc_DEVPHASE";
12041 static char revision[] = "$gcc_REVISION";
12043 /* FIXME plugins: We should make the version information more precise.
12044 One way to do is to add a checksum. */
12046 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12047 devphase, revision,
12048 configuration_arguments};
12051 # Determine what GCC version number to use in filesystem paths.
12053 get_gcc_base_ver
="cat"
12055 # Check whether --with-gcc-major-version-only was given.
12056 if test "${with_gcc_major_version_only+set}" = set; then :
12057 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12058 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12066 # Internationalization
12067 # If we haven't got the data from the intl directory,
12068 # assume NLS is disabled.
12077 if test -f ..
/intl
/config.intl
; then
12078 . ..
/intl
/config.intl
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12081 $as_echo_n "checking whether NLS is requested... " >&6; }
12082 if test x
"$USE_NLS" != xyes
; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12087 $as_echo "yes" >&6; }
12089 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12093 $as_echo_n "checking for catalogs to be installed... " >&6; }
12094 # Look for .po and .gmo files in the source directory.
12097 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12098 # If there aren't any .gmo files the shell will give us the
12099 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12101 case "$cat" in *\
**)
12104 # The quadruple backslash is collapsed to a double backslash
12105 # by the backticks, then collapsed again by the double quotes,
12106 # leaving us with one backslash in the sed expression (right
12107 # before the dot that mustn't act as a wildcard).
12108 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12109 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12110 # The user is allowed to set LINGUAS to a list of languages to
12111 # install catalogs for. If it's empty that means "all of them."
12112 if test "x$LINGUAS" = x
; then
12113 CATALOGS
="$CATALOGS $cat"
12114 XLINGUAS
="$XLINGUAS $lang"
12116 case "$LINGUAS" in *$lang*)
12117 CATALOGS
="$CATALOGS $cat"
12118 XLINGUAS
="$XLINGUAS $lang"
12123 LINGUAS
="$XLINGUAS"
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12125 $as_echo "$LINGUAS" >&6; }
12138 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12139 # -liconv on the link line twice.
12140 case "$LIBINTL" in *$LIBICONV*)
12144 # Check whether --enable-secureplt was given.
12145 if test "${enable_secureplt+set}" = set; then :
12146 enableval
=$enable_secureplt;
12150 # Check whether --enable-mingw-wildcard was given.
12151 if test "${enable_mingw_wildcard+set}" = set; then :
12152 enableval
=$enable_mingw_wildcard;
12154 enable_mingw_wildcard
=platform
12157 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12159 cat >>confdefs.h
<<_ACEOF
12160 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12165 # Check whether --enable-large-address-aware was given.
12166 if test "${enable_large_address_aware+set}" = set; then :
12167 enableval
=$enable_large_address_aware;
12170 if test x
"$enable_large_address_aware" = xyes
; then :
12172 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12176 # Check whether --enable-leading-mingw64-underscores was given.
12177 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12178 enableval
=$enable_leading_mingw64_underscores;
12181 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12183 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12187 # Check whether --enable-cld was given.
12188 if test "${enable_cld+set}" = set; then :
12189 enableval
=$enable_cld;
12195 # Check whether --enable-frame-pointer was given.
12196 if test "${enable_frame_pointer+set}" = set; then :
12197 enableval
=$enable_frame_pointer;
12201 linux
* | darwin
[8912]*)
12202 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12204 enable_frame_pointer
=no
12207 enable_frame_pointer
=yes
12214 # Windows32 Registry support for specifying GCC installation paths.
12215 # Check whether --enable-win32-registry was given.
12216 if test "${enable_win32_registry+set}" = set; then :
12217 enableval
=$enable_win32_registry;
12222 win32 | pe | cygwin
* | mingw32
*)
12223 if test "x$enable_win32_registry" != xno
; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12225 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12226 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12227 $as_echo_n "(cached) " >&6
12229 ac_func_search_save_LIBS
=$LIBS
12230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12239 char RegOpenKeyExA ();
12243 return RegOpenKeyExA ();
12248 for ac_lib
in '' advapi32
; do
12249 if test -z "$ac_lib"; then
12250 ac_res
="none required"
12253 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12255 if ac_fn_cxx_try_link
"$LINENO"; then :
12256 ac_cv_search_RegOpenKeyExA
=$ac_res
12258 rm -f core conftest.err conftest.
$ac_objext \
12260 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12264 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12267 ac_cv_search_RegOpenKeyExA
=no
12269 rm conftest.
$ac_ext
12270 LIBS
=$ac_func_search_save_LIBS
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12273 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12274 ac_res
=$ac_cv_search_RegOpenKeyExA
12275 if test "$ac_res" != no
; then :
12276 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12279 enable_win32_registry
=no
12284 if test "x$enable_win32_registry" != xno
; then
12286 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12289 if test "x$enable_win32_registry" != xyes \
12290 && test "x$enable_win32_registry" != x
; then
12292 cat >>confdefs.h
<<_ACEOF
12293 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12301 # Get an absolute path to the GCC top-level source directory
12302 holddir
=`${PWDCMD-pwd}`
12304 topdir
=`${PWDCMD-pwd}`
12307 # Conditionalize the makefile for this host machine.
12309 for f
in ${host_xmake_file}
12311 if test -f ${srcdir}/config
/$f
12313 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12317 # Conditionalize the makefile for this target machine.
12319 for f
in ${tmake_file}
12321 if test -f ${srcdir}/config
/$f
12323 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12326 tmake_file
="${tmake_file_}"
12328 out_object_file
=`basename $out_file .c`.o
12329 common_out_object_file
=`basename $common_out_file .c`.o
12331 tm_file_list
="options.h"
12332 tm_include_list
="options.h insn-constants.h"
12333 for f
in $tm_file; do
12336 f
=`echo $f | sed 's/^..//'`
12337 tm_file_list
="${tm_file_list} $f"
12338 tm_include_list
="${tm_include_list} $f"
12341 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12342 tm_include_list
="${tm_include_list} $f"
12345 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12346 tm_include_list
="${tm_include_list} config/$f"
12353 for f
in $tm_p_file; do
12356 tm_p_file_list
="${tm_p_file_list} $f"
12357 tm_p_include_list
="${tm_p_include_list} $f"
12360 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12361 tm_p_include_list
="${tm_p_include_list} config/$f"
12366 tm_d_include_list
="options.h insn-constants.h"
12367 for f
in $tm_d_file; do
12370 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12371 tm_d_include_list
="${tm_d_include_list} $f"
12374 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12375 tm_d_include_list
="${tm_d_include_list} config/$f"
12382 for f
in $xm_file; do
12385 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12386 xm_include_list
="${xm_include_list} $f"
12389 xm_file_list
="${xm_file_list} $f"
12390 xm_include_list
="${xm_include_list} $f"
12393 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12394 xm_include_list
="${xm_include_list} config/$f"
12400 host_xm_include_list
=
12401 for f
in $host_xm_file; do
12404 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12405 host_xm_include_list
="${host_xm_include_list} $f"
12408 host_xm_file_list
="${host_xm_file_list} $f"
12409 host_xm_include_list
="${host_xm_include_list} $f"
12412 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12413 host_xm_include_list
="${host_xm_include_list} config/$f"
12418 build_xm_file_list
=
12419 for f
in $build_xm_file; do
12422 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12423 build_xm_include_list
="${build_xm_include_list} $f"
12425 auto-build.h | auto-host.h
)
12426 build_xm_file_list
="${build_xm_file_list} $f"
12427 build_xm_include_list
="${build_xm_include_list} $f"
12430 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12431 build_xm_include_list
="${build_xm_include_list} config/$f"
12436 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12437 # cross-compiler which does not use the native headers and libraries.
12438 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12441 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12442 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12444 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12445 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12446 if test "x$with_build_sysroot" != x
; then
12447 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12449 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12452 if test x
$host != x
$target
12454 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12456 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12457 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12458 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12461 if test "x$with_build_sysroot" != "x"; then
12462 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12463 elif test "x$with_sysroot" = x
; then
12464 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12465 elif test "x$with_sysroot" = xyes
; then
12466 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12468 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12471 target_header_dir
=${native_system_header_dir}
12474 # If this is a cross-compiler that does not
12475 # have its own set of headers then define
12478 # If this is using newlib, without having the headers available now,
12479 # then define inhibit_libc in LIBGCC2_CFLAGS.
12480 # This prevents libgcc2 from containing any code which requires libc
12482 : ${inhibit_libc=false}
12483 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12484 test x
$with_newlib = xyes
; } &&
12485 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12490 # When building gcc with a cross-compiler, we need to adjust things so
12491 # that the generator programs are still built with the native compiler.
12492 # Also, we cannot run fixincludes.
12494 # These are the normal (build=host) settings:
12495 CC_FOR_BUILD
='$(CC)'
12496 CXX_FOR_BUILD
='$(CXX)'
12497 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12498 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12499 BUILD_LDFLAGS
='$(LDFLAGS)'
12500 STMP_FIXINC
=stmp-fixinc
12502 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12503 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12505 # And these apply if build != host, or we are generating coverage data
12506 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12508 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12509 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12510 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12512 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12513 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12514 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12515 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12520 # Expand extra_headers to include complete path.
12521 # This substitutes for lots of t-* files.
12522 extra_headers_list
=
12523 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12524 for file in ${extra_headers} ; do
12525 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12528 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12529 if test x
"$use_gcc_tgmath" = xyes
12530 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12533 # Define collect2 in Makefile.
12534 case $host_can_use_collect2 in
12536 *) collect2
='collect2$(exeext)' ;;
12540 # Add a definition of USE_COLLECT2 if system wants one.
12541 case $use_collect2 in
12542 no
) use_collect2
= ;;
12545 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12546 xm_defines
="${xm_defines} USE_COLLECT2"
12547 case $host_can_use_collect2 in
12549 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12556 cat >>confdefs.h
<<_ACEOF
12557 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12561 # ---------------------------
12562 # Assembler & linker features
12563 # ---------------------------
12565 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12566 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12567 # However when ld-new is first executed from the build tree, libtool will
12568 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12569 # to the build tree. While doing this we need to use the previous-stage
12570 # linker, or we have an infinite loop. The presence of a shell script as
12571 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12572 # the gcc/collect-ld script. So we need to know how libtool works, or
12573 # exec-tool will fail.
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12579 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12584 macro_version
='2.2.7a'
12585 macro_revision
='1.3134'
12599 ltmain
="$ac_aux_dir/ltmain.sh"
12601 # Backslashify metacharacters that are still active within
12602 # double-quoted strings.
12603 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12605 # Same as above, but do not quote variable references.
12606 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12608 # Sed substitution to delay expansion of an escaped shell variable in a
12609 # double_quote_subst'ed string.
12610 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12612 # Sed substitution to delay expansion of an escaped single quote.
12613 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12615 # Sed substitution to avoid accidental globbing in evaled expressions
12616 no_glob_subst
='s/\*/\\\*/g'
12618 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12619 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12623 $as_echo_n "checking how to print strings... " >&6; }
12624 # Test print first, because it will be a builtin if present.
12625 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12626 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12628 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12631 # Use this function as a fallback that always works.
12632 func_fallback_echo ()
12634 eval 'cat <<_LTECHO_EOF
12638 ECHO='func_fallback_echo
'
12641 # func_echo_all arg...
12642 # Invoke $ECHO with all args, space-separated.
12649 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12650 $as_echo "printf" >&6; } ;;
12651 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12652 $as_echo "print -r" >&6; } ;;
12653 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12654 $as_echo "cat" >&6; } ;;
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12671 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12672 if ${ac_cv_path_SED+:} false; then :
12673 $as_echo_n "(cached) " >&6
12675 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12676 for ac_i in 1 2 3 4 5 6 7; do
12677 ac_script="$ac_script$as_nl$ac_script"
12679 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12680 { ac_script=; unset ac_script;}
12681 if test -z "$SED"; then
12682 ac_path_SED_found=false
12683 # Loop through the user's path and
test for each of PROGNAME-LIST
12684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12685 for as_dir
in $PATH
12688 test -z "$as_dir" && as_dir
=.
12689 for ac_prog
in sed gsed
; do
12690 for ac_exec_ext
in '' $ac_executable_extensions; do
12691 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12692 as_fn_executable_p
"$ac_path_SED" ||
continue
12693 # Check for GNU ac_path_SED and select it if it is found.
12694 # Check for GNU $ac_path_SED
12695 case `"$ac_path_SED" --version 2>&1` in
12697 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12700 $as_echo_n 0123456789 >"conftest.in"
12703 cat "conftest.in" "conftest.in" >"conftest.tmp"
12704 mv "conftest.tmp" "conftest.in"
12705 cp "conftest.in" "conftest.nl"
12706 $as_echo '' >> "conftest.nl"
12707 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12708 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12709 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12710 if test $ac_count -gt ${ac_path_SED_max-0}; then
12711 # Best one so far, save it but keep looking for a better one
12712 ac_cv_path_SED
="$ac_path_SED"
12713 ac_path_SED_max
=$ac_count
12715 # 10*(2^10) chars as input seems more than enough
12716 test $ac_count -gt 10 && break
12718 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12721 $ac_path_SED_found && break 3
12726 if test -z "$ac_cv_path_SED"; then
12727 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12730 ac_cv_path_SED
=$SED
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12735 $as_echo "$ac_cv_path_SED" >&6; }
12736 SED
="$ac_cv_path_SED"
12739 test -z "$SED" && SED
=sed
12740 Xsed
="$SED -e 1s/^X//"
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12753 $as_echo_n "checking for fgrep... " >&6; }
12754 if ${ac_cv_path_FGREP+:} false
; then :
12755 $as_echo_n "(cached) " >&6
12757 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12758 then ac_cv_path_FGREP
="$GREP -F"
12760 if test -z "$FGREP"; then
12761 ac_path_FGREP_found
=false
12762 # Loop through the user's path and test for each of PROGNAME-LIST
12763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12764 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12767 test -z "$as_dir" && as_dir
=.
12768 for ac_prog
in fgrep
; do
12769 for ac_exec_ext
in '' $ac_executable_extensions; do
12770 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12771 as_fn_executable_p
"$ac_path_FGREP" ||
continue
12772 # Check for GNU ac_path_FGREP and select it if it is found.
12773 # Check for GNU $ac_path_FGREP
12774 case `"$ac_path_FGREP" --version 2>&1` in
12776 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12779 $as_echo_n 0123456789 >"conftest.in"
12782 cat "conftest.in" "conftest.in" >"conftest.tmp"
12783 mv "conftest.tmp" "conftest.in"
12784 cp "conftest.in" "conftest.nl"
12785 $as_echo 'FGREP' >> "conftest.nl"
12786 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12787 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12788 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12789 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12790 # Best one so far, save it but keep looking for a better one
12791 ac_cv_path_FGREP
="$ac_path_FGREP"
12792 ac_path_FGREP_max
=$ac_count
12794 # 10*(2^10) chars as input seems more than enough
12795 test $ac_count -gt 10 && break
12797 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12800 $ac_path_FGREP_found && break 3
12805 if test -z "$ac_cv_path_FGREP"; then
12806 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12809 ac_cv_path_FGREP
=$FGREP
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12815 $as_echo "$ac_cv_path_FGREP" >&6; }
12816 FGREP
="$ac_cv_path_FGREP"
12819 test -z "$GREP" && GREP
=grep
12839 # Check whether --with-gnu-ld was given.
12840 if test "${with_gnu_ld+set}" = set; then :
12841 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12847 if test "$GCC" = yes; then
12848 # Check if gcc -print-prog-name=ld gives a path.
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12850 $as_echo_n "checking for ld used by $CC... " >&6; }
12853 # gcc leaves a trailing carriage return which upsets mingw
12854 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12856 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12859 # Accept absolute paths.
12861 re_direlt
='/[^/][^/]*/\.\./'
12862 # Canonicalize the pathname of ld
12863 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12864 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12865 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12867 test -z "$LD" && LD
="$ac_prog"
12870 # If it fails, then pretend we aren't using GCC.
12874 # If it is relative, then search for the first ld in PATH.
12875 with_gnu_ld
=unknown
12878 elif test "$with_gnu_ld" = yes; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12880 $as_echo_n "checking for GNU ld... " >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12883 $as_echo_n "checking for non-GNU ld... " >&6; }
12885 if ${lt_cv_path_LD+:} false
; then :
12886 $as_echo_n "(cached) " >&6
12888 if test -z "$LD"; then
12889 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12890 for ac_dir
in $PATH; do
12892 test -z "$ac_dir" && ac_dir
=.
12893 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12894 lt_cv_path_LD
="$ac_dir/$ac_prog"
12895 # Check to see if the program is GNU ld. I'd rather use --version,
12896 # but apparently some variants of GNU ld only accept -v.
12897 # Break only if it was the GNU/non-GNU ld that we prefer.
12898 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12899 *GNU
* |
*'with BFD'*)
12900 test "$with_gnu_ld" != no
&& break
12903 test "$with_gnu_ld" != yes && break
12910 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12914 LD
="$lt_cv_path_LD"
12915 if test -n "$LD"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12917 $as_echo "$LD" >&6; }
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12922 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12924 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12925 if ${lt_cv_prog_gnu_ld+:} false
; then :
12926 $as_echo_n "(cached) " >&6
12928 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12929 case `$LD -v 2>&1 </dev/null` in
12930 *GNU
* |
*'with BFD'*)
12931 lt_cv_prog_gnu_ld
=yes
12934 lt_cv_prog_gnu_ld
=no
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12939 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12940 with_gnu_ld
=$lt_cv_prog_gnu_ld
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12951 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12952 if ${lt_cv_path_NM+:} false
; then :
12953 $as_echo_n "(cached) " >&6
12955 if test -n "$NM"; then
12956 # Let the user override the test.
12957 lt_cv_path_NM
="$NM"
12959 lt_nm_to_check
="${ac_tool_prefix}nm"
12960 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12961 lt_nm_to_check
="$lt_nm_to_check nm"
12963 for lt_tmp_nm
in $lt_nm_to_check; do
12964 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12965 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12967 test -z "$ac_dir" && ac_dir
=.
12968 tmp_nm
="$ac_dir/$lt_tmp_nm"
12969 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12970 # Check to see if the nm accepts a BSD-compat flag.
12971 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12972 # nm: unknown option "B" ignored
12973 # Tru64's nm complains that /dev/null is an invalid object file
12974 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12975 */dev
/null
* |
*'Invalid file or object type'*)
12976 lt_cv_path_NM
="$tmp_nm -B"
12980 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12982 lt_cv_path_NM
="$tmp_nm -p"
12986 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12987 continue # so that we can try to find one that supports BSD flags
12996 : ${lt_cv_path_NM=no}
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13000 $as_echo "$lt_cv_path_NM" >&6; }
13001 if test "$lt_cv_path_NM" != "no"; then
13002 NM
="$lt_cv_path_NM"
13004 # Didn't find any BSD compatible name lister, look for dumpbin.
13005 if test -n "$DUMPBIN"; then :
13006 # Let the user override the test.
13008 if test -n "$ac_tool_prefix"; then
13009 for ac_prog
in dumpbin
"link -dump"
13011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13012 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 $as_echo_n "checking for $ac_word... " >&6; }
13015 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13016 $as_echo_n "(cached) " >&6
13018 if test -n "$DUMPBIN"; then
13019 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13022 for as_dir
in $PATH
13025 test -z "$as_dir" && as_dir
=.
13026 for ac_exec_ext
in '' $ac_executable_extensions; do
13027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13028 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038 DUMPBIN
=$ac_cv_prog_DUMPBIN
13039 if test -n "$DUMPBIN"; then
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13041 $as_echo "$DUMPBIN" >&6; }
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13048 test -n "$DUMPBIN" && break
13051 if test -z "$DUMPBIN"; then
13052 ac_ct_DUMPBIN
=$DUMPBIN
13053 for ac_prog
in dumpbin
"link -dump"
13055 # Extract the first word of "$ac_prog", so it can be a program name with args.
13056 set dummy
$ac_prog; ac_word
=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13060 $as_echo_n "(cached) " >&6
13062 if test -n "$ac_ct_DUMPBIN"; then
13063 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13066 for as_dir
in $PATH
13069 test -z "$as_dir" && as_dir
=.
13070 for ac_exec_ext
in '' $ac_executable_extensions; do
13071 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13072 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13083 if test -n "$ac_ct_DUMPBIN"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13085 $as_echo "$ac_ct_DUMPBIN" >&6; }
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13092 test -n "$ac_ct_DUMPBIN" && break
13095 if test "x$ac_ct_DUMPBIN" = x
; then
13098 case $cross_compiling:$ac_tool_warned in
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13102 ac_tool_warned
=yes ;;
13104 DUMPBIN
=$ac_ct_DUMPBIN
13108 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13110 DUMPBIN
="$DUMPBIN -symbols"
13118 if test "$DUMPBIN" != ":"; then
13122 test -z "$NM" && NM
=nm
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13130 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13131 if ${lt_cv_nm_interface+:} false
; then :
13132 $as_echo_n "(cached) " >&6
13134 lt_cv_nm_interface
="BSD nm"
13135 echo "int some_variable = 0;" > conftest.
$ac_ext
13136 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13137 (eval "$ac_compile" 2>conftest.err
)
13138 cat conftest.err
>&5
13139 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13140 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13141 cat conftest.err
>&5
13142 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13143 cat conftest.out
>&5
13144 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13145 lt_cv_nm_interface
="MS dumpbin"
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13150 $as_echo "$lt_cv_nm_interface" >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13153 $as_echo_n "checking whether ln -s works... " >&6; }
13155 if test "$LN_S" = "ln -s"; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13157 $as_echo "yes" >&6; }
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13160 $as_echo "no, using $LN_S" >&6; }
13163 # find the maximum length of command line arguments
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13165 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13166 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13167 $as_echo_n "(cached) " >&6
13174 # On DJGPP, this test can blow up pretty badly due to problems in libc
13175 # (any single argument exceeding 2000 bytes causes a buffer overrun
13176 # during glob expansion). Even if it were fixed, the result of this
13177 # check would be larger than it should be.
13178 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13182 # Under GNU Hurd, this test is not required because there is
13183 # no limit to the length of command line arguments.
13184 # Libtool will interpret -1 as no limit whatsoever
13185 lt_cv_sys_max_cmd_len
=-1;
13188 cygwin
* | mingw
* | cegcc
*)
13189 # On Win9x/ME, this test blows up -- it succeeds, but takes
13190 # about 5 minutes as the teststring grows exponentially.
13191 # Worse, since 9x/ME are not pre-emptively multitasking,
13192 # you end up with a "frozen" computer, even though with patience
13193 # the test eventually succeeds (with a max line length of 256k).
13194 # Instead, let's just punt: use the minimum linelength reported by
13195 # all of the supported platforms: 8192 (on NT/2K/XP).
13196 lt_cv_sys_max_cmd_len
=8192;
13200 # On MiNT this can take a long time and run out of memory.
13201 lt_cv_sys_max_cmd_len
=8192;
13205 # On AmigaOS with pdksh, this test takes hours, literally.
13206 # So we just punt and use a minimum line length of 8192.
13207 lt_cv_sys_max_cmd_len
=8192;
13210 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13211 # This has been around since 386BSD, at least. Likely further.
13212 if test -x /sbin
/sysctl
; then
13213 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13214 elif test -x /usr
/sbin
/sysctl
; then
13215 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13217 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13219 # And add a safety zone
13220 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13221 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13225 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13226 lt_cv_sys_max_cmd_len
=196608
13230 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13231 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13232 # nice to cause kernel panics so lets avoid the loop below.
13233 # First set a reasonable default.
13234 lt_cv_sys_max_cmd_len
=16384
13236 if test -x /sbin
/sysconfig
; then
13237 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13238 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13243 lt_cv_sys_max_cmd_len
=102400
13245 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13246 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13247 if test -n "$kargmax"; then
13248 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13250 lt_cv_sys_max_cmd_len
=32768
13254 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13255 if test -n "$lt_cv_sys_max_cmd_len"; then
13256 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13257 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13259 # Make teststring a little bigger before we do anything with it.
13260 # a 1K string should be a reasonable start.
13261 for i
in 1 2 3 4 5 6 7 8 ; do
13262 teststring
=$teststring$teststring
13264 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13265 # If test is not a shell built-in, we'll probably end up computing a
13266 # maximum length that is only half of the actual maximum length, but
13268 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13269 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13270 test $i != 17 # 1/2 MB should be enough
13273 teststring
=$teststring$teststring
13275 # Only check the string length outside the loop.
13276 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13278 # Add a significant safety factor because C++ compilers can tack on
13279 # massive amounts of additional arguments before passing them to the
13280 # linker. It appears as though 1/2 is a usable value.
13281 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13288 if test -n $lt_cv_sys_max_cmd_len ; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13290 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13293 $as_echo "none" >&6; }
13295 max_cmd_len
=$lt_cv_sys_max_cmd_len
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13307 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13308 # Try some XSI features
13310 ( _lt_dummy
="a/b/c"
13311 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13313 && eval 'test $(( 1 + 1 )) -eq 2 \
13314 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13317 $as_echo "$xsi_shell" >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13321 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13323 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13325 && lt_shell_append=yes
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13327 $as_echo "$lt_shell_append" >&6; }
13330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13340 # test EBCDIC or ASCII
13341 case `echo X|tr X '\101'` in
13342 A) # ASCII based system
13343 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13344 lt_SP2NL='tr \040 \012'
13345 lt_NL2SP='tr \015\012 \040\040'
13347 *) # EBCDIC based system
13348 lt_SP2NL='tr \100 \n'
13349 lt_NL2SP='tr \r\n \100\100'
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13362 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13363 if ${lt_cv_ld_reload_flag+:} false; then :
13364 $as_echo_n "(cached
) " >&6
13366 lt_cv_ld_reload_flag='-r'
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13369 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13370 reload_flag=$lt_cv_ld_reload_flag
13371 case $reload_flag in
13373 *) reload_flag=" $reload_flag" ;;
13375 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13378 if test "$GCC" = yes; then
13379 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13394 if test -n "$ac_tool_prefix"; then
13395 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13396 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13398 $as_echo_n "checking
for $ac_word...
" >&6; }
13399 if ${ac_cv_prog_OBJDUMP+:} false; then :
13400 $as_echo_n "(cached
) " >&6
13402 if test -n "$OBJDUMP"; then
13403 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13422 OBJDUMP=$ac_cv_prog_OBJDUMP
13423 if test -n "$OBJDUMP"; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13425 $as_echo "$OBJDUMP" >&6; }
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13428 $as_echo "no
" >&6; }
13433 if test -z "$ac_cv_prog_OBJDUMP"; then
13434 ac_ct_OBJDUMP=$OBJDUMP
13435 # Extract the first word of "objdump
", so it can be a program name with args.
13436 set dummy objdump; ac_word=$2
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13438 $as_echo_n "checking
for $ac_word...
" >&6; }
13439 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13440 $as_echo_n "(cached
) " >&6
13442 if test -n "$ac_ct_OBJDUMP"; then
13443 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446 for as_dir in $PATH
13449 test -z "$as_dir" && as_dir=.
13450 for ac_exec_ext in '' $ac_executable_extensions; do
13451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13452 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13453 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13462 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13463 if test -n "$ac_ct_OBJDUMP"; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13465 $as_echo "$ac_ct_OBJDUMP" >&6; }
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13468 $as_echo "no
" >&6; }
13471 if test "x
$ac_ct_OBJDUMP" = x; then
13474 case $cross_compiling:$ac_tool_warned in
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13477 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13478 ac_tool_warned=yes ;;
13480 OBJDUMP=$ac_ct_OBJDUMP
13483 OBJDUMP="$ac_cv_prog_OBJDUMP"
13486 test -z "$OBJDUMP" && OBJDUMP=objdump
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13497 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13498 if ${lt_cv_deplibs_check_method+:} false; then :
13499 $as_echo_n "(cached
) " >&6
13501 lt_cv_file_magic_cmd='$MAGIC_CMD'
13502 lt_cv_file_magic_test_file=
13503 lt_cv_deplibs_check_method='unknown'
13504 # Need to set the preceding variable on all platforms that support
13505 # interlibrary dependencies.
13506 # 'none' -- dependencies not supported.
13507 # `unknown' -- same as none, but documents that we really don't know.
13508 # 'pass_all' -- all dependencies passed with no checks.
13509 # 'test_compile' -- check by making test program.
13510 # 'file_magic [[regex]]' -- check by looking for files in library path
13511 # which responds to the $file_magic_cmd with a given extended regex.
13512 # If you have `file' or equivalent on your system and you're not sure
13513 # whether `pass_all' will *always* work, you probably want this one.
13517 lt_cv_deplibs_check_method=pass_all
13521 lt_cv_deplibs_check_method=pass_all
13525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13526 lt_cv_file_magic_cmd='/usr/bin/file -L'
13527 lt_cv_file_magic_test_file=/shlib/libc.so
13531 # func_win32_libid is a shell function defined in ltmain.sh
13532 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13533 lt_cv_file_magic_cmd='func_win32_libid'
13537 # Base MSYS/MinGW do not provide the 'file' command needed by
13538 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13539 # unless we find 'file', for example because we are cross-compiling.
13540 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13541 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13543 lt_cv_file_magic_cmd='func_win32_libid'
13545 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13546 lt_cv_file_magic_cmd='$OBJDUMP -f'
13551 # use the weaker test based on 'objdump'. See mingw*.
13552 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13553 lt_cv_file_magic_cmd='$OBJDUMP -f'
13556 darwin* | rhapsody*)
13557 lt_cv_deplibs_check_method=pass_all
13560 freebsd* | dragonfly*)
13561 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13564 # Not sure whether the presence of OpenBSD here was a mistake.
13565 # Let's accept both of them until this is cleared up.
13566 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13567 lt_cv_file_magic_cmd=/usr/bin/file
13568 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13572 lt_cv_deplibs_check_method=pass_all
13577 lt_cv_deplibs_check_method=pass_all
13581 lt_cv_deplibs_check_method=pass_all
13584 hpux10.20* | hpux11*)
13585 lt_cv_file_magic_cmd=/usr/bin/file
13588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13589 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13592 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]'
13593 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13603 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13607 irix5* | irix6* | nonstopux*)
13609 *-32|*"-32 ") libmagic=32-bit;;
13610 *-n32|*"-n32 ") libmagic=N32;;
13611 *-64|*"-64 ") libmagic=64-bit;;
13612 *) libmagic=never-match;;
13614 lt_cv_deplibs_check_method=pass_all
13617 # This must be Linux ELF.
13618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13619 lt_cv_deplibs_check_method=pass_all
13623 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13632 lt_cv_file_magic_cmd=/usr/bin/file
13633 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13637 lt_cv_deplibs_check_method=pass_all
13641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13648 osf3* | osf4* | osf5*)
13649 lt_cv_deplibs_check_method=pass_all
13653 lt_cv_deplibs_check_method=pass_all
13657 lt_cv_deplibs_check_method=pass_all
13660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13661 lt_cv_deplibs_check_method=pass_all
13665 case $host_vendor in
13667 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]'
13668 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13671 lt_cv_deplibs_check_method=pass_all
13674 lt_cv_file_magic_cmd='/bin/file'
13675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13678 lt_cv_file_magic_cmd='/bin/file'
13679 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13680 lt_cv_file_magic_test_file=/lib/libc.so
13683 lt_cv_deplibs_check_method=pass_all
13686 lt_cv_deplibs_check_method=pass_all
13692 lt_cv_deplibs_check_method=pass_all
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13698 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13699 file_magic_cmd=$lt_cv_file_magic_cmd
13700 deplibs_check_method=$lt_cv_deplibs_check_method
13701 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13714 if test -n "$ac_tool_prefix"; then
13715 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13716 set dummy ${ac_tool_prefix}ar; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13718 $as_echo_n "checking
for $ac_word...
" >&6; }
13719 if ${ac_cv_prog_AR+:} false; then :
13720 $as_echo_n "(cached
) " >&6
13722 if test -n "$AR"; then
13723 ac_cv_prog_AR="$AR" # Let the user override the test.
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13732 ac_cv_prog_AR="${ac_tool_prefix}ar"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13743 if test -n "$AR"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13745 $as_echo "$AR" >&6; }
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13748 $as_echo "no
" >&6; }
13753 if test -z "$ac_cv_prog_AR"; then
13755 # Extract the first word of "ar", so it can be a program name with args.
13756 set dummy ar; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13758 $as_echo_n "checking
for $ac_word...
" >&6; }
13759 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13760 $as_echo_n "(cached
) " >&6
13762 if test -n "$ac_ct_AR"; then
13763 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772 ac_cv_prog_ac_ct_AR="ar"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13782 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13783 if test -n "$ac_ct_AR"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13785 $as_echo "$ac_ct_AR" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13788 $as_echo "no
" >&6; }
13791 if test "x
$ac_ct_AR" = x; then
13794 case $cross_compiling:$ac_tool_warned in
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13797 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13798 ac_tool_warned=yes ;;
13803 AR="$ac_cv_prog_AR"
13806 test -z "$AR" && AR=ar
13807 test -z "$AR_FLAGS" && AR_FLAGS=cru
13819 if test -n "$ac_tool_prefix"; then
13820 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13821 set dummy ${ac_tool_prefix}strip; ac_word=$2
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13823 $as_echo_n "checking
for $ac_word...
" >&6; }
13824 if ${ac_cv_prog_STRIP+:} false; then :
13825 $as_echo_n "(cached
) " >&6
13827 if test -n "$STRIP"; then
13828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13834 test -z "$as_dir" && as_dir=.
13835 for ac_exec_ext in '' $ac_executable_extensions; do
13836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13837 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13838 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13847 STRIP=$ac_cv_prog_STRIP
13848 if test -n "$STRIP"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13850 $as_echo "$STRIP" >&6; }
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13853 $as_echo "no
" >&6; }
13858 if test -z "$ac_cv_prog_STRIP"; then
13860 # Extract the first word of "strip
", so it can be a program name with args.
13861 set dummy strip; ac_word=$2
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13863 $as_echo_n "checking
for $ac_word...
" >&6; }
13864 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13865 $as_echo_n "(cached
) " >&6
13867 if test -n "$ac_ct_STRIP"; then
13868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13874 test -z "$as_dir" && as_dir=.
13875 for ac_exec_ext in '' $ac_executable_extensions; do
13876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13877 ac_cv_prog_ac_ct_STRIP="strip
"
13878 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13887 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13888 if test -n "$ac_ct_STRIP"; then
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13890 $as_echo "$ac_ct_STRIP" >&6; }
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13893 $as_echo "no
" >&6; }
13896 if test "x
$ac_ct_STRIP" = x; then
13899 case $cross_compiling:$ac_tool_warned in
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13902 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13903 ac_tool_warned=yes ;;
13908 STRIP="$ac_cv_prog_STRIP"
13911 test -z "$STRIP" && STRIP=:
13918 if test -n "$ac_tool_prefix"; then
13919 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13922 $as_echo_n "checking
for $ac_word...
" >&6; }
13923 if ${ac_cv_prog_RANLIB+:} false; then :
13924 $as_echo_n "(cached
) " >&6
13926 if test -n "$RANLIB"; then
13927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13933 test -z "$as_dir" && as_dir=.
13934 for ac_exec_ext in '' $ac_executable_extensions; do
13935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13937 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13946 RANLIB=$ac_cv_prog_RANLIB
13947 if test -n "$RANLIB"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13949 $as_echo "$RANLIB" >&6; }
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13952 $as_echo "no
" >&6; }
13957 if test -z "$ac_cv_prog_RANLIB"; then
13958 ac_ct_RANLIB=$RANLIB
13959 # Extract the first word of "ranlib
", so it can be a program name with args.
13960 set dummy ranlib; ac_word=$2
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13962 $as_echo_n "checking
for $ac_word...
" >&6; }
13963 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13964 $as_echo_n "(cached
) " >&6
13966 if test -n "$ac_ct_RANLIB"; then
13967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970 for as_dir in $PATH
13973 test -z "$as_dir" && as_dir=.
13974 for ac_exec_ext in '' $ac_executable_extensions; do
13975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13976 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13977 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13987 if test -n "$ac_ct_RANLIB"; then
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13989 $as_echo "$ac_ct_RANLIB" >&6; }
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13992 $as_echo "no
" >&6; }
13995 if test "x
$ac_ct_RANLIB" = x; then
13998 case $cross_compiling:$ac_tool_warned in
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14001 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14002 ac_tool_warned=yes ;;
14004 RANLIB=$ac_ct_RANLIB
14007 RANLIB="$ac_cv_prog_RANLIB"
14010 test -z "$RANLIB" && RANLIB=:
14017 # Determine commands to create old-style static archives.
14018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14019 old_postinstall_cmds='chmod 644 $oldlib'
14020 old_postuninstall_cmds=
14022 if test -n "$RANLIB"; then
14025 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14028 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14031 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14036 lock_old_archive_extraction=yes ;;
14038 lock_old_archive_extraction=no ;;
14079 # If no C compiler was specified, use CC.
14082 # If no C compiler flags were specified, use CFLAGS.
14083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14085 # Allow CC to be a program name with arguments.
14089 # Check for command to grab the raw symbol name followed by C symbol from nm.
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14091 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14092 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14093 $as_echo_n "(cached
) " >&6
14096 # These are sane defaults that work on at least a few old systems.
14097 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14099 # Character class describing NM global symbol codes.
14100 symcode='[BCDEGRST]'
14102 # Regexp to match symbols that can be accessed directly from C.
14103 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14105 # Define system-specific variables.
14110 cygwin* | mingw* | pw32* | cegcc*)
14111 symcode='[ABCDGISTW]'
14114 if test "$host_cpu" = ia64; then
14115 symcode='[ABCDEGRST]'
14118 irix* | nonstopux*)
14119 symcode='[BCDEGRST]'
14122 symcode='[BCDEGQRST]'
14133 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14141 # If we're using GNU nm, then use its standard symbol codes.
14142 case `$NM -V 2>&1` in
14143 *GNU* | *'with BFD'*)
14144 symcode='[ABCDGIRSTW]' ;;
14147 # Transform an extracted symbol line into a proper C declaration.
14148 # Some systems (esp. on ia64) link data and code symbols differently,
14149 # so use this general approach.
14150 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14152 # Transform an extracted symbol line into symbol name and symbol address
14153 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14154 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'"
14156 # Handle CRLF in mingw tool chain
14160 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14164 # Try without a prefix underscore, then with it.
14165 for ac_symprfx in "" "_
"; do
14167 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14168 symxfrm="\\1 $ac_symprfx\\2 \\2"
14170 # Write the raw and C identifiers.
14171 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14172 # Fake it for dumpbin and say T for any non-static function
14173 # and D for any global variable.
14174 # Also find C++ and __fastcall symbols from MSVC++,
14175 # which start with @ or ?.
14176 lt_cv_sys_global_symbol_pipe="$AWK '"\
14177 " {last_section=section; section=\$ 3};"\
14178 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14179 " \$ 0!~/External *\|/{next};"\
14180 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14181 " {if(hide[section]) next};"\
14182 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14183 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14184 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14185 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14186 " ' prfx
=^
$ac_symprfx"
14188 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14191 # Check to see that the pipe works correctly.
14195 cat > conftest.$ac_ext <<_LT_EOF
14200 void nm_test_func(void);
14201 void nm_test_func(void){}
14205 int main(){nm_test_var='a';nm_test_func();return(0);}
14208 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14209 (eval $ac_compile) 2>&5
14211 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14212 test $ac_status = 0; }; then
14213 # Now try to grab the symbols.
14215 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14216 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14219 test $ac_status = 0; } && test -s "$nlist"; then
14220 # Try sorting and uniquifying the output.
14221 if sort "$nlist" | uniq > "$nlist"T; then
14222 mv -f "$nlist"T "$nlist"
14227 # Make sure that we snagged all the symbols we need.
14228 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14229 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14230 cat <<_LT_EOF > conftest.$ac_ext
14236 # Now generate the symbol file.
14237 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14239 cat <<_LT_EOF >> conftest.$ac_ext
14241 /* The mapping between symbol names and symbols. */
14246 lt__PROGRAM__LTX_preloaded_symbols[] =
14248 { "@PROGRAM@
", (void *) 0 },
14250 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14251 cat <<\_LT_EOF >> conftest.$ac_ext
14255 /* This works around a problem in FreeBSD linker */
14256 #ifdef FREEBSD_WORKAROUND
14257 static const void *lt_preloaded_setup() {
14258 return lt__PROGRAM__LTX_preloaded_symbols;
14266 # Now try linking the two files.
14267 mv conftest.$ac_objext conftstm.$ac_objext
14268 lt_save_LIBS="$LIBS"
14269 lt_save_CFLAGS="$CFLAGS"
14270 LIBS="conftstm.
$ac_objext"
14271 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14272 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14273 (eval $ac_link) 2>&5
14275 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14276 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14279 LIBS="$lt_save_LIBS"
14280 CFLAGS="$lt_save_CFLAGS"
14282 echo "cannot
find nm_test_func
in $nlist" >&5
14285 echo "cannot
find nm_test_var
in $nlist" >&5
14288 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14291 echo "$progname: failed program was
:" >&5
14292 cat conftest.$ac_ext >&5
14294 rm -rf conftest* conftst*
14296 # Do not use the global_symbol_pipe unless it works.
14297 if test "$pipe_works" = yes; then
14300 lt_cv_sys_global_symbol_pipe=
14306 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14307 lt_cv_sys_global_symbol_to_cdecl=
14309 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14311 $as_echo "failed
" >&6; }
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14314 $as_echo "ok
" >&6; }
14338 # Check whether --enable-libtool-lock was given.
14339 if test "${enable_libtool_lock+set}" = set; then :
14340 enableval=$enable_libtool_lock;
14343 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14345 # Some flags need to be propagated to the compiler or linker for good
14349 # Find out which ABI we are using.
14350 echo 'int i;' > conftest.$ac_ext
14351 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14352 (eval $ac_compile) 2>&5
14354 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14355 test $ac_status = 0; }; then
14356 case `/usr/bin/file conftest.$ac_objext` in
14358 HPUX_IA64_MODE="32"
14361 HPUX_IA64_MODE="64"
14368 # Find out which ABI we are using.
14369 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14370 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14371 (eval $ac_compile) 2>&5
14373 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14374 test $ac_status = 0; }; then
14375 if test "$lt_cv_prog_gnu_ld" = yes; then
14376 case `/usr/bin/file conftest.$ac_objext` in
14378 LD="${LD-ld} -melf32bsmip"
14381 LD="${LD-ld} -melf32bmipn32"
14384 LD="${LD-ld} -melf64bmip"
14388 case `/usr/bin/file conftest.$ac_objext` in
14404 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14405 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14406 # Find out which ABI we are using.
14407 echo 'int i;' > conftest.$ac_ext
14408 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14409 (eval $ac_compile) 2>&5
14411 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14412 test $ac_status = 0; }; then
14413 case `/usr/bin/file conftest.o` in
14416 x86_64-*kfreebsd*-gnu)
14417 LD="${LD-ld} -m elf_i386_fbsd
"
14420 case `/usr/bin/file conftest.o` in
14422 LD="${LD-ld} -m elf32_x86_64
"
14425 LD="${LD-ld} -m elf_i386
"
14429 powerpc64le-*linux*)
14430 LD="${LD-ld} -m elf32lppclinux
"
14433 LD="${LD-ld} -m elf32ppclinux
"
14436 LD="${LD-ld} -m elf_s390
"
14439 LD="${LD-ld} -m elf32_sparc
"
14445 x86_64-*kfreebsd*-gnu)
14446 LD="${LD-ld} -m elf_x86_64_fbsd
"
14449 LD="${LD-ld} -m elf_x86_64
"
14452 LD="${LD-ld} -m elf64lppc
"
14455 LD="${LD-ld} -m elf64ppc
"
14457 s390*-*linux*|s390*-*tpf*)
14458 LD="${LD-ld} -m elf64_s390
"
14461 LD="${LD-ld} -m elf64_sparc
"
14471 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14472 SAVE_CFLAGS="$CFLAGS"
14473 CFLAGS="$CFLAGS -belf"
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14475 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14476 if ${lt_cv_cc_needs_belf+:} false; then :
14477 $as_echo_n "(cached
) " >&6
14480 ac_cpp='$CPP $CPPFLAGS'
14481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14496 if ac_fn_c_try_link "$LINENO"; then :
14497 lt_cv_cc_needs_belf=yes
14499 lt_cv_cc_needs_belf=no
14501 rm -f core conftest.err conftest.$ac_objext \
14502 conftest$ac_exeext conftest.$ac_ext
14504 ac_cpp='$CPP $CPPFLAGS'
14505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14511 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14512 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14513 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14514 CFLAGS="$SAVE_CFLAGS"
14518 # Find out which ABI we are using.
14519 echo 'int i;' > conftest.$ac_ext
14520 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14521 (eval $ac_compile) 2>&5
14523 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14524 test $ac_status = 0; }; then
14525 case `/usr/bin/file conftest.o` in
14527 case $lt_cv_prog_gnu_ld in
14528 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14530 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14542 need_locks="$enable_libtool_lock"
14546 rhapsody* | darwin*)
14547 if test -n "$ac_tool_prefix"; then
14548 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14549 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14551 $as_echo_n "checking
for $ac_word...
" >&6; }
14552 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14553 $as_echo_n "(cached
) " >&6
14555 if test -n "$DSYMUTIL"; then
14556 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14565 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14575 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14576 if test -n "$DSYMUTIL"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14578 $as_echo "$DSYMUTIL" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14581 $as_echo "no
" >&6; }
14586 if test -z "$ac_cv_prog_DSYMUTIL"; then
14587 ac_ct_DSYMUTIL=$DSYMUTIL
14588 # Extract the first word of "dsymutil
", so it can be a program name with args.
14589 set dummy dsymutil; ac_word=$2
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14591 $as_echo_n "checking
for $ac_word...
" >&6; }
14592 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14593 $as_echo_n "(cached
) " >&6
14595 if test -n "$ac_ct_DSYMUTIL"; then
14596 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 for as_dir in $PATH
14602 test -z "$as_dir" && as_dir=.
14603 for ac_exec_ext in '' $ac_executable_extensions; do
14604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14605 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14606 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14615 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14616 if test -n "$ac_ct_DSYMUTIL"; then
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14618 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14621 $as_echo "no
" >&6; }
14624 if test "x
$ac_ct_DSYMUTIL" = x; then
14627 case $cross_compiling:$ac_tool_warned in
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14630 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14631 ac_tool_warned=yes ;;
14633 DSYMUTIL=$ac_ct_DSYMUTIL
14636 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14639 if test -n "$ac_tool_prefix"; then
14640 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14641 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14643 $as_echo_n "checking
for $ac_word...
" >&6; }
14644 if ${ac_cv_prog_NMEDIT+:} false; then :
14645 $as_echo_n "(cached
) " >&6
14647 if test -n "$NMEDIT"; then
14648 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
14656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14658 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14667 NMEDIT=$ac_cv_prog_NMEDIT
14668 if test -n "$NMEDIT"; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14670 $as_echo "$NMEDIT" >&6; }
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14673 $as_echo "no
" >&6; }
14678 if test -z "$ac_cv_prog_NMEDIT"; then
14679 ac_ct_NMEDIT=$NMEDIT
14680 # Extract the first word of "nmedit
", so it can be a program name with args.
14681 set dummy nmedit; ac_word=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14683 $as_echo_n "checking
for $ac_word...
" >&6; }
14684 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14685 $as_echo_n "(cached
) " >&6
14687 if test -n "$ac_ct_NMEDIT"; then
14688 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14707 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14708 if test -n "$ac_ct_NMEDIT"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14710 $as_echo "$ac_ct_NMEDIT" >&6; }
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14713 $as_echo "no
" >&6; }
14716 if test "x
$ac_ct_NMEDIT" = x; then
14719 case $cross_compiling:$ac_tool_warned in
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14722 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14723 ac_tool_warned=yes ;;
14725 NMEDIT=$ac_ct_NMEDIT
14728 NMEDIT="$ac_cv_prog_NMEDIT"
14731 if test -n "$ac_tool_prefix"; then
14732 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14733 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14735 $as_echo_n "checking
for $ac_word...
" >&6; }
14736 if ${ac_cv_prog_LIPO+:} false; then :
14737 $as_echo_n "(cached
) " >&6
14739 if test -n "$LIPO"; then
14740 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14746 test -z "$as_dir" && as_dir=.
14747 for ac_exec_ext in '' $ac_executable_extensions; do
14748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14749 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14750 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14759 LIPO=$ac_cv_prog_LIPO
14760 if test -n "$LIPO"; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14762 $as_echo "$LIPO" >&6; }
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14765 $as_echo "no
" >&6; }
14770 if test -z "$ac_cv_prog_LIPO"; then
14772 # Extract the first word of "lipo
", so it can be a program name with args.
14773 set dummy lipo; ac_word=$2
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14775 $as_echo_n "checking
for $ac_word...
" >&6; }
14776 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14777 $as_echo_n "(cached
) " >&6
14779 if test -n "$ac_ct_LIPO"; then
14780 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783 for as_dir in $PATH
14786 test -z "$as_dir" && as_dir=.
14787 for ac_exec_ext in '' $ac_executable_extensions; do
14788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14789 ac_cv_prog_ac_ct_LIPO="lipo
"
14790 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14799 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14800 if test -n "$ac_ct_LIPO"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14802 $as_echo "$ac_ct_LIPO" >&6; }
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14805 $as_echo "no
" >&6; }
14808 if test "x
$ac_ct_LIPO" = x; then
14811 case $cross_compiling:$ac_tool_warned in
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14814 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14815 ac_tool_warned=yes ;;
14820 LIPO="$ac_cv_prog_LIPO"
14823 if test -n "$ac_tool_prefix"; then
14824 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14825 set dummy ${ac_tool_prefix}otool; ac_word=$2
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14827 $as_echo_n "checking
for $ac_word...
" >&6; }
14828 if ${ac_cv_prog_OTOOL+:} false; then :
14829 $as_echo_n "(cached
) " >&6
14831 if test -n "$OTOOL"; then
14832 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14835 for as_dir in $PATH
14838 test -z "$as_dir" && as_dir=.
14839 for ac_exec_ext in '' $ac_executable_extensions; do
14840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14841 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14842 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14851 OTOOL=$ac_cv_prog_OTOOL
14852 if test -n "$OTOOL"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14854 $as_echo "$OTOOL" >&6; }
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14857 $as_echo "no
" >&6; }
14862 if test -z "$ac_cv_prog_OTOOL"; then
14864 # Extract the first word of "otool
", so it can be a program name with args.
14865 set dummy otool; ac_word=$2
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14867 $as_echo_n "checking
for $ac_word...
" >&6; }
14868 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14869 $as_echo_n "(cached
) " >&6
14871 if test -n "$ac_ct_OTOOL"; then
14872 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14875 for as_dir in $PATH
14878 test -z "$as_dir" && as_dir=.
14879 for ac_exec_ext in '' $ac_executable_extensions; do
14880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14881 ac_cv_prog_ac_ct_OTOOL="otool
"
14882 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14891 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14892 if test -n "$ac_ct_OTOOL"; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14894 $as_echo "$ac_ct_OTOOL" >&6; }
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14897 $as_echo "no
" >&6; }
14900 if test "x
$ac_ct_OTOOL" = x; then
14903 case $cross_compiling:$ac_tool_warned in
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14906 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14907 ac_tool_warned=yes ;;
14912 OTOOL="$ac_cv_prog_OTOOL"
14915 if test -n "$ac_tool_prefix"; then
14916 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14917 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14919 $as_echo_n "checking
for $ac_word...
" >&6; }
14920 if ${ac_cv_prog_OTOOL64+:} false; then :
14921 $as_echo_n "(cached
) " >&6
14923 if test -n "$OTOOL64"; then
14924 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927 for as_dir in $PATH
14930 test -z "$as_dir" && as_dir=.
14931 for ac_exec_ext in '' $ac_executable_extensions; do
14932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14933 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14934 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14943 OTOOL64=$ac_cv_prog_OTOOL64
14944 if test -n "$OTOOL64"; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14946 $as_echo "$OTOOL64" >&6; }
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14949 $as_echo "no
" >&6; }
14954 if test -z "$ac_cv_prog_OTOOL64"; then
14955 ac_ct_OTOOL64=$OTOOL64
14956 # Extract the first word of "otool64
", so it can be a program name with args.
14957 set dummy otool64; ac_word=$2
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14959 $as_echo_n "checking
for $ac_word...
" >&6; }
14960 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14961 $as_echo_n "(cached
) " >&6
14963 if test -n "$ac_ct_OTOOL64"; then
14964 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14967 for as_dir in $PATH
14970 test -z "$as_dir" && as_dir=.
14971 for ac_exec_ext in '' $ac_executable_extensions; do
14972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14973 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14983 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14984 if test -n "$ac_ct_OTOOL64"; then
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14986 $as_echo "$ac_ct_OTOOL64" >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14989 $as_echo "no
" >&6; }
14992 if test "x
$ac_ct_OTOOL64" = x; then
14995 case $cross_compiling:$ac_tool_warned in
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14998 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14999 ac_tool_warned=yes ;;
15001 OTOOL64=$ac_ct_OTOOL64
15004 OTOOL64="$ac_cv_prog_OTOOL64"
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15034 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15035 if ${lt_cv_apple_cc_single_mod+:} false; then :
15036 $as_echo_n "(cached
) " >&6
15038 lt_cv_apple_cc_single_mod=no
15039 if test -z "${LT_MULTI_MODULE}"; then
15040 # By default we will add the -single_module flag. You can override
15041 # by either setting the environment variable LT_MULTI_MODULE
15042 # non-empty at configure time, or by adding -multi_module to the
15044 rm -rf libconftest.dylib*
15045 echo "int foo
(void
){return 1;}" > conftest.c
15046 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15047 -dynamiclib -Wl,-single_module conftest.c
" >&5
15048 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15049 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15051 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15052 lt_cv_apple_cc_single_mod=yes
15054 cat conftest.err >&5
15056 rm -rf libconftest.dylib*
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15061 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15063 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15064 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15065 $as_echo_n "(cached
) " >&6
15067 lt_cv_ld_exported_symbols_list=no
15068 save_LDFLAGS=$LDFLAGS
15069 echo "_main
" > conftest.sym
15070 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15082 if ac_fn_c_try_link "$LINENO"; then :
15083 lt_cv_ld_exported_symbols_list=yes
15085 lt_cv_ld_exported_symbols_list=no
15087 rm -f core conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LDFLAGS="$save_LDFLAGS"
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15093 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15095 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15096 if ${lt_cv_ld_force_load+:} false; then :
15097 $as_echo_n "(cached
) " >&6
15099 lt_cv_ld_force_load=no
15100 cat > conftest.c << _LT_EOF
15101 int forced_loaded() { return 2;}
15103 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15104 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15105 echo "$AR cru libconftest.a conftest.o
" >&5
15106 $AR cru libconftest.a conftest.o 2>&5
15107 cat > conftest.c << _LT_EOF
15108 int main() { return 0;}
15110 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15111 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15113 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15114 lt_cv_ld_force_load=yes
15116 cat conftest.err >&5
15118 rm -f conftest.err libconftest.a conftest conftest.c
15119 rm -rf conftest.dSYM
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15123 $as_echo "$lt_cv_ld_force_load" >&6; }
15125 rhapsody* | darwin1.[012])
15126 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15128 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15129 darwin*) # darwin 5.x on
15130 # if running on 10.5 or later, the deployment target defaults
15131 # to the OS version, if on x86, and 10.4, the deployment
15132 # target defaults to 10.4. Don't you love it?
15133 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15134 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15135 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15137 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15139 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15143 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15144 _lt_dar_single_mod='$single_module'
15146 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15147 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15149 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15151 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15152 _lt_dsymutil='~$DSYMUTIL $lib || :'
15160 for ac_header in dlfcn.h
15162 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15163 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_DLFCN_H 1
15182 enable_win32_dll=no
15185 # Check whether --enable-shared was given.
15186 if test "${enable_shared+set}" = set; then :
15187 enableval=$enable_shared; p=${PACKAGE-default}
15189 yes) enable_shared=yes ;;
15190 no) enable_shared=no ;;
15193 # Look at the argument we got. We use all the common list separators.
15194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15195 for pkg in $enableval; do
15197 if test "X
$pkg" = "X
$p"; then
15216 # Check whether --enable-static was given.
15217 if test "${enable_static+set}" = set; then :
15218 enableval=$enable_static; p=${PACKAGE-default}
15220 yes) enable_static=yes ;;
15221 no) enable_static=no ;;
15224 # Look at the argument we got. We use all the common list separators.
15225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15226 for pkg in $enableval; do
15228 if test "X
$pkg" = "X
$p"; then
15248 # Check whether --with-pic was given.
15249 if test "${with_pic+set}" = set; then :
15250 withval=$with_pic; pic_mode="$withval"
15256 test -z "$pic_mode" && pic_mode=default
15264 # Check whether --enable-fast-install was given.
15265 if test "${enable_fast_install+set}" = set; then :
15266 enableval=$enable_fast_install; p=${PACKAGE-default}
15268 yes) enable_fast_install=yes ;;
15269 no) enable_fast_install=no ;;
15271 enable_fast_install=no
15272 # Look at the argument we got. We use all the common list separators.
15273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15274 for pkg in $enableval; do
15276 if test "X
$pkg" = "X
$p"; then
15277 enable_fast_install=yes
15284 enable_fast_install=yes
15297 # This can be used to rebuild libtool when needed
15298 LIBTOOL_DEPS="$ltmain"
15300 # Always use our own libtool.
15301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15328 test -z "$LN_S" && LN_S="ln -s"
15343 if test -n "${ZSH_VERSION+set}" ; then
15344 setopt NO_GLOB_SUBST
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15348 $as_echo_n "checking
for objdir...
" >&6; }
15349 if ${lt_cv_objdir+:} false; then :
15350 $as_echo_n "(cached
) " >&6
15352 rm -f .libs 2>/dev/null
15353 mkdir .libs 2>/dev/null
15354 if test -d .libs; then
15357 # MS-DOS does not allow filenames that begin with a dot.
15360 rmdir .libs 2>/dev/null
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15363 $as_echo "$lt_cv_objdir" >&6; }
15364 objdir=$lt_cv_objdir
15370 cat >>confdefs.h <<_ACEOF
15371 #define LT_OBJDIR "$lt_cv_objdir/"
15379 # AIX sometimes has problems with the GCC collect2 program. For some
15380 # reason, if we set the COLLECT_NAMES environment variable, the problems
15381 # vanish in a puff of smoke.
15382 if test "X
${COLLECT_NAMES+set}" != Xset; then
15384 export COLLECT_NAMES
15389 # Global variables:
15391 can_build_shared=yes
15393 # All known linkers require a `.a' archive for static linking (except MSVC,
15394 # which needs '.lib').
15397 with_gnu_ld="$lt_cv_prog_gnu_ld"
15400 old_CFLAGS="$CFLAGS"
15402 # Set sane defaults for various variables
15403 test -z "$CC" && CC=cc
15404 test -z "$LTCC" && LTCC=$CC
15405 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15406 test -z "$LD" && LD=ld
15407 test -z "$ac_objext" && ac_objext=o
15409 for cc_temp in $compiler""; do
15411 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15412 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15417 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15420 # Only perform the check for file, if the check method requires it
15421 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15422 case $deplibs_check_method in
15424 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15426 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15427 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15428 $as_echo_n "(cached
) " >&6
15432 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15435 lt_save_MAGIC_CMD="$MAGIC_CMD"
15436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15437 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15438 for ac_dir in $ac_dummy; do
15440 test -z "$ac_dir" && ac_dir=.
15441 if test -f $ac_dir/${ac_tool_prefix}file; then
15442 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15443 if test -n "$file_magic_test_file"; then
15444 case $deplibs_check_method in
15446 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15449 $EGREP "$file_magic_regex" > /dev/null; then
15454 *** Warning: the command libtool uses to detect shared libraries,
15455 *** $file_magic_cmd, produces output that libtool cannot recognize.
15456 *** The result is that libtool may fail to recognize shared libraries
15457 *** as such. This will affect the creation of libtool libraries that
15458 *** depend on shared libraries, but programs linked with such libtool
15459 *** libraries will work regardless of this problem. Nevertheless, you
15460 *** may want to report the problem to your system manager and/or to
15461 *** bug-libtool@gnu.org
15471 MAGIC_CMD="$lt_save_MAGIC_CMD"
15476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15477 if test -n "$MAGIC_CMD"; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15479 $as_echo "$MAGIC_CMD" >&6; }
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15482 $as_echo "no
" >&6; }
15489 if test -z "$lt_cv_path_MAGIC_CMD"; then
15490 if test -n "$ac_tool_prefix"; then
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15492 $as_echo_n "checking
for file...
" >&6; }
15493 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15494 $as_echo_n "(cached
) " >&6
15498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15501 lt_save_MAGIC_CMD="$MAGIC_CMD"
15502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15503 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15504 for ac_dir in $ac_dummy; do
15506 test -z "$ac_dir" && ac_dir=.
15507 if test -f $ac_dir/file; then
15508 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15509 if test -n "$file_magic_test_file"; then
15510 case $deplibs_check_method in
15512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15515 $EGREP "$file_magic_regex" > /dev/null; then
15520 *** Warning: the command libtool uses to detect shared libraries,
15521 *** $file_magic_cmd, produces output that libtool cannot recognize.
15522 *** The result is that libtool may fail to recognize shared libraries
15523 *** as such. This will affect the creation of libtool libraries that
15524 *** depend on shared libraries, but programs linked with such libtool
15525 *** libraries will work regardless of this problem. Nevertheless, you
15526 *** may want to report the problem to your system manager and/or to
15527 *** bug-libtool@gnu.org
15537 MAGIC_CMD="$lt_save_MAGIC_CMD"
15542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15543 if test -n "$MAGIC_CMD"; then
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15545 $as_echo "$MAGIC_CMD" >&6; }
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15548 $as_echo "no
" >&6; }
15561 # Use C for the default configuration in the libtool script
15565 ac_cpp='$CPP $CPPFLAGS'
15566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15571 # Source file extension for C test sources.
15574 # Object file extension for compiled C test sources.
15578 # Code to be used in simple compile tests
15579 lt_simple_compile_test_code="int some_variable
= 0;"
15581 # Code to be used in simple link tests
15582 lt_simple_link_test_code='int main(){return(0);}'
15590 # If no C compiler was specified, use CC.
15593 # If no C compiler flags were specified, use CFLAGS.
15594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15596 # Allow CC to be a program name with arguments.
15599 # Save the default compiler, since it gets overwritten when the other
15600 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15601 compiler_DEFAULT=$CC
15603 # save warnings/boilerplate of simple test code
15604 ac_outfile=conftest.$ac_objext
15605 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15607 _lt_compiler_boilerplate=`cat conftest.err`
15610 ac_outfile=conftest.$ac_objext
15611 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15613 _lt_linker_boilerplate=`cat conftest.err`
15618 ## There is no encapsulation within the following macros, do not change
15619 ## the running order or otherwise move them around unless you know exactly
15620 ## what you are doing...
15621 if test -n "$compiler"; then
15623 lt_prog_compiler_no_builtin_flag=
15625 if test "$GCC" = yes; then
15626 case $cc_basename in
15628 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15630 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15634 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15635 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15636 $as_echo_n "(cached
) " >&6
15638 lt_cv_prog_compiler_rtti_exceptions=no
15639 ac_outfile=conftest.$ac_objext
15640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15641 lt_compiler_flag="-fno-rtti -fno-exceptions"
15642 # Insert the option either (1) after the last *FLAGS variable, or
15643 # (2) before a word containing "conftest.
", or (3) at the end.
15644 # Note that $ac_compile itself does not contain backslashes and begins
15645 # with a dollar sign (not a hyphen), so the echo should work correctly.
15646 # The option is referenced via a variable to avoid confusing sed.
15647 lt_compile=`echo "$ac_compile" | $SED \
15648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15650 -e 's:$: $lt_compiler_flag:'`
15651 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15652 (eval "$lt_compile" 2>conftest.err)
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15656 if (exit $ac_status) && test -s "$ac_outfile"; then
15657 # The compiler can only warn and ignore the option if not recognized
15658 # So say no if there are warnings other than the usual output.
15659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15662 lt_cv_prog_compiler_rtti_exceptions=yes
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15669 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15671 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15672 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15684 lt_prog_compiler_wl=
15685 lt_prog_compiler_pic=
15686 lt_prog_compiler_static=
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15689 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15691 if test "$GCC" = yes; then
15692 lt_prog_compiler_wl='-Wl,'
15693 lt_prog_compiler_static='-static'
15697 # All AIX code is PIC.
15698 if test "$host_cpu" = ia64; then
15699 # AIX 5 now supports IA64 processor
15700 lt_prog_compiler_static='-Bstatic'
15702 lt_prog_compiler_pic='-fPIC'
15708 # see comment about AmigaOS4 .so support
15709 lt_prog_compiler_pic='-fPIC'
15712 # FIXME: we need at least 68020 code to build shared libraries, but
15713 # adding the `-m68020' flag to GCC prevents building anything better,
15715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15721 # PIC is the default for these OSes.
15724 mingw* | cygwin* | pw32* | os2* | cegcc*)
15725 # This hack is so that the source file can tell whether it is being
15726 # built for inclusion in a dll (and should export symbols for example).
15727 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15728 # (--disable-auto-import) libraries
15729 lt_prog_compiler_pic='-DDLL_EXPORT'
15732 darwin* | rhapsody*)
15733 # PIC is the default on this platform
15734 # Common symbols not allowed in MH_DYLIB files
15735 lt_prog_compiler_pic='-fno-common'
15739 # PIC is the default for Haiku.
15740 # The "-static" flag exists, but is broken.
15741 lt_prog_compiler_static=
15745 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15746 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15747 # sets the default TLS model and affects inlining.
15753 lt_prog_compiler_pic='-fPIC'
15759 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15760 # Instead, we relocate shared libraries at runtime.
15764 # Just because we use GCC doesn't mean we suddenly get shared libraries
15765 # on systems that don't support them.
15766 lt_prog_compiler_can_build_shared=no
15771 # QNX uses GNU C++, but need to define -shared option too, otherwise
15772 # it will coredump.
15773 lt_prog_compiler_pic='-fPIC -shared'
15777 if test -d /usr/nec; then
15778 lt_prog_compiler_pic=-Kconform_pic
15783 lt_prog_compiler_pic='-fPIC'
15787 case $cc_basename in
15788 nvcc*) # Cuda Compiler Driver 2.2
15789 lt_prog_compiler_wl='-Xlinker '
15790 lt_prog_compiler_pic='-Xcompiler -fPIC'
15794 # PORTME Check for flag to pass linker flags through the system compiler.
15797 lt_prog_compiler_wl='-Wl,'
15798 if test "$host_cpu" = ia64; then
15799 # AIX 5 now supports IA64 processor
15800 lt_prog_compiler_static='-Bstatic'
15802 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15806 mingw* | cygwin* | pw32* | os2* | cegcc*)
15807 # This hack is so that the source file can tell whether it is being
15808 # built for inclusion in a dll (and should export symbols for example).
15809 lt_prog_compiler_pic='-DDLL_EXPORT'
15812 hpux9* | hpux10* | hpux11*)
15813 lt_prog_compiler_wl='-Wl,'
15814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15815 # not for PA HP-UX.
15821 lt_prog_compiler_pic='+Z'
15824 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15825 lt_prog_compiler_static='${wl}-a ${wl}archive'
15828 irix5* | irix6* | nonstopux*)
15829 lt_prog_compiler_wl='-Wl,'
15830 # PIC (with -KPIC) is the default.
15831 lt_prog_compiler_static='-non_shared'
15834 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15835 case $cc_basename in
15836 # old Intel for x86_64 which still supported -KPIC.
15838 lt_prog_compiler_wl='-Wl,'
15839 lt_prog_compiler_pic='-KPIC'
15840 lt_prog_compiler_static='-static'
15842 # icc used to be incompatible with GCC.
15843 # ICC 10 doesn't accept -KPIC any more.
15845 lt_prog_compiler_wl='-Wl,'
15846 lt_prog_compiler_pic='-fPIC'
15847 lt_prog_compiler_static='-static'
15849 # Lahey Fortran 8.1.
15851 lt_prog_compiler_wl='-Wl,'
15852 lt_prog_compiler_pic='--shared'
15853 lt_prog_compiler_static='--static'
15855 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15856 # Portland Group compilers (*not* the Pentium gcc compiler,
15857 # which looks to be a dead project)
15858 lt_prog_compiler_wl='-Wl,'
15859 lt_prog_compiler_pic='-fpic'
15860 lt_prog_compiler_static='-Bstatic'
15863 lt_prog_compiler_wl='-Wl,'
15864 # All Alpha code is PIC.
15865 lt_prog_compiler_static='-non_shared'
15867 xl* | bgxl* | bgf* | mpixl*)
15868 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15869 lt_prog_compiler_wl='-Wl,'
15870 lt_prog_compiler_pic='-qpic'
15871 lt_prog_compiler_static='-qstaticlink'
15874 case `$CC -V 2>&1 | sed 5q` in
15875 *Sun\ F* | *Sun*Fortran*)
15876 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15877 lt_prog_compiler_pic='-KPIC'
15878 lt_prog_compiler_static='-Bstatic'
15879 lt_prog_compiler_wl=''
15883 lt_prog_compiler_pic='-KPIC'
15884 lt_prog_compiler_static='-Bstatic'
15885 lt_prog_compiler_wl='-Wl,'
15893 lt_prog_compiler_pic='-KPIC'
15894 lt_prog_compiler_static='-Bstatic'
15898 # QNX uses GNU C++, but need to define -shared option too, otherwise
15899 # it will coredump.
15900 lt_prog_compiler_pic='-fPIC -shared'
15903 osf3* | osf4* | osf5*)
15904 lt_prog_compiler_wl='-Wl,'
15905 # All OSF/1 code is PIC.
15906 lt_prog_compiler_static='-non_shared'
15910 lt_prog_compiler_static='-non_shared'
15914 lt_prog_compiler_pic='-KPIC'
15915 lt_prog_compiler_static='-Bstatic'
15916 case $cc_basename in
15917 f77* | f90* | f95*)
15918 lt_prog_compiler_wl='-Qoption ld ';;
15920 lt_prog_compiler_wl='-Wl,';;
15925 lt_prog_compiler_wl='-Qoption ld '
15926 lt_prog_compiler_pic='-PIC'
15927 lt_prog_compiler_static='-Bstatic'
15930 sysv4 | sysv4.2uw2* | sysv4.3*)
15931 lt_prog_compiler_wl='-Wl,'
15932 lt_prog_compiler_pic='-KPIC'
15933 lt_prog_compiler_static='-Bstatic'
15937 if test -d /usr/nec ;then
15938 lt_prog_compiler_pic='-Kconform_pic'
15939 lt_prog_compiler_static='-Bstatic'
15943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15944 lt_prog_compiler_wl='-Wl,'
15945 lt_prog_compiler_pic='-KPIC'
15946 lt_prog_compiler_static='-Bstatic'
15950 lt_prog_compiler_wl='-Wl,'
15951 lt_prog_compiler_can_build_shared=no
15955 lt_prog_compiler_pic='-pic'
15956 lt_prog_compiler_static='-Bstatic'
15960 lt_prog_compiler_can_build_shared=no
15966 # For platforms which do not support PIC, -DPIC is meaningless:
15968 lt_prog_compiler_pic=
15971 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15975 $as_echo "$lt_prog_compiler_pic" >&6; }
15983 # Check to make sure the PIC flag actually works.
15985 if test -n "$lt_prog_compiler_pic"; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15987 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15988 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15989 $as_echo_n "(cached
) " >&6
15991 lt_cv_prog_compiler_pic_works=no
15992 ac_outfile=conftest.$ac_objext
15993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15994 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15995 # Insert the option either (1) after the last *FLAGS variable, or
15996 # (2) before a word containing "conftest.
", or (3) at the end.
15997 # Note that $ac_compile itself does not contain backslashes and begins
15998 # with a dollar sign (not a hyphen), so the echo should work correctly.
15999 # The option is referenced via a variable to avoid confusing sed.
16000 lt_compile=`echo "$ac_compile" | $SED \
16001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16003 -e 's:$: $lt_compiler_flag:'`
16004 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16005 (eval "$lt_compile" 2>conftest.err)
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16009 if (exit $ac_status) && test -s "$ac_outfile"; then
16010 # The compiler can only warn and ignore the option if not recognized
16011 # So say no if there are warnings other than the usual output.
16012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16014 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16015 lt_cv_prog_compiler_pic_works=yes
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16022 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16024 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16025 case $lt_prog_compiler_pic in
16027 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16030 lt_prog_compiler_pic=
16031 lt_prog_compiler_can_build_shared=no
16042 # Check to make sure the static flag actually works.
16044 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16046 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16047 if ${lt_cv_prog_compiler_static_works+:} false; then :
16048 $as_echo_n "(cached
) " >&6
16050 lt_cv_prog_compiler_static_works=no
16051 save_LDFLAGS="$LDFLAGS"
16052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16053 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16054 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16055 # The linker can only warn and ignore the option if not recognized
16056 # So say no if there are warnings
16057 if test -s conftest.err; then
16058 # Append any errors to the config.log.
16059 cat conftest.err 1>&5
16060 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16062 if diff conftest.exp conftest.er2 >/dev/null; then
16063 lt_cv_prog_compiler_static_works=yes
16066 lt_cv_prog_compiler_static_works=yes
16070 LDFLAGS="$save_LDFLAGS"
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16074 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16076 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16079 lt_prog_compiler_static=
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16089 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16090 if ${lt_cv_prog_compiler_c_o+:} false; then :
16091 $as_echo_n "(cached
) " >&6
16093 lt_cv_prog_compiler_c_o=no
16094 $RM -r conftest 2>/dev/null
16098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16100 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16101 # Insert the option either (1) after the last *FLAGS variable, or
16102 # (2) before a word containing "conftest.
", or (3) at the end.
16103 # Note that $ac_compile itself does not contain backslashes and begins
16104 # with a dollar sign (not a hyphen), so the echo should work correctly.
16105 lt_compile=`echo "$ac_compile" | $SED \
16106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16108 -e 's:$: $lt_compiler_flag:'`
16109 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16110 (eval "$lt_compile" 2>out/conftest.err)
16112 cat out/conftest.err >&5
16113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16116 # The compiler can only warn and ignore the option if not recognized
16117 # So say no if there are warnings
16118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16121 lt_cv_prog_compiler_c_o=yes
16126 # SGI C++ compiler will create directory out/ii_files/ for
16127 # template instantiation
16128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16129 $RM out/* && rmdir out
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16144 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16145 if ${lt_cv_prog_compiler_c_o+:} false; then :
16146 $as_echo_n "(cached
) " >&6
16148 lt_cv_prog_compiler_c_o=no
16149 $RM -r conftest 2>/dev/null
16153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16155 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16156 # Insert the option either (1) after the last *FLAGS variable, or
16157 # (2) before a word containing "conftest.
", or (3) at the end.
16158 # Note that $ac_compile itself does not contain backslashes and begins
16159 # with a dollar sign (not a hyphen), so the echo should work correctly.
16160 lt_compile=`echo "$ac_compile" | $SED \
16161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16163 -e 's:$: $lt_compiler_flag:'`
16164 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16165 (eval "$lt_compile" 2>out/conftest.err)
16167 cat out/conftest.err >&5
16168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16169 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16171 # The compiler can only warn and ignore the option if not recognized
16172 # So say no if there are warnings
16173 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16174 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16175 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16176 lt_cv_prog_compiler_c_o=yes
16181 # SGI C++ compiler will create directory out/ii_files/ for
16182 # template instantiation
16183 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16184 $RM out/* && rmdir out
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16191 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16196 hard_links="nottested
"
16197 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16198 # do not overwrite the value of need_locks provided by the user
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16200 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16205 ln conftest.a conftest.b 2>&5 || hard_links=no
16206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16208 $as_echo "$hard_links" >&6; }
16209 if test "$hard_links" = no; then
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16211 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16224 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16227 allow_undefined_flag=
16228 always_export_symbols=no
16230 archive_expsym_cmds=
16231 compiler_needs_object=no
16232 enable_shared_with_static_runtimes=no
16233 export_dynamic_flag_spec=
16234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16235 hardcode_automatic=no
16237 hardcode_direct_absolute=no
16238 hardcode_libdir_flag_spec=
16239 hardcode_libdir_flag_spec_ld=
16240 hardcode_libdir_separator=
16241 hardcode_minus_L=no
16242 hardcode_shlibpath_var=unsupported
16244 link_all_deplibs=unknown
16246 module_expsym_cmds=
16247 old_archive_from_new_cmds=
16248 old_archive_from_expsyms_cmds=
16249 thread_safe_flag_spec=
16250 whole_archive_flag_spec=
16251 # include_expsyms should be a list of space-separated symbols to be *always*
16252 # included in the symbol list
16254 # exclude_expsyms can be an extended regexp of symbols to exclude
16255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16257 # as well as any symbol that contains `d'.
16258 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16260 # platforms (ab)use it in PIC code, but their linkers get confused if
16261 # the symbol is explicitly referenced. Since portable code cannot
16262 # rely on this symbol name, it's probably fine to never include it in
16263 # preloaded symbol tables.
16264 # Exclude shared library initialization/finalization symbols.
16265 extract_expsyms_cmds=
16268 cygwin* | mingw* | pw32* | cegcc*)
16269 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16270 # When not using gcc, we currently assume that we are using
16271 # Microsoft Visual C++.
16272 if test "$GCC" != yes; then
16277 # we just hope/assume this is gcc and not c89 (= MSVC++)
16287 # On some targets, GNU ld is compatible enough with the native linker
16288 # that we're better off using the native interface for both.
16289 lt_use_gnu_ld_interface=no
16290 if test "$with_gnu_ld" = yes; then
16293 # The AIX port of GNU ld has always aspired to compatibility
16294 # with the native linker. However, as the warning in the GNU ld
16295 # block says, versions before 2.19.5* couldn't really create working
16296 # shared libraries, regardless of the interface used.
16297 case `$LD -v 2>&1` in
16298 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16299 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16300 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16302 lt_use_gnu_ld_interface=yes
16307 lt_use_gnu_ld_interface=yes
16312 if test "$lt_use_gnu_ld_interface" = yes; then
16313 # If archive_cmds runs LD, not CC, wlarc should be empty
16316 # Set some defaults for GNU ld with shared library support. These
16317 # are reset later if shared libraries are not supported. Putting them
16318 # here allows them to be overridden if necessary.
16319 runpath_var=LD_RUN_PATH
16320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16321 export_dynamic_flag_spec='${wl}--export-dynamic'
16322 # ancient GNU ld didn't support --whole-archive et. al.
16323 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16324 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16326 whole_archive_flag_spec=
16328 supports_anon_versioning=no
16329 case `$LD -v 2>&1` in
16330 *GNU\ gold*) supports_anon_versioning=yes ;;
16331 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16332 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16333 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16334 *\ 2.11.*) ;; # other 2.11 versions
16335 *) supports_anon_versioning=yes ;;
16338 # See if GNU ld supports shared libraries.
16341 # On AIX/PPC, the GNU linker is very broken
16342 if test "$host_cpu" != ia64; then
16346 *** Warning: the GNU linker, at least up to release 2.19, is reported
16347 *** to be unable to reliably create shared libraries on AIX.
16348 *** Therefore, libtool is disabling shared libraries support. If you
16349 *** really care for shared libraries, you may want to install binutils
16350 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16351 *** You will then need to restart the configuration process.
16360 # see comment about AmigaOS4 .so support
16361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16362 archive_expsym_cmds=''
16365 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)'
16366 hardcode_libdir_flag_spec
='-L$libdir'
16367 hardcode_minus_L
=yes
16373 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16374 allow_undefined_flag
=unsupported
16375 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16376 # support --undefined. This deserves some investigation. FIXME
16377 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16383 cygwin
* | mingw
* | pw32
* | cegcc
*)
16384 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16385 # as there is no search path for DLLs.
16386 hardcode_libdir_flag_spec
='-L$libdir'
16387 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16388 allow_undefined_flag
=unsupported
16389 always_export_symbols
=no
16390 enable_shared_with_static_runtimes
=yes
16391 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16393 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16394 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16395 # If the export-symbols file already is a .def file (1st line
16396 # is EXPORTS), use it as is; otherwise, prepend...
16397 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16398 cp $export_symbols $output_objdir/$soname.def;
16400 echo EXPORTS > $output_objdir/$soname.def;
16401 cat $export_symbols >> $output_objdir/$soname.def;
16403 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16410 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16411 link_all_deplibs
=yes
16416 hardcode_shlibpath_var
=no
16417 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16418 export_dynamic_flag_spec
='${wl}-E'
16419 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16420 # Instead, shared libraries are loaded at an image base (0x10000000 by
16421 # default) and relocated if they conflict, which is a slow very memory
16422 # consuming and fragmenting process. To avoid this, we pick a random,
16423 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16424 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16425 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16426 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'
16429 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16431 if test "$host_os" = linux-dietlibc
; then
16432 case $cc_basename in
16433 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16436 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16437 && test "$tmp_diet" = no
16439 tmp_addflag
=' $pic_flag'
16440 tmp_sharedflag
='-shared'
16441 case $cc_basename,$host_cpu in
16442 pgcc
*) # Portland Group C compiler
16443 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'
16444 tmp_addflag
=' $pic_flag'
16446 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16447 # Portland Group f77 and f90 compilers
16448 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'
16449 tmp_addflag
=' $pic_flag -Mnomain' ;;
16450 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16451 tmp_addflag
=' -i_dynamic' ;;
16452 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16453 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16454 ifc
* | ifort
*) # Intel Fortran compiler
16455 tmp_addflag
=' -nofor_main' ;;
16456 lf95
*) # Lahey Fortran 8.1
16457 whole_archive_flag_spec
=
16458 tmp_sharedflag
='--shared' ;;
16459 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16460 tmp_sharedflag
='-qmkshrobj'
16462 nvcc
*) # Cuda Compiler Driver 2.2
16463 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'
16464 compiler_needs_object
=yes
16467 case `$CC -V 2>&1 | sed 5q` in
16468 *Sun\ C
*) # Sun C 5.9
16469 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'
16470 compiler_needs_object
=yes
16471 tmp_sharedflag
='-G' ;;
16472 *Sun\ F
*) # Sun Fortran 8.3
16473 tmp_sharedflag
='-G' ;;
16475 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16477 if test "x$supports_anon_versioning" = xyes
; then
16478 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16479 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16480 echo "local: *; };" >> $output_objdir/$libname.ver~
16481 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16484 case $cc_basename in
16485 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16486 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16487 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16488 hardcode_libdir_flag_spec
=
16489 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16490 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16491 if test "x$supports_anon_versioning" = xyes
; then
16492 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16493 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16494 echo "local: *; };" >> $output_objdir/$libname.ver~
16495 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16505 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16506 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16509 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16510 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16515 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16520 *** create shared libraries on Solaris systems. Therefore, libtool
16521 *** is disabling shared libraries support. We urge you to upgrade GNU
16522 *** binutils to release 2.9.1 or newer. Another option is to modify
16523 *** your PATH or compiler configuration so that the native linker is
16524 *** used, and then restart.
16527 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16528 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16529 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16535 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16536 case `$LD -v 2>&1` in
16537 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16542 *** reliably create shared libraries on SCO systems. Therefore, libtool
16543 *** is disabling shared libraries support. We urge you to upgrade GNU
16544 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16545 *** your PATH or compiler configuration so that the native linker is
16546 *** used, and then restart.
16551 # For security reasons, it is highly recommended that you always
16552 # use absolute paths for naming shared libraries, and exclude the
16553 # DT_RUNPATH tag from executables and libraries. But doing so
16554 # requires that you compile everything twice, which is a pain.
16555 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16556 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16557 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16558 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16567 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16569 hardcode_direct
=yes
16570 hardcode_shlibpath_var
=no
16574 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16575 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16576 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16583 if test "$ld_shlibs" = no
; then
16585 hardcode_libdir_flag_spec
=
16586 export_dynamic_flag_spec
=
16587 whole_archive_flag_spec
=
16590 # PORTME fill in a description of your system's linker (not GNU ld)
16593 allow_undefined_flag
=unsupported
16594 always_export_symbols
=yes
16595 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'
16596 # Note: this linker hardcodes the directories in LIBPATH if there
16597 # are no directories specified by -L.
16598 hardcode_minus_L
=yes
16599 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16600 # Neither direct hardcoding nor static linking is supported with a
16602 hardcode_direct
=unsupported
16607 if test "$host_cpu" = ia64
; then
16608 # On IA64, the linker does run time linking by default, so we don't
16609 # have to do anything special.
16610 aix_use_runtimelinking
=no
16611 exp_sym_flag
='-Bexport'
16614 # If we're using GNU nm, then we don't want the "-C" option.
16615 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16616 # Also, AIX nm treats weak defined symbols like other global
16617 # defined symbols, whereas GNU nm marks them as "W".
16618 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16619 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'
16621 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'
16623 aix_use_runtimelinking
=no
16625 # Test if we are trying to use run time linking or normal
16626 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16627 # need to do runtime linking.
16628 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16629 for ld_flag
in $LDFLAGS; do
16630 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16631 aix_use_runtimelinking
=yes
16638 exp_sym_flag
='-bexport'
16639 no_entry_flag
='-bnoentry'
16642 # When large executables or shared objects are built, AIX ld can
16643 # have problems creating the table of contents. If linking a library
16644 # or program results in "error TOC overflow" add -mminimal-toc to
16645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16649 hardcode_direct
=yes
16650 hardcode_direct_absolute
=yes
16651 hardcode_libdir_separator
=':'
16652 link_all_deplibs
=yes
16653 file_list_spec
='${wl}-f,'
16655 if test "$GCC" = yes; then
16656 case $host_os in aix4.
[012]|aix4.
[012].
*)
16657 # We only want to do this on AIX 4.2 and lower, the check
16658 # below for broken collect2 doesn't work under 4.3+
16659 collect2name
=`${CC} -print-prog-name=collect2`
16660 if test -f "$collect2name" &&
16661 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16663 # We have reworked collect2
16666 # We have old collect2
16667 hardcode_direct
=unsupported
16668 # It fails to find uninstalled libraries when the uninstalled
16669 # path is not listed in the libpath. Setting hardcode_minus_L
16670 # to unsupported forces relinking
16671 hardcode_minus_L
=yes
16672 hardcode_libdir_flag_spec
='-L$libdir'
16673 hardcode_libdir_separator
=
16677 shared_flag
='-shared'
16678 if test "$aix_use_runtimelinking" = yes; then
16679 shared_flag
="$shared_flag "'${wl}-G'
16683 if test "$host_cpu" = ia64
; then
16684 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16685 # chokes on -Wl,-G. The following line is correct:
16688 if test "$aix_use_runtimelinking" = yes; then
16689 shared_flag
='${wl}-G'
16691 shared_flag
='${wl}-bM:SRE'
16696 export_dynamic_flag_spec
='${wl}-bexpall'
16697 # It seems that -bexpall does not export symbols beginning with
16698 # underscore (_), so it is better to generate a list of symbols to export.
16699 always_export_symbols
=yes
16700 if test "$aix_use_runtimelinking" = yes; then
16701 # Warning - without using the other runtime loading flags (-brtl),
16702 # -berok will link without error, but may produce a broken library.
16703 allow_undefined_flag
='-berok'
16704 # Determine the default libpath from the value encoded in an
16705 # empty executable.
16706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16717 if ac_fn_c_try_link
"$LINENO"; then :
16719 lt_aix_libpath_sed
='
16720 /Import File Strings/,/^$/ {
16726 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16727 # Check for a 64-bit object if we didn't find anything.
16728 if test -z "$aix_libpath"; then
16729 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16732 rm -f core conftest.err conftest.
$ac_objext \
16733 conftest
$ac_exeext conftest.
$ac_ext
16734 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16736 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16737 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"
16739 if test "$host_cpu" = ia64
; then
16740 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16741 allow_undefined_flag
="-z nodefs"
16742 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"
16744 # Determine the default libpath from the value encoded in an
16745 # empty executable.
16746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16757 if ac_fn_c_try_link
"$LINENO"; then :
16759 lt_aix_libpath_sed
='
16760 /Import File Strings/,/^$/ {
16766 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16767 # Check for a 64-bit object if we didn't find anything.
16768 if test -z "$aix_libpath"; then
16769 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16772 rm -f core conftest.err conftest.
$ac_objext \
16773 conftest
$ac_exeext conftest.
$ac_ext
16774 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16776 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16777 # Warning - without using the other run time loading flags,
16778 # -berok will link without error, but may produce a broken library.
16779 no_undefined_flag
=' ${wl}-bernotok'
16780 allow_undefined_flag
=' ${wl}-berok'
16781 if test "$with_gnu_ld" = yes; then
16782 # We only use this code for GNU lds that support --whole-archive.
16783 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16785 # Exported symbols can be pulled into shared objects from archives
16786 whole_archive_flag_spec
='$convenience'
16788 archive_cmds_need_lc
=yes
16789 # This is similar to how AIX traditionally builds its shared libraries.
16790 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'
16798 # see comment about AmigaOS4 .so support
16799 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16800 archive_expsym_cmds
=''
16803 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)'
16804 hardcode_libdir_flag_spec
='-L$libdir'
16805 hardcode_minus_L
=yes
16811 export_dynamic_flag_spec
=-rdynamic
16814 cygwin
* | mingw
* | pw32
* | cegcc
*)
16815 # When not using gcc, we currently assume that we are using
16816 # Microsoft Visual C++.
16817 # hardcode_libdir_flag_spec is actually meaningless, as there is
16818 # no search path for DLLs.
16819 hardcode_libdir_flag_spec
=' '
16820 allow_undefined_flag
=unsupported
16821 # Tell ltmain to make .lib files, not .a files.
16823 # Tell ltmain to make .dll files, not .so files.
16825 # FIXME: Setting linknames here is a bad hack.
16826 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16827 # The linker will automatically build a .lib file if we build a DLL.
16828 old_archive_from_new_cmds
='true'
16829 # FIXME: Should let the user specify the lib program.
16830 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16831 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16832 enable_shared_with_static_runtimes
=yes
16835 darwin
* | rhapsody
*)
16838 archive_cmds_need_lc
=no
16840 hardcode_automatic
=yes
16841 hardcode_shlibpath_var
=unsupported
16842 if test "$lt_cv_ld_force_load" = "yes"; then
16843 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\"`'
16845 whole_archive_flag_spec
=''
16847 link_all_deplibs
=yes
16848 allow_undefined_flag
="$_lt_dar_allow_undefined"
16849 case $cc_basename in
16850 ifort
*) _lt_dar_can_shared
=yes ;;
16851 *) _lt_dar_can_shared
=$GCC ;;
16853 if test "$_lt_dar_can_shared" = "yes"; then
16854 output_verbose_link_cmd
=func_echo_all
16855 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16856 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16857 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}"
16858 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}"
16867 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16868 hardcode_libdir_flag_spec
='-L$libdir'
16869 hardcode_shlibpath_var
=no
16872 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16873 # support. Future versions do this automatically, but an explicit c++rt0.o
16874 # does not break anything, and helps significantly (at the cost of a little
16877 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16878 hardcode_libdir_flag_spec
='-R$libdir'
16879 hardcode_direct
=yes
16880 hardcode_shlibpath_var
=no
16883 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16885 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16886 hardcode_direct
=yes
16887 hardcode_minus_L
=yes
16888 hardcode_shlibpath_var
=no
16891 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16892 freebsd
* | dragonfly
*)
16893 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16894 hardcode_libdir_flag_spec
='-R$libdir'
16895 hardcode_direct
=yes
16896 hardcode_shlibpath_var
=no
16900 if test "$GCC" = yes; then
16901 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'
16903 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'
16905 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16906 hardcode_libdir_separator
=:
16907 hardcode_direct
=yes
16909 # hardcode_minus_L: Not really in the search PATH,
16910 # but as the default location of the library.
16911 hardcode_minus_L
=yes
16912 export_dynamic_flag_spec
='${wl}-E'
16916 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16917 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16919 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16921 if test "$with_gnu_ld" = no
; then
16922 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16923 hardcode_libdir_flag_spec_ld
='+b $libdir'
16924 hardcode_libdir_separator
=:
16925 hardcode_direct
=yes
16926 hardcode_direct_absolute
=yes
16927 export_dynamic_flag_spec
='${wl}-E'
16928 # hardcode_minus_L: Not really in the search PATH,
16929 # but as the default location of the library.
16930 hardcode_minus_L
=yes
16935 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16938 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16941 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16950 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16953 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16957 # Older versions of the 11.00 compiler do not understand -b yet
16958 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16960 $as_echo_n "checking if $CC understands -b... " >&6; }
16961 if ${lt_cv_prog_compiler__b+:} false
; then :
16962 $as_echo_n "(cached) " >&6
16964 lt_cv_prog_compiler__b
=no
16965 save_LDFLAGS
="$LDFLAGS"
16966 LDFLAGS
="$LDFLAGS -b"
16967 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16968 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16969 # The linker can only warn and ignore the option if not recognized
16970 # So say no if there are warnings
16971 if test -s conftest.err
; then
16972 # Append any errors to the config.log.
16973 cat conftest.err
1>&5
16974 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16975 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16976 if diff conftest.exp conftest.er2
>/dev
/null
; then
16977 lt_cv_prog_compiler__b
=yes
16980 lt_cv_prog_compiler__b
=yes
16984 LDFLAGS
="$save_LDFLAGS"
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16988 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16990 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16991 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16993 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16999 if test "$with_gnu_ld" = no
; then
17000 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17001 hardcode_libdir_separator
=:
17006 hardcode_shlibpath_var
=no
17009 hardcode_direct
=yes
17010 hardcode_direct_absolute
=yes
17011 export_dynamic_flag_spec
='${wl}-E'
17013 # hardcode_minus_L: Not really in the search PATH,
17014 # but as the default location of the library.
17015 hardcode_minus_L
=yes
17021 irix5
* | irix6
* | nonstopux
*)
17022 if test "$GCC" = yes; then
17023 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'
17024 # Try to use the -exported_symbol ld option, if it does not
17025 # work, assume that -exports_file does not work either and
17026 # implicitly export all symbols.
17027 save_LDFLAGS
="$LDFLAGS"
17028 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17033 if ac_fn_c_try_link
"$LINENO"; then :
17034 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'
17037 rm -f core conftest.err conftest.
$ac_objext \
17038 conftest
$ac_exeext conftest.
$ac_ext
17039 LDFLAGS
="$save_LDFLAGS"
17041 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'
17042 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'
17044 archive_cmds_need_lc
='no'
17045 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17046 hardcode_libdir_separator
=:
17048 link_all_deplibs
=yes
17052 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17053 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17055 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17057 hardcode_libdir_flag_spec
='-R$libdir'
17058 hardcode_direct
=yes
17059 hardcode_shlibpath_var
=no
17063 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17064 hardcode_direct
=yes
17065 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17066 hardcode_libdir_separator
=:
17067 hardcode_shlibpath_var
=no
17074 if test -f /usr
/libexec
/ld.so
; then
17075 hardcode_direct
=yes
17076 hardcode_shlibpath_var
=no
17077 hardcode_direct_absolute
=yes
17078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17079 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17080 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17081 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17082 export_dynamic_flag_spec
='${wl}-E'
17085 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17086 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17087 hardcode_libdir_flag_spec
='-R$libdir'
17090 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17091 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17101 hardcode_libdir_flag_spec
='-L$libdir'
17102 hardcode_minus_L
=yes
17103 allow_undefined_flag
=unsupported
17104 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'
17105 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17109 if test "$GCC" = yes; then
17110 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17111 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'
17113 allow_undefined_flag
=' -expect_unresolved \*'
17114 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'
17116 archive_cmds_need_lc
='no'
17117 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17118 hardcode_libdir_separator
=:
17121 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17122 if test "$GCC" = yes; then
17123 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17124 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'
17125 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17127 allow_undefined_flag
=' -expect_unresolved \*'
17128 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'
17129 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~
17130 $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'
17132 # Both c and cxx compiler support -rpath directly
17133 hardcode_libdir_flag_spec
='-rpath $libdir'
17135 archive_cmds_need_lc
='no'
17136 hardcode_libdir_separator
=:
17140 no_undefined_flag
=' -z defs'
17141 if test "$GCC" = yes; then
17143 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17144 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17145 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17147 case `$CC -V 2>&1` in
17150 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17151 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17152 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17156 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17157 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17158 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17162 hardcode_libdir_flag_spec
='-R$libdir'
17163 hardcode_shlibpath_var
=no
17165 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17167 # The compiler driver will combine and reorder linker options,
17168 # but understands `-z linker_flag'. GCC discards it without `$wl',
17169 # but is careful enough not to reorder.
17170 # Supported since Solaris 2.6 (maybe 2.5.1?)
17171 if test "$GCC" = yes; then
17172 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17174 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17178 link_all_deplibs
=yes
17182 if test "x$host_vendor" = xsequent
; then
17183 # Use $CC to link under sequent, because it throws in some extra .o
17184 # files that make .init and .fini sections work.
17185 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17187 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17189 hardcode_libdir_flag_spec
='-L$libdir'
17190 hardcode_direct
=yes
17191 hardcode_minus_L
=yes
17192 hardcode_shlibpath_var
=no
17196 case $host_vendor in
17198 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17199 hardcode_direct
=yes # is this really true???
17202 ## LD is ld it makes a PLAMLIB
17203 ## CC just makes a GrossModule.
17204 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17205 reload_cmds
='$CC -r -o $output$reload_objs'
17209 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17210 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17213 runpath_var
='LD_RUN_PATH'
17214 hardcode_shlibpath_var
=no
17218 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_shlibpath_var
=no
17220 export_dynamic_flag_spec
='-Bexport'
17224 if test -d /usr
/nec
; then
17225 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226 hardcode_shlibpath_var
=no
17227 runpath_var
=LD_RUN_PATH
17228 hardcode_runpath_var
=yes
17233 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17234 no_undefined_flag
='${wl}-z,text'
17235 archive_cmds_need_lc
=no
17236 hardcode_shlibpath_var
=no
17237 runpath_var
='LD_RUN_PATH'
17239 if test "$GCC" = yes; then
17240 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17241 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17243 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17244 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17248 sysv5
* | sco3.2v5
* | sco5v6
*)
17249 # Note: We can NOT use -z defs as we might desire, because we do not
17250 # link with -lc, and that would cause any symbols used from libc to
17251 # always be unresolved, which means just about no library would
17252 # ever link correctly. If we're not using GNU ld we use -z text
17253 # though, which does catch some bad symbols but isn't as heavy-handed
17255 no_undefined_flag
='${wl}-z,text'
17256 allow_undefined_flag
='${wl}-z,nodefs'
17257 archive_cmds_need_lc
=no
17258 hardcode_shlibpath_var
=no
17259 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17260 hardcode_libdir_separator
=':'
17261 link_all_deplibs
=yes
17262 export_dynamic_flag_spec
='${wl}-Bexport'
17263 runpath_var
='LD_RUN_PATH'
17265 if test "$GCC" = yes; then
17266 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17267 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17269 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17270 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17275 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17276 hardcode_libdir_flag_spec
='-L$libdir'
17277 hardcode_shlibpath_var
=no
17285 if test x
$host_vendor = xsni
; then
17287 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17288 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17295 $as_echo "$ld_shlibs" >&6; }
17296 test "$ld_shlibs" = no
&& can_build_shared
=no
17298 with_gnu_ld
=$with_gnu_ld
17315 # Do we need to explicitly link libc?
17317 case "x$archive_cmds_need_lc" in
17319 # Assume -lc should be added
17320 archive_cmds_need_lc
=yes
17322 if test "$enable_shared" = yes && test "$GCC" = yes; then
17323 case $archive_cmds in
17325 # FIXME: we may have to deal with multi-command sequences.
17328 # Test whether the compiler implicitly links with -lc since on some
17329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17330 # to ld, don't add -lc before -lgcc.
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17332 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17333 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17334 $as_echo_n "(cached) " >&6
17337 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17340 (eval $ac_compile) 2>&5
17342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17343 test $ac_status = 0; } 2>conftest.err
; then
17346 libobjs
=conftest.
$ac_objext
17348 wl
=$lt_prog_compiler_wl
17349 pic_flag
=$lt_prog_compiler_pic
17355 lt_save_allow_undefined_flag
=$allow_undefined_flag
17356 allow_undefined_flag
=
17357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17358 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17361 test $ac_status = 0; }
17363 lt_cv_archive_cmds_need_lc
=no
17365 lt_cv_archive_cmds_need_lc
=yes
17367 allow_undefined_flag
=$lt_save_allow_undefined_flag
17369 cat conftest.err
1>&5
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17375 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17376 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17540 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17542 if test "$GCC" = yes; then
17544 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17545 *) lt_awk_arg
="/^libraries:/" ;;
17548 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17549 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17551 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17552 case $lt_search_path_spec in
17554 # if the path contains ";" then we assume it to be the separator
17555 # otherwise default to the standard path separator (i.e. ":") - it is
17556 # assumed that no part of a normal pathname contains ";" but that should
17557 # okay in the real world where ";" in dirpaths is itself problematic.
17558 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17561 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17564 # Ok, now we have the path, separated by spaces, we can step through it
17565 # and add multilib dir if necessary.
17566 lt_tmp_lt_search_path_spec
=
17567 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17568 for lt_sys_path
in $lt_search_path_spec; do
17569 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17570 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17572 test -d "$lt_sys_path" && \
17573 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17576 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17577 BEGIN {RS=" "; FS="/|\n";} {
17580 for (lt_i = NF; lt_i > 0; lt_i--) {
17581 if ($lt_i != "" && $lt_i != ".") {
17582 if ($lt_i == "..") {
17585 if (lt_count == 0) {
17586 lt_foo="/" $lt_i lt_foo;
17593 if (lt_foo != "") { lt_freq[lt_foo]++; }
17594 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17596 # AWK program above erroneously prepends '/' to C:/dos/paths
17599 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17600 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17602 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17604 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17606 library_names_spec
=
17607 libname_spec
='lib$name'
17611 postuninstall_cmds
=
17615 shlibpath_overrides_runpath
=unknown
17617 dynamic_linker
="$host_os ld.so"
17618 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17619 need_lib_prefix
=unknown
17620 hardcode_into_libs
=no
17622 # when you set need_version to no, make sure it does not cause -set_version
17623 # flags to be left without arguments
17624 need_version
=unknown
17629 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17630 shlibpath_var
=LIBPATH
17632 # AIX 3 has no versioning support, so we append a major version to the name.
17633 soname_spec
='${libname}${release}${shared_ext}$major'
17640 hardcode_into_libs
=yes
17641 if test "$host_cpu" = ia64
; then
17642 # AIX 5 supports IA64
17643 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17644 shlibpath_var
=LD_LIBRARY_PATH
17646 # With GCC up to 2.95.x, collect2 would create an import file
17647 # for dependence libraries. The import file would start with
17648 # the line `#! .'. This would cause the generated library to
17649 # depend on `.', always an invalid library. This was fixed in
17650 # development snapshots of GCC prior to 3.0.
17652 aix4 | aix4.
[01] | aix4.
[01].
*)
17653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17655 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17658 can_build_shared
=no
17662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17663 # soname into executable. Probably we can add versioning support to
17664 # collect2, so additional links can be useful in future.
17665 if test "$aix_use_runtimelinking" = yes; then
17666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17667 # instead of lib<name>.a to let people know that these are not
17668 # typical AIX shared libraries.
17669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671 # We preserve .a as extension for shared libraries through AIX4.2
17672 # and later when we are not doing run time linking.
17673 library_names_spec
='${libname}${release}.a $libname.a'
17674 soname_spec
='${libname}${release}${shared_ext}$major'
17676 shlibpath_var
=LIBPATH
17683 # Since July 2007 AmigaOS4 officially supports .so libraries.
17684 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17688 library_names_spec
='$libname.ixlibrary $libname.a'
17689 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17690 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'
17696 library_names_spec
='${libname}${shared_ext}'
17697 dynamic_linker
="$host_os ld.so"
17698 shlibpath_var
=LIBRARY_PATH
17704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17705 soname_spec
='${libname}${release}${shared_ext}$major'
17706 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17707 shlibpath_var
=LD_LIBRARY_PATH
17708 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17709 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17710 # the default ld.so.conf also contains /usr/contrib/lib and
17711 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17712 # libtool to hard-code these into programs
17715 cygwin
* | mingw
* | pw32
* | cegcc
*)
17716 version_type
=windows
17721 case $GCC,$host_os in
17722 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17723 library_names_spec
='$libname.dll.a'
17724 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17725 postinstall_cmds
='base_file=`basename \${file}`~
17726 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17727 dldir=$destdir/`dirname \$dlpath`~
17728 test -d \$dldir || mkdir -p \$dldir~
17729 $install_prog $dir/$dlname \$dldir/$dlname~
17730 chmod a+x \$dldir/$dlname~
17731 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17732 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17734 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17735 dlpath=$dir/\$dldll~
17737 shlibpath_overrides_runpath
=yes
17741 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17742 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17744 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17747 # MinGW DLLs use traditional 'lib' prefix
17748 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17751 # pw32 DLLs use 'pw' prefix rather than 'lib'
17752 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17758 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17761 dynamic_linker
='Win32 ld.exe'
17762 # FIXME: first we should search . and the directory the executable is in
17766 darwin
* | rhapsody
*)
17767 dynamic_linker
="$host_os dyld"
17768 version_type
=darwin
17771 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17772 soname_spec
='${libname}${release}${major}$shared_ext'
17773 shlibpath_overrides_runpath
=yes
17774 shlibpath_var
=DYLD_LIBRARY_PATH
17775 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17777 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17778 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17786 soname_spec
='${libname}${release}${shared_ext}$major'
17787 shlibpath_var
=LD_LIBRARY_PATH
17790 freebsd
* | dragonfly
*)
17791 # DragonFly does not have aout. When/if they implement a new
17792 # versioning mechanism, adjust this.
17793 if test -x /usr
/bin
/objformat
; then
17794 objformat
=`/usr/bin/objformat`
17797 freebsd
[23].
*) objformat
=aout
;;
17798 *) objformat
=elf
;;
17801 version_type
=freebsd-
$objformat
17802 case $version_type in
17804 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17809 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17813 shlibpath_var
=LD_LIBRARY_PATH
17816 shlibpath_overrides_runpath
=yes
17818 freebsd3.
[01]* | freebsdelf3.
[01]*)
17819 shlibpath_overrides_runpath
=yes
17820 hardcode_into_libs
=yes
17822 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17823 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17824 shlibpath_overrides_runpath
=no
17825 hardcode_into_libs
=yes
17827 *) # from 4.6 on, and DragonFly
17828 shlibpath_overrides_runpath
=yes
17829 hardcode_into_libs
=yes
17838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17839 soname_spec
='${libname}${release}${shared_ext}$major'
17840 shlibpath_var
=LD_LIBRARY_PATH
17841 hardcode_into_libs
=yes
17848 dynamic_linker
="$host_os runtime_loader"
17849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17850 soname_spec
='${libname}${release}${shared_ext}$major'
17851 shlibpath_var
=LIBRARY_PATH
17852 shlibpath_overrides_runpath
=yes
17853 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17854 hardcode_into_libs
=yes
17857 hpux9
* | hpux10
* | hpux11
*)
17858 # Give a soname corresponding to the major version so that dld.sl refuses to
17859 # link against other versions.
17866 hardcode_into_libs
=yes
17867 dynamic_linker
="$host_os dld.so"
17868 shlibpath_var
=LD_LIBRARY_PATH
17869 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 soname_spec
='${libname}${release}${shared_ext}$major'
17872 if test "X$HPUX_IA64_MODE" = X32
; then
17873 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17875 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17877 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17881 hardcode_into_libs
=yes
17882 dynamic_linker
="$host_os dld.sl"
17883 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17884 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 soname_spec
='${libname}${release}${shared_ext}$major'
17887 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17888 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17892 dynamic_linker
="$host_os dld.sl"
17893 shlibpath_var
=SHLIB_PATH
17894 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 soname_spec
='${libname}${release}${shared_ext}$major'
17899 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17900 postinstall_cmds
='chmod 555 $lib'
17901 # or fails outright, so override atomically:
17902 install_override_mode
=555
17909 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17910 soname_spec
='${libname}${release}${shared_ext}$major'
17911 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17912 shlibpath_var
=LD_LIBRARY_PATH
17913 shlibpath_overrides_runpath
=no
17914 hardcode_into_libs
=yes
17917 irix5
* | irix6
* | nonstopux
*)
17919 nonstopux
*) version_type
=nonstopux
;;
17921 if test "$lt_cv_prog_gnu_ld" = yes; then
17929 soname_spec
='${libname}${release}${shared_ext}$major'
17930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17932 irix5
* | nonstopux
*)
17933 libsuff
= shlibsuff
=
17936 case $LD in # libtool.m4 will add one of these switches to LD
17937 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17938 libsuff
= shlibsuff
= libmagic
=32-bit;;
17939 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17940 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17941 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17942 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17943 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17947 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17948 shlibpath_overrides_runpath
=no
17949 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17950 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17951 hardcode_into_libs
=yes
17954 # No shared lib support for Linux oldld, aout, or coff.
17955 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17959 # This must be Linux ELF.
17960 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 soname_spec
='${libname}${release}${shared_ext}$major'
17966 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17967 shlibpath_var
=LD_LIBRARY_PATH
17968 shlibpath_overrides_runpath
=no
17970 # Some binutils ld are patched to set DT_RUNPATH
17971 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
17972 $as_echo_n "(cached) " >&6
17974 lt_cv_shlibpath_overrides_runpath
=no
17975 save_LDFLAGS
=$LDFLAGS
17976 save_libdir
=$libdir
17977 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17978 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17990 if ac_fn_c_try_link
"$LINENO"; then :
17991 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17992 lt_cv_shlibpath_overrides_runpath
=yes
17995 rm -f core conftest.err conftest.
$ac_objext \
17996 conftest
$ac_exeext conftest.
$ac_ext
17997 LDFLAGS
=$save_LDFLAGS
17998 libdir
=$save_libdir
18002 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18004 # This implies no fast_install, which is unacceptable.
18005 # Some rework will be needed to allow for fast_install
18006 # before this can be enabled.
18007 hardcode_into_libs
=yes
18009 # Append ld.so.conf contents to the search path
18010 if test -f /etc
/ld.so.conf
; then
18011 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' ' '`
18012 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18015 # We used to test for /lib/ld.so.1 and disable shared libraries on
18016 # powerpc, because MkLinux only supported shared libraries with the
18017 # GNU dynamic linker. Since this was broken with cross compilers,
18018 # most powerpc-linux boxes support dynamic linking these days and
18019 # people can always --disable-shared, the test was removed, and we
18020 # assume the GNU/Linux dynamic linker is in use.
18021 dynamic_linker
='GNU/Linux ld.so'
18028 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18030 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18031 dynamic_linker
='NetBSD (a.out) ld.so'
18033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18034 soname_spec
='${libname}${release}${shared_ext}$major'
18035 dynamic_linker
='NetBSD ld.elf_so'
18037 shlibpath_var
=LD_LIBRARY_PATH
18038 shlibpath_overrides_runpath
=yes
18039 hardcode_into_libs
=yes
18044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18045 shlibpath_var
=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath
=yes
18053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 soname_spec
='${libname}${release}${shared_ext}$major'
18055 shlibpath_var
=LD_LIBRARY_PATH
18056 shlibpath_overrides_runpath
=no
18057 hardcode_into_libs
=yes
18058 dynamic_linker
='ldqnx.so'
18063 sys_lib_dlsearch_path_spec
="/usr/lib"
18065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18067 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18068 *) need_version
=no
;;
18070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18071 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18072 shlibpath_var
=LD_LIBRARY_PATH
18073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18075 openbsd2.
[89] | openbsd2.
[89].
*)
18076 shlibpath_overrides_runpath
=no
18079 shlibpath_overrides_runpath
=yes
18083 shlibpath_overrides_runpath
=yes
18088 libname_spec
='$name'
18091 library_names_spec
='$libname${shared_ext} $libname.a'
18092 dynamic_linker
='OS/2 ld.exe'
18093 shlibpath_var
=LIBPATH
18096 osf3
* | osf4
* | osf5
*)
18100 soname_spec
='${libname}${release}${shared_ext}$major'
18101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18102 shlibpath_var
=LD_LIBRARY_PATH
18103 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18104 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18115 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18116 soname_spec
='${libname}${release}${shared_ext}$major'
18117 shlibpath_var
=LD_LIBRARY_PATH
18118 shlibpath_overrides_runpath
=yes
18119 hardcode_into_libs
=yes
18120 # ldd complains unless libraries are executable
18121 postinstall_cmds
='chmod +x $lib'
18126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18127 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18128 shlibpath_var
=LD_LIBRARY_PATH
18129 shlibpath_overrides_runpath
=yes
18130 if test "$with_gnu_ld" = yes; then
18138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18139 soname_spec
='${libname}${release}${shared_ext}$major'
18140 shlibpath_var
=LD_LIBRARY_PATH
18141 case $host_vendor in
18143 shlibpath_overrides_runpath
=no
18145 runpath_var
=LD_RUN_PATH
18153 shlibpath_overrides_runpath
=no
18154 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18160 if test -d /usr
/nec
;then
18162 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18163 soname_spec
='$libname${shared_ext}.$major'
18164 shlibpath_var
=LD_LIBRARY_PATH
18168 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18169 version_type
=freebsd-elf
18172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18173 soname_spec
='${libname}${release}${shared_ext}$major'
18174 shlibpath_var
=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath
=yes
18176 hardcode_into_libs
=yes
18177 if test "$with_gnu_ld" = yes; then
18178 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18180 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18183 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18187 sys_lib_dlsearch_path_spec
='/usr/lib'
18191 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196 shlibpath_var
=LD_LIBRARY_PATH
18197 shlibpath_overrides_runpath
=no
18198 hardcode_into_libs
=yes
18203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204 soname_spec
='${libname}${release}${shared_ext}$major'
18205 shlibpath_var
=LD_LIBRARY_PATH
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18213 $as_echo "$dynamic_linker" >&6; }
18214 test "$dynamic_linker" = no
&& can_build_shared
=no
18216 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18217 if test "$GCC" = yes; then
18218 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18221 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18222 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18224 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18225 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18320 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18322 if test -n "$hardcode_libdir_flag_spec" ||
18323 test -n "$runpath_var" ||
18324 test "X$hardcode_automatic" = "Xyes" ; then
18326 # We can hardcode non-existent directories.
18327 if test "$hardcode_direct" != no
&&
18328 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18329 # have to relink, otherwise we might link with an installed library
18330 # when we should be linking with a yet-to-be-installed one
18331 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18332 test "$hardcode_minus_L" != no
; then
18333 # Linking always hardcodes the temporary library directory.
18334 hardcode_action
=relink
18336 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18337 hardcode_action
=immediate
18340 # We cannot hardcode anything, or else we can only hardcode existing
18342 hardcode_action
=unsupported
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18345 $as_echo "$hardcode_action" >&6; }
18347 if test "$hardcode_action" = relink ||
18348 test "$inherit_rpath" = yes; then
18349 # Fast installation is not supported
18350 enable_fast_install
=no
18351 elif test "$shlibpath_overrides_runpath" = yes ||
18352 test "$enable_shared" = no
; then
18353 # Fast installation is not necessary
18354 enable_fast_install
=needless
18362 if test "x$enable_dlopen" != xyes
; then
18363 enable_dlopen
=unknown
18364 enable_dlopen_self
=unknown
18365 enable_dlopen_self_static
=unknown
18372 lt_cv_dlopen
="load_add_on"
18374 lt_cv_dlopen_self
=yes
18377 mingw
* | pw32
* | cegcc
*)
18378 lt_cv_dlopen
="LoadLibrary"
18383 lt_cv_dlopen
="dlopen"
18388 # if libdl is installed we need to link against it
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18390 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18391 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18392 $as_echo_n "(cached) " >&6
18394 ac_check_lib_save_LIBS
=$LIBS
18396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18399 /* Override any GCC internal prototype to avoid an error.
18400 Use char because int might match the return type of a GCC
18401 builtin and then its argument prototype would still apply. */
18414 if ac_fn_c_try_link
"$LINENO"; then :
18415 ac_cv_lib_dl_dlopen
=yes
18417 ac_cv_lib_dl_dlopen
=no
18419 rm -f core conftest.err conftest.
$ac_objext \
18420 conftest
$ac_exeext conftest.
$ac_ext
18421 LIBS
=$ac_check_lib_save_LIBS
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18424 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18425 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18426 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18429 lt_cv_dlopen
="dyld"
18431 lt_cv_dlopen_self
=yes
18438 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18439 if test "x$ac_cv_func_shl_load" = xyes
; then :
18440 lt_cv_dlopen
="shl_load"
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18443 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18444 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18445 $as_echo_n "(cached) " >&6
18447 ac_check_lib_save_LIBS
=$LIBS
18449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18452 /* Override any GCC internal prototype to avoid an error.
18453 Use char because int might match the return type of a GCC
18454 builtin and then its argument prototype would still apply. */
18462 return shl_load ();
18467 if ac_fn_c_try_link
"$LINENO"; then :
18468 ac_cv_lib_dld_shl_load
=yes
18470 ac_cv_lib_dld_shl_load
=no
18472 rm -f core conftest.err conftest.
$ac_objext \
18473 conftest
$ac_exeext conftest.
$ac_ext
18474 LIBS
=$ac_check_lib_save_LIBS
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18477 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18478 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18479 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18481 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18482 if test "x$ac_cv_func_dlopen" = xyes
; then :
18483 lt_cv_dlopen
="dlopen"
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18486 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18487 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18488 $as_echo_n "(cached) " >&6
18490 ac_check_lib_save_LIBS
=$LIBS
18492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18495 /* Override any GCC internal prototype to avoid an error.
18496 Use char because int might match the return type of a GCC
18497 builtin and then its argument prototype would still apply. */
18510 if ac_fn_c_try_link
"$LINENO"; then :
18511 ac_cv_lib_dl_dlopen
=yes
18513 ac_cv_lib_dl_dlopen
=no
18515 rm -f core conftest.err conftest.
$ac_objext \
18516 conftest
$ac_exeext conftest.
$ac_ext
18517 LIBS
=$ac_check_lib_save_LIBS
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18520 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18521 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18522 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18525 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18526 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18527 $as_echo_n "(cached) " >&6
18529 ac_check_lib_save_LIBS
=$LIBS
18530 LIBS
="-lsvld $LIBS"
18531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18534 /* Override any GCC internal prototype to avoid an error.
18535 Use char because int might match the return type of a GCC
18536 builtin and then its argument prototype would still apply. */
18549 if ac_fn_c_try_link
"$LINENO"; then :
18550 ac_cv_lib_svld_dlopen
=yes
18552 ac_cv_lib_svld_dlopen
=no
18554 rm -f core conftest.err conftest.
$ac_objext \
18555 conftest
$ac_exeext conftest.
$ac_ext
18556 LIBS
=$ac_check_lib_save_LIBS
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18559 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18560 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18561 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18564 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18565 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18566 $as_echo_n "(cached) " >&6
18568 ac_check_lib_save_LIBS
=$LIBS
18570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h. */
18573 /* Override any GCC internal prototype to avoid an error.
18574 Use char because int might match the return type of a GCC
18575 builtin and then its argument prototype would still apply. */
18583 return dld_link ();
18588 if ac_fn_c_try_link
"$LINENO"; then :
18589 ac_cv_lib_dld_dld_link
=yes
18591 ac_cv_lib_dld_dld_link
=no
18593 rm -f core conftest.err conftest.
$ac_objext \
18594 conftest
$ac_exeext conftest.
$ac_ext
18595 LIBS
=$ac_check_lib_save_LIBS
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18598 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18599 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18600 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18621 if test "x$lt_cv_dlopen" != xno
; then
18627 case $lt_cv_dlopen in
18629 save_CPPFLAGS
="$CPPFLAGS"
18630 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18632 save_LDFLAGS
="$LDFLAGS"
18633 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18636 LIBS
="$lt_cv_dlopen_libs $LIBS"
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18639 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18640 if ${lt_cv_dlopen_self+:} false
; then :
18641 $as_echo_n "(cached) " >&6
18643 if test "$cross_compiling" = yes; then :
18644 lt_cv_dlopen_self
=cross
18646 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18647 lt_status
=$lt_dlunknown
18648 cat > conftest.
$ac_ext <<_LT_EOF
18649 #line 18640 "configure"
18650 #include "confdefs.h"
18659 # define LT_DLGLOBAL RTLD_GLOBAL
18662 # define LT_DLGLOBAL DL_GLOBAL
18664 # define LT_DLGLOBAL 0
18668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18669 find out it does not work in some platform. */
18670 #ifndef LT_DLLAZY_OR_NOW
18672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18675 # define LT_DLLAZY_OR_NOW DL_LAZY
18678 # define LT_DLLAZY_OR_NOW RTLD_NOW
18681 # define LT_DLLAZY_OR_NOW DL_NOW
18683 # define LT_DLLAZY_OR_NOW 0
18690 /* When -fvisbility=hidden is used, assume the code has been annotated
18691 correspondingly for the symbols needed. */
18692 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18693 void fnord () __attribute__((visibility("default")));
18696 void fnord () { int i=42; }
18699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18700 int status = $lt_dlunknown;
18704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18707 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18708 else puts (dlerror ());
18710 /* dlclose (self); */
18718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18719 (eval $ac_link) 2>&5
18721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18722 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18723 (.
/conftest
; exit; ) >&5 2>/dev
/null
18725 case x
$lt_status in
18726 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18727 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18728 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18731 # compilation failed
18732 lt_cv_dlopen_self
=no
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18740 $as_echo "$lt_cv_dlopen_self" >&6; }
18742 if test "x$lt_cv_dlopen_self" = xyes
; then
18743 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18745 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18746 if ${lt_cv_dlopen_self_static+:} false
; then :
18747 $as_echo_n "(cached) " >&6
18749 if test "$cross_compiling" = yes; then :
18750 lt_cv_dlopen_self_static
=cross
18752 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18753 lt_status
=$lt_dlunknown
18754 cat > conftest.
$ac_ext <<_LT_EOF
18755 #line 18746 "configure"
18756 #include "confdefs.h"
18765 # define LT_DLGLOBAL RTLD_GLOBAL
18768 # define LT_DLGLOBAL DL_GLOBAL
18770 # define LT_DLGLOBAL 0
18774 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18775 find out it does not work in some platform. */
18776 #ifndef LT_DLLAZY_OR_NOW
18778 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18781 # define LT_DLLAZY_OR_NOW DL_LAZY
18784 # define LT_DLLAZY_OR_NOW RTLD_NOW
18787 # define LT_DLLAZY_OR_NOW DL_NOW
18789 # define LT_DLLAZY_OR_NOW 0
18796 /* When -fvisbility=hidden is used, assume the code has been annotated
18797 correspondingly for the symbols needed. */
18798 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18799 void fnord () __attribute__((visibility("default")));
18802 void fnord () { int i=42; }
18805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18806 int status = $lt_dlunknown;
18810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18813 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18814 else puts (dlerror ());
18816 /* dlclose (self); */
18824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18825 (eval $ac_link) 2>&5
18827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18828 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18829 (.
/conftest
; exit; ) >&5 2>/dev
/null
18831 case x
$lt_status in
18832 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18833 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18834 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18837 # compilation failed
18838 lt_cv_dlopen_self_static
=no
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18846 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18849 CPPFLAGS
="$save_CPPFLAGS"
18850 LDFLAGS
="$save_LDFLAGS"
18855 case $lt_cv_dlopen_self in
18856 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18857 *) enable_dlopen_self
=unknown
;;
18860 case $lt_cv_dlopen_self_static in
18861 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18862 *) enable_dlopen_self_static
=unknown
;;
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18885 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18886 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18887 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18888 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18890 $as_echo "yes" >&6; }
18892 # FIXME - insert some real tests, host_os isn't really good enough
18895 if test -n "$STRIP" ; then
18896 striplib
="$STRIP -x"
18897 old_striplib
="$STRIP -S"
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18899 $as_echo "yes" >&6; }
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18902 $as_echo "no" >&6; }
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18923 # Report which library types will actually be built
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18925 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18927 $as_echo "$can_build_shared" >&6; }
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18930 $as_echo_n "checking whether to build shared libraries... " >&6; }
18931 test "$can_build_shared" = "no" && enable_shared
=no
18933 # On AIX, shared libraries and static libraries use the same namespace, and
18934 # are all built from PIC.
18937 test "$enable_shared" = yes && enable_static
=no
18938 if test -n "$RANLIB"; then
18939 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18940 postinstall_cmds
='$RANLIB $lib'
18945 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18946 test "$enable_shared" = yes && enable_static
=no
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18951 $as_echo "$enable_shared" >&6; }
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18954 $as_echo_n "checking whether to build static libraries... " >&6; }
18955 # Make sure either enable_shared or enable_static is yes.
18956 test "$enable_shared" = yes || enable_static
=yes
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18958 $as_echo "$enable_static" >&6; }
18965 ac_cpp
='$CXXCPP $CPPFLAGS'
18966 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18972 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18973 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18974 (test "X$CXX" != "Xg++"))) ; then
18976 ac_cpp
='$CXXCPP $CPPFLAGS'
18977 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18978 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18979 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18981 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18982 if test -z "$CXXCPP"; then
18983 if ${ac_cv_prog_CXXCPP+:} false
; then :
18984 $as_echo_n "(cached) " >&6
18986 # Double quotes because CXXCPP needs to be expanded
18987 for CXXCPP
in "$CXX -E" "/lib/cpp"
18989 ac_preproc_ok
=false
18990 for ac_cxx_preproc_warn_flag
in '' yes
18992 # Use a header file that comes with gcc, so configuring glibc
18993 # with a fresh cross-compiler works.
18994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995 # <limits.h> exists even on freestanding compilers.
18996 # On the NeXT, cc -E runs the code through the compiler's parser,
18997 # not just through cpp. "Syntax error" is here to catch this case.
18998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19001 # include <limits.h>
19003 # include <assert.h>
19007 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19010 # Broken: fails on valid input.
19013 rm -f conftest.err conftest.i conftest.
$ac_ext
19015 # OK, works on sane cases. Now check whether nonexistent headers
19016 # can be detected and how.
19017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19019 #include <ac_nonexistent.h>
19021 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19022 # Broken: success on invalid input.
19025 # Passes both tests.
19029 rm -f conftest.err conftest.i conftest.
$ac_ext
19032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19033 rm -f conftest.i conftest.err conftest.
$ac_ext
19034 if $ac_preproc_ok; then :
19039 ac_cv_prog_CXXCPP
=$CXXCPP
19042 CXXCPP
=$ac_cv_prog_CXXCPP
19044 ac_cv_prog_CXXCPP
=$CXXCPP
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19047 $as_echo "$CXXCPP" >&6; }
19048 ac_preproc_ok
=false
19049 for ac_cxx_preproc_warn_flag
in '' yes
19051 # Use a header file that comes with gcc, so configuring glibc
19052 # with a fresh cross-compiler works.
19053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19054 # <limits.h> exists even on freestanding compilers.
19055 # On the NeXT, cc -E runs the code through the compiler's parser,
19056 # not just through cpp. "Syntax error" is here to catch this case.
19057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19060 # include <limits.h>
19062 # include <assert.h>
19066 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19069 # Broken: fails on valid input.
19072 rm -f conftest.err conftest.i conftest.
$ac_ext
19074 # OK, works on sane cases. Now check whether nonexistent headers
19075 # can be detected and how.
19076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19078 #include <ac_nonexistent.h>
19080 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19081 # Broken: success on invalid input.
19084 # Passes both tests.
19088 rm -f conftest.err conftest.i conftest.
$ac_ext
19091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19092 rm -f conftest.i conftest.err conftest.
$ac_ext
19093 if $ac_preproc_ok; then :
19096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19098 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19099 See \`config.log' for more details" "$LINENO" 5; }
19103 ac_cpp
='$CXXCPP $CPPFLAGS'
19104 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19109 _lt_caught_CXX_error
=yes
19113 ac_cpp
='$CXXCPP $CPPFLAGS'
19114 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19118 archive_cmds_need_lc_CXX
=no
19119 allow_undefined_flag_CXX
=
19120 always_export_symbols_CXX
=no
19121 archive_expsym_cmds_CXX
=
19122 compiler_needs_object_CXX
=no
19123 export_dynamic_flag_spec_CXX
=
19124 hardcode_direct_CXX
=no
19125 hardcode_direct_absolute_CXX
=no
19126 hardcode_libdir_flag_spec_CXX
=
19127 hardcode_libdir_flag_spec_ld_CXX
=
19128 hardcode_libdir_separator_CXX
=
19129 hardcode_minus_L_CXX
=no
19130 hardcode_shlibpath_var_CXX
=unsupported
19131 hardcode_automatic_CXX
=no
19132 inherit_rpath_CXX
=no
19134 module_expsym_cmds_CXX
=
19135 link_all_deplibs_CXX
=unknown
19136 old_archive_cmds_CXX
=$old_archive_cmds
19137 reload_flag_CXX
=$reload_flag
19138 reload_cmds_CXX
=$reload_cmds
19139 no_undefined_flag_CXX
=
19140 whole_archive_flag_spec_CXX
=
19141 enable_shared_with_static_runtimes_CXX
=no
19143 # Source file extension for C++ test sources.
19146 # Object file extension for compiled C++ test sources.
19150 # No sense in running all these tests if we already determined that
19151 # the CXX compiler isn't working. Some variables (like enable_shared)
19152 # are currently assumed to apply to all compilers on this platform,
19153 # and will be corrupted by setting them based on a non-working compiler.
19154 if test "$_lt_caught_CXX_error" != yes; then
19155 # Code to be used in simple compile tests
19156 lt_simple_compile_test_code
="int some_variable = 0;"
19158 # Code to be used in simple link tests
19159 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19161 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19168 # If no C compiler was specified, use CC.
19171 # If no C compiler flags were specified, use CFLAGS.
19172 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19174 # Allow CC to be a program name with arguments.
19178 # save warnings/boilerplate of simple test code
19179 ac_outfile
=conftest.
$ac_objext
19180 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19181 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19182 _lt_compiler_boilerplate
=`cat conftest.err`
19185 ac_outfile
=conftest.
$ac_objext
19186 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19187 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19188 _lt_linker_boilerplate
=`cat conftest.err`
19192 # Allow CC to be a program name with arguments.
19197 lt_save_with_gnu_ld
=$with_gnu_ld
19198 lt_save_path_LD
=$lt_cv_path_LD
19199 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19200 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19202 $as_unset lt_cv_prog_gnu_ld
19204 if test -n "${lt_cv_path_LDCXX+set}"; then
19205 lt_cv_path_LD
=$lt_cv_path_LDCXX
19207 $as_unset lt_cv_path_LD
19209 test -z "${LDCXX+set}" || LD
=$LDCXX
19213 for cc_temp
in $compiler""; do
19215 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19216 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19221 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19224 if test -n "$compiler"; then
19225 # We don't want -fno-exception when compiling C++ code, so set the
19226 # no_builtin_flag separately
19227 if test "$GXX" = yes; then
19228 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19230 lt_prog_compiler_no_builtin_flag_CXX
=
19233 if test "$GXX" = yes; then
19234 # Set up default GNU C++ configuration
19238 # Check whether --with-gnu-ld was given.
19239 if test "${with_gnu_ld+set}" = set; then :
19240 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19246 if test "$GCC" = yes; then
19247 # Check if gcc -print-prog-name=ld gives a path.
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19249 $as_echo_n "checking for ld used by $CC... " >&6; }
19252 # gcc leaves a trailing carriage return which upsets mingw
19253 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19255 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19258 # Accept absolute paths.
19260 re_direlt
='/[^/][^/]*/\.\./'
19261 # Canonicalize the pathname of ld
19262 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19263 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19264 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19266 test -z "$LD" && LD
="$ac_prog"
19269 # If it fails, then pretend we aren't using GCC.
19273 # If it is relative, then search for the first ld in PATH.
19274 with_gnu_ld
=unknown
19277 elif test "$with_gnu_ld" = yes; then
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19279 $as_echo_n "checking for GNU ld... " >&6; }
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19282 $as_echo_n "checking for non-GNU ld... " >&6; }
19284 if ${lt_cv_path_LD+:} false
; then :
19285 $as_echo_n "(cached) " >&6
19287 if test -z "$LD"; then
19288 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19289 for ac_dir
in $PATH; do
19291 test -z "$ac_dir" && ac_dir
=.
19292 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19293 lt_cv_path_LD
="$ac_dir/$ac_prog"
19294 # Check to see if the program is GNU ld. I'd rather use --version,
19295 # but apparently some variants of GNU ld only accept -v.
19296 # Break only if it was the GNU/non-GNU ld that we prefer.
19297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19298 *GNU
* |
*'with BFD'*)
19299 test "$with_gnu_ld" != no
&& break
19302 test "$with_gnu_ld" != yes && break
19309 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19313 LD
="$lt_cv_path_LD"
19314 if test -n "$LD"; then
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19316 $as_echo "$LD" >&6; }
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19321 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19324 if ${lt_cv_prog_gnu_ld+:} false
; then :
19325 $as_echo_n "(cached) " >&6
19327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19328 case `$LD -v 2>&1 </dev/null` in
19329 *GNU
* |
*'with BFD'*)
19330 lt_cv_prog_gnu_ld
=yes
19333 lt_cv_prog_gnu_ld
=no
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19339 with_gnu_ld
=$lt_cv_prog_gnu_ld
19347 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19348 # archiving commands below assume that GNU ld is being used.
19349 if test "$with_gnu_ld" = yes; then
19350 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 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'
19353 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19354 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19356 # If archive_cmds runs LD, not CC, wlarc should be empty
19357 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19358 # investigate it a little bit more. (MM)
19361 # ancient GNU ld didn't support --whole-archive et. al.
19362 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19363 $GREP 'no-whole-archive' > /dev
/null
; then
19364 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19366 whole_archive_flag_spec_CXX
=
19372 # A generic and very simple default shared library creation
19373 # command for GNU C++ for the case where it uses the native
19374 # linker, instead of GNU ld. If possible, this setting should
19375 # overridden to take advantage of the native linker features on
19376 # the platform it is being used on.
19377 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19380 # Commands to make compiler produce verbose output that lists
19381 # what "hidden" libraries, object files and flags are used when
19382 # linking a shared library.
19383 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19391 # PORTME: fill in a description of your system's C++ link characteristics
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19393 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19397 # FIXME: insert proper C++ library support
19401 if test "$host_cpu" = ia64
; then
19402 # On IA64, the linker does run time linking by default, so we don't
19403 # have to do anything special.
19404 aix_use_runtimelinking
=no
19405 exp_sym_flag
='-Bexport'
19408 aix_use_runtimelinking
=no
19410 # Test if we are trying to use run time linking or normal
19411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19412 # need to do runtime linking.
19413 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19414 for ld_flag
in $LDFLAGS; do
19417 aix_use_runtimelinking
=yes
19425 exp_sym_flag
='-bexport'
19426 no_entry_flag
='-bnoentry'
19429 # When large executables or shared objects are built, AIX ld can
19430 # have problems creating the table of contents. If linking a library
19431 # or program results in "error TOC overflow" add -mminimal-toc to
19432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19435 archive_cmds_CXX
=''
19436 hardcode_direct_CXX
=yes
19437 hardcode_direct_absolute_CXX
=yes
19438 hardcode_libdir_separator_CXX
=':'
19439 link_all_deplibs_CXX
=yes
19440 file_list_spec_CXX
='${wl}-f,'
19442 if test "$GXX" = yes; then
19443 case $host_os in aix4.
[012]|aix4.
[012].
*)
19444 # We only want to do this on AIX 4.2 and lower, the check
19445 # below for broken collect2 doesn't work under 4.3+
19446 collect2name
=`${CC} -print-prog-name=collect2`
19447 if test -f "$collect2name" &&
19448 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19450 # We have reworked collect2
19453 # We have old collect2
19454 hardcode_direct_CXX
=unsupported
19455 # It fails to find uninstalled libraries when the uninstalled
19456 # path is not listed in the libpath. Setting hardcode_minus_L
19457 # to unsupported forces relinking
19458 hardcode_minus_L_CXX
=yes
19459 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19460 hardcode_libdir_separator_CXX
=
19463 shared_flag
='-shared'
19464 if test "$aix_use_runtimelinking" = yes; then
19465 shared_flag
="$shared_flag "'${wl}-G'
19469 if test "$host_cpu" = ia64
; then
19470 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19471 # chokes on -Wl,-G. The following line is correct:
19474 if test "$aix_use_runtimelinking" = yes; then
19475 shared_flag
='${wl}-G'
19477 shared_flag
='${wl}-bM:SRE'
19482 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19483 # It seems that -bexpall does not export symbols beginning with
19484 # underscore (_), so it is better to generate a list of symbols to
19486 always_export_symbols_CXX
=yes
19487 if test "$aix_use_runtimelinking" = yes; then
19488 # Warning - without using the other runtime loading flags (-brtl),
19489 # -berok will link without error, but may produce a broken library.
19490 allow_undefined_flag_CXX
='-berok'
19491 # Determine the default libpath from the value encoded in an empty
19493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h. */
19504 if ac_fn_cxx_try_link
"$LINENO"; then :
19506 lt_aix_libpath_sed
='
19507 /Import File Strings/,/^$/ {
19513 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19514 # Check for a 64-bit object if we didn't find anything.
19515 if test -z "$aix_libpath"; then
19516 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19519 rm -f core conftest.err conftest.
$ac_objext \
19520 conftest
$ac_exeext conftest.
$ac_ext
19521 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19523 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19525 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"
19527 if test "$host_cpu" = ia64
; then
19528 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19529 allow_undefined_flag_CXX
="-z nodefs"
19530 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"
19532 # Determine the default libpath from the value encoded in an
19533 # empty executable.
19534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h. */
19545 if ac_fn_cxx_try_link
"$LINENO"; then :
19547 lt_aix_libpath_sed
='
19548 /Import File Strings/,/^$/ {
19554 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19555 # Check for a 64-bit object if we didn't find anything.
19556 if test -z "$aix_libpath"; then
19557 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19560 rm -f core conftest.err conftest.
$ac_objext \
19561 conftest
$ac_exeext conftest.
$ac_ext
19562 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19564 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19565 # Warning - without using the other run time loading flags,
19566 # -berok will link without error, but may produce a broken library.
19567 no_undefined_flag_CXX
=' ${wl}-bernotok'
19568 allow_undefined_flag_CXX
=' ${wl}-berok'
19569 if test "$with_gnu_ld" = yes; then
19570 # We only use this code for GNU lds that support --whole-archive.
19571 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19573 # Exported symbols can be pulled into shared objects from archives
19574 whole_archive_flag_spec_CXX
='$convenience'
19576 archive_cmds_need_lc_CXX
=yes
19577 # This is similar to how AIX traditionally builds its shared
19579 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'
19585 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19586 allow_undefined_flag_CXX
=unsupported
19587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19588 # support --undefined. This deserves some investigation. FIXME
19589 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19596 case $cc_basename in
19598 # FIXME: insert proper C++ library support
19604 cygwin
* | mingw
* | pw32
* | cegcc
*)
19605 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19606 # as there is no search path for DLLs.
19607 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19608 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19609 allow_undefined_flag_CXX
=unsupported
19610 always_export_symbols_CXX
=no
19611 enable_shared_with_static_runtimes_CXX
=yes
19613 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19614 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'
19615 # If the export-symbols file already is a .def file (1st line
19616 # is EXPORTS), use it as is; otherwise, prepend...
19617 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19618 cp $export_symbols $output_objdir/$soname.def;
19620 echo EXPORTS > $output_objdir/$soname.def;
19621 cat $export_symbols >> $output_objdir/$soname.def;
19623 $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'
19628 darwin
* | rhapsody
*)
19631 archive_cmds_need_lc_CXX
=no
19632 hardcode_direct_CXX
=no
19633 hardcode_automatic_CXX
=yes
19634 hardcode_shlibpath_var_CXX
=unsupported
19635 if test "$lt_cv_ld_force_load" = "yes"; then
19636 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\"`'
19638 whole_archive_flag_spec_CXX
=''
19640 link_all_deplibs_CXX
=yes
19641 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19642 case $cc_basename in
19643 ifort
*) _lt_dar_can_shared
=yes ;;
19644 *) _lt_dar_can_shared
=$GCC ;;
19646 if test "$_lt_dar_can_shared" = "yes"; then
19647 output_verbose_link_cmd
=func_echo_all
19648 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}"
19649 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19650 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}"
19651 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}"
19652 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19653 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}"
19654 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}"
19664 case $cc_basename in
19666 # FIXME: insert proper C++ library support
19670 # Green Hills C++ Compiler
19671 # FIXME: insert proper C++ library support
19675 # FIXME: insert proper C++ library support
19682 # C++ shared libraries reported to be fairly broken before
19688 archive_cmds_need_lc_CXX
=no
19691 freebsd
* | dragonfly
*)
19692 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19701 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19702 link_all_deplibs_CXX
=yes
19706 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19707 hardcode_libdir_separator_CXX
=:
19708 export_dynamic_flag_spec_CXX
='${wl}-E'
19709 hardcode_direct_CXX
=yes
19710 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19711 # but as the default
19712 # location of the library.
19714 case $cc_basename in
19716 # FIXME: insert proper C++ library support
19720 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'
19721 # Commands to make compiler produce verbose output that lists
19722 # what "hidden" libraries, object files and flags are used when
19723 # linking a shared library.
19725 # There doesn't appear to be a way to prevent this compiler from
19726 # explicitly linking system object files so we need to strip them
19727 # from the output so that they don't get included in the library
19729 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"'
19732 if test "$GXX" = yes; then
19733 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'
19735 # FIXME: insert proper C++ library support
19743 if test $with_gnu_ld = no
; then
19744 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19745 hardcode_libdir_separator_CXX
=:
19751 export_dynamic_flag_spec_CXX
='${wl}-E'
19757 hardcode_direct_CXX
=no
19758 hardcode_shlibpath_var_CXX
=no
19761 hardcode_direct_CXX
=yes
19762 hardcode_direct_absolute_CXX
=yes
19763 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19764 # but as the default
19765 # location of the library.
19769 case $cc_basename in
19771 # FIXME: insert proper C++ library support
19777 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19780 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19783 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19786 # Commands to make compiler produce verbose output that lists
19787 # what "hidden" libraries, object files and flags are used when
19788 # linking a shared library.
19790 # There doesn't appear to be a way to prevent this compiler from
19791 # explicitly linking system object files so we need to strip them
19792 # from the output so that they don't get included in the library
19794 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"'
19797 if test "$GXX" = yes; then
19798 if test $with_gnu_ld = no
; then
19801 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19804 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19807 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'
19812 # FIXME: insert proper C++ library support
19820 hardcode_direct_CXX
=no
19821 hardcode_shlibpath_var_CXX
=no
19822 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19823 export_dynamic_flag_spec_CXX
='${wl}-E'
19824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19825 # Instead, shared libraries are loaded at an image base (0x10000000 by
19826 # default) and relocated if they conflict, which is a slow very memory
19827 # consuming and fragmenting process. To avoid this, we pick a random,
19828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19830 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'
19831 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'
19834 case $cc_basename in
19837 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'
19839 # Archives containing C++ object files must be created using
19840 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19841 # necessary to make sure instantiated templates are included
19843 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19846 if test "$GXX" = yes; then
19847 if test "$with_gnu_ld" = no
; then
19848 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'
19850 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'
19853 link_all_deplibs_CXX
=yes
19856 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19857 hardcode_libdir_separator_CXX
=:
19858 inherit_rpath_CXX
=yes
19861 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19862 case $cc_basename in
19864 # Kuck and Associates, Inc. (KAI) C++ Compiler
19866 # KCC will only create a shared library if the output file
19867 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19868 # to its proper name (with version) after linking.
19869 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'
19870 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'
19871 # Commands to make compiler produce verbose output that lists
19872 # what "hidden" libraries, object files and flags are used when
19873 # linking a shared library.
19875 # There doesn't appear to be a way to prevent this compiler from
19876 # explicitly linking system object files so we need to strip them
19877 # from the output so that they don't get included in the library
19879 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"'
19881 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19882 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19884 # Archives containing C++ object files must be created using
19885 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19886 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19891 # version 8.0 and above of icpc choke on multiply defined symbols
19892 # if we add $predep_objects and $postdep_objects, however 7.1 and
19893 # earlier do not add the objects themselves.
19894 case `$CC -V 2>&1` in
19896 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19897 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'
19899 *) # Version 8.0 or newer
19902 ia64
*) tmp_idyn
=' -i_dynamic';;
19904 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19905 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'
19908 archive_cmds_need_lc_CXX
=no
19909 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19910 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19911 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19914 # Portland Group C++ compiler
19916 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19917 prelink_cmds_CXX
='tpldir=Template.dir~
19919 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19920 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19921 old_archive_cmds_CXX
='tpldir=Template.dir~
19923 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19924 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19926 archive_cmds_CXX
='tpldir=Template.dir~
19928 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19929 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19930 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19932 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19933 $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'
19935 *) # Version 6 and above use weak symbols
19936 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19937 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'
19941 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19942 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19943 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'
19947 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19948 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'
19950 runpath_var
=LD_RUN_PATH
19951 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19952 hardcode_libdir_separator_CXX
=:
19954 # Commands to make compiler produce verbose output that lists
19955 # what "hidden" libraries, object files and flags are used when
19956 # linking a shared library.
19958 # There doesn't appear to be a way to prevent this compiler from
19959 # explicitly linking system object files so we need to strip them
19960 # from the output so that they don't get included in the library
19962 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'
19964 xl
* | mpixl
* | bgxl
*)
19965 # IBM XL 8.0 on PPC, with GNU ld
19966 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19967 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19968 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19969 if test "x$supports_anon_versioning" = xyes
; then
19970 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19972 echo "local: *; };" >> $output_objdir/$libname.ver~
19973 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19977 case `$CC -V 2>&1 | sed 5q` in
19980 no_undefined_flag_CXX
=' -zdefs'
19981 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19982 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'
19983 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19984 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'
19985 compiler_needs_object_CXX
=yes
19987 # Not sure whether something based on
19988 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19990 output_verbose_link_cmd
='func_echo_all'
19992 # Archives containing C++ object files must be created using
19993 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19994 # necessary to make sure instantiated templates are included
19996 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20004 # FIXME: insert proper C++ library support
20009 # FIXME: insert proper C++ library support
20014 case $cc_basename in
20016 # FIXME: insert proper C++ library support
20020 # FIXME: insert proper C++ library support
20027 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20028 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20030 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20031 hardcode_direct_CXX
=yes
20032 hardcode_shlibpath_var_CXX
=no
20034 # Workaround some broken pre-1.5 toolchains
20035 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20043 # C++ shared libraries are fairly broken
20048 if test -f /usr
/libexec
/ld.so
; then
20049 hardcode_direct_CXX
=yes
20050 hardcode_shlibpath_var_CXX
=no
20051 hardcode_direct_absolute_CXX
=yes
20052 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20053 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20055 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20056 export_dynamic_flag_spec_CXX
='${wl}-E'
20057 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20059 output_verbose_link_cmd
=func_echo_all
20065 osf3
* | osf4
* | osf5
*)
20066 case $cc_basename in
20068 # Kuck and Associates, Inc. (KAI) C++ Compiler
20070 # KCC will only create a shared library if the output file
20071 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20072 # to its proper name (with version) after linking.
20073 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'
20075 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20076 hardcode_libdir_separator_CXX
=:
20078 # Archives containing C++ object files must be created using
20079 # the KAI C++ compiler.
20081 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20082 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20086 # Rational C++ 2.4.1
20087 # FIXME: insert proper C++ library support
20093 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20094 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'
20095 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20098 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20099 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'
20100 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20101 echo "-hidden">> $lib.exp~
20102 $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~
20104 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20108 hardcode_libdir_separator_CXX
=:
20110 # Commands to make compiler produce verbose output that lists
20111 # what "hidden" libraries, object files and flags are used when
20112 # linking a shared library.
20114 # There doesn't appear to be a way to prevent this compiler from
20115 # explicitly linking system object files so we need to strip them
20116 # from the output so that they don't get included in the library
20118 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"'
20121 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20122 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20125 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'
20128 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'
20132 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20133 hardcode_libdir_separator_CXX
=:
20135 # Commands to make compiler produce verbose output that lists
20136 # what "hidden" libraries, object files and flags are used when
20137 # linking a shared library.
20138 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20141 # FIXME: insert proper C++ library support
20149 # FIXME: insert proper C++ library support
20154 case $cc_basename in
20157 # FIXME: insert proper C++ library support
20162 # FIXME: insert proper C++ library support
20166 # FIXME: insert proper C++ library support
20173 case $cc_basename in
20175 # Sun C++ 4.2, 5.x and Centerline C++
20176 archive_cmds_need_lc_CXX
=yes
20177 no_undefined_flag_CXX
=' -zdefs'
20178 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20179 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20180 $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'
20182 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20183 hardcode_shlibpath_var_CXX
=no
20185 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20187 # The compiler driver will combine and reorder linker options,
20188 # but understands `-z linker_flag'.
20189 # Supported since Solaris 2.6 (maybe 2.5.1?)
20190 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20193 link_all_deplibs_CXX
=yes
20195 output_verbose_link_cmd
='func_echo_all'
20197 # Archives containing C++ object files must be created using
20198 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20199 # necessary to make sure instantiated templates are included
20201 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20204 # Green Hills C++ Compiler
20205 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20207 # The C++ compiler must be used to create the archive.
20208 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20211 # GNU C++ compiler with Solaris linker
20212 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20213 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20214 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20215 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20216 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20217 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20219 # Commands to make compiler produce verbose output that lists
20220 # what "hidden" libraries, object files and flags are used when
20221 # linking a shared library.
20222 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20224 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20226 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20227 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20228 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20230 # Commands to make compiler produce verbose output that lists
20231 # what "hidden" libraries, object files and flags are used when
20232 # linking a shared library.
20233 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20236 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20238 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20240 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20248 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20249 no_undefined_flag_CXX
='${wl}-z,text'
20250 archive_cmds_need_lc_CXX
=no
20251 hardcode_shlibpath_var_CXX
=no
20252 runpath_var
='LD_RUN_PATH'
20254 case $cc_basename in
20256 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20257 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20260 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20261 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20266 sysv5
* | sco3.2v5
* | sco5v6
*)
20267 # Note: We can NOT use -z defs as we might desire, because we do not
20268 # link with -lc, and that would cause any symbols used from libc to
20269 # always be unresolved, which means just about no library would
20270 # ever link correctly. If we're not using GNU ld we use -z text
20271 # though, which does catch some bad symbols but isn't as heavy-handed
20273 no_undefined_flag_CXX
='${wl}-z,text'
20274 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20275 archive_cmds_need_lc_CXX
=no
20276 hardcode_shlibpath_var_CXX
=no
20277 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20278 hardcode_libdir_separator_CXX
=':'
20279 link_all_deplibs_CXX
=yes
20280 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20281 runpath_var
='LD_RUN_PATH'
20283 case $cc_basename in
20285 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20286 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20287 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20288 '"$old_archive_cmds_CXX"
20289 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20290 '"$reload_cmds_CXX"
20293 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20294 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20300 case $cc_basename in
20302 # NonStop-UX NCC 3.20
20303 # FIXME: insert proper C++ library support
20307 # FIXME: insert proper C++ library support
20314 # FIXME: insert proper C++ library support
20319 # FIXME: insert proper C++ library support
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20325 $as_echo "$ld_shlibs_CXX" >&6; }
20326 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20332 ## There is no encapsulation within the following macros, do not change
20333 ## the running order or otherwise move them around unless you know exactly
20334 ## what you are doing...
20335 # Dependencies to place before and after the object being linked:
20336 predep_objects_CXX
=
20337 postdep_objects_CXX
=
20340 compiler_lib_search_path_CXX
=
20342 cat > conftest.
$ac_ext <<_LT_EOF
20346 Foo (void) { a = 0; }
20352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20353 (eval $ac_compile) 2>&5
20355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356 test $ac_status = 0; }; then
20357 # Parse the compiler output and extract the necessary
20358 # objects, libraries and library flags.
20360 # Sentinel used to keep track of whether or not we are before
20361 # the conftest object file.
20362 pre_test_object_deps_done
=no
20364 for p
in `eval "$output_verbose_link_cmd"`; do
20368 # Some compilers place space between "-{L,R}" and the path.
20369 # Remove the space.
20370 if test $p = "-L" ||
20371 test $p = "-R"; then
20378 if test "$pre_test_object_deps_done" = no
; then
20381 # Internal compiler library paths should come after those
20382 # provided the user. The postdeps already come after the
20383 # user supplied libs so there is no need to process them.
20384 if test -z "$compiler_lib_search_path_CXX"; then
20385 compiler_lib_search_path_CXX
="${prev}${p}"
20387 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20390 # The "-l" case would never come before the object being
20391 # linked, so don't bother handling this case.
20394 if test -z "$postdeps_CXX"; then
20395 postdeps_CXX
="${prev}${p}"
20397 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20403 # This assumes that the test object file only shows up
20404 # once in the compiler output.
20405 if test "$p" = "conftest.$objext"; then
20406 pre_test_object_deps_done
=yes
20410 if test "$pre_test_object_deps_done" = no
; then
20411 if test -z "$predep_objects_CXX"; then
20412 predep_objects_CXX
="$p"
20414 predep_objects_CXX
="$predep_objects_CXX $p"
20417 if test -z "$postdep_objects_CXX"; then
20418 postdep_objects_CXX
="$p"
20420 postdep_objects_CXX
="$postdep_objects_CXX $p"
20425 *) ;; # Ignore the rest.
20433 echo "libtool.m4: error: problem compiling CXX test program"
20436 $RM -f confest.
$objext
20438 # PORTME: override above test on systems where it is broken
20441 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20442 # hack all around it, let's just trust "g++" to DTRT.
20443 predep_objects_CXX
=
20444 postdep_objects_CXX
=
20449 case `$CC -V 2>&1 | sed 5q` in
20453 # The more standards-conforming stlport4 library is
20454 # incompatible with the Cstd library. Avoid specifying
20455 # it if it's in CXXFLAGS. Ignore libCrun as
20456 # -library=stlport4 depends on it.
20457 case " $CXX $CXXFLAGS " in
20458 *" -library=stlport4 "*)
20459 solaris_use_stlport4
=yes
20463 if test "$solaris_use_stlport4" != yes; then
20464 postdeps_CXX
='-library=Cstd -library=Crun'
20471 case $cc_basename in
20473 # The more standards-conforming stlport4 library is
20474 # incompatible with the Cstd library. Avoid specifying
20475 # it if it's in CXXFLAGS. Ignore libCrun as
20476 # -library=stlport4 depends on it.
20477 case " $CXX $CXXFLAGS " in
20478 *" -library=stlport4 "*)
20479 solaris_use_stlport4
=yes
20483 # Adding this requires a known-good setup of shared libraries for
20484 # Sun compiler versions before 5.6, else PIC objects from an old
20485 # archive will be linked into the output, leading to subtle bugs.
20486 if test "$solaris_use_stlport4" != yes; then
20487 postdeps_CXX
='-library=Cstd -library=Crun'
20495 case " $postdeps_CXX " in
20496 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20498 compiler_lib_search_dirs_CXX
=
20499 if test -n "${compiler_lib_search_path_CXX}"; then
20500 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20533 lt_prog_compiler_wl_CXX
=
20534 lt_prog_compiler_pic_CXX
=
20535 lt_prog_compiler_static_CXX
=
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20538 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20540 # C++ specific cases for pic, static, wl, etc.
20541 if test "$GXX" = yes; then
20542 lt_prog_compiler_wl_CXX
='-Wl,'
20543 lt_prog_compiler_static_CXX
='-static'
20547 # All AIX code is PIC.
20548 if test "$host_cpu" = ia64
; then
20549 # AIX 5 now supports IA64 processor
20550 lt_prog_compiler_static_CXX
='-Bstatic'
20552 lt_prog_compiler_pic_CXX
='-fPIC'
20558 # see comment about AmigaOS4 .so support
20559 lt_prog_compiler_pic_CXX
='-fPIC'
20562 # FIXME: we need at least 68020 code to build shared libraries, but
20563 # adding the `-m68020' flag to GCC prevents building anything better,
20565 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20570 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20571 # PIC is the default for these OSes.
20573 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20574 # This hack is so that the source file can tell whether it is being
20575 # built for inclusion in a dll (and should export symbols for example).
20576 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20577 # (--disable-auto-import) libraries
20578 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20580 darwin
* | rhapsody
*)
20581 # PIC is the default on this platform
20582 # Common symbols not allowed in MH_DYLIB files
20583 lt_prog_compiler_pic_CXX
='-fno-common'
20586 # DJGPP does not support shared libraries at all
20587 lt_prog_compiler_pic_CXX
=
20590 # PIC is the default for Haiku.
20591 # The "-static" flag exists, but is broken.
20592 lt_prog_compiler_static_CXX
=
20595 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20596 # Instead, we relocate shared libraries at runtime.
20599 if test -d /usr
/nec
; then
20600 lt_prog_compiler_pic_CXX
=-Kconform_pic
20604 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20605 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20606 # sets the default TLS model and affects inlining.
20611 lt_prog_compiler_pic_CXX
='-fPIC'
20616 # QNX uses GNU C++, but need to define -shared option too, otherwise
20617 # it will coredump.
20618 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20621 lt_prog_compiler_pic_CXX
='-fPIC'
20627 # All AIX code is PIC.
20628 if test "$host_cpu" = ia64
; then
20629 # AIX 5 now supports IA64 processor
20630 lt_prog_compiler_static_CXX
='-Bstatic'
20632 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20636 case $cc_basename in
20638 # Green Hills C++ Compiler
20639 # _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"
20644 case $cc_basename in
20646 lt_prog_compiler_pic_CXX
='-KPIC'
20649 # Green Hills C++ Compiler
20650 lt_prog_compiler_pic_CXX
='-pic'
20656 freebsd
* | dragonfly
*)
20657 # FreeBSD uses GNU C++
20659 hpux9
* | hpux10
* | hpux11
*)
20660 case $cc_basename in
20662 lt_prog_compiler_wl_CXX
='-Wl,'
20663 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20664 if test "$host_cpu" != ia64
; then
20665 lt_prog_compiler_pic_CXX
='+Z'
20669 lt_prog_compiler_wl_CXX
='-Wl,'
20670 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20676 lt_prog_compiler_pic_CXX
='+Z'
20685 # This is c89, which is MS Visual C++ (no shared libs)
20686 # Anyone wants to do a port?
20688 irix5
* | irix6
* | nonstopux
*)
20689 case $cc_basename in
20691 lt_prog_compiler_wl_CXX
='-Wl,'
20692 lt_prog_compiler_static_CXX
='-non_shared'
20693 # CC pic flag -KPIC is the default.
20699 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20700 case $cc_basename in
20703 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20704 lt_prog_compiler_pic_CXX
='-fPIC'
20707 # old Intel C++ for x86_64 which still supported -KPIC.
20708 lt_prog_compiler_wl_CXX
='-Wl,'
20709 lt_prog_compiler_pic_CXX
='-KPIC'
20710 lt_prog_compiler_static_CXX
='-static'
20713 # Intel C++, used to be incompatible with GCC.
20714 # ICC 10 doesn't accept -KPIC any more.
20715 lt_prog_compiler_wl_CXX
='-Wl,'
20716 lt_prog_compiler_pic_CXX
='-fPIC'
20717 lt_prog_compiler_static_CXX
='-static'
20720 # Portland Group C++ compiler
20721 lt_prog_compiler_wl_CXX
='-Wl,'
20722 lt_prog_compiler_pic_CXX
='-fpic'
20723 lt_prog_compiler_static_CXX
='-Bstatic'
20727 # Make sure the PIC flag is empty. It appears that all Alpha
20728 # Linux and Compaq Tru64 Unix objects are PIC.
20729 lt_prog_compiler_pic_CXX
=
20730 lt_prog_compiler_static_CXX
='-non_shared'
20732 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20733 # IBM XL 8.0, 9.0 on PPC and BlueGene
20734 lt_prog_compiler_wl_CXX
='-Wl,'
20735 lt_prog_compiler_pic_CXX
='-qpic'
20736 lt_prog_compiler_static_CXX
='-qstaticlink'
20739 case `$CC -V 2>&1 | sed 5q` in
20742 lt_prog_compiler_pic_CXX
='-KPIC'
20743 lt_prog_compiler_static_CXX
='-Bstatic'
20744 lt_prog_compiler_wl_CXX
='-Qoption ld '
20755 case $cc_basename in
20757 lt_prog_compiler_pic_CXX
='-W c,exportall'
20766 # QNX uses GNU C++, but need to define -shared option too, otherwise
20767 # it will coredump.
20768 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20770 osf3
* | osf4
* | osf5
*)
20771 case $cc_basename in
20773 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20776 # Rational C++ 2.4.1
20777 lt_prog_compiler_pic_CXX
='-pic'
20780 # Digital/Compaq C++
20781 lt_prog_compiler_wl_CXX
='-Wl,'
20782 # Make sure the PIC flag is empty. It appears that all Alpha
20783 # Linux and Compaq Tru64 Unix objects are PIC.
20784 lt_prog_compiler_pic_CXX
=
20785 lt_prog_compiler_static_CXX
='-non_shared'
20794 case $cc_basename in
20796 # Sun C++ 4.2, 5.x and Centerline C++
20797 lt_prog_compiler_pic_CXX
='-KPIC'
20798 lt_prog_compiler_static_CXX
='-Bstatic'
20799 lt_prog_compiler_wl_CXX
='-Qoption ld '
20802 # Green Hills C++ Compiler
20803 lt_prog_compiler_pic_CXX
='-PIC'
20810 case $cc_basename in
20813 lt_prog_compiler_pic_CXX
='-pic'
20814 lt_prog_compiler_static_CXX
='-Bstatic'
20818 lt_prog_compiler_pic_CXX
='-pic'
20824 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20825 case $cc_basename in
20827 lt_prog_compiler_wl_CXX
='-Wl,'
20828 lt_prog_compiler_pic_CXX
='-KPIC'
20829 lt_prog_compiler_static_CXX
='-Bstatic'
20834 case $cc_basename in
20836 # NonStop-UX NCC 3.20
20837 lt_prog_compiler_pic_CXX
='-KPIC'
20846 lt_prog_compiler_can_build_shared_CXX
=no
20852 # For platforms which do not support PIC, -DPIC is meaningless:
20854 lt_prog_compiler_pic_CXX
=
20857 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20861 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20866 # Check to make sure the PIC flag actually works.
20868 if test -n "$lt_prog_compiler_pic_CXX"; then
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20870 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20871 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
20872 $as_echo_n "(cached) " >&6
20874 lt_cv_prog_compiler_pic_works_CXX
=no
20875 ac_outfile
=conftest.
$ac_objext
20876 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20877 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20878 # Insert the option either (1) after the last *FLAGS variable, or
20879 # (2) before a word containing "conftest.", or (3) at the end.
20880 # Note that $ac_compile itself does not contain backslashes and begins
20881 # with a dollar sign (not a hyphen), so the echo should work correctly.
20882 # The option is referenced via a variable to avoid confusing sed.
20883 lt_compile
=`echo "$ac_compile" | $SED \
20884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20886 -e 's:$: $lt_compiler_flag:'`
20887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20888 (eval "$lt_compile" 2>conftest.err
)
20890 cat conftest.err
>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 if (exit $ac_status) && test -s "$ac_outfile"; then
20893 # The compiler can only warn and ignore the option if not recognized
20894 # So say no if there are warnings other than the usual output.
20895 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20896 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20897 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20898 lt_cv_prog_compiler_pic_works_CXX
=yes
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20905 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20907 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20908 case $lt_prog_compiler_pic_CXX in
20910 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20913 lt_prog_compiler_pic_CXX
=
20914 lt_prog_compiler_can_build_shared_CXX
=no
20922 # Check to make sure the static flag actually works.
20924 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20926 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20927 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
20928 $as_echo_n "(cached) " >&6
20930 lt_cv_prog_compiler_static_works_CXX
=no
20931 save_LDFLAGS
="$LDFLAGS"
20932 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20933 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20934 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20935 # The linker can only warn and ignore the option if not recognized
20936 # So say no if there are warnings
20937 if test -s conftest.err
; then
20938 # Append any errors to the config.log.
20939 cat conftest.err
1>&5
20940 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20941 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20942 if diff conftest.exp conftest.er2
>/dev
/null
; then
20943 lt_cv_prog_compiler_static_works_CXX
=yes
20946 lt_cv_prog_compiler_static_works_CXX
=yes
20950 LDFLAGS
="$save_LDFLAGS"
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20954 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20956 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20959 lt_prog_compiler_static_CXX
=
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20967 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
20968 $as_echo_n "(cached) " >&6
20970 lt_cv_prog_compiler_c_o_CXX
=no
20971 $RM -r conftest
2>/dev
/null
20975 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20977 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20978 # Insert the option either (1) after the last *FLAGS variable, or
20979 # (2) before a word containing "conftest.", or (3) at the end.
20980 # Note that $ac_compile itself does not contain backslashes and begins
20981 # with a dollar sign (not a hyphen), so the echo should work correctly.
20982 lt_compile
=`echo "$ac_compile" | $SED \
20983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20985 -e 's:$: $lt_compiler_flag:'`
20986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20987 (eval "$lt_compile" 2>out
/conftest.err
)
20989 cat out
/conftest.err
>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20993 # The compiler can only warn and ignore the option if not recognized
20994 # So say no if there are warnings
20995 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20996 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20997 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20998 lt_cv_prog_compiler_c_o_CXX
=yes
21003 # SGI C++ compiler will create directory out/ii_files/ for
21004 # template instantiation
21005 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21006 $RM out
/* && rmdir out
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21013 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21019 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21020 $as_echo_n "(cached) " >&6
21022 lt_cv_prog_compiler_c_o_CXX
=no
21023 $RM -r conftest
2>/dev
/null
21027 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21029 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21030 # Insert the option either (1) after the last *FLAGS variable, or
21031 # (2) before a word containing "conftest.", or (3) at the end.
21032 # Note that $ac_compile itself does not contain backslashes and begins
21033 # with a dollar sign (not a hyphen), so the echo should work correctly.
21034 lt_compile
=`echo "$ac_compile" | $SED \
21035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21037 -e 's:$: $lt_compiler_flag:'`
21038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21039 (eval "$lt_compile" 2>out
/conftest.err
)
21041 cat out
/conftest.err
>&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21045 # The compiler can only warn and ignore the option if not recognized
21046 # So say no if there are warnings
21047 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21048 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21049 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21050 lt_cv_prog_compiler_c_o_CXX
=yes
21055 # SGI C++ compiler will create directory out/ii_files/ for
21056 # template instantiation
21057 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21058 $RM out
/* && rmdir out
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21065 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21070 hard_links
="nottested"
21071 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21072 # do not overwrite the value of need_locks provided by the user
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21074 $as_echo_n "checking if we can lock with hard links... " >&6; }
21077 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21079 ln conftest.a conftest.b
2>&5 || hard_links
=no
21080 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21082 $as_echo "$hard_links" >&6; }
21083 if test "$hard_links" = no
; then
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21085 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21097 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21100 # If we're using GNU nm, then we don't want the "-C" option.
21101 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21102 # Also, AIX nm treats weak defined symbols like other global defined
21103 # symbols, whereas GNU nm marks them as "W".
21104 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21105 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'
21107 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'
21111 export_symbols_cmds_CXX
="$ltdll_cmds"
21113 cygwin
* | mingw
* | cegcc
*)
21114 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'
21117 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21120 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21123 $as_echo "$ld_shlibs_CXX" >&6; }
21124 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21126 with_gnu_ld_CXX
=$with_gnu_ld
21134 # Do we need to explicitly link libc?
21136 case "x$archive_cmds_need_lc_CXX" in
21138 # Assume -lc should be added
21139 archive_cmds_need_lc_CXX
=yes
21141 if test "$enable_shared" = yes && test "$GCC" = yes; then
21142 case $archive_cmds_CXX in
21144 # FIXME: we may have to deal with multi-command sequences.
21147 # Test whether the compiler implicitly links with -lc since on some
21148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21149 # to ld, don't add -lc before -lgcc.
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21151 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21152 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21153 $as_echo_n "(cached) " >&6
21156 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21159 (eval $ac_compile) 2>&5
21161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21162 test $ac_status = 0; } 2>conftest.err
; then
21165 libobjs
=conftest.
$ac_objext
21167 wl
=$lt_prog_compiler_wl_CXX
21168 pic_flag
=$lt_prog_compiler_pic_CXX
21174 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21175 allow_undefined_flag_CXX
=
21176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21177 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21180 test $ac_status = 0; }
21182 lt_cv_archive_cmds_need_lc_CXX
=no
21184 lt_cv_archive_cmds_need_lc_CXX
=yes
21186 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21188 cat conftest.err
1>&5
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21194 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21195 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21266 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21268 library_names_spec
=
21269 libname_spec
='lib$name'
21273 postuninstall_cmds
=
21277 shlibpath_overrides_runpath
=unknown
21279 dynamic_linker
="$host_os ld.so"
21280 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21281 need_lib_prefix
=unknown
21282 hardcode_into_libs
=no
21284 # when you set need_version to no, make sure it does not cause -set_version
21285 # flags to be left without arguments
21286 need_version
=unknown
21291 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21292 shlibpath_var
=LIBPATH
21294 # AIX 3 has no versioning support, so we append a major version to the name.
21295 soname_spec
='${libname}${release}${shared_ext}$major'
21302 hardcode_into_libs
=yes
21303 if test "$host_cpu" = ia64
; then
21304 # AIX 5 supports IA64
21305 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21306 shlibpath_var
=LD_LIBRARY_PATH
21308 # With GCC up to 2.95.x, collect2 would create an import file
21309 # for dependence libraries. The import file would start with
21310 # the line `#! .'. This would cause the generated library to
21311 # depend on `.', always an invalid library. This was fixed in
21312 # development snapshots of GCC prior to 3.0.
21314 aix4 | aix4.
[01] | aix4.
[01].
*)
21315 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21317 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21320 can_build_shared
=no
21324 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21325 # soname into executable. Probably we can add versioning support to
21326 # collect2, so additional links can be useful in future.
21327 if test "$aix_use_runtimelinking" = yes; then
21328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21329 # instead of lib<name>.a to let people know that these are not
21330 # typical AIX shared libraries.
21331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333 # We preserve .a as extension for shared libraries through AIX4.2
21334 # and later when we are not doing run time linking.
21335 library_names_spec
='${libname}${release}.a $libname.a'
21336 soname_spec
='${libname}${release}${shared_ext}$major'
21338 shlibpath_var
=LIBPATH
21345 # Since July 2007 AmigaOS4 officially supports .so libraries.
21346 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21350 library_names_spec
='$libname.ixlibrary $libname.a'
21351 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21352 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'
21358 library_names_spec
='${libname}${shared_ext}'
21359 dynamic_linker
="$host_os ld.so"
21360 shlibpath_var
=LIBRARY_PATH
21366 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21367 soname_spec
='${libname}${release}${shared_ext}$major'
21368 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21369 shlibpath_var
=LD_LIBRARY_PATH
21370 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21371 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21372 # the default ld.so.conf also contains /usr/contrib/lib and
21373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21374 # libtool to hard-code these into programs
21377 cygwin
* | mingw
* | pw32
* | cegcc
*)
21378 version_type
=windows
21383 case $GCC,$host_os in
21384 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21385 library_names_spec
='$libname.dll.a'
21386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21387 postinstall_cmds
='base_file=`basename \${file}`~
21388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21389 dldir=$destdir/`dirname \$dlpath`~
21390 test -d \$dldir || mkdir -p \$dldir~
21391 $install_prog $dir/$dlname \$dldir/$dlname~
21392 chmod a+x \$dldir/$dlname~
21393 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21394 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21396 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21397 dlpath=$dir/\$dldll~
21399 shlibpath_overrides_runpath
=yes
21403 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21404 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21408 # MinGW DLLs use traditional 'lib' prefix
21409 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21412 # pw32 DLLs use 'pw' prefix rather than 'lib'
21413 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21419 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21422 dynamic_linker
='Win32 ld.exe'
21423 # FIXME: first we should search . and the directory the executable is in
21427 darwin
* | rhapsody
*)
21428 dynamic_linker
="$host_os dyld"
21429 version_type
=darwin
21432 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21433 soname_spec
='${libname}${release}${major}$shared_ext'
21434 shlibpath_overrides_runpath
=yes
21435 shlibpath_var
=DYLD_LIBRARY_PATH
21436 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21438 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21446 soname_spec
='${libname}${release}${shared_ext}$major'
21447 shlibpath_var
=LD_LIBRARY_PATH
21450 freebsd
* | dragonfly
*)
21451 # DragonFly does not have aout. When/if they implement a new
21452 # versioning mechanism, adjust this.
21453 if test -x /usr
/bin
/objformat
; then
21454 objformat
=`/usr/bin/objformat`
21457 freebsd
[23].
*) objformat
=aout
;;
21458 *) objformat
=elf
;;
21461 version_type
=freebsd-
$objformat
21462 case $version_type in
21464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21469 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21473 shlibpath_var
=LD_LIBRARY_PATH
21476 shlibpath_overrides_runpath
=yes
21478 freebsd3.
[01]* | freebsdelf3.
[01]*)
21479 shlibpath_overrides_runpath
=yes
21480 hardcode_into_libs
=yes
21482 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21483 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21484 shlibpath_overrides_runpath
=no
21485 hardcode_into_libs
=yes
21487 *) # from 4.6 on, and DragonFly
21488 shlibpath_overrides_runpath
=yes
21489 hardcode_into_libs
=yes
21498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21499 soname_spec
='${libname}${release}${shared_ext}$major'
21500 shlibpath_var
=LD_LIBRARY_PATH
21501 hardcode_into_libs
=yes
21508 dynamic_linker
="$host_os runtime_loader"
21509 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21510 soname_spec
='${libname}${release}${shared_ext}$major'
21511 shlibpath_var
=LIBRARY_PATH
21512 shlibpath_overrides_runpath
=yes
21513 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21514 hardcode_into_libs
=yes
21517 hpux9
* | hpux10
* | hpux11
*)
21518 # Give a soname corresponding to the major version so that dld.sl refuses to
21519 # link against other versions.
21526 hardcode_into_libs
=yes
21527 dynamic_linker
="$host_os dld.so"
21528 shlibpath_var
=LD_LIBRARY_PATH
21529 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21531 soname_spec
='${libname}${release}${shared_ext}$major'
21532 if test "X$HPUX_IA64_MODE" = X32
; then
21533 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21535 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21537 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21541 hardcode_into_libs
=yes
21542 dynamic_linker
="$host_os dld.sl"
21543 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21544 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21546 soname_spec
='${libname}${release}${shared_ext}$major'
21547 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21548 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21552 dynamic_linker
="$host_os dld.sl"
21553 shlibpath_var
=SHLIB_PATH
21554 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21556 soname_spec
='${libname}${release}${shared_ext}$major'
21559 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21560 postinstall_cmds
='chmod 555 $lib'
21561 # or fails outright, so override atomically:
21562 install_override_mode
=555
21569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21570 soname_spec
='${libname}${release}${shared_ext}$major'
21571 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21572 shlibpath_var
=LD_LIBRARY_PATH
21573 shlibpath_overrides_runpath
=no
21574 hardcode_into_libs
=yes
21577 irix5
* | irix6
* | nonstopux
*)
21579 nonstopux
*) version_type
=nonstopux
;;
21581 if test "$lt_cv_prog_gnu_ld" = yes; then
21589 soname_spec
='${libname}${release}${shared_ext}$major'
21590 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21592 irix5
* | nonstopux
*)
21593 libsuff
= shlibsuff
=
21596 case $LD in # libtool.m4 will add one of these switches to LD
21597 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21598 libsuff
= shlibsuff
= libmagic
=32-bit;;
21599 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21600 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21601 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21602 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21603 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21607 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21608 shlibpath_overrides_runpath
=no
21609 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21610 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21611 hardcode_into_libs
=yes
21614 # No shared lib support for Linux oldld, aout, or coff.
21615 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21619 # This must be Linux ELF.
21620 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21625 soname_spec
='${libname}${release}${shared_ext}$major'
21626 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21627 shlibpath_var
=LD_LIBRARY_PATH
21628 shlibpath_overrides_runpath
=no
21630 # Some binutils ld are patched to set DT_RUNPATH
21631 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
21632 $as_echo_n "(cached) " >&6
21634 lt_cv_shlibpath_overrides_runpath
=no
21635 save_LDFLAGS
=$LDFLAGS
21636 save_libdir
=$libdir
21637 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21638 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h. */
21650 if ac_fn_cxx_try_link
"$LINENO"; then :
21651 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21652 lt_cv_shlibpath_overrides_runpath
=yes
21655 rm -f core conftest.err conftest.
$ac_objext \
21656 conftest
$ac_exeext conftest.
$ac_ext
21657 LDFLAGS
=$save_LDFLAGS
21658 libdir
=$save_libdir
21662 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21664 # This implies no fast_install, which is unacceptable.
21665 # Some rework will be needed to allow for fast_install
21666 # before this can be enabled.
21667 hardcode_into_libs
=yes
21669 # Append ld.so.conf contents to the search path
21670 if test -f /etc
/ld.so.conf
; then
21671 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' ' '`
21672 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21675 # We used to test for /lib/ld.so.1 and disable shared libraries on
21676 # powerpc, because MkLinux only supported shared libraries with the
21677 # GNU dynamic linker. Since this was broken with cross compilers,
21678 # most powerpc-linux boxes support dynamic linking these days and
21679 # people can always --disable-shared, the test was removed, and we
21680 # assume the GNU/Linux dynamic linker is in use.
21681 dynamic_linker
='GNU/Linux ld.so'
21688 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21690 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21691 dynamic_linker
='NetBSD (a.out) ld.so'
21693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21694 soname_spec
='${libname}${release}${shared_ext}$major'
21695 dynamic_linker
='NetBSD ld.elf_so'
21697 shlibpath_var
=LD_LIBRARY_PATH
21698 shlibpath_overrides_runpath
=yes
21699 hardcode_into_libs
=yes
21704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21705 shlibpath_var
=LD_LIBRARY_PATH
21706 shlibpath_overrides_runpath
=yes
21713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21714 soname_spec
='${libname}${release}${shared_ext}$major'
21715 shlibpath_var
=LD_LIBRARY_PATH
21716 shlibpath_overrides_runpath
=no
21717 hardcode_into_libs
=yes
21718 dynamic_linker
='ldqnx.so'
21723 sys_lib_dlsearch_path_spec
="/usr/lib"
21725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21727 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21728 *) need_version
=no
;;
21730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21731 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21732 shlibpath_var
=LD_LIBRARY_PATH
21733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21735 openbsd2.
[89] | openbsd2.
[89].
*)
21736 shlibpath_overrides_runpath
=no
21739 shlibpath_overrides_runpath
=yes
21743 shlibpath_overrides_runpath
=yes
21748 libname_spec
='$name'
21751 library_names_spec
='$libname${shared_ext} $libname.a'
21752 dynamic_linker
='OS/2 ld.exe'
21753 shlibpath_var
=LIBPATH
21756 osf3
* | osf4
* | osf5
*)
21760 soname_spec
='${libname}${release}${shared_ext}$major'
21761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21762 shlibpath_var
=LD_LIBRARY_PATH
21763 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21764 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21776 soname_spec
='${libname}${release}${shared_ext}$major'
21777 shlibpath_var
=LD_LIBRARY_PATH
21778 shlibpath_overrides_runpath
=yes
21779 hardcode_into_libs
=yes
21780 # ldd complains unless libraries are executable
21781 postinstall_cmds
='chmod +x $lib'
21786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21787 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21788 shlibpath_var
=LD_LIBRARY_PATH
21789 shlibpath_overrides_runpath
=yes
21790 if test "$with_gnu_ld" = yes; then
21798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21799 soname_spec
='${libname}${release}${shared_ext}$major'
21800 shlibpath_var
=LD_LIBRARY_PATH
21801 case $host_vendor in
21803 shlibpath_overrides_runpath
=no
21805 runpath_var
=LD_RUN_PATH
21813 shlibpath_overrides_runpath
=no
21814 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21820 if test -d /usr
/nec
;then
21822 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21823 soname_spec
='$libname${shared_ext}.$major'
21824 shlibpath_var
=LD_LIBRARY_PATH
21828 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21829 version_type
=freebsd-elf
21832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21833 soname_spec
='${libname}${release}${shared_ext}$major'
21834 shlibpath_var
=LD_LIBRARY_PATH
21835 shlibpath_overrides_runpath
=yes
21836 hardcode_into_libs
=yes
21837 if test "$with_gnu_ld" = yes; then
21838 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21840 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21843 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21847 sys_lib_dlsearch_path_spec
='/usr/lib'
21851 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21856 shlibpath_var
=LD_LIBRARY_PATH
21857 shlibpath_overrides_runpath
=no
21858 hardcode_into_libs
=yes
21863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21864 soname_spec
='${libname}${release}${shared_ext}$major'
21865 shlibpath_var
=LD_LIBRARY_PATH
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21873 $as_echo "$dynamic_linker" >&6; }
21874 test "$dynamic_linker" = no
&& can_build_shared
=no
21876 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21877 if test "$GCC" = yes; then
21878 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21881 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21882 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21884 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21885 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21926 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21927 hardcode_action_CXX
=
21928 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21929 test -n "$runpath_var_CXX" ||
21930 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21932 # We can hardcode non-existent directories.
21933 if test "$hardcode_direct_CXX" != no
&&
21934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21935 # have to relink, otherwise we might link with an installed library
21936 # when we should be linking with a yet-to-be-installed one
21937 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21938 test "$hardcode_minus_L_CXX" != no
; then
21939 # Linking always hardcodes the temporary library directory.
21940 hardcode_action_CXX
=relink
21942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21943 hardcode_action_CXX
=immediate
21946 # We cannot hardcode anything, or else we can only hardcode existing
21948 hardcode_action_CXX
=unsupported
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21951 $as_echo "$hardcode_action_CXX" >&6; }
21953 if test "$hardcode_action_CXX" = relink ||
21954 test "$inherit_rpath_CXX" = yes; then
21955 # Fast installation is not supported
21956 enable_fast_install
=no
21957 elif test "$shlibpath_overrides_runpath" = yes ||
21958 test "$enable_shared" = no
; then
21959 # Fast installation is not necessary
21960 enable_fast_install
=needless
21969 fi # test -n "$compiler"
21975 with_gnu_ld
=$lt_save_with_gnu_ld
21976 lt_cv_path_LDCXX
=$lt_cv_path_LD
21977 lt_cv_path_LD
=$lt_save_path_LD
21978 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21979 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21980 fi # test "$_lt_caught_CXX_error" != yes
21983 ac_cpp
='$CXXCPP $CPPFLAGS'
21984 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22003 # Only expand once:
22009 # Identify the assembler which will work hand-in-glove with the newly
22010 # built GCC, so that we can examine its features. This is the assembler
22011 # which will be driven by the driver program.
22013 # If build != host, and we aren't building gas in-tree, we identify a
22014 # build->target assembler and hope that it will have the same features
22015 # as the host->target assembler we'll be using.
22016 gcc_cv_gas_major_version
=
22017 gcc_cv_gas_minor_version
=
22018 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22020 if ${gcc_cv_as+:} false
; then :
22024 if test -x "$DEFAULT_ASSEMBLER"; then
22025 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22026 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22027 && test -f ..
/gas
/Makefile \
22028 && test x
$build = x
$host; then
22029 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22030 elif test -x as
$build_exeext; then
22031 # Build using assembler in the current directory.
22032 gcc_cv_as
=.
/as
$build_exeext
22033 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22034 gcc_cv_as
="$AS_FOR_TARGET"
22036 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22037 set dummy
$AS_FOR_TARGET; ac_word
=$2
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22039 $as_echo_n "checking for $ac_word... " >&6; }
22040 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22041 $as_echo_n "(cached) " >&6
22045 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22049 for as_dir
in $PATH
22052 test -z "$as_dir" && as_dir
=.
22053 for ac_exec_ext
in '' $ac_executable_extensions; do
22054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22055 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22066 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22067 if test -n "$gcc_cv_as"; then
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22069 $as_echo "$gcc_cv_as" >&6; }
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22072 $as_echo "no" >&6; }
22079 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22081 case "$ORIGINAL_AS_FOR_TARGET" in
22082 .
/as | .
/as
$build_exeext) ;;
22083 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22088 $as_echo_n "checking what assembler to use... " >&6; }
22089 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22090 # Single tree build which includes gas. We want to prefer it
22091 # over whatever linker top-level may have detected, since
22092 # we'll use what we're building after installation anyway.
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22094 $as_echo "newly built gas" >&6; }
22096 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22097 for f
in $gcc_cv_as_bfd_srcdir/configure \
22098 $gcc_cv_as_gas_srcdir/configure \
22099 $gcc_cv_as_gas_srcdir/configure.ac \
22100 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22101 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22102 if test x
$gcc_cv_gas_version != x
; then
22106 case $gcc_cv_gas_version in
22108 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22110 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22111 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22112 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22113 case $gcc_cv_gas_patch_version in
22114 "") gcc_cv_gas_patch_version
="0" ;;
22116 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22117 + $gcc_cv_gas_minor_version \) \* 1000 \
22118 + $gcc_cv_gas_patch_version`
22120 in_tree_gas_is_elf
=no
22121 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22122 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22123 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22125 in_tree_gas_is_elf
=yes
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22129 $as_echo "$gcc_cv_as" >&6; }
22134 # Check whether --enable-ld was given.
22135 if test "${enable_ld+set}" = set; then :
22136 enableval
=$enable_ld; case "${enableval}" in
22144 install_gold_as_default
=no
22145 # Check whether --enable-gold was given.
22146 if test "${enable_gold+set}" = set; then :
22147 enableval
=$enable_gold; case "${enableval}" in
22149 install_gold_as_default
=yes
22152 if test x
${default_ld} != x
; then
22153 install_gold_as_default
=yes
22159 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22165 # Identify the linker which will work hand-in-glove with the newly
22166 # built GCC, so that we can examine its features. This is the linker
22167 # which will be driven by the driver program.
22169 # If build != host, and we aren't building gas in-tree, we identify a
22170 # build->target linker and hope that it will have the same features
22171 # as the host->target linker we'll be using.
22172 gcc_cv_gld_major_version
=
22173 gcc_cv_gld_minor_version
=
22174 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22175 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22176 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22178 if ${gcc_cv_ld+:} false
; then :
22182 if test -x "$DEFAULT_LINKER"; then
22183 gcc_cv_ld
="$DEFAULT_LINKER"
22184 elif test $install_gold_as_default = yes \
22185 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22186 && test -f ..
/gold
/Makefile \
22187 && test x
$build = x
$host; then
22188 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22189 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22190 && test -f ..
/ld
/Makefile \
22191 && test x
$build = x
$host; then
22192 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22193 elif test -x collect-ld
$build_exeext; then
22194 # Build using linker in the current directory.
22195 gcc_cv_ld
=.
/collect-ld
$build_exeext
22196 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22197 gcc_cv_ld
="$LD_FOR_TARGET"
22199 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22200 set dummy
$LD_FOR_TARGET; ac_word
=$2
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22202 $as_echo_n "checking for $ac_word... " >&6; }
22203 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22204 $as_echo_n "(cached) " >&6
22208 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22212 for as_dir
in $PATH
22215 test -z "$as_dir" && as_dir
=.
22216 for ac_exec_ext
in '' $ac_executable_extensions; do
22217 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22218 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22229 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22230 if test -n "$gcc_cv_ld"; then
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22232 $as_echo "$gcc_cv_ld" >&6; }
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22235 $as_echo "no" >&6; }
22242 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22243 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22244 # if the PLUGIN_LD is set ld-new, just have it as ld
22245 # as that is the installed named.
22246 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22247 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22248 PLUGIN_LD_SUFFIX
=ld
22251 # Check whether --with-plugin-ld was given.
22252 if test "${with_plugin_ld+set}" = set; then :
22253 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22254 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22255 PLUGIN_LD_SUFFIX
="$withval"
22261 cat >>confdefs.h
<<_ACEOF
22262 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22266 # Check to see if we are using gold instead of ld
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22268 $as_echo_n "checking whether we are using gold... " >&6; }
22270 if test x
$gcc_cv_ld != x
; then
22271 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22272 |
grep "GNU gold" > /dev
/null
; then
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22277 $as_echo "$ld_is_gold" >&6; }
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22280 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22281 # Check to see if default ld is not gold, but gold is
22282 # available and has support for split stack. If gcc was configured
22283 # with gold then no checking is done.
22285 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22287 # For platforms other than powerpc64*, enable as appropriate.
22289 gold_non_default
=no
22290 ld_gold
=`which ${gcc_cv_ld}.gold`
22291 # Make sure this gold has minimal split stack support
22292 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22293 ld_vers
=`$ld_gold --version | sed 1q`
22294 gold_vers
=`echo $ld_vers | sed -n \
22295 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22297 # check that the gold version contains the complete split stack support
22298 # on powerpc64 big and little endian
22300 case "$gold_vers" in
22301 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22303 *) gold_non_default
=no
22309 if test $gold_non_default = yes; then
22311 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22316 $as_echo "$gold_non_default" >&6; }
22318 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22320 case "$ORIGINAL_LD_FOR_TARGET" in
22321 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22322 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22327 $as_echo_n "checking what linker to use... " >&6; }
22328 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22329 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22330 # Single tree build which includes ld. We want to prefer it
22331 # over whatever linker top-level may have detected, since
22332 # we'll use what we're building after installation anyway.
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22334 $as_echo "newly built ld" >&6; }
22336 in_tree_ld_is_elf
=no
22337 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22338 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22339 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22340 in_tree_ld_is_elf
=yes
22341 elif test "$ld_is_gold" = yes; then
22342 in_tree_ld_is_elf
=yes
22344 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
22346 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22347 if test x
$gcc_cv_gld_version != x
; then
22351 case $gcc_cv_gld_version in
22353 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22355 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22356 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22357 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22358 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22361 $as_echo "$gcc_cv_ld" >&6; }
22363 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22364 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22365 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22371 # Figure out what nm we will be using.
22372 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22373 if ${gcc_cv_nm+:} false
; then :
22377 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22378 && test -f ..
/binutils
/Makefile \
22379 && test x
$build = x
$host; then
22380 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22381 elif test -x nm
$build_exeext; then
22382 gcc_cv_nm
=.
/nm
$build_exeext
22383 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22384 gcc_cv_nm
="$NM_FOR_TARGET"
22386 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22387 set dummy
$NM_FOR_TARGET; ac_word
=$2
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22389 $as_echo_n "checking for $ac_word... " >&6; }
22390 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22391 $as_echo_n "(cached) " >&6
22395 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22399 for as_dir
in $PATH
22402 test -z "$as_dir" && as_dir
=.
22403 for ac_exec_ext
in '' $ac_executable_extensions; do
22404 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22405 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22416 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22417 if test -n "$gcc_cv_nm"; then
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22419 $as_echo "$gcc_cv_nm" >&6; }
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22430 $as_echo_n "checking what nm to use... " >&6; }
22431 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22432 # Single tree build which includes binutils.
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22434 $as_echo "newly built nm" >&6; }
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22438 $as_echo "$gcc_cv_nm" >&6; }
22442 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22444 case "$ORIGINAL_NM_FOR_TARGET" in
22445 .
/nm | .
/nm
$build_exeext) ;;
22446 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22451 # Figure out what objdump we will be using.
22452 if ${gcc_cv_objdump+:} false
; then :
22456 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22457 && test -f ..
/binutils
/Makefile \
22458 && test x
$build = x
$host; then
22459 # Single tree build which includes binutils.
22460 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22461 elif test -x objdump
$build_exeext; then
22462 gcc_cv_objdump
=.
/objdump
$build_exeext
22463 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22464 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22466 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22467 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22469 $as_echo_n "checking for $ac_word... " >&6; }
22470 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22471 $as_echo_n "(cached) " >&6
22473 case $gcc_cv_objdump in
22475 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22479 for as_dir
in $PATH
22482 test -z "$as_dir" && as_dir
=.
22483 for ac_exec_ext
in '' $ac_executable_extensions; do
22484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22485 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22496 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22497 if test -n "$gcc_cv_objdump"; then
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22499 $as_echo "$gcc_cv_objdump" >&6; }
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22502 $as_echo "no" >&6; }
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22510 $as_echo_n "checking what objdump to use... " >&6; }
22511 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22512 # Single tree build which includes binutils.
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22514 $as_echo "newly built objdump" >&6; }
22515 elif test x
$gcc_cv_objdump = x
; then
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22517 $as_echo "not found" >&6; }
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22520 $as_echo "$gcc_cv_objdump" >&6; }
22523 # Figure out what readelf we will be using.
22524 if ${gcc_cv_readelf+:} false
; then :
22528 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22529 && test -f ..
/binutils
/Makefile \
22530 && test x
$build = x
$host; then
22531 # Single tree build which includes binutils.
22532 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22533 elif test -x readelf
$build_exeext; then
22534 gcc_cv_readelf
=.
/readelf
$build_exeext
22535 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22536 gcc_cv_readelf
="$READELF_FOR_TARGET"
22538 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22539 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22541 $as_echo_n "checking for $ac_word... " >&6; }
22542 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22543 $as_echo_n "(cached) " >&6
22545 case $gcc_cv_readelf in
22547 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22551 for as_dir
in $PATH
22554 test -z "$as_dir" && as_dir
=.
22555 for ac_exec_ext
in '' $ac_executable_extensions; do
22556 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22557 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22568 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22569 if test -n "$gcc_cv_readelf"; then
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22571 $as_echo "$gcc_cv_readelf" >&6; }
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22574 $as_echo "no" >&6; }
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22582 $as_echo_n "checking what readelf to use... " >&6; }
22583 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22584 # Single tree build which includes binutils.
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22586 $as_echo "newly built readelf" >&6; }
22587 elif test x
$gcc_cv_readelf = x
; then
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22589 $as_echo "not found" >&6; }
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22592 $as_echo "$gcc_cv_readelf" >&6; }
22595 # Figure out what otool we will be using.
22596 if ${gcc_cv_otool+:} false
; then :
22600 if test -x otool
$build_exeext; then
22601 gcc_cv_otool
=.
/otool
$build_exeext
22602 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22603 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22605 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22606 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22608 $as_echo_n "checking for $ac_word... " >&6; }
22609 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22610 $as_echo_n "(cached) " >&6
22612 case $gcc_cv_otool in
22614 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
22617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22618 for as_dir
in $PATH
22621 test -z "$as_dir" && as_dir
=.
22622 for ac_exec_ext
in '' $ac_executable_extensions; do
22623 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22624 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
22625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22635 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
22636 if test -n "$gcc_cv_otool"; then
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22638 $as_echo "$gcc_cv_otool" >&6; }
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22641 $as_echo "no" >&6; }
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22649 $as_echo_n "checking what otool to use... " >&6; }
22650 if test x
$gcc_cv_otool = x
; then
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22652 $as_echo "not found" >&6; }
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22655 $as_echo "$gcc_cv_otool" >&6; }
22658 # Figure out what assembler alignment features are present.
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22660 $as_echo_n "checking assembler flags... " >&6; }
22661 if ${gcc_cv_as_flags+:} false
; then :
22662 $as_echo_n "(cached) " >&6
22665 i
[34567]86-*-linux*)
22666 gcc_cv_as_flags
=--32
22668 x86_64-
*-linux-gnux32)
22669 gcc_cv_as_flags
=--x32
22672 gcc_cv_as_flags
=--64
22674 powerpc
*-*-darwin*)
22675 gcc_cv_as_flags
="-arch ppc"
22678 gcc_cv_as_flags
=" "
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22683 $as_echo "$gcc_cv_as_flags" >&6; }
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22686 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22687 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
22688 $as_echo_n "(cached) " >&6
22690 gcc_cv_as_balign_and_p2align
=no
22691 if test $in_tree_gas = yes; then
22692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22693 then gcc_cv_as_balign_and_p2align
=yes
22695 elif test x
$gcc_cv_as != x
; then
22696 $as_echo '.balign 4
22697 .p2align 2' > conftest.s
22698 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22700 (eval $ac_try) 2>&5
22702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22703 test $ac_status = 0; }; }
22705 gcc_cv_as_balign_and_p2align
=yes
22707 echo "configure: failed program was" >&5
22710 rm -f conftest.o conftest.s
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22714 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22715 if test $gcc_cv_as_balign_and_p2align = yes; then
22717 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22723 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22724 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
22725 $as_echo_n "(cached) " >&6
22727 gcc_cv_as_max_skip_p2align
=no
22728 if test $in_tree_gas = yes; then
22729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22730 then gcc_cv_as_max_skip_p2align
=yes
22732 elif test x
$gcc_cv_as != x
; then
22733 $as_echo '.p2align 4,,7' > conftest.s
22734 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22736 (eval $ac_try) 2>&5
22738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22739 test $ac_status = 0; }; }
22741 gcc_cv_as_max_skip_p2align
=yes
22743 echo "configure: failed program was" >&5
22746 rm -f conftest.o conftest.s
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22750 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22751 if test $gcc_cv_as_max_skip_p2align = yes; then
22753 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22759 $as_echo_n "checking assembler for .literal16... " >&6; }
22760 if ${gcc_cv_as_literal16+:} false
; then :
22761 $as_echo_n "(cached) " >&6
22763 gcc_cv_as_literal16
=no
22764 if test $in_tree_gas = yes; then
22765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22766 then gcc_cv_as_literal16
=yes
22768 elif test x
$gcc_cv_as != x
; then
22769 $as_echo '.literal16' > conftest.s
22770 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22772 (eval $ac_try) 2>&5
22774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22775 test $ac_status = 0; }; }
22777 gcc_cv_as_literal16
=yes
22779 echo "configure: failed program was" >&5
22782 rm -f conftest.o conftest.s
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22786 $as_echo "$gcc_cv_as_literal16" >&6; }
22787 if test $gcc_cv_as_literal16 = yes; then
22789 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22795 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22796 if ${gcc_cv_as_subsection_m1+:} false
; then :
22797 $as_echo_n "(cached) " >&6
22799 gcc_cv_as_subsection_m1
=no
22800 if test $in_tree_gas = yes; then
22801 if test $in_tree_gas_is_elf = yes \
22802 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22803 then gcc_cv_as_subsection_m1
=yes
22805 elif test x
$gcc_cv_as != x
; then
22806 $as_echo 'conftest_label1: .word 0
22808 conftest_label2: .word 0
22809 .previous' > conftest.s
22810 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22812 (eval $ac_try) 2>&5
22814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22815 test $ac_status = 0; }; }
22817 if test x
$gcc_cv_nm != x
; then
22818 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22819 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22820 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22822 else gcc_cv_as_subsection_m1
=yes
22824 rm -f conftest.nm1 conftest.nm2
22827 echo "configure: failed program was" >&5
22830 rm -f conftest.o conftest.s
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22834 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22835 if test $gcc_cv_as_subsection_m1 = yes; then
22837 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22843 $as_echo_n "checking assembler for .weak... " >&6; }
22844 if ${gcc_cv_as_weak+:} false
; then :
22845 $as_echo_n "(cached) " >&6
22848 if test $in_tree_gas = yes; then
22849 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22850 then gcc_cv_as_weak
=yes
22852 elif test x
$gcc_cv_as != x
; then
22853 $as_echo ' .weak foobar' > conftest.s
22854 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856 (eval $ac_try) 2>&5
22858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; }
22863 echo "configure: failed program was" >&5
22866 rm -f conftest.o conftest.s
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22870 $as_echo "$gcc_cv_as_weak" >&6; }
22871 if test $gcc_cv_as_weak = yes; then
22873 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22879 $as_echo_n "checking assembler for .weakref... " >&6; }
22880 if ${gcc_cv_as_weakref+:} false
; then :
22881 $as_echo_n "(cached) " >&6
22883 gcc_cv_as_weakref
=no
22884 if test $in_tree_gas = yes; then
22885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22886 then gcc_cv_as_weakref
=yes
22888 elif test x
$gcc_cv_as != x
; then
22889 $as_echo ' .weakref foobar, barfnot' > conftest.s
22890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22892 (eval $ac_try) 2>&5
22894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22895 test $ac_status = 0; }; }
22897 gcc_cv_as_weakref
=yes
22899 echo "configure: failed program was" >&5
22902 rm -f conftest.o conftest.s
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22906 $as_echo "$gcc_cv_as_weakref" >&6; }
22907 if test $gcc_cv_as_weakref = yes; then
22909 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22915 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22916 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
22917 $as_echo_n "(cached) " >&6
22919 gcc_cv_as_nsubspa_comdat
=no
22920 if test $in_tree_gas = yes; then
22921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22922 then gcc_cv_as_nsubspa_comdat
=yes
22924 elif test x
$gcc_cv_as != x
; then
22925 $as_echo ' .SPACE $TEXT$
22926 .NSUBSPA $CODE$,COMDAT' > conftest.s
22927 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929 (eval $ac_try) 2>&5
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }; }
22934 gcc_cv_as_nsubspa_comdat
=yes
22936 echo "configure: failed program was" >&5
22939 rm -f conftest.o conftest.s
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22943 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22944 if test $gcc_cv_as_nsubspa_comdat = yes; then
22946 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22951 # .hidden needs to be supported in both the assembler and the linker,
22952 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22953 # This is irritatingly difficult to feature test for; we have to check the
22954 # date string after the version number. If we've got an in-tree
22955 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22957 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22958 case "${target}" in
22960 conftest_s
=' .globl foobar,hidden'
22963 conftest_s
=' .hidden foobar
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22968 $as_echo_n "checking assembler for .hidden... " >&6; }
22969 if ${gcc_cv_as_hidden+:} false
; then :
22970 $as_echo_n "(cached) " >&6
22972 gcc_cv_as_hidden
=no
22973 if test $in_tree_gas = yes; then
22974 if test $in_tree_gas_is_elf = yes \
22975 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22976 then gcc_cv_as_hidden
=yes
22978 elif test x
$gcc_cv_as != x
; then
22979 $as_echo "$conftest_s" > conftest.s
22980 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22982 (eval $ac_try) 2>&5
22984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22985 test $ac_status = 0; }; }
22987 gcc_cv_as_hidden
=yes
22989 echo "configure: failed program was" >&5
22992 rm -f conftest.o conftest.s
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22996 $as_echo "$gcc_cv_as_hidden" >&6; }
22999 case "${target}" in
23001 # Darwin as has some visibility support, though with a different syntax.
23002 gcc_cv_as_hidden
=yes
23006 # gnu_indirect_function type is an extension proposed at
23007 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23008 # selection of function implementation
23009 # Check whether --enable-gnu-indirect-function was given.
23010 if test "${enable_gnu_indirect_function+set}" = set; then :
23011 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23013 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23014 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23017 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23021 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23023 cat >>confdefs.h
<<_ACEOF
23024 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23029 if test $in_tree_ld != yes ; then
23030 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23031 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23032 if test x
"$ld_is_gold" = xyes
; then
23033 # GNU gold --version looks like this:
23035 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23037 # We extract the binutils version which is more familiar and specific
23038 # than the gold version.
23039 ld_vers
=`echo $ld_ver | sed -n \
23040 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23042 # GNU ld --version looks like this:
23044 # GNU ld (GNU Binutils) 2.21.51.20110225
23045 ld_vers
=`echo $ld_ver | sed -n \
23046 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23048 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
23049 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23050 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23051 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23053 case "${target}" in
23055 # Solaris 2 ld -V output looks like this for a regular version:
23057 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23059 # but test versions add stuff at the end:
23061 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23063 # In Solaris 11.4, this was changed to
23065 # ld: Solaris ELF Utilities: 11.4-1.3123
23067 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23068 # numbers can be used in ld.so.1 feature checks even if a different
23069 # linker is configured.
23070 ld_ver
=`$gcc_cv_ld -V 2>&1`
23071 if echo "$ld_ver" |
$EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev
/null
; then
23072 ld_vers
=`echo $ld_ver | sed -n \
23073 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
23074 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23075 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23083 $as_echo_n "checking linker for .hidden support... " >&6; }
23084 if ${gcc_cv_ld_hidden+:} false
; then :
23085 $as_echo_n "(cached) " >&6
23087 if test $in_tree_ld = yes ; then
23088 gcc_cv_ld_hidden
=no
23089 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 \
23090 && test $in_tree_ld_is_elf = yes; then
23091 gcc_cv_ld_hidden
=yes
23094 gcc_cv_ld_hidden
=yes
23095 if test x
"$ld_is_gold" = xyes
; then
23097 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23098 case "${target}" in
23099 mmix-knuth-mmixware
)
23100 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23101 gcc_cv_ld_hidden
=no
23104 if test 0"$ld_date" -lt 20020404; then
23105 if test -n "$ld_date"; then
23106 # If there was date string, but was earlier than 2002-04-04, fail
23107 gcc_cv_ld_hidden
=no
23108 elif test -z "$ld_vers"; then
23109 # If there was no date string nor ld version number, something is wrong
23110 gcc_cv_ld_hidden
=no
23112 test -z "$ld_vers_patch" && ld_vers_patch
=0
23113 if test "$ld_vers_major" -lt 2; then
23114 gcc_cv_ld_hidden
=no
23115 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23116 gcc_cv_ld_hidden
="no"
23117 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23118 gcc_cv_ld_hidden
=no
23123 case "${target}" in
23125 gcc_cv_ld_hidden
=yes
23128 # Darwin ld has some visibility support.
23129 gcc_cv_ld_hidden
=yes
23131 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23132 gcc_cv_ld_hidden
=yes
23134 *-*-solaris2.1
[0-9]*)
23135 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23136 # .symbolic was only added in Solaris 9 12/02.
23137 gcc_cv_ld_hidden
=yes
23140 gcc_cv_ld_hidden
=no
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23147 $as_echo "$gcc_cv_ld_hidden" >&6; }
23148 libgcc_visibility
=no
23151 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23152 libgcc_visibility
=yes
23154 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23159 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23160 gcc_cv_ld_ro_rw_mix
=unknown
23161 if test $in_tree_ld = yes ; then
23162 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 \
23163 && test $in_tree_ld_is_elf = yes; then
23164 gcc_cv_ld_ro_rw_mix
=read-write
23166 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23167 echo '.section myfoosect, "a"' > conftest1.s
23168 echo '.section myfoosect, "aw"' > conftest2.s
23169 echo '.byte 1' >> conftest2.s
23170 echo '.section myfoosect, "a"' > conftest3.s
23171 echo '.byte 0' >> conftest3.s
23172 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23173 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23174 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23175 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23176 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23177 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23178 | sed -e '/myfoosect/!d' -e N`
23179 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23180 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23181 gcc_cv_ld_ro_rw_mix
=read-only
23183 gcc_cv_ld_ro_rw_mix
=read-write
23187 rm -f conftest.
* conftest
[123].
*
23189 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23191 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23195 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23197 # Check whether --enable-initfini-array was given.
23198 if test "${enable_initfini_array+set}" = set; then :
23199 enableval
=$enable_initfini_array;
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23203 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23204 if ${gcc_cv_initfini_array+:} false
; then :
23205 $as_echo_n "(cached) " >&6
23207 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23208 case "${target}" in
23210 if test "$cross_compiling" = yes; then :
23211 gcc_cv_initfini_array
=no
23213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23214 /* end confdefs.h. */
23217 #error Not an ELF OS
23219 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23220 if it can be used. */
23222 int main (void) { return x; }
23223 int foo (void) { x = 0; }
23224 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23227 if ac_fn_cxx_try_run
"$LINENO"; then :
23228 gcc_cv_initfini_array
=yes
23230 gcc_cv_initfini_array
=no
23232 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23233 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23237 gcc_cv_initfini_array
=no
23238 if test $in_tree_ld = yes ; then
23239 if test "$gcc_cv_gld_major_version" -eq 2 \
23240 -a "$gcc_cv_gld_minor_version" -ge 22 \
23241 -o "$gcc_cv_gld_major_version" -gt 2 \
23242 && test $in_tree_ld_is_elf = yes; then
23243 gcc_cv_initfini_array
=yes
23245 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23246 case $target:$gas in
23249 sh_type
='%progbits'
23251 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23253 sh_type
='@progbits'
23255 sparc
*-*-solaris2*:no
)
23257 sh_type
='#progbits'
23261 case "$target:$gnu_ld" in
23263 cat > conftest.s
<<EOF
23264 .section .dtors,$sh_flags,$sh_type
23266 .byte 'A', 'A', 'A', 'A'
23267 .section .ctors,$sh_flags,$sh_type
23269 .byte 'B', 'B', 'B', 'B'
23270 .section .fini_array.65530,$sh_flags,$sh_type
23272 .byte 'C', 'C', 'C', 'C'
23273 .section .init_array.65530,$sh_flags,$sh_type
23275 .byte 'D', 'D', 'D', 'D'
23276 .section .dtors.64528,$sh_flags,$sh_type
23278 .byte 'E', 'E', 'E', 'E'
23279 .section .ctors.64528,$sh_flags,$sh_type
23281 .byte 'F', 'F', 'F', 'F'
23282 .section .fini_array.01005,$sh_flags,$sh_type
23284 .byte 'G', 'G', 'G', 'G'
23285 .section .init_array.01005,$sh_flags,$sh_type
23287 .byte 'H', 'H', 'H', 'H'
23292 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23293 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23294 && $gcc_cv_objdump -s -j .init_array conftest \
23295 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23296 && $gcc_cv_objdump -s -j .fini_array conftest \
23297 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23298 gcc_cv_initfini_array
=yes
23302 # When Solaris ld added constructor priority support, it was
23303 # decided to only handle .init_array.N/.fini_array.N since
23304 # there was no need for backwards compatibility with
23305 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23306 # sections with correct execution order resp. to
23307 # .init_array/.fini_array, while gld merges them into
23308 # .init_array/.fini_array.
23309 cat > conftest.s
<<EOF
23310 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23312 .byte 'C', 'C', 'C', 'C'
23313 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23315 .byte 'D', 'D', 'D', 'D'
23316 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23318 .byte 'G', 'G', 'G', 'G'
23319 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23321 .byte 'H', 'H', 'H', 'H'
23326 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23327 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23328 && $gcc_cv_objdump -s -j .init_array conftest \
23329 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23330 && $gcc_cv_objdump -s -j .fini_array conftest \
23331 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23332 gcc_cv_initfini_array
=yes
23336 rm -f conftest conftest.
*
23338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h. */
23342 # error Not an ELF OS
23344 #include <stdlib.h>
23345 #if defined __GLIBC_PREREQ
23346 # if __GLIBC_PREREQ (2, 4)
23348 # error GLIBC 2.4 required
23351 # if defined __sun__ && defined __svr4__
23352 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23354 # error The C library not known to support .init_array/.fini_array
23359 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23362 gcc_cv_initfini_array
=no
23364 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23368 $as_echo_n "checking cross compile... guessing... " >&6; }
23369 gcc_cv_initfini_array
=no
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23373 $as_echo "$gcc_cv_initfini_array" >&6; }
23374 enable_initfini_array
=$gcc_cv_initfini_array
23379 cat >>confdefs.h
<<_ACEOF
23380 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23385 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23387 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23388 if ${gcc_cv_as_leb128+:} false
; then :
23389 $as_echo_n "(cached) " >&6
23391 gcc_cv_as_leb128
=no
23392 if test $in_tree_gas = yes; then
23393 if test $in_tree_gas_is_elf = yes \
23394 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23395 then gcc_cv_as_leb128
=yes
23397 elif test x
$gcc_cv_as != x
; then
23404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23406 (eval $ac_try) 2>&5
23408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23409 test $ac_status = 0; }; }
23411 # GAS versions before 2.11 do not support uleb128,
23412 # despite appearing to.
23413 # ??? There exists an elf-specific test that will crash
23414 # the assembler. Perhaps it's better to figure out whether
23415 # arbitrary sections are supported and try the test.
23416 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23417 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23418 as_vers
=`echo $as_ver | sed -n \
23419 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23420 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23421 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23422 if test $as_major -eq 2 && test $as_minor -lt 11
23424 else gcc_cv_as_leb128
=yes
23428 echo "configure: failed program was" >&5
23431 rm -f conftest.o conftest.s
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23435 $as_echo "$gcc_cv_as_leb128" >&6; }
23436 if test $gcc_cv_as_leb128 = yes; then
23438 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23441 if test $gcc_cv_as_leb128 != yes; then
23443 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23447 # Determine if an .eh_frame section is read-only.
23448 gcc_fn_eh_frame_ro
() {
23449 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23450 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23451 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23454 # Check if we have assembler support for unwind directives.
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23456 $as_echo_n "checking assembler for cfi directives... " >&6; }
23457 if ${gcc_cv_as_cfi_directive+:} false
; then :
23458 $as_echo_n "(cached) " >&6
23460 gcc_cv_as_cfi_directive
=no
23461 if test x
$gcc_cv_as != x
; then
23467 .cfi_escape 1, 2, 3, 4, 5
23468 .cfi_endproc' > conftest.s
23469 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23471 (eval $ac_try) 2>&5
23473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23474 test $ac_status = 0; }; }
23478 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23479 # read-only and read-write sections, we need to make sure that the
23480 # assembler used emits read-write .eh_frame sections.
23481 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23482 gcc_cv_as_cfi_directive
=yes
23483 elif test "x$gcc_cv_objdump" = x
; then
23484 # No objdump, err on the side of caution.
23485 gcc_cv_as_cfi_directive
=no
23487 if test x
$gas = xyes
; then
23495 sparc
*-*-solaris2.
*)
23496 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23497 if gcc_fn_eh_frame_ro
$as_32_opt \
23498 || gcc_fn_eh_frame_ro
$as_64_opt; then
23499 gcc_cv_as_cfi_directive
=no
23501 gcc_cv_as_cfi_directive
=yes
23504 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23505 # On Solaris/x86, make sure that GCC and assembler agree on using
23506 # read-only .eh_frame sections for 64-bit.
23507 if gcc_fn_eh_frame_ro
$as_32_opt; then
23508 gcc_cv_as_cfi_directive
=no
23509 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23510 gcc_cv_as_cfi_directive
=yes
23512 gcc_cv_as_cfi_directive
=no
23519 gcc_cv_as_cfi_directive
=yes
23523 echo "configure: failed program was" >&5
23526 rm -f conftest.o conftest.s
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23530 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23533 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23535 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23536 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23537 $as_echo_n "(cached) " >&6
23539 gcc_cv_as_cfi_advance_working
=no
23540 if test x
$gcc_cv_as != x
; then
23543 .cfi_adjust_cfa_offset 64
23545 .cfi_adjust_cfa_offset 128
23546 .cfi_endproc' > conftest.s
23547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23549 (eval $ac_try) 2>&5
23551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552 test $ac_status = 0; }; }
23555 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23556 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23557 gcc_cv_as_cfi_advance_working
=yes
23561 echo "configure: failed program was" >&5
23564 rm -f conftest.o conftest.s
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23568 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23572 # no objdump, err on the side of caution
23573 gcc_cv_as_cfi_advance_working
=no
23577 cat >>confdefs.h
<<_ACEOF
23578 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23579 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23585 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23586 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23587 $as_echo_n "(cached) " >&6
23589 gcc_cv_as_cfi_personality_directive
=no
23590 if test x
$gcc_cv_as != x
; then
23593 .cfi_personality 0, symbol
23594 .cfi_endproc' > conftest.s
23595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23597 (eval $ac_try) 2>&5
23599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23600 test $ac_status = 0; }; }
23602 gcc_cv_as_cfi_personality_directive
=yes
23604 echo "configure: failed program was" >&5
23607 rm -f conftest.o conftest.s
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23611 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23615 cat >>confdefs.h
<<_ACEOF
23616 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23621 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23622 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
23623 $as_echo_n "(cached) " >&6
23625 gcc_cv_as_cfi_sections_directive
=no
23626 if test x
$gcc_cv_as != x
; then
23628 .cfi_sections .debug_frame, .eh_frame
23630 .cfi_endproc' > conftest.s
23631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23633 (eval $ac_try) 2>&5
23635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23636 test $ac_status = 0; }; }
23639 win32 | pe | cygwin
* | mingw32
*)
23640 # Need to check that we generated the correct relocation for the
23641 # .debug_frame section. This was fixed for binutils 2.21.
23642 gcc_cv_as_cfi_sections_directive
=no
23643 if test "x$gcc_cv_objdump" != x
; then
23644 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23645 grep secrel
> /dev
/null
; then
23646 gcc_cv_as_cfi_sections_directive
=yes
23651 gcc_cv_as_cfi_sections_directive
=yes
23655 echo "configure: failed program was" >&5
23658 rm -f conftest.o conftest.s
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23662 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23667 cat >>confdefs.h
<<_ACEOF
23668 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23672 # GAS versions up to and including 2.11.0 may mis-optimize
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23675 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23676 if ${gcc_cv_as_eh_frame+:} false
; then :
23677 $as_echo_n "(cached) " >&6
23679 gcc_cv_as_eh_frame
=no
23680 if test $in_tree_gas = yes; then
23681 if test $in_tree_gas_is_elf = yes \
23682 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23683 then gcc_cv_as_eh_frame
=yes
23685 elif test x
$gcc_cv_as != x
; then
23692 .section .eh_frame,"aw",@progbits
23694 .4byte .LECIE1-.LSCIE1
23708 .4byte .LEFDE1-.LASFDE1
23710 .4byte .LASFDE1-__FRAME_BEGIN__
23717 .LEFDE1:' > conftest.s
23718 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23720 (eval $ac_try) 2>&5
23722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23723 test $ac_status = 0; }; }
23725 cat > conftest.lit
<<EOF
23726 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23727 0010 01000000 12000000 18000000 00000000 ................
23728 0020 08000000 04080000 0044 .........D
23730 cat > conftest.big
<<EOF
23731 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23732 0010 00000001 00000012 00000018 00000000 ................
23733 0020 00000008 04000000 0844 .........D
23735 # If the assembler didn't choke, and we can objdump,
23736 # and we got the correct data, then succeed.
23737 # The text in the here-document typically retains its unix-style line
23738 # endings, while the output of objdump will use host line endings.
23739 # Therefore, use diff -b for the comparisons.
23740 if test x
$gcc_cv_objdump != x \
23741 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23742 |
tail -3 > conftest.got \
23743 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23744 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23746 gcc_cv_as_eh_frame
=yes
23747 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23749 (eval $ac_try) 2>&5
23751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752 test $ac_status = 0; }; }; then
23753 gcc_cv_as_eh_frame
=buggy
23755 # Uh oh, what do we do now?
23756 gcc_cv_as_eh_frame
=no
23759 echo "configure: failed program was" >&5
23762 rm -f conftest.o conftest.s
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23766 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23770 if test $gcc_cv_as_eh_frame = buggy
; then
23772 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23776 # Test if the assembler supports the section flag 'e' or #exclude for
23777 # specifying an excluded section.
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23779 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23780 if ${gcc_cv_as_section_exclude_e+:} false
; then :
23781 $as_echo_n "(cached) " >&6
23783 gcc_cv_as_section_exclude_e
=no
23784 if test $in_tree_gas = yes; then
23785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23786 then gcc_cv_as_section_exclude_e
=yes
23788 elif test x
$gcc_cv_as != x
; then
23789 $as_echo '.section foo1,"e"
23790 .byte 0,0,0,0' > conftest.s
23791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23793 (eval $ac_try) 2>&5
23795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23796 test $ac_status = 0; }; }
23798 gcc_cv_as_section_exclude_e
=yes
23800 echo "configure: failed program was" >&5
23803 rm -f conftest.o conftest.s
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23807 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23810 if test $gcc_cv_as_section_exclude_e = no
; then
23811 case "${target}" in
23812 # Solaris as uses #exclude instead.
23814 case "${target}" in
23815 sparc
*-*-solaris2*)
23816 conftest_s
='.section "foo1", #exclude'
23818 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23819 conftest_s
='.section foo1, #exclude'
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23825 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23826 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
23827 $as_echo_n "(cached) " >&6
23829 gcc_cv_as_section_exclude_hash
=no
23830 if test x
$gcc_cv_as != x
; then
23831 $as_echo "$conftest_s
23832 .byte 0,0,0,0" > conftest.s
23833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835 (eval $ac_try) 2>&5
23837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838 test $ac_status = 0; }; }
23840 gcc_cv_as_section_exclude_hash
=yes
23842 echo "configure: failed program was" >&5
23845 rm -f conftest.o conftest.s
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23849 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23854 cat >>confdefs.h
<<_ACEOF
23855 #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`
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23860 $as_echo_n "checking assembler for section merging support... " >&6; }
23861 if ${gcc_cv_as_shf_merge+:} false
; then :
23862 $as_echo_n "(cached) " >&6
23864 gcc_cv_as_shf_merge
=no
23865 if test $in_tree_gas = yes; then
23866 if test $in_tree_gas_is_elf = yes \
23867 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23868 then gcc_cv_as_shf_merge
=yes
23870 elif test x
$gcc_cv_as != x
; then
23871 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23874 (eval $ac_try) 2>&5
23876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23877 test $ac_status = 0; }; }
23879 gcc_cv_as_shf_merge
=yes
23881 echo "configure: failed program was" >&5
23884 rm -f conftest.o conftest.s
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23888 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23891 if test $gcc_cv_as_shf_merge = no
; then
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23893 $as_echo_n "checking assembler for section merging support... " >&6; }
23894 if ${gcc_cv_as_shf_merge+:} false
; then :
23895 $as_echo_n "(cached) " >&6
23897 gcc_cv_as_shf_merge
=no
23898 if test $in_tree_gas = yes; then
23899 if test $in_tree_gas_is_elf = yes \
23900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23901 then gcc_cv_as_shf_merge
=yes
23903 elif test x
$gcc_cv_as != x
; then
23904 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23907 (eval $ac_try) 2>&5
23909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23910 test $ac_status = 0; }; }
23912 gcc_cv_as_shf_merge
=yes
23914 echo "configure: failed program was" >&5
23917 rm -f conftest.o conftest.s
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23921 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23926 i?
86-*-solaris2.10
* | x86_64-
*-solaris2.10
*)
23927 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23928 if test x
"$gnu_ld" = xno
; then
23929 gcc_cv_as_shf_merge
=no
23934 cat >>confdefs.h
<<_ACEOF
23935 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23939 gcc_cv_ld_aligned_shf_merge
=yes
23941 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23942 # relinking on Solaris 11 < 11.4.
23943 sparc
*-*-solaris2.10
*)
23944 if test x
"$gnu_ld" = xno
; then
23945 gcc_cv_ld_aligned_shf_merge
=no
23948 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23950 sparc
*-*-solaris2.11
*)
23951 if test x
"$gnu_ld" = xno \
23952 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23953 gcc_cv_ld_aligned_shf_merge
=no
23958 cat >>confdefs.h
<<_ACEOF
23959 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23964 $as_echo_n "checking assembler for stabs directive... " >&6; }
23965 if ${gcc_cv_as_stabs_directive+:} false
; then :
23966 $as_echo_n "(cached) " >&6
23968 gcc_cv_as_stabs_directive
=no
23969 if test x
$gcc_cv_as != x
; then
23970 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23973 (eval $ac_try) 2>&5
23975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23976 test $ac_status = 0; }; }
23978 gcc_cv_as_stabs_directive
=yes
23980 echo "configure: failed program was" >&5
23983 rm -f conftest.o conftest.s
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23987 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23988 if test $gcc_cv_as_stabs_directive = yes; then
23990 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23996 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23997 if ${gcc_cv_as_comdat_group+:} false
; then :
23998 $as_echo_n "(cached) " >&6
24000 gcc_cv_as_comdat_group
=no
24001 if test $in_tree_gas = yes; then
24002 if test $in_tree_gas_is_elf = yes \
24003 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24004 then gcc_cv_as_comdat_group
=yes
24006 elif test x
$gcc_cv_as != x
; then
24007 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010 (eval $ac_try) 2>&5
24012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013 test $ac_status = 0; }; }
24015 gcc_cv_as_comdat_group
=yes
24017 echo "configure: failed program was" >&5
24020 rm -f conftest.o conftest.s
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24024 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24027 if test $gcc_cv_as_comdat_group = yes; then
24028 gcc_cv_as_comdat_group_percent
=no
24029 gcc_cv_as_comdat_group_group
=no
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24032 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24033 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24034 $as_echo_n "(cached) " >&6
24036 gcc_cv_as_comdat_group_percent
=no
24037 if test $in_tree_gas = yes; then
24038 if test $in_tree_gas_is_elf = yes \
24039 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24040 then gcc_cv_as_comdat_group_percent
=yes
24042 elif test x
$gcc_cv_as != x
; then
24043 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24046 (eval $ac_try) 2>&5
24048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24049 test $ac_status = 0; }; }
24051 gcc_cv_as_comdat_group_percent
=yes
24053 echo "configure: failed program was" >&5
24056 rm -f conftest.o conftest.s
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24060 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24063 if test $gcc_cv_as_comdat_group_percent = yes; then
24064 gcc_cv_as_comdat_group_group
=no
24066 case "${target}" in
24067 # Sun as uses a completely different syntax.
24069 case "${target}" in
24070 sparc
*-*-solaris2*)
24072 .group foo,".text%foo",#comdat
24073 .section ".text%foo", #alloc,#execinstr,#progbits
24078 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
24080 .group foo,.text%foo,#comdat
24081 .section .text%foo, "ax", @progbits
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24088 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24089 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24090 $as_echo_n "(cached) " >&6
24092 gcc_cv_as_comdat_group_group
=no
24093 if test x
$gcc_cv_as != x
; then
24094 $as_echo "$conftest_s" > conftest.s
24095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24097 (eval $ac_try) 2>&5
24099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24100 test $ac_status = 0; }; }
24102 gcc_cv_as_comdat_group_group
=yes
24104 echo "configure: failed program was" >&5
24107 rm -f conftest.o conftest.s
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24111 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24116 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24117 gcc_cv_as_comdat_group_group
=no
24121 if test x
"$ld_is_gold" = xyes
; then
24123 elif test $in_tree_ld = yes ; then
24125 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 \
24126 && test $in_tree_ld_is_elf = yes; then
24129 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24131 if test 0"$ld_date" -lt 20050308; then
24132 if test -n "$ld_date"; then
24133 # If there was date string, but was earlier than 2005-03-08, fail
24135 elif test "$ld_vers_major" -lt 2; then
24137 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24142 case "${target}" in
24143 *-*-solaris2.1
[1-9]*)
24145 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24146 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24149 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24150 # least ld version 1.2267.
24151 if test "$ld_vers_major" -gt 1; then
24153 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24155 elif test "$ld_vers_minor" -ge 2267; then
24160 # Assume linkers other than GNU ld don't support COMDAT group.
24165 # Allow overriding the automatic COMDAT group tests above.
24166 # Check whether --enable-comdat was given.
24167 if test "${enable_comdat+set}" = set; then :
24168 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24171 if test $comdat_group = no
; then
24172 gcc_cv_as_comdat_group
=no
24173 gcc_cv_as_comdat_group_percent
=no
24174 gcc_cv_as_comdat_group_group
=no
24177 cat >>confdefs.h
<<_ACEOF
24178 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24179 || test $gcc_cv_as_comdat_group_percent = yes \
24180 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24184 # Restrict this test to Solaris/x86: other targets define this statically.
24185 case "${target}" in
24186 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24188 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24189 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24190 hidden_linkonce
=yes
24192 case "${target}" in
24193 # Full support for hidden thunks in linkonce sections only appeared in
24194 # Solaris 11/OpenSolaris.
24195 *-*-solaris2.1
[1-9]*)
24196 hidden_linkonce
=yes
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24204 $as_echo "$hidden_linkonce" >&6; }
24206 cat >>confdefs.h
<<_ACEOF
24207 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24214 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24215 if ${gcc_cv_as_is_stmt+:} false
; then :
24216 $as_echo_n "(cached) " >&6
24218 gcc_cv_as_is_stmt
=no
24219 if test $in_tree_gas = yes; then
24220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24221 then gcc_cv_as_is_stmt
=yes
24223 elif test x
$gcc_cv_as != x
; then
24226 .loc 1 1 0 is_stmt 1' > conftest.s
24227 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24229 (eval $ac_try) 2>&5
24231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24232 test $ac_status = 0; }; }
24234 gcc_cv_as_is_stmt
=yes
24236 echo "configure: failed program was" >&5
24239 rm -f conftest.o conftest.s
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24243 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24244 if test $gcc_cv_as_is_stmt = yes; then
24246 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24252 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24253 if ${gcc_cv_as_discriminator+:} false
; then :
24254 $as_echo_n "(cached) " >&6
24256 gcc_cv_as_discriminator
=no
24257 if test $in_tree_gas = yes; then
24258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24259 then gcc_cv_as_discriminator
=yes
24261 elif test x
$gcc_cv_as != x
; then
24264 .loc 1 1 0 discriminator 1' > conftest.s
24265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; }
24272 gcc_cv_as_discriminator
=yes
24274 echo "configure: failed program was" >&5
24277 rm -f conftest.o conftest.s
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24281 $as_echo "$gcc_cv_as_discriminator" >&6; }
24282 if test $gcc_cv_as_discriminator = yes; then
24284 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24289 # Thread-local storage - the check is heavily parameterized.
24297 .section ".tdata","awT",@progbits
24300 ldq $27,__tls_get_addr($29) !literal!1
24301 lda $16,foo($29) !tlsgd!1
24302 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24303 ldq $27,__tls_get_addr($29) !literal!2
24304 lda $16,foo($29) !tlsldm!2
24305 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24306 ldq $1,foo($29) !gotdtprel
24307 ldah $2,foo($29) !dtprelhi
24308 lda $3,foo($2) !dtprello
24309 lda $4,foo($29) !dtprel
24310 ldq $1,foo($29) !gottprel
24311 ldah $2,foo($29) !tprelhi
24312 lda $3,foo($2) !tprello
24313 lda $4,foo($29) !tprel'
24316 tls_as_opt
=--fatal-warnings
24320 add_s r0,r0, @foo@tpoff'
24324 cris-
*-*|crisv32-
*-*)
24326 .section ".tdata","awT",@progbits
24333 tls_as_opt
=--fatal-warnings
24337 .section ".tdata","awT",@progbits
24340 call #gettlsoff(x)'
24349 .section ".tdata","awT",@progbits
24353 addil LT%foo-$tls_gdidx$,gp
24354 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24357 addil LT%foo-$tls_ldidx$,gp
24359 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24360 addil LR%foo-$tls_dtpoff$,%ret0
24361 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24363 addil LT%foo-$tls_ieoff$,gp
24364 ldw RT%foo-$tls_ieoff$(%r1),%t2
24367 addil LR%foo-$tls_leoff$,%t1
24368 ldo RR%foo-$tls_leoff$(%r1),%t2'
24371 tls_as_opt
=--fatal-warnings
24375 .section ".tdata","awT",%progbits
24378 .word foo(gottpoff)
24386 i
[34567]86-*-* | x86_64-
*-*)
24388 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
24395 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24397 .section .tdata,"awt",@progbits'
24402 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24406 .section ".tdata","awT",@progbits'
24410 tls_as_opt
="--fatal-warnings"
24414 conftest_s
="$conftest_s
24418 leal foo@tlsgd(,%ebx,1), %eax
24419 leal foo@tlsldm(%ebx), %eax
24420 leal foo@dtpoff(%eax), %edx
24421 movl foo@gottpoff(%ebx), %eax
24422 subl foo@gottpoff(%ebx), %eax
24423 addl foo@gotntpoff(%ebx), %eax
24424 movl foo@indntpoff, %eax
24425 movl \$foo@tpoff, %eax
24426 subl \$foo@tpoff, %eax
24427 leal foo@ntpoff(%ecx), %eax"
24430 if test x
$on_solaris = xyes
; then
24432 yes) tls_as_opt
="$tls_as_opt --64" ;;
24433 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24436 conftest_s
="$conftest_s
24440 leaq foo@tlsgd(%rip), %rdi
24441 leaq foo@tlsld(%rip), %rdi
24442 leaq foo@dtpoff(%rax), %rdx
24443 movq foo@gottpoff(%rip), %rax
24444 movq \$foo@tpoff, %rax"
24450 .section ".tdata","awT",@progbits
24453 addl r16 = @ltoff(@dtpmod(foo#)), gp
24454 addl r17 = @ltoff(@dtprel(foo#)), gp
24455 addl r18 = @ltoff(@tprel(foo#)), gp
24456 addl r19 = @dtprel(foo#), gp
24457 adds r21 = @dtprel(foo#), r13
24458 movl r23 = @dtprel(foo#)
24459 addl r20 = @tprel(foo#), gp
24460 adds r22 = @tprel(foo#), r13
24461 movl r24 = @tprel(foo#)'
24464 tls_as_opt
=--fatal-warnings
24468 .section .tdata,"awT",@progbits
24472 addik r5,r20,x@TLSGD
24473 addik r5,r20,x@TLSLDM'
24476 tls_as_opt
='--fatal-warnings'
24480 .section .tdata,"awT",@progbits
24484 addiu $4, $28, %tlsgd(x)
24485 addiu $4, $28, %tlsldm(x)
24486 lui $4, %dtprel_hi(x)
24487 addiu $4, $4, %dtprel_lo(x)
24488 lw $4, %gottprel(x)($28)
24489 lui $4, %tprel_hi(x)
24490 addiu $4, $4, %tprel_lo(x)'
24493 tls_as_opt
='-32 --fatal-warnings'
24497 .section .tdata,"awT",@progbits
24502 move.l x@TLSGD(%a5),%a0
24503 move.l x@TLSLDM(%a5),%a0
24504 move.l x@TLSLDO(%a5),%a0
24505 move.l x@TLSIE(%a5),%a0
24506 move.l x@TLSLE(%a5),%a0'
24509 tls_as_opt
='--fatal-warnings'
24513 .section ".tdata","awT",@progbits'
24516 tls_as_opt
="--fatal-warnings"
24520 .section ".tdata","awT",%progbits
24524 add x0, x0, #:tlsgd_lo12:x
24529 tls_as_opt
='--fatal-warnings'
24533 .section ".tdata","awT",@progbits
24536 l.movhi r3, tpoffha(foo)
24538 l.lwz r4, tpofflo(foo)(r3)'
24541 tls_as_opt
=--fatal-warnings
24545 .extern __get_tpointer
24563 .section ".tdata","awT",@progbits
24571 addi 3,2,ld0@got@tlsgd
24577 addi 3,2,x1@got@tlsld
24583 addis 9,3,x2@dtprel@ha
24584 addi 9,9,x2@dtprel@l
24587 ld 9,x3@got@dtprel(2)
24593 tls_as_opt
="-a64 --fatal-warnings"
24597 .section ".tdata","awT",@progbits
24605 addi 3,31,ld0@got@tlsgd
24607 addi 3,31,x1@got@tlsld
24610 addis 9,3,x2@dtprel@ha
24611 addi 9,9,x2@dtprel@l
24612 lwz 9,x3@got@tprel(31)
24615 addis 9,2,x2@tprel@ha
24616 addi 9,9,x2@tprel@l'
24619 tls_as_opt
="-a32 --fatal-warnings"
24623 .section .tdata,"awT",@progbits
24627 call __tls_get_addr'
24630 tls_as_opt
='--fatal-warnings'
24634 .section ".tdata","awT",@progbits
24641 .long foo@GOTNTPOFF
24642 .long foo@INDNTPOFF
24643 l %r1,foo@GOTNTPOFF(%r12)
24644 l %r1,0(%r1):tls_load:foo
24645 bas %r14,0(%r1,%r13):tls_gdcall:foo
24646 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24649 tls_as_opt
="-m31 --fatal-warnings"
24653 .section ".tdata","awT",@progbits
24660 .quad foo@GOTNTPOFF
24661 lg %r1,foo@GOTNTPOFF(%r12)
24662 larl %r1,foo@INDNTPOFF
24663 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24664 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24667 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24669 sh-
*-* | sh
[123456789lbe
]*-*-*)
24671 .section ".tdata","awT",@progbits
24681 tls_as_opt
=--fatal-warnings
24685 sparc
*-sun-solaris2.
*)
24692 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24694 .section ".tdata",#alloc,#write,#tls'
24699 .section ".tdata","awT",@progbits'
24702 tls_as_opt
="-32 --fatal-warnings"
24704 conftest_s
="$conftest_s
24707 sethi %tgd_hi22(foo), %o0
24708 add %o0, %tgd_lo10(foo), %o1
24709 add %l7, %o1, %o0, %tgd_add(foo)
24710 call __tls_get_addr, %tgd_call(foo)
24711 sethi %tldm_hi22(foo), %l1
24712 add %l1, %tldm_lo10(foo), %l2
24713 add %l7, %l2, %o0, %tldm_add(foo)
24714 call __tls_get_addr, %tldm_call(foo)
24715 sethi %tldo_hix22(foo), %l3
24716 xor %l3, %tldo_lox10(foo), %l4
24717 add %o0, %l4, %l5, %tldo_add(foo)
24718 sethi %tie_hi22(foo), %o3
24719 add %o3, %tie_lo10(foo), %o3
24720 ld [%l7 + %o3], %o2, %tie_ld(foo)
24721 add %g7, %o2, %o4, %tie_add(foo)
24722 sethi %tle_hix22(foo), %l1
24723 xor %l1, %tle_lox10(foo), %o5
24724 ld [%g7 + %o5], %o1"
24728 .section ".tdata","awT",@progbits
24731 addli r0, zero, tls_gd(foo)
24732 auli r0, zero, tls_gd_ha16(foo)
24733 addli r0, r0, tls_gd_lo16(foo)
24735 addli r0, zero, tls_ie(foo)
24736 auli r0, r0, tls_ie_ha16(foo)
24737 addli r0, r0, tls_ie_lo16(foo)'
24740 tls_as_opt
="--fatal-warnings"
24744 .section ".tdata","awT",@progbits
24747 shl16insli r0, zero, hw0_last_tls_gd(foo)
24748 shl16insli r0, zero, hw1_last_tls_gd(foo)
24749 shl16insli r0, r0, hw0_tls_gd(foo)
24751 shl16insli r0, zero, hw1_last_tls_ie(foo)
24752 shl16insli r0, r0, hw0_tls_ie(foo)'
24755 tls_as_opt
="--fatal-warnings"
24759 .section ".tdata","awT",@progbits
24762 movi a8, foo@TLSFUNC
24763 movi a10, foo@TLSARG
24764 callx8.tls a8, foo@TLSCALL'
24770 if test "x$enable_tls" = xno
; then
24771 : # TLS explicitly disabled.
24772 elif test "x$enable_tls" = xyes
; then
24773 set_have_as_tls
=yes # TLS explicitly enabled.
24774 elif test -z "$tls_first_major"; then
24775 : # If we don't have a check, assume no support.
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24778 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24779 if ${gcc_cv_as_tls+:} false
; then :
24780 $as_echo_n "(cached) " >&6
24783 if test $in_tree_gas = yes; then
24784 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24785 then gcc_cv_as_tls
=yes
24787 elif test x
$gcc_cv_as != x
; then
24788 $as_echo "$conftest_s" > conftest.s
24789 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24791 (eval $ac_try) 2>&5
24793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24794 test $ac_status = 0; }; }
24798 echo "configure: failed program was" >&5
24801 rm -f conftest.o conftest.s
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24805 $as_echo "$gcc_cv_as_tls" >&6; }
24806 if test $gcc_cv_as_tls = yes; then
24807 set_have_as_tls
=yes
24811 if test $set_have_as_tls = yes ; then
24813 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24817 # Target-specific assembler checks.
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24820 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24821 gcc_cv_ld_static_dynamic
=no
24822 gcc_cv_ld_static_option
='-Bstatic'
24823 gcc_cv_ld_dynamic_option
='-Bdynamic'
24824 if test $in_tree_ld = yes ; then
24825 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
24826 gcc_cv_ld_static_dynamic
=yes
24828 elif test x
$gcc_cv_ld != x
; then
24829 # Check if linker supports -Bstatic/-Bdynamic option
24830 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
24831 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
24832 gcc_cv_ld_static_dynamic
=yes
24835 # AIX ld uses -b flags
24836 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24837 gcc_cv_ld_static_dynamic
=yes
24838 gcc_cv_ld_static_option
="-bstatic"
24839 gcc_cv_ld_dynamic_option
="-bdynamic"
24841 # HP-UX ld uses -a flags to select between shared and archive.
24843 if test x
"$gnu_ld" = xno
; then
24844 gcc_cv_ld_static_dynamic
=yes
24845 gcc_cv_ld_static_option
="-aarchive_shared"
24846 gcc_cv_ld_dynamic_option
="-adefault"
24849 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24851 gcc_cv_ld_static_dynamic
=yes
24856 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24858 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24861 cat >>confdefs.h
<<_ACEOF
24862 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24866 cat >>confdefs.h
<<_ACEOF
24867 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24872 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24875 $as_echo_n "checking linker --version-script option... " >&6; }
24876 gcc_cv_ld_version_script
=no
24877 ld_version_script_option
=''
24878 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24879 gcc_cv_ld_version_script
=yes
24880 ld_version_script_option
='--version-script'
24881 elif test x
$gcc_cv_ld != x
; then
24883 # Solaris 2 ld always supports -M. It also supports a subset of
24884 # --version-script since Solaris 11.4, but requires
24885 # -z gnu-version-script-compat to activate.
24887 gcc_cv_ld_version_script
=yes
24888 ld_version_script_option
='-M'
24892 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24894 $as_echo "$gcc_cv_ld_version_script" >&6; }
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24898 $as_echo_n "checking linker soname option... " >&6; }
24899 gcc_cv_ld_soname
=no
24900 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24901 gcc_cv_ld_soname
=yes
24902 ld_soname_option
='-soname'
24903 elif test x
$gcc_cv_ld != x
; then
24906 gcc_cv_ld_soname
=yes
24907 ld_soname_option
='-install_name'
24909 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24910 # ld compatiblity since some Solaris 10 update.
24912 gcc_cv_ld_soname
=yes
24913 ld_soname_option
='-h'
24917 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24919 $as_echo "$gcc_cv_ld_soname" >&6; }
24922 if test x
"$demangler_in_ld" = xyes
; then
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24924 $as_echo_n "checking linker --demangle support... " >&6; }
24925 gcc_cv_ld_demangle
=no
24926 if test $in_tree_ld = yes; then
24927 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 \
24928 gcc_cv_ld_demangle
=yes
24930 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24931 # Check if the GNU linker supports --demangle option
24932 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
24933 gcc_cv_ld_demangle
=yes
24936 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24938 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24942 $as_echo "$gcc_cv_ld_demangle" >&6; }
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24946 $as_echo_n "checking linker plugin support... " >&6; }
24947 gcc_cv_lto_plugin
=0
24948 if test -f liblto_plugin.la
; then
24949 save_ld_ver
="$ld_ver"
24950 save_ld_vers_major
="$ld_vers_major"
24951 save_ld_vers_minor
="$ld_vers_minor"
24952 save_ld_is_gold
="$ld_is_gold"
24956 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24958 # FIXME: ld_is_gold?
24959 ld_vers_major
="$gcc_cv_gld_major_version"
24960 ld_vers_minor
="$gcc_cv_gld_minor_version"
24962 # Determine plugin linker version.
24963 # FIXME: Partial duplicate from above, generalize.
24964 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24965 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24966 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24968 ld_vers
=`echo $ld_ver | sed -n \
24969 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24971 ld_vers
=`echo $ld_ver | sed -n \
24972 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24974 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24975 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24979 # Determine plugin support.
24980 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24981 # Require GNU ld or gold 2.21+ for plugin support by default.
24982 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24983 gcc_cv_lto_plugin
=2
24984 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24985 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24986 gcc_cv_lto_plugin
=1
24990 ld_ver
="$save_ld_ver"
24991 ld_vers_major
="$save_ld_vers_major"
24992 ld_vers_minor
="$save_ld_vers_minor"
24993 ld_is_gold
="$save_ld_is_gold"
24996 cat >>confdefs.h
<<_ACEOF
24997 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25001 $as_echo "$gcc_cv_lto_plugin" >&6; }
25003 # Target OS-specific assembler checks.
25005 case "$target_os" in
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25008 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25009 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25010 $as_echo_n "(cached) " >&6
25012 gcc_cv_as_mmacosx_version_min
=no
25013 if test x
$gcc_cv_as != x
; then
25014 $as_echo '.text' > conftest.s
25015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017 (eval $ac_try) 2>&5
25019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020 test $ac_status = 0; }; }
25022 gcc_cv_as_mmacosx_version_min
=yes
25024 echo "configure: failed program was" >&5
25027 rm -f conftest.o conftest.s
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25031 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25032 if test $gcc_cv_as_mmacosx_version_min = yes; then
25034 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25041 # Target CPU-specific assembler checks.
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25046 $as_echo_n "checking assembler for -mabi option... " >&6; }
25047 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25048 $as_echo_n "(cached) " >&6
25050 gcc_cv_as_aarch64_mabi
=no
25051 if test x
$gcc_cv_as != x
; then
25052 $as_echo '.text' > conftest.s
25053 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25055 (eval $ac_try) 2>&5
25057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25058 test $ac_status = 0; }; }
25060 gcc_cv_as_aarch64_mabi
=yes
25062 echo "configure: failed program was" >&5
25065 rm -f conftest.o conftest.s
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25069 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25072 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25074 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25077 if test x
$with_abi = xilp32
; then
25078 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25079 Upgrade the Assembler." "$LINENO" 5
25081 if test x
"$with_multilib_list" = xdefault
; then
25082 TM_MULTILIB_CONFIG
=lp64
25084 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25085 for aarch64_multilib
in ${aarch64_multilibs}; do
25086 case ${aarch64_multilib} in
25088 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25089 Upgrade the Assembler." "$LINENO" 5
25097 # Check if we have binutils support for relocations types needed by -fpic
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25099 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25100 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25101 $as_echo_n "(cached) " >&6
25103 gcc_cv_as_aarch64_picreloc
=no
25104 if test x
$gcc_cv_as != x
; then
25107 ldr x0, [x2, #:gotpage_lo15:globalsym]
25109 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111 (eval $ac_try) 2>&5
25113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114 test $ac_status = 0; }; }
25116 gcc_cv_as_aarch64_picreloc
=yes
25118 echo "configure: failed program was" >&5
25121 rm -f conftest.o conftest.s
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25125 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25126 if test $gcc_cv_as_aarch64_picreloc = yes; then
25128 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25132 # Enable Branch Target Identification Mechanism and Return Address
25133 # Signing by default.
25134 # Check whether --enable-standard-branch-protection was given.
25135 if test "${enable_standard_branch_protection+set}" = set; then :
25136 enableval
=$enable_standard_branch_protection;
25139 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25144 as_fn_error
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25145 Valid choices are 'yes' and 'no'." "$LINENO" 5
25151 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25152 # Check whether --enable-fix-cortex-a53-835769 was given.
25153 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25154 enableval
=$enable_fix_cortex_a53_835769;
25157 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25162 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25163 Valid choices are 'yes' and 'no'." "$LINENO" 5
25170 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25171 # Check whether --enable-fix-cortex-a53-843419 was given.
25172 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25173 enableval
=$enable_fix_cortex_a53_843419;
25176 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25181 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25182 Valid choices are 'yes' and 'no'." "$LINENO" 5
25191 # All TARGET_ABI_OSF targets.
25192 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25194 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25195 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25196 $as_echo_n "(cached) " >&6
25198 gcc_cv_as_alpha_explicit_relocs
=no
25199 if test $in_tree_gas = yes; then
25200 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25201 then gcc_cv_as_alpha_explicit_relocs
=yes
25203 elif test x
$gcc_cv_as != x
; then
25204 $as_echo ' .set nomacro
25206 extbl $3, $2, $3 !lituse_bytoff!1
25207 ldq $2, a($29) !literal!1
25208 ldq $4, b($29) !literal!2
25209 ldq_u $3, 0($2) !lituse_base!1
25210 ldq $27, f($29) !literal!5
25211 jsr $26, ($27), f !lituse_jsr!5
25212 ldah $29, 0($26) !gpdisp!3
25213 lda $0, c($29) !gprel
25214 ldah $1, d($29) !gprelhigh
25215 lda $1, d($1) !gprellow
25216 lda $29, 0($29) !gpdisp!3' > conftest.s
25217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25219 (eval $ac_try) 2>&5
25221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25222 test $ac_status = 0; }; }
25224 gcc_cv_as_alpha_explicit_relocs
=yes
25226 echo "configure: failed program was" >&5
25229 rm -f conftest.o conftest.s
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25233 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25234 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25236 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25241 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25242 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25243 $as_echo_n "(cached) " >&6
25245 gcc_cv_as_alpha_jsrdirect_relocs
=no
25246 if test $in_tree_gas = yes; then
25247 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25248 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25250 elif test x
$gcc_cv_as != x
; then
25251 $as_echo ' .set nomacro
25253 ldq $27, a($29) !literal!1
25254 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25257 (eval $ac_try) 2>&5
25259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260 test $ac_status = 0; }; }
25262 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25264 echo "configure: failed program was" >&5
25267 rm -f conftest.o conftest.s
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25271 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25272 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25274 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25282 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25283 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25284 $as_echo_n "(cached) " >&6
25286 gcc_cv_as_avr_mlink_relax
=no
25287 if test x
$gcc_cv_as != x
; then
25288 $as_echo '.text' > conftest.s
25289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25296 gcc_cv_as_avr_mlink_relax
=yes
25298 echo "configure: failed program was" >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25305 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25306 if test $gcc_cv_as_avr_mlink_relax = yes; then
25308 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25314 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25315 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25316 $as_echo_n "(cached) " >&6
25318 gcc_cv_as_avr_mrmw
=no
25319 if test x
$gcc_cv_as != x
; then
25320 $as_echo '.text' > conftest.s
25321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323 (eval $ac_try) 2>&5
25325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326 test $ac_status = 0; }; }
25328 gcc_cv_as_avr_mrmw
=yes
25330 echo "configure: failed program was" >&5
25333 rm -f conftest.o conftest.s
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25337 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25338 if test $gcc_cv_as_avr_mrmw = yes; then
25340 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25346 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25347 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25348 $as_echo_n "(cached) " >&6
25350 gcc_cv_as_avr_mgccisr
=no
25351 if test x
$gcc_cv_as != x
; then
25357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25364 gcc_cv_as_avr_mgccisr
=yes
25366 echo "configure: failed program was" >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25373 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25374 if test $gcc_cv_as_avr_mgccisr = yes; then
25376 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25381 # Check how default linker description file implements .rodata for
25382 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25383 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25385 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25386 cat > conftest.s
<<EOF
25387 .section .rodata,"a",@progbits
25389 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25394 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25400 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25402 (eval $ac_try) 2>&5
25404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25405 test $ac_status = 0; }; }
25406 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25408 (eval $ac_try) 2>&5
25410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25411 test $ac_status = 0; }; }
25412 if test -s conftest.nm
25414 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25416 $as_echo "yes" >&6; }
25418 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25422 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25423 echo "$as_me: nm output was" >&5
25424 cat conftest.nm
>&5
25425 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25426 { $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
25427 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25431 $as_echo "test failed" >&6; }
25432 echo "$as_me: failed program was" >&5
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25435 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25437 rm -f conftest.s conftest.o conftest.elf conftest.nm
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25442 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25443 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25444 $as_echo_n "(cached) " >&6
25446 gcc_cv_as_cris_no_mul_bug
=no
25447 if test $in_tree_gas = yes; then
25448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25449 then gcc_cv_as_cris_no_mul_bug
=yes
25451 elif test x
$gcc_cv_as != x
; then
25452 $as_echo '.text' > conftest.s
25453 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25455 (eval $ac_try) 2>&5
25457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458 test $ac_status = 0; }; }
25460 gcc_cv_as_cris_no_mul_bug
=yes
25462 echo "configure: failed program was" >&5
25465 rm -f conftest.o conftest.s
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25469 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25470 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25472 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25480 $as_echo_n "checking assembler for -relax option... " >&6; }
25481 if ${gcc_cv_as_sparc_relax+:} false
; then :
25482 $as_echo_n "(cached) " >&6
25484 gcc_cv_as_sparc_relax
=no
25485 if test x
$gcc_cv_as != x
; then
25486 $as_echo '.text' > conftest.s
25487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489 (eval $ac_try) 2>&5
25491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492 test $ac_status = 0; }; }
25494 gcc_cv_as_sparc_relax
=yes
25496 echo "configure: failed program was" >&5
25499 rm -f conftest.o conftest.s
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25503 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25504 if test $gcc_cv_as_sparc_relax = yes; then
25506 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25512 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25513 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25514 $as_echo_n "(cached) " >&6
25516 gcc_cv_as_sparc_gotdata_op
=no
25517 if test x
$gcc_cv_as != x
; then
25523 sethi %gdop_hix22(foo), %g1
25524 xor %g1, %gdop_lox10(foo), %g1
25525 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25533 if test x
$gcc_cv_ld != x \
25534 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25535 if test x
$gcc_cv_objdump != x
; then
25536 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25537 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25538 gcc_cv_as_sparc_gotdata_op
=no
25540 gcc_cv_as_sparc_gotdata_op
=yes
25546 echo "configure: failed program was" >&5
25549 rm -f conftest.o conftest.s
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25553 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25554 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25556 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25562 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25563 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25564 $as_echo_n "(cached) " >&6
25566 gcc_cv_as_sparc_ua_pcrel
=no
25567 if test x
$gcc_cv_as != x
; then
25574 .uaword %r_disp32(foo)' > conftest.s
25575 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25577 (eval $ac_try) 2>&5
25579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25580 test $ac_status = 0; }; }
25582 if test x
$gcc_cv_ld != x \
25583 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25584 gcc_cv_as_sparc_ua_pcrel
=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_sparc_ua_pcrel" >&5
25595 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25596 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25598 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25602 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25603 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25604 $as_echo_n "(cached) " >&6
25606 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25607 if test x
$gcc_cv_as != x
; then
25611 .uaword %r_disp32(foo)
25612 .byte 0x32, 0x33, 0x34
25616 .skip 4' > conftest.s
25617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25625 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25626 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25627 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25628 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25629 |
grep 'DISP32' > /dev
/null
2>&1; then
25632 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25637 echo "configure: failed program was" >&5
25640 rm -f conftest.o conftest.s
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25644 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25645 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25647 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25653 # unaligned pcrel relocs
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25656 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25657 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
25658 $as_echo_n "(cached) " >&6
25660 gcc_cv_as_sparc_offsetable_lo10
=no
25661 if test x
$gcc_cv_as != x
; then
25663 or %g1, %lo(ab) + 12, %g1
25664 or %g1, %lo(ab + 12), %g1' > conftest.s
25665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667 (eval $ac_try) 2>&5
25669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670 test $ac_status = 0; }; }
25672 if test x
$gcc_cv_objdump != x \
25673 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25674 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25675 gcc_cv_as_sparc_offsetable_lo10
=yes
25678 echo "configure: failed program was" >&5
25681 rm -f conftest.o conftest.s
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25685 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25686 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25688 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25694 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25695 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
25696 $as_echo_n "(cached) " >&6
25698 gcc_cv_as_sparc_fmaf
=no
25699 if test x
$gcc_cv_as != x
; then
25701 .register %g2, #scratch
25702 .register %g3, #scratch
25704 fmaddd %f0, %f2, %f4, %f6
25705 addxccc %g1, %g2, %g3
25706 fsrl32 %f2, %f4, %f8
25707 fnaddd %f10, %f12, %f14' > conftest.s
25708 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25710 (eval $ac_try) 2>&5
25712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25713 test $ac_status = 0; }; }
25715 gcc_cv_as_sparc_fmaf
=yes
25717 echo "configure: failed program was" >&5
25720 rm -f conftest.o conftest.s
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25724 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25725 if test $gcc_cv_as_sparc_fmaf = yes; then
25727 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25733 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25734 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
25735 $as_echo_n "(cached) " >&6
25737 gcc_cv_as_sparc_sparc4
=no
25738 if test x
$gcc_cv_as != x
; then
25740 .register %g2, #scratch
25741 .register %g3, #scratch
25744 1: cwbneg %g2, %g3, 1f
25747 aes_kexpand0 %f4, %f6, %f8
25748 des_round %f38, %f40, %f42, %f44
25749 camellia_f %f54, %f56, %f58, %f60
25750 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25751 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753 (eval $ac_try) 2>&5
25755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756 test $ac_status = 0; }; }
25758 gcc_cv_as_sparc_sparc4
=yes
25760 echo "configure: failed program was" >&5
25763 rm -f conftest.o conftest.s
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25767 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25768 if test $gcc_cv_as_sparc_sparc4 = yes; then
25770 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25776 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25777 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
25778 $as_echo_n "(cached) " >&6
25780 gcc_cv_as_sparc_sparc5
=no
25781 if test x
$gcc_cv_as != x
; then
25783 .register %g2, #scratch
25784 .register %g3, #scratch
25786 subxc %g1, %g2, %g3
25787 fpadd8 %f0, %f2, %f4' > conftest.s
25788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790 (eval $ac_try) 2>&5
25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; }
25795 gcc_cv_as_sparc_sparc5
=yes
25797 echo "configure: failed program was" >&5
25800 rm -f conftest.o conftest.s
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25804 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25805 if test $gcc_cv_as_sparc_sparc5 = yes; then
25807 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25813 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25814 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
25815 $as_echo_n "(cached) " >&6
25817 gcc_cv_as_sparc_sparc6
=no
25818 if test x
$gcc_cv_as != x
; then
25820 .register %g2, #scratch
25821 .register %g3, #scratch
25824 fpsll64x %f0, %f2, %f4' > conftest.s
25825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25827 (eval $ac_try) 2>&5
25829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25830 test $ac_status = 0; }; }
25832 gcc_cv_as_sparc_sparc6
=yes
25834 echo "configure: failed program was" >&5
25837 rm -f conftest.o conftest.s
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25841 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25842 if test $gcc_cv_as_sparc_sparc6 = yes; then
25844 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25850 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25851 if ${gcc_cv_as_sparc_leon+:} false
; then :
25852 $as_echo_n "(cached) " >&6
25854 gcc_cv_as_sparc_leon
=no
25855 if test x
$gcc_cv_as != x
; then
25857 .register %g2, #scratch
25858 .register %g3, #scratch
25862 casa [%g2] 0xb, %g3, %g1' > conftest.s
25863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25870 gcc_cv_as_sparc_leon
=yes
25872 echo "configure: failed program was" >&5
25875 rm -f conftest.o conftest.s
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25879 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25880 if test $gcc_cv_as_sparc_leon = yes; then
25882 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25888 i
[34567]86-*-* | x86_64-
*-*)
25891 # Full C++ conformance when using a shared libstdc++-v3 requires some
25892 # support from the Cygwin DLL, which in more recent versions exports
25893 # wrappers to aid in interposing and redirecting operators new, delete,
25894 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25895 # are configuring for a version of Cygwin that exports the wrappers.
25896 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25897 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25898 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
25899 gcc_ac_cygwin_dll_wrappers
=yes
25901 gcc_ac_cygwin_dll_wrappers
=no
25905 # Can't check presence of libc functions during cross-compile, so
25906 # we just have to assume we're building for an up-to-date target.
25907 gcc_ac_cygwin_dll_wrappers
=yes
25910 cat >>confdefs.h
<<_ACEOF
25911 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25916 cygwin
* | pe | mingw32
*)
25917 # Recent binutils allows the three-operand form of ".comm" on PE. This
25918 # definition is used unconditionally to initialise the default state of
25919 # the target option variable that governs usage of the feature.
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25921 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25922 if ${gcc_cv_as_comm_has_align+:} false
; then :
25923 $as_echo_n "(cached) " >&6
25925 gcc_cv_as_comm_has_align
=no
25926 if test $in_tree_gas = yes; then
25927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25928 then gcc_cv_as_comm_has_align
=yes
25930 elif test x
$gcc_cv_as != x
; then
25931 $as_echo '.comm foo,1,32' > conftest.s
25932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25934 (eval $ac_try) 2>&5
25936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937 test $ac_status = 0; }; }
25939 gcc_cv_as_comm_has_align
=yes
25941 echo "configure: failed program was" >&5
25944 rm -f conftest.o conftest.s
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25948 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25952 cat >>confdefs.h
<<_ACEOF
25953 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25956 # Used for DWARF 2 in PE
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25958 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25959 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
25960 $as_echo_n "(cached) " >&6
25962 gcc_cv_as_ix86_pe_secrel32
=no
25963 if test $in_tree_gas = yes; then
25964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25965 then gcc_cv_as_ix86_pe_secrel32
=yes
25967 elif test x
$gcc_cv_as != x
; then
25971 .secrel32 foo' > conftest.s
25972 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25979 if test x
$gcc_cv_ld != x \
25980 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25981 gcc_cv_as_ix86_pe_secrel32
=yes
25985 echo "configure: failed program was" >&5
25988 rm -f conftest.o conftest.s
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25992 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25993 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25995 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25999 # Test if the assembler supports the extended form of the .section
26000 # directive that specifies section alignment. LTO support uses this,
26001 # but normally only after installation, so we warn but don't fail the
26002 # configure if LTO is enabled but the assembler does not support it.
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26004 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26005 if ${gcc_cv_as_section_has_align+:} false
; then :
26006 $as_echo_n "(cached) " >&6
26008 gcc_cv_as_section_has_align
=no
26009 if test $in_tree_gas = yes; then
26010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26011 then gcc_cv_as_section_has_align
=yes
26013 elif test x
$gcc_cv_as != x
; then
26014 $as_echo '.section lto_test,"dr0"' > conftest.s
26015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017 (eval $ac_try) 2>&5
26019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020 test $ac_status = 0; }; }
26022 gcc_cv_as_section_has_align
=yes
26024 echo "configure: failed program was" >&5
26027 rm -f conftest.o conftest.s
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26031 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26034 if test x
$gcc_cv_as_section_has_align != xyes
; then
26035 case ",$enable_languages," in
26037 { $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
26038 $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;}
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26046 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26047 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26048 $as_echo_n "(cached) " >&6
26050 gcc_cv_as_ix86_xbrace_comment
=no
26051 if test x
$gcc_cv_as != x
; then
26052 $as_echo '.text' > conftest.s
26053 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26055 (eval $ac_try) 2>&5
26057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26058 test $ac_status = 0; }; }
26060 gcc_cv_as_ix86_xbrace_comment
=yes
26062 echo "configure: failed program was" >&5
26065 rm -f conftest.o conftest.s
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26069 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26070 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26072 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26078 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26079 if ${gcc_cv_as_ix86_filds+:} false
; then :
26080 $as_echo_n "(cached) " >&6
26082 gcc_cv_as_ix86_filds
=no
26083 if test x
$gcc_cv_as != x
; then
26084 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26085 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26087 (eval $ac_try) 2>&5
26089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090 test $ac_status = 0; }; }
26092 gcc_cv_as_ix86_filds
=yes
26094 echo "configure: failed program was" >&5
26097 rm -f conftest.o conftest.s
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26101 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26102 if test $gcc_cv_as_ix86_filds = yes; then
26104 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26110 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26111 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26112 $as_echo_n "(cached) " >&6
26114 gcc_cv_as_ix86_fildq
=no
26115 if test x
$gcc_cv_as != x
; then
26116 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26119 (eval $ac_try) 2>&5
26121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26122 test $ac_status = 0; }; }
26124 gcc_cv_as_ix86_fildq
=yes
26126 echo "configure: failed program was" >&5
26129 rm -f conftest.o conftest.s
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26133 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26134 if test $gcc_cv_as_ix86_fildq = yes; then
26136 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26142 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26143 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26144 $as_echo_n "(cached) " >&6
26146 gcc_cv_as_ix86_cmov_sun_syntax
=no
26147 if test x
$gcc_cv_as != x
; then
26148 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26156 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26158 echo "configure: failed program was" >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26165 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26166 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26168 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26174 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26175 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26176 $as_echo_n "(cached) " >&6
26178 gcc_cv_as_ix86_ffreep
=no
26179 if test x
$gcc_cv_as != x
; then
26180 $as_echo 'ffreep %st(1)' > conftest.s
26181 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26183 (eval $ac_try) 2>&5
26185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186 test $ac_status = 0; }; }
26188 gcc_cv_as_ix86_ffreep
=yes
26190 echo "configure: failed program was" >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26197 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26198 if test $gcc_cv_as_ix86_ffreep = yes; then
26200 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26206 $as_echo_n "checking assembler for .quad directive... " >&6; }
26207 if ${gcc_cv_as_ix86_quad+:} false
; then :
26208 $as_echo_n "(cached) " >&6
26210 gcc_cv_as_ix86_quad
=no
26211 if test x
$gcc_cv_as != x
; then
26212 $as_echo '.quad 0' > conftest.s
26213 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26215 (eval $ac_try) 2>&5
26217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218 test $ac_status = 0; }; }
26220 gcc_cv_as_ix86_quad
=yes
26222 echo "configure: failed program was" >&5
26225 rm -f conftest.o conftest.s
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26229 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26230 if test $gcc_cv_as_ix86_quad = yes; then
26232 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26238 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26239 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26240 $as_echo_n "(cached) " >&6
26242 gcc_cv_as_ix86_sahf
=no
26243 if test x
$gcc_cv_as != x
; then
26246 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26248 (eval $ac_try) 2>&5
26250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26251 test $ac_status = 0; }; }
26253 gcc_cv_as_ix86_sahf
=yes
26255 echo "configure: failed program was" >&5
26258 rm -f conftest.o conftest.s
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26262 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26263 if test $gcc_cv_as_ix86_sahf = yes; then
26265 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26271 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26272 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26273 $as_echo_n "(cached) " >&6
26275 gcc_cv_as_ix86_interunit_movq
=no
26276 if test x
$gcc_cv_as != x
; then
26279 movq %rax, %xmm0' > conftest.s
26280 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26282 (eval $ac_try) 2>&5
26284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26285 test $ac_status = 0; }; }
26287 gcc_cv_as_ix86_interunit_movq
=yes
26289 echo "configure: failed program was" >&5
26292 rm -f conftest.o conftest.s
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26296 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26300 cat >>confdefs.h
<<_ACEOF
26301 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26306 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26307 if ${gcc_cv_as_ix86_hle+:} false
; then :
26308 $as_echo_n "(cached) " >&6
26310 gcc_cv_as_ix86_hle
=no
26311 if test x
$gcc_cv_as != x
; then
26312 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315 (eval $ac_try) 2>&5
26317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; }
26320 gcc_cv_as_ix86_hle
=yes
26322 echo "configure: failed program was" >&5
26325 rm -f conftest.o conftest.s
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26329 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26330 if test $gcc_cv_as_ix86_hle = yes; then
26332 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26338 $as_echo_n "checking assembler for swap suffix... " >&6; }
26339 if ${gcc_cv_as_ix86_swap+:} false
; then :
26340 $as_echo_n "(cached) " >&6
26342 gcc_cv_as_ix86_swap
=no
26343 if test x
$gcc_cv_as != x
; then
26344 $as_echo 'movl.s %esp, %ebp' > conftest.s
26345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26347 (eval $ac_try) 2>&5
26349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350 test $ac_status = 0; }; }
26352 gcc_cv_as_ix86_swap
=yes
26354 echo "configure: failed program was" >&5
26357 rm -f conftest.o conftest.s
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26361 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26362 if test $gcc_cv_as_ix86_swap = yes; then
26364 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26370 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26371 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26372 $as_echo_n "(cached) " >&6
26374 gcc_cv_as_ix86_diff_sect_delta
=no
26375 if test x
$gcc_cv_as != x
; then
26376 $as_echo '.section .rodata
26382 .L2: nop' > conftest.s
26383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385 (eval $ac_try) 2>&5
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; }
26390 gcc_cv_as_ix86_diff_sect_delta
=yes
26392 echo "configure: failed program was" >&5
26395 rm -f conftest.o conftest.s
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26399 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26400 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26402 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26408 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26409 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26410 $as_echo_n "(cached) " >&6
26412 gcc_cv_as_ix86_rep_lock_prefix
=no
26413 if test x
$gcc_cv_as != x
; then
26414 $as_echo 'rep movsl
26419 lock addl %edi, (%eax,%esi)
26420 lock orl $0, (%esp)' > conftest.s
26421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26423 (eval $ac_try) 2>&5
26425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26426 test $ac_status = 0; }; }
26428 gcc_cv_as_ix86_rep_lock_prefix
=yes
26430 echo "configure: failed program was" >&5
26433 rm -f conftest.o conftest.s
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26437 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26438 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26440 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26446 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26447 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26448 $as_echo_n "(cached) " >&6
26450 gcc_cv_as_ix86_ud2
=no
26451 if test x
$gcc_cv_as != x
; then
26452 $as_echo 'ud2' > conftest.s
26453 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26455 (eval $ac_try) 2>&5
26457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26458 test $ac_status = 0; }; }
26460 gcc_cv_as_ix86_ud2
=yes
26462 echo "configure: failed program was" >&5
26465 rm -f conftest.o conftest.s
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26469 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26470 if test $gcc_cv_as_ix86_ud2 = yes; then
26472 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26477 # Enforce 32-bit output with gas and gld.
26478 if test x
$gas = xyes
; then
26479 as_ix86_gas_32_opt
="--32"
26481 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26482 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26483 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26485 ld_ix86_gld_32_opt
="-melf_i386"
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26490 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26491 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26492 $as_echo_n "(cached) " >&6
26494 gcc_cv_as_ix86_tlsgdplt
=no
26495 if test x
$gcc_cv_as != x
; then
26496 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26497 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26499 (eval $ac_try) 2>&5
26501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26502 test $ac_status = 0; }; }
26504 if test x
$gcc_cv_ld != x \
26505 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26506 gcc_cv_as_ix86_tlsgdplt
=yes
26510 echo "configure: failed program was" >&5
26513 rm -f conftest.o conftest.s
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26517 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26518 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26520 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26526 .section .tdata,"aw'$tls_section_flag'",@progbits
26528 .section .text,"ax",@progbits
26529 call tls_ld@tlsldmplt'
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26532 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26533 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26534 $as_echo_n "(cached) " >&6
26536 gcc_cv_as_ix86_tlsldmplt
=no
26537 if test x
$gcc_cv_as != x
; then
26538 $as_echo "$conftest_s" > conftest.s
26539 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26541 (eval $ac_try) 2>&5
26543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26544 test $ac_status = 0; }; }
26546 if test x
$gcc_cv_ld != x \
26547 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26548 gcc_cv_as_ix86_tlsldmplt
=yes
26552 echo "configure: failed program was" >&5
26555 rm -f conftest.o conftest.s
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26559 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26563 cat >>confdefs.h
<<_ACEOF
26564 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26569 .section .text,"ax",@progbits
26571 .type _start, @function
26573 leal value@tlsldm(%ebx), %eax
26574 call ___tls_get_addr@plt
26576 .section .tdata,"aw'$tls_section_flag'",@progbits
26577 .type value, @object
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26580 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26581 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26582 $as_echo_n "(cached) " >&6
26584 gcc_cv_as_ix86_tlsldm
=no
26585 if test x
$gcc_cv_as != x
; then
26586 $as_echo "$conftest_s" > conftest.s
26587 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26595 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26596 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26597 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26598 gcc_cv_as_ix86_tlsldm
=yes
26603 echo "configure: failed program was" >&5
26606 rm -f conftest.o conftest.s
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26610 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26614 cat >>confdefs.h
<<_ACEOF
26615 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26629 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26630 if ${gcc_cv_as_ix86_got32x+:} false
; then :
26631 $as_echo_n "(cached) " >&6
26633 gcc_cv_as_ix86_got32x
=no
26634 if test x
$gcc_cv_as != x
; then
26635 $as_echo "$conftest_s" > conftest.s
26636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26638 (eval $ac_try) 2>&5
26640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26641 test $ac_status = 0; }; }
26643 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26644 && test x
$gcc_cv_readelf != x \
26645 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26646 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26647 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26648 if $gcc_cv_objdump -dw conftest
2>&1 \
26649 |
grep 0xffffff > /dev
/null
2>&1; then
26650 gcc_cv_as_ix86_got32x
=no
26652 gcc_cv_as_ix86_got32x
=yes
26657 echo "configure: failed program was" >&5
26660 rm -f conftest.o conftest.s
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26664 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26668 cat >>confdefs.h
<<_ACEOF
26669 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26674 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26675 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
26676 $as_echo_n "(cached) " >&6
26678 gcc_cv_as_ix86_gotoff_in_data
=no
26679 if test $in_tree_gas = yes; then
26680 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26681 then gcc_cv_as_ix86_gotoff_in_data
=yes
26683 elif test x
$gcc_cv_as != x
; then
26688 .long .L0@GOTOFF' > conftest.s
26689 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26691 (eval $ac_try) 2>&5
26693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26694 test $ac_status = 0; }; }
26696 gcc_cv_as_ix86_gotoff_in_data
=yes
26698 echo "configure: failed program was" >&5
26701 rm -f conftest.o conftest.s
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26705 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26709 cat >>confdefs.h
<<_ACEOF
26710 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26715 .section .text,"ax",@progbits
26717 .type _start, @function
26719 leal ld@tlsldm(%ecx), %eax
26720 call *___tls_get_addr@GOT(%ecx)
26721 leal gd@tlsgd(%ecx), %eax
26722 call *___tls_get_addr@GOT(%ecx)
26724 .section .tdata,"aw'$tls_section_flag'",@progbits
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26733 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26734 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
26735 $as_echo_n "(cached) " >&6
26737 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26738 if test x
$gcc_cv_as != x
; then
26739 $as_echo "$conftest_s" > conftest.s
26740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26742 (eval $ac_try) 2>&5
26744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26745 test $ac_status = 0; }; }
26747 if test x
$gcc_cv_ld != x \
26748 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26749 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26753 echo "configure: failed program was" >&5
26756 rm -f conftest.o conftest.s
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26760 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26764 cat >>confdefs.h
<<_ACEOF
26765 #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`
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26772 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26773 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
26774 $as_echo_n "(cached) " >&6
26776 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26777 if test $in_tree_gas = yes; then
26778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26779 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26781 elif test x
$gcc_cv_as != x
; then
26783 addl r15 = @ltoffx(x#), gp
26785 ld8.mov r16 = [r15], x#
26787 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26789 (eval $ac_try) 2>&5
26791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26792 test $ac_status = 0; }; }
26794 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26796 echo "configure: failed program was" >&5
26799 rm -f conftest.o conftest.s
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26803 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26804 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26806 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26818 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26819 if ${gcc_cv_as_machine_directive+:} false
; then :
26820 $as_echo_n "(cached) " >&6
26822 gcc_cv_as_machine_directive
=no
26823 if test x
$gcc_cv_as != x
; then
26824 $as_echo ' .machine ppc7400' > conftest.s
26825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26827 (eval $ac_try) 2>&5
26829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26830 test $ac_status = 0; }; }
26832 gcc_cv_as_machine_directive
=yes
26834 echo "configure: failed program was" >&5
26837 rm -f conftest.o conftest.s
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26841 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26844 if test x
$gcc_cv_as_machine_directive != xyes
; then
26845 echo "*** This target requires an assembler supporting \".machine\"" >&2
26846 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26847 test x
$build = x
$target && exit 1
26853 *-*-aix*) conftest_s
=' .machine "pwr5"
26856 *-*-darwin*) conftest_s
=' .text
26858 *) conftest_s
=' .machine power4
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26864 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26865 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
26866 $as_echo_n "(cached) " >&6
26868 gcc_cv_as_powerpc_mfcrf
=no
26869 if test $in_tree_gas = yes; then
26870 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26871 then gcc_cv_as_powerpc_mfcrf
=yes
26873 elif test x
$gcc_cv_as != x
; then
26874 $as_echo "$conftest_s" > conftest.s
26875 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26877 (eval $ac_try) 2>&5
26879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26880 test $ac_status = 0; }; }
26882 gcc_cv_as_powerpc_mfcrf
=yes
26884 echo "configure: failed program was" >&5
26887 rm -f conftest.o conftest.s
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26891 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26892 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26894 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26900 *-*-aix*) conftest_s
=' .csect .text[PR]
26902 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26906 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26907 *) conftest_s
=' .text
26909 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26913 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26914 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
26915 $as_echo_n "(cached) " >&6
26917 gcc_cv_as_powerpc_rel16
=no
26918 if test $in_tree_gas = yes; then
26919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26920 then gcc_cv_as_powerpc_rel16
=yes
26922 elif test x
$gcc_cv_as != x
; then
26923 $as_echo "$conftest_s" > conftest.s
26924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26926 (eval $ac_try) 2>&5
26928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26929 test $ac_status = 0; }; }
26931 gcc_cv_as_powerpc_rel16
=yes
26933 echo "configure: failed program was" >&5
26936 rm -f conftest.o conftest.s
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26940 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26941 if test $gcc_cv_as_powerpc_rel16 = yes; then
26943 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26949 *-*-aix*) conftest_s
=' .machine "pwr7"
26952 *) conftest_s
=' .machine power7
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26958 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26959 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
26960 $as_echo_n "(cached) " >&6
26962 gcc_cv_as_powerpc_vsx
=no
26963 if test $in_tree_gas = yes; then
26964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26965 then gcc_cv_as_powerpc_vsx
=yes
26967 elif test x
$gcc_cv_as != x
; then
26968 $as_echo "$conftest_s" > conftest.s
26969 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26971 (eval $ac_try) 2>&5
26973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974 test $ac_status = 0; }; }
26976 gcc_cv_as_powerpc_vsx
=yes
26978 echo "configure: failed program was" >&5
26981 rm -f conftest.o conftest.s
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26985 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26986 if test $gcc_cv_as_powerpc_vsx = yes; then
26988 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26994 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26995 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
26996 $as_echo_n "(cached) " >&6
26998 gcc_cv_as_powerpc_gnu_attribute
=no
26999 if test $in_tree_gas = yes; then
27000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27001 then gcc_cv_as_powerpc_gnu_attribute
=yes
27003 elif test x
$gcc_cv_as != x
; then
27004 $as_echo '.gnu_attribute 4,1' > conftest.s
27005 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27007 (eval $ac_try) 2>&5
27009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27010 test $ac_status = 0; }; }
27012 gcc_cv_as_powerpc_gnu_attribute
=yes
27014 echo "configure: failed program was" >&5
27017 rm -f conftest.o conftest.s
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27021 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27022 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27024 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27030 $as_echo_n "checking assembler for tls marker support... " >&6; }
27031 if ${gcc_cv_as_powerpc_tls_markers+:} false
; then :
27032 $as_echo_n "(cached) " >&6
27034 gcc_cv_as_powerpc_tls_markers
=no
27035 if test $in_tree_gas = yes; then
27036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27037 then gcc_cv_as_powerpc_tls_markers
=yes
27039 elif test x
$gcc_cv_as != x
; then
27040 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27043 (eval $ac_try) 2>&5
27045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27046 test $ac_status = 0; }; }
27048 gcc_cv_as_powerpc_tls_markers
=yes
27050 echo "configure: failed program was" >&5
27053 rm -f conftest.o conftest.s
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27057 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27058 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27060 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27066 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27067 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27068 $as_echo_n "(cached) " >&6
27070 gcc_cv_as_powerpc_entry_markers
=no
27071 if test $in_tree_gas = yes; then
27072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27073 then gcc_cv_as_powerpc_entry_markers
=yes
27075 elif test x
$gcc_cv_as != x
; then
27076 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27079 (eval $ac_try) 2>&5
27081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27082 test $ac_status = 0; }; }
27084 gcc_cv_as_powerpc_entry_markers
=yes
27086 echo "configure: failed program was" >&5
27089 rm -f conftest.o conftest.s
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27093 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27094 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27096 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27102 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27103 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27104 $as_echo_n "(cached) " >&6
27106 gcc_cv_as_powerpc_pltseq_markers
=no
27107 if test $in_tree_gas = yes; then
27108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27109 then gcc_cv_as_powerpc_pltseq_markers
=yes
27111 elif test x
$gcc_cv_as != x
; then
27112 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27113 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27115 (eval $ac_try) 2>&5
27117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27118 test $ac_status = 0; }; }
27120 gcc_cv_as_powerpc_pltseq_markers
=yes
27122 echo "configure: failed program was" >&5
27125 rm -f conftest.o conftest.s
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27129 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27130 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27132 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27140 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27141 if ${gcc_cv_as_aix_ref+:} false
; then :
27142 $as_echo_n "(cached) " >&6
27144 gcc_cv_as_aix_ref
=no
27145 if test $in_tree_gas = yes; then
27146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27147 then gcc_cv_as_aix_ref
=yes
27149 elif test x
$gcc_cv_as != x
; then
27150 $as_echo ' .csect stuff[rw]
27156 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27158 (eval $ac_try) 2>&5
27160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27161 test $ac_status = 0; }; }
27163 gcc_cv_as_aix_ref
=yes
27165 echo "configure: failed program was" >&5
27168 rm -f conftest.o conftest.s
27171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27172 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27173 if test $gcc_cv_as_aix_ref = yes; then
27175 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27181 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27182 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27183 $as_echo_n "(cached) " >&6
27185 gcc_cv_as_aix_dwloc
=no
27186 if test $in_tree_gas = yes; then
27187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27188 then gcc_cv_as_aix_dwloc
=yes
27190 elif test x
$gcc_cv_as != x
; then
27191 $as_echo ' .dwsect 0xA0000
27195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_aix_dwloc
=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_aix_dwloc" >&5
27211 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27212 if test $gcc_cv_as_aix_dwloc = yes; then
27214 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27224 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27225 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27226 $as_echo_n "(cached) " >&6
27228 gcc_cv_as_mips_explicit_relocs
=no
27229 if test $in_tree_gas = yes; then
27230 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27231 then gcc_cv_as_mips_explicit_relocs
=yes
27233 elif test x
$gcc_cv_as != x
; then
27234 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27237 (eval $ac_try) 2>&5
27239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27240 test $ac_status = 0; }; }
27242 gcc_cv_as_mips_explicit_relocs
=yes
27244 echo "configure: failed program was" >&5
27247 rm -f conftest.o conftest.s
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27251 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27252 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27253 if test x
$target_cpu_default = x
27254 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27255 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27261 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27262 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27263 $as_echo_n "(cached) " >&6
27265 gcc_cv_as_mips_no_shared
=no
27266 if test $in_tree_gas = yes; then
27267 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27268 then gcc_cv_as_mips_no_shared
=yes
27270 elif test x
$gcc_cv_as != x
; then
27271 $as_echo 'nop' > conftest.s
27272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27274 (eval $ac_try) 2>&5
27276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27277 test $ac_status = 0; }; }
27279 gcc_cv_as_mips_no_shared
=yes
27281 echo "configure: failed program was" >&5
27284 rm -f conftest.o conftest.s
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27288 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27289 if test $gcc_cv_as_mips_no_shared = yes; then
27291 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27297 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27298 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27299 $as_echo_n "(cached) " >&6
27301 gcc_cv_as_mips_gnu_attribute
=no
27302 if test $in_tree_gas = yes; then
27303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27304 then gcc_cv_as_mips_gnu_attribute
=yes
27306 elif test x
$gcc_cv_as != x
; then
27307 $as_echo '.gnu_attribute 4,1' > conftest.s
27308 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27310 (eval $ac_try) 2>&5
27312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27313 test $ac_status = 0; }; }
27315 gcc_cv_as_mips_gnu_attribute
=yes
27317 echo "configure: failed program was" >&5
27320 rm -f conftest.o conftest.s
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27324 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27325 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27327 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27333 $as_echo_n "checking assembler for .module support... " >&6; }
27334 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27335 $as_echo_n "(cached) " >&6
27337 gcc_cv_as_mips_dot_module
=no
27338 if test x
$gcc_cv_as != x
; then
27339 $as_echo '.module mips2
27340 .module fp=xx' > conftest.s
27341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27343 (eval $ac_try) 2>&5
27345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27346 test $ac_status = 0; }; }
27348 gcc_cv_as_mips_dot_module
=yes
27350 echo "configure: failed program was" >&5
27353 rm -f conftest.o conftest.s
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27357 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27358 if test $gcc_cv_as_mips_dot_module = yes; then
27360 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27364 if test x
$gcc_cv_as_mips_dot_module = xno \
27365 && test x
$with_fp_32 != x
; then
27366 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27370 $as_echo_n "checking assembler for .micromips support... " >&6; }
27371 if ${gcc_cv_as_micromips_support+:} false
; then :
27372 $as_echo_n "(cached) " >&6
27374 gcc_cv_as_micromips_support
=no
27375 if test x
$gcc_cv_as != x
; then
27376 $as_echo '.set micromips' > conftest.s
27377 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27379 (eval $ac_try) 2>&5
27381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382 test $ac_status = 0; }; }
27384 gcc_cv_as_micromips_support
=yes
27386 echo "configure: failed program was" >&5
27389 rm -f conftest.o conftest.s
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27393 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27394 if test $gcc_cv_as_micromips_support = yes; then
27396 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27402 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27403 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27404 $as_echo_n "(cached) " >&6
27406 gcc_cv_as_mips_dtprelword
=no
27407 if test $in_tree_gas = yes; then
27408 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27409 then gcc_cv_as_mips_dtprelword
=yes
27411 elif test x
$gcc_cv_as != x
; then
27412 $as_echo '.section .tdata,"awT",@progbits
27416 .dtprelword x+0x8000' > conftest.s
27417 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27419 (eval $ac_try) 2>&5
27421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27422 test $ac_status = 0; }; }
27424 gcc_cv_as_mips_dtprelword
=yes
27426 echo "configure: failed program was" >&5
27429 rm -f conftest.o conftest.s
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27433 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27434 if test $gcc_cv_as_mips_dtprelword = yes; then
27436 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27442 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27443 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27444 $as_echo_n "(cached) " >&6
27446 gcc_cv_as_mips_dspr1_mult
=no
27447 if test x
$gcc_cv_as != x
; then
27448 $as_echo ' .set mips32r2
27456 multu $ac3,$4,$5' > conftest.s
27457 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27459 (eval $ac_try) 2>&5
27461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27462 test $ac_status = 0; }; }
27464 gcc_cv_as_mips_dspr1_mult
=yes
27466 echo "configure: failed program was" >&5
27469 rm -f conftest.o conftest.s
27472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27473 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27474 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27476 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27482 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27483 gcc_cv_as_ld_jalr_reloc
=no
27484 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27485 if test $in_tree_ld = yes ; then
27486 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 \
27487 && test $in_tree_ld_is_elf = yes; then
27488 gcc_cv_as_ld_jalr_reloc
=yes
27490 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27491 echo ' .ent x' > conftest.s
27492 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27493 echo ' lw $25,%call16(y)($28)' >> conftest.s
27494 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27495 echo '1: jalr $25' >> conftest.s
27496 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27497 echo '1: jalr $25' >> conftest.s
27498 echo ' .end x' >> conftest.s
27499 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27500 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27501 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27502 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27503 gcc_cv_as_ld_jalr_reloc
=yes
27509 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27510 if test x
$target_cpu_default = x
; then
27511 target_cpu_default
=MASK_RELAX_PIC_CALLS
27513 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27517 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27520 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27521 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27522 $as_echo_n "(cached) " >&6
27524 gcc_cv_ld_mips_personality_relaxation
=no
27525 if test $in_tree_ld = yes ; then
27526 if test "$gcc_cv_gld_major_version" -eq 2 \
27527 -a "$gcc_cv_gld_minor_version" -ge 21 \
27528 -o "$gcc_cv_gld_major_version" -gt 2; then
27529 gcc_cv_ld_mips_personality_relaxation
=yes
27531 elif test x
$gcc_cv_as != x \
27532 -a x
$gcc_cv_ld != x \
27533 -a x
$gcc_cv_readelf != x
; then
27534 cat > conftest.s
<<EOF
27536 .cfi_personality 0x80,indirect_ptr
27543 .section .data,"aw",@progbits
27547 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27548 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27549 if $gcc_cv_readelf -d conftest
2>&1 \
27550 |
grep TEXTREL
> /dev
/null
2>&1; then
27552 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27553 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27556 gcc_cv_ld_mips_personality_relaxation
=yes
27560 rm -f conftest.s conftest.o conftest
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27563 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27564 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27566 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27571 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27572 if ${gcc_cv_as_mips_nan+:} false
; then :
27573 $as_echo_n "(cached) " >&6
27575 gcc_cv_as_mips_nan
=no
27576 if test x
$gcc_cv_as != x
; then
27577 $as_echo '' > conftest.s
27578 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27580 (eval $ac_try) 2>&5
27582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27583 test $ac_status = 0; }; }
27585 gcc_cv_as_mips_nan
=yes
27587 echo "configure: failed program was" >&5
27590 rm -f conftest.o conftest.s
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27594 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27595 if test $gcc_cv_as_mips_nan = yes; then
27597 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27601 if test x
$gcc_cv_as_mips_nan = xno \
27602 && test x
$with_nan != x
; then
27603 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27608 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27609 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
27610 $as_echo_n "(cached) " >&6
27612 gcc_cv_as_s390_gnu_attribute
=no
27613 if test $in_tree_gas = yes; then
27614 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27615 then gcc_cv_as_s390_gnu_attribute
=yes
27617 elif test x
$gcc_cv_as != x
; then
27618 $as_echo '.gnu_attribute 8,1' > conftest.s
27619 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27621 (eval $ac_try) 2>&5
27623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27624 test $ac_status = 0; }; }
27626 gcc_cv_as_s390_gnu_attribute
=yes
27628 echo "configure: failed program was" >&5
27631 rm -f conftest.o conftest.s
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27635 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27636 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27638 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27643 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27644 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
27645 $as_echo_n "(cached) " >&6
27647 gcc_cv_as_s390_machine_machinemode
=no
27648 if test $in_tree_gas = yes; then
27649 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27650 then gcc_cv_as_s390_machine_machinemode
=yes
27652 elif test x
$gcc_cv_as != x
; then
27653 $as_echo ' .machinemode push
27656 .machine pop' > conftest.s
27657 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27659 (eval $ac_try) 2>&5
27661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27662 test $ac_status = 0; }; }
27664 gcc_cv_as_s390_machine_machinemode
=yes
27666 echo "configure: failed program was" >&5
27669 rm -f conftest.o conftest.s
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27673 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27674 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27676 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27681 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27682 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
27683 $as_echo_n "(cached) " >&6
27685 gcc_cv_as_s390_architecture_modifiers
=no
27686 if test $in_tree_gas = yes; then
27687 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27688 then gcc_cv_as_s390_architecture_modifiers
=yes
27690 elif test x
$gcc_cv_as != x
; then
27691 $as_echo ' .machine z13+vx ' > conftest.s
27692 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27694 (eval $ac_try) 2>&5
27696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27697 test $ac_status = 0; }; }
27699 gcc_cv_as_s390_architecture_modifiers
=yes
27701 echo "configure: failed program was" >&5
27704 rm -f conftest.o conftest.s
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27708 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27709 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27711 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27716 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27717 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
27718 $as_echo_n "(cached) " >&6
27720 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
27721 if test $in_tree_gas = yes; then
27722 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27723 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
27725 elif test x
$gcc_cv_as != x
; then
27726 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
27727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27729 (eval $ac_try) 2>&5
27731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27732 test $ac_status = 0; }; }
27734 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
27736 echo "configure: failed program was" >&5
27739 rm -f conftest.o conftest.s
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27743 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27744 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27746 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27754 # Mips and HP-UX need the GNU assembler.
27755 # Linux on IA64 might be able to use the Intel assembler.
27758 mips
*-*-* |
*-*-hpux* )
27759 if test x
$gas_flag = xyes \
27760 ||
test x
"$host" != x
"$build" \
27761 ||
test ! -x "$gcc_cv_as" \
27762 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27765 echo "*** This configuration requires the GNU assembler" >&2
27771 # ??? Not all targets support dwarf2 debug_line, even within a version
27772 # of gas. Moreover, we need to emit a valid instruction to trigger any
27773 # info to the output file. So, as supported targets are added to gas 2.11,
27774 # add some instruction here to (also) show we expect this might work.
27775 # ??? Once 2.11 is released, probably need to add first known working
27776 # version to the per-target configury.
27777 case "$cpu_type" in
27778 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27779 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27780 | tilegx | tilepro | visium | xstormy16 | xtensa
)
27790 if test x
"$insn" != x
; then
27792 .file 1 \"conftest.s\"
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27796 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27797 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
27798 $as_echo_n "(cached) " >&6
27800 gcc_cv_as_dwarf2_debug_line
=no
27801 if test $in_tree_gas = yes; then
27802 if test $in_tree_gas_is_elf = yes \
27803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27804 then gcc_cv_as_dwarf2_debug_line
=yes
27806 elif test x
$gcc_cv_as != x
; then
27807 $as_echo "$conftest_s" > conftest.s
27808 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27810 (eval $ac_try) 2>&5
27812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27813 test $ac_status = 0; }; }
27815 if test x
$gcc_cv_objdump != x \
27816 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27817 |
grep debug_line
> /dev
/null
2>&1; then
27818 gcc_cv_as_dwarf2_debug_line
=yes
27819 elif test x
$gcc_cv_otool != x \
27820 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
27821 |
grep debug_line
> /dev
/null
2>&1; then
27822 gcc_cv_as_dwarf2_debug_line
=yes
27825 echo "configure: failed program was" >&5
27828 rm -f conftest.o conftest.s
27831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27832 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27836 # The .debug_line file table must be in the exact order that
27837 # we specified the files, since these indices are also used
27838 # by DW_AT_decl_file. Approximate this test by testing if
27839 # the assembler bitches if the same index is assigned twice.
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27841 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27842 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
27843 $as_echo_n "(cached) " >&6
27845 gcc_cv_as_dwarf2_file_buggy
=no
27846 if test x
$gcc_cv_as != x
; then
27847 $as_echo ' .file 1 "foo.s"
27848 .file 1 "bar.s"' > conftest.s
27849 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27851 (eval $ac_try) 2>&5
27853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27854 test $ac_status = 0; }; }
27856 gcc_cv_as_dwarf2_file_buggy
=yes
27858 echo "configure: failed program was" >&5
27861 rm -f conftest.o conftest.s
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27865 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27869 if test $gcc_cv_as_dwarf2_debug_line = yes \
27870 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27872 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27875 if test $gcc_cv_as_leb128 = yes; then
27877 .file 1 \"conftest.s\"
27878 .loc 1 3 0 view .LVU1
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27885 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27886 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
27887 $as_echo_n "(cached) " >&6
27889 gcc_cv_as_dwarf2_debug_view
=no
27890 if test $in_tree_gas = yes; then
27891 if test $in_tree_gas_is_elf = yes \
27892 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27893 then gcc_cv_as_dwarf2_debug_view
=yes
27895 elif test x
$gcc_cv_as != x
; then
27896 $as_echo "$conftest_s" > conftest.s
27897 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27899 (eval $ac_try) 2>&5
27901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27902 test $ac_status = 0; }; }
27904 gcc_cv_as_dwarf2_debug_view
=yes
27906 echo "configure: failed program was" >&5
27909 rm -f conftest.o conftest.s
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27913 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27914 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27916 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27924 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27925 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
27926 $as_echo_n "(cached) " >&6
27928 gcc_cv_as_gdwarf2_flag
=no
27929 if test $in_tree_gas = yes; then
27930 if test $in_tree_gas_is_elf = yes \
27931 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27932 then gcc_cv_as_gdwarf2_flag
=yes
27934 elif test x
$gcc_cv_as != x
; then
27935 $as_echo "$insn" > conftest.s
27936 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27938 (eval $ac_try) 2>&5
27940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27941 test $ac_status = 0; }; }
27943 gcc_cv_as_gdwarf2_flag
=yes
27945 echo "configure: failed program was" >&5
27948 rm -f conftest.o conftest.s
27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27952 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27953 if test $gcc_cv_as_gdwarf2_flag = yes; then
27955 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27961 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27962 if ${gcc_cv_as_gstabs_flag+:} false
; then :
27963 $as_echo_n "(cached) " >&6
27965 gcc_cv_as_gstabs_flag
=no
27966 if test $in_tree_gas = yes; then
27967 if test $in_tree_gas_is_elf = yes \
27968 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27969 then gcc_cv_as_gstabs_flag
=yes
27971 elif test x
$gcc_cv_as != x
; then
27972 $as_echo "$insn" > conftest.s
27973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27975 (eval $ac_try) 2>&5
27977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27978 test $ac_status = 0; }; }
27980 gcc_cv_as_gstabs_flag
=yes
27982 echo "configure: failed program was" >&5
27985 rm -f conftest.o conftest.s
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27989 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27990 if test $gcc_cv_as_gstabs_flag = yes; then
27992 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27998 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27999 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28000 $as_echo_n "(cached) " >&6
28002 gcc_cv_as_debug_prefix_map_flag
=no
28003 if test $in_tree_gas = yes; then
28004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28005 then gcc_cv_as_debug_prefix_map_flag
=yes
28007 elif test x
$gcc_cv_as != x
; then
28008 $as_echo "$insn" > conftest.s
28009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28011 (eval $ac_try) 2>&5
28013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28014 test $ac_status = 0; }; }
28016 gcc_cv_as_debug_prefix_map_flag
=yes
28018 echo "configure: failed program was" >&5
28021 rm -f conftest.o conftest.s
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28025 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28026 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28028 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28035 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28036 if ${gcc_cv_as_compress_debug+:} false
; then :
28037 $as_echo_n "(cached) " >&6
28039 gcc_cv_as_compress_debug
=no
28040 if test x
$gcc_cv_as != x
; then
28041 $as_echo '' > conftest.s
28042 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28044 (eval $ac_try) 2>&5
28046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28047 test $ac_status = 0; }; }
28049 # gas compiled without zlib cannot compress debug sections and warns
28050 # about it, but still exits successfully. So check for this, too.
28051 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28053 gcc_cv_as_compress_debug
=0
28054 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28055 # defaulting to the ELF gABI format.
28056 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28058 gcc_cv_as_compress_debug
=2
28059 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28060 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28061 # Before binutils 2.26, gas only supported --compress-debug-options and
28062 # emitted the traditional GNU format.
28063 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28065 gcc_cv_as_compress_debug
=1
28066 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28067 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28069 gcc_cv_as_compress_debug
=0
28072 echo "configure: failed program was" >&5
28075 rm -f conftest.o conftest.s
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28079 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28083 cat >>confdefs.h
<<_ACEOF
28084 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28088 cat >>confdefs.h
<<_ACEOF
28089 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28093 cat >>confdefs.h
<<_ACEOF
28094 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28099 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28100 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
28101 $as_echo_n "(cached) " >&6
28103 gcc_cv_as_lcomm_with_alignment
=no
28104 if test x
$gcc_cv_as != x
; then
28105 $as_echo '.lcomm bar,4,16' > conftest.s
28106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28108 (eval $ac_try) 2>&5
28110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28111 test $ac_status = 0; }; }
28113 gcc_cv_as_lcomm_with_alignment
=yes
28115 echo "configure: failed program was" >&5
28118 rm -f conftest.o conftest.s
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28122 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28123 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28125 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28130 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28131 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28132 && test "$prefix" != "NONE"; then
28134 cat >>confdefs.h
<<_ACEOF
28135 #define PREFIX_INCLUDE_DIR "$prefix/include"
28140 # Determine the version of glibc, if any, used on the target.
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28142 $as_echo_n "checking for target glibc version... " >&6; }
28144 # Check whether --with-glibc-version was given.
28145 if test "${with_glibc_version+set}" = set; then :
28146 withval
=$with_glibc_version;
28147 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28148 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28149 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28151 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28155 glibc_version_major
=0
28156 glibc_version_minor
=0
28157 if test -f $target_header_dir/features.h \
28158 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28159 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28160 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28161 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28166 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28168 cat >>confdefs.h
<<_ACEOF
28169 #define TARGET_GLIBC_MAJOR $glibc_version_major
28173 cat >>confdefs.h
<<_ACEOF
28174 #define TARGET_GLIBC_MINOR $glibc_version_minor
28178 # Check whether --enable-gnu-unique-object was given.
28179 if test "${enable_gnu_unique_object+set}" = set; then :
28180 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28182 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28183 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28187 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28188 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
28189 $as_echo_n "(cached) " >&6
28191 gcc_cv_as_gnu_unique_object
=no
28192 if test $in_tree_gas = yes; then
28193 if test $in_tree_gas_is_elf = yes \
28194 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28195 then gcc_cv_as_gnu_unique_object
=yes
28197 elif test x
$gcc_cv_as != x
; then
28198 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28201 (eval $ac_try) 2>&5
28203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28204 test $ac_status = 0; }; }
28206 gcc_cv_as_gnu_unique_object
=yes
28208 echo "configure: failed program was" >&5
28211 rm -f conftest.o conftest.s
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28215 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28216 if test $gcc_cv_as_gnu_unique_object = yes; then
28217 # We need to unquote above to to use the definition from config.gcc.
28218 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28220 if test $glibc_version_major -gt 2 \
28221 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28222 enable_gnu_unique_object
=yes
28229 if test x
$enable_gnu_unique_object = xyes
; then
28231 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28236 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28237 if ${gcc_cv_as_line_zero+:} false
; then :
28238 $as_echo_n "(cached) " >&6
28240 gcc_cv_as_line_zero
=no
28241 if test $in_tree_gas = yes; then
28242 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28243 then gcc_cv_as_line_zero
=yes
28245 elif test "x$gcc_cv_as" != x
; then
28246 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28247 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28249 (eval $ac_try) 2>&5
28251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28252 test $ac_status = 0; }; } &&
28253 test "x`cat conftest.out`" = x
28255 gcc_cv_as_line_zero
=yes
28257 echo "configure: failed program was" >&5
28259 echo "configure: error output was" >&5
28260 cat conftest.out
>&5
28262 rm -f conftest.o conftest.s conftest.out
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28266 $as_echo "$gcc_cv_as_line_zero" >&6; }
28267 if test "x$gcc_cv_as_line_zero" = xyes
; then
28269 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28274 $as_echo_n "checking support for thin archives... " >&6; }
28275 thin_archive_support
=no
28276 echo 'int main (void) { return 0; }' > conftest.c
28277 if ($AR --version |
sed 1q |
grep "GNU ar" \
28278 && $CC $CFLAGS -c conftest.c \
28279 && $AR rcT conftest.a conftest.o \
28280 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28281 thin_archive_support
=yes
28283 rm -f conftest.c conftest.o conftest.a conftest
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28285 $as_echo "$thin_archive_support" >&6; }
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28289 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28290 gcc_cv_ld_eh_frame_hdr
=no
28291 if test $in_tree_ld = yes ; then
28292 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 \
28293 && test $in_tree_ld_is_elf = yes; then
28294 gcc_cv_ld_eh_frame_hdr
=yes
28296 elif test x
$gcc_cv_ld != x
; then
28297 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28298 # Check if linker supports --eh-frame-hdr option
28299 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28300 gcc_cv_ld_eh_frame_hdr
=yes
28305 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28306 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28307 gcc_cv_ld_eh_frame_hdr
=yes
28314 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28316 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28320 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28323 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28324 gcc_cv_ld_eh_frame_ciev3
=no
28325 if test $in_tree_ld = yes ; then
28326 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 \
28327 && test $in_tree_ld_is_elf = yes; then
28328 gcc_cv_ld_eh_frame_ciev3
=yes
28330 elif test x
$gcc_cv_ld != x
; then
28331 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28332 gcc_cv_ld_eh_frame_ciev3
=yes
28333 if test 0"$ld_date" -lt 20040513; then
28334 if test -n "$ld_date"; then
28335 # If there was date string, but was earlier than 2004-05-13, fail
28336 gcc_cv_ld_eh_frame_ciev3
=no
28337 elif test "$ld_vers_major" -lt 2; then
28338 gcc_cv_ld_eh_frame_ciev3
=no
28339 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28340 gcc_cv_ld_eh_frame_ciev3
=no
28346 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28347 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28348 gcc_cv_ld_eh_frame_ciev3
=yes
28355 cat >>confdefs.h
<<_ACEOF
28356 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28360 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28363 $as_echo_n "checking linker position independent executable support... " >&6; }
28365 if test $in_tree_ld = yes ; then
28367 # Full PIE support on Solaris was only introduced in gld 2.26.
28368 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28369 *) gcc_gld_pie_min_version
=15 ;;
28371 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 \
28372 && test $in_tree_ld_is_elf = yes; then
28375 elif test x
$gcc_cv_ld != x
; then
28376 # Check if linker supports -pie option
28377 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28381 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28382 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28389 *-*-solaris2.1
[1-9]*)
28390 # Solaris 11.3 added PIE support.
28391 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28398 if test x
"$gcc_cv_ld_pie" = xyes
; then
28400 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28404 $as_echo "$gcc_cv_ld_pie" >&6; }
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28407 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28408 gcc_cv_ld_pie_copyreloc
=no
28409 if test $gcc_cv_ld_pie = yes ; then
28410 if test $in_tree_ld = yes ; then
28411 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
28412 gcc_cv_ld_pie_copyreloc
=yes
28414 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28415 # Check if linker supports -pie option with copy reloc
28417 i?
86-*-linux* | x86_64-
*-linux*)
28418 cat > conftest1.s
<<EOF
28421 .type a_glob, @object
28426 cat > conftest2.s
<<EOF
28429 .type main, @function
28431 movl %eax, a_glob(%rip)
28434 .section .data.rel,"aw",@progbits
28439 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28440 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28441 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28442 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28443 gcc_cv_ld_pie_copyreloc
=yes
28445 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28451 cat >>confdefs.h
<<_ACEOF
28452 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28456 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28459 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28460 gcc_cv_ld_eh_gc_sections
=no
28461 if test $in_tree_ld = yes ; then
28462 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 \
28463 && test $in_tree_ld_is_elf = yes; then
28464 gcc_cv_ld_eh_gc_sections
=yes
28466 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28467 cat > conftest.s
<<EOF
28470 .type _start, @function
28473 .size _start, .-_start
28474 .section .text.foo,"ax",@progbits
28475 .type foo, @function
28479 .section .gcc_except_table.foo,"a",@progbits
28482 .section .eh_frame,"a",@progbits
28485 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28486 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28487 |
grep "gc-sections option ignored" > /dev
/null
; then
28488 gcc_cv_ld_eh_gc_sections
=no
28489 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28490 |
grep gcc_except_table
> /dev
/null
; then
28491 gcc_cv_ld_eh_gc_sections
=yes
28492 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28493 if test x
$gcc_cv_as_comdat_group != xyes
; then
28494 gcc_cv_ld_eh_gc_sections
=no
28495 cat > conftest.s
<<EOF
28498 .type _start, @function
28501 .size _start, .-_start
28502 .section .gnu.linkonce.t.foo,"ax",@progbits
28503 .type foo, @function
28507 .section .gcc_except_table.foo,"a",@progbits
28510 .section .eh_frame,"a",@progbits
28513 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28514 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28515 |
grep "gc-sections option ignored" > /dev
/null
; then
28516 gcc_cv_ld_eh_gc_sections
=no
28517 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28518 |
grep gcc_except_table
> /dev
/null
; then
28519 gcc_cv_ld_eh_gc_sections
=yes
28525 rm -f conftest.s conftest.o conftest
28529 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28530 gcc_cv_ld_eh_gc_sections
=no
28533 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28535 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28539 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28542 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28543 gcc_cv_ld_eh_gc_sections_bug
=no
28544 if test $in_tree_ld = yes ; then
28545 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 \
28546 && test $in_tree_ld_is_elf = yes; then
28547 gcc_cv_ld_eh_gc_sections_bug
=yes
28549 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
28550 gcc_cv_ld_eh_gc_sections_bug
=yes
28551 cat > conftest.s
<<EOF
28554 .type _start, @function
28557 .size _start, .-_start
28558 .section .text.startup.foo,"ax",@progbits
28559 .type foo, @function
28563 .section .gcc_except_table.foo,"a",@progbits
28566 .section .eh_frame,"a",@progbits
28569 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28570 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28571 |
grep "gc-sections option ignored" > /dev
/null
; then
28573 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28574 |
grep gcc_except_table
> /dev
/null
; then
28575 gcc_cv_ld_eh_gc_sections_bug
=no
28578 rm -f conftest.s conftest.o conftest
28580 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28582 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28586 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28589 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28590 # gold/gld support compressed debug sections since binutils 2.19/2.21
28591 # In binutils 2.26, gld gained support for the ELF gABI format.
28592 if test $in_tree_ld = yes ; then
28593 gcc_cv_ld_compress_debug
=0
28594 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 \
28595 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28596 gcc_cv_ld_compress_debug
=2
28597 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28598 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 \
28599 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28600 gcc_cv_ld_compress_debug
=3
28601 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28602 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 \
28603 && test $in_tree_ld_is_elf = yes; then
28604 gcc_cv_ld_compress_debug
=1
28606 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28607 if test "$ld_vers_major" -lt 2 \
28608 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28609 gcc_cv_ld_compress_debug
=0
28610 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28611 gcc_cv_ld_compress_debug
=1
28613 gcc_cv_ld_compress_debug
=3
28614 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28616 if test $ld_is_gold = yes; then
28617 gcc_cv_ld_compress_debug
=2
28618 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28621 case "${target}" in
28623 # Introduced in Solaris 11.2.
28624 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28625 gcc_cv_ld_compress_debug
=3
28626 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28628 gcc_cv_ld_compress_debug
=0
28632 # Assume linkers other than GNU ld don't support compessed debug
28634 gcc_cv_ld_compress_debug
=0
28639 cat >>confdefs.h
<<_ACEOF
28640 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28644 cat >>confdefs.h
<<_ACEOF
28645 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28649 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28651 if test x
"$ld64_flag" = x
"yes"; then
28653 # Set defaults for possibly untestable items.
28654 gcc_cv_ld64_export_dynamic
=0
28656 if test "$build" = "$host"; then
28662 # On Darwin, because of FAT library support, it is often possible to execute
28663 # exes from compatible archs even when the host differs from the build system.
28664 case "$build","$host" in
28665 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28666 darwin_try_test
=1;;
28670 # If the configurer specified a minimum ld64 version to be supported, then use
28671 # that to determine feature support.
28672 if test x
"${gcc_cv_ld64_version}" != x
; then
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28674 $as_echo_n "checking ld64 specified version... " >&6; }
28675 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28677 $as_echo "$gcc_cv_ld64_major" >&6; }
28678 if test "$gcc_cv_ld64_major" -ge 236; then
28679 gcc_cv_ld64_export_dynamic
=1
28681 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28682 # If the version was not specified, try to find it.
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28684 $as_echo_n "checking linker version... " >&6; }
28685 if test x
"${gcc_cv_ld64_version}" = x
; then
28686 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28689 $as_echo "$gcc_cv_ld64_version" >&6; }
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28692 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28693 gcc_cv_ld64_export_dynamic
=1
28694 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28695 gcc_cv_ld64_export_dynamic
=0
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28698 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28701 if test x
"${gcc_cv_ld64_version}" != x
; then
28703 cat >>confdefs.h
<<_ACEOF
28704 #define LD64_VERSION "${gcc_cv_ld64_version}"
28710 cat >>confdefs.h
<<_ACEOF
28711 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28721 $as_echo_n "checking linker --as-needed support... " >&6; }
28722 if ${gcc_cv_ld_as_needed+:} false
; then :
28723 $as_echo_n "(cached) " >&6
28725 gcc_cv_ld_as_needed
=no
28726 gcc_cv_ld_as_needed_option
='--as-needed'
28727 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28728 if test $in_tree_ld = yes ; then
28729 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 \
28730 && test $in_tree_ld_is_elf = yes; then
28731 gcc_cv_ld_as_needed
=yes
28732 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28733 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28734 gcc_cv_ld_no_as_needed_option
='--pop-state'
28737 elif test x
$gcc_cv_ld != x
; then
28738 # Check if linker supports --as-needed and --no-as-needed options
28739 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
28740 gcc_cv_ld_as_needed
=yes
28741 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
28742 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
28743 && echo "$ld_ver" |
grep GNU
> /dev
/null \
28744 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28745 # Use these options only when both ld.bfd and ld.gold support
28746 # --push-state/--pop-state, which unfortunately wasn't added
28747 # at the same time.
28748 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28749 gcc_cv_ld_no_as_needed_option
='--pop-state'
28752 case "$target:$gnu_ld" in
28754 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28756 gcc_cv_ld_as_needed
=yes
28757 gcc_cv_ld_as_needed_option
="-z ignore"
28758 gcc_cv_ld_no_as_needed_option
="-z record"
28762 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28763 # dl_iterate_phdr, i.e. since Solaris 11.
28765 *-*-solaris2.1
[1-9]*)
28767 i?
86-*-* | x86_64-
*-*)
28768 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28769 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28770 gcc_cv_ld_as_needed
=no
28776 gcc_cv_ld_as_needed
=no
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28782 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28783 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28785 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28788 cat >>confdefs.h
<<_ACEOF
28789 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28793 cat >>confdefs.h
<<_ACEOF
28794 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28800 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28801 saved_LDFLAGS
="$LDFLAGS"
28802 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28803 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28805 /* end confdefs.h. */
28806 int main(void) {return 0;}
28808 if ac_fn_cxx_try_link
"$LINENO"; then :
28809 gcc_cv_ld_clearcap
=yes; break
28811 gcc_cv_ld_clearcap
=no
28813 rm -f core conftest.err conftest.
$ac_objext \
28814 conftest
$ac_exeext conftest.
$ac_ext
28816 LDFLAGS
="$saved_LDFLAGS"
28817 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28819 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28821 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28825 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28831 emul_name
="-melf32lppc"
28834 emul_name
="-melf32ppc"
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28838 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28839 if ${gcc_cv_ld_ppc_attr+:} false
; then :
28840 $as_echo_n "(cached) " >&6
28842 gcc_cv_ld_ppc_attr
=no
28843 if test x
"$ld_is_gold" = xyes
; then
28844 gcc_cv_ld_ppc_attr
=yes
28845 elif test $in_tree_ld = yes ; then
28846 if test "$gcc_cv_gld_major_version" -eq 2 \
28847 -a "$gcc_cv_gld_minor_version" -ge 28 \
28848 -o "$gcc_cv_gld_major_version" -gt 2; then
28849 gcc_cv_ld_ppc_attr
=yes
28851 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28852 # check that merging the long double .gnu_attribute doesn't warn
28853 cat > conftest1.s
<<EOF
28856 cat > conftest2.s
<<EOF
28859 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28860 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28861 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28862 && test ! -s conftest.err
; then
28863 gcc_cv_ld_ppc_attr
=yes
28865 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28870 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28871 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28873 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28879 case "$target:$tm_file" in
28880 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28883 emul_name
="-melf64lppc"
28886 emul_name
="-melf64ppc"
28889 emul_name
="-melf64ppc_fbsd"
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28893 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28894 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
28895 $as_echo_n "(cached) " >&6
28897 gcc_cv_ld_no_dot_syms
=no
28898 if test x
"$ld_is_gold" = xyes
; then
28899 gcc_cv_ld_no_dot_syms
=yes
28900 elif test $in_tree_ld = yes ; then
28901 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
28902 gcc_cv_ld_no_dot_syms
=yes
28904 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28905 cat > conftest1.s
<<EOF
28909 cat > conftest2.s
<<EOF
28910 .section ".opd","aw"
28913 .type foo,@function
28915 .quad .LEfoo,.TOC.@tocbase,0
28921 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28922 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28923 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28924 gcc_cv_ld_no_dot_syms
=yes
28926 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28931 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28932 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28934 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28939 $as_echo_n "checking linker large toc support... " >&6; }
28940 if ${gcc_cv_ld_large_toc+:} false
; then :
28941 $as_echo_n "(cached) " >&6
28943 gcc_cv_ld_large_toc
=no
28944 if test x
"$ld_is_gold" = xyes
; then
28945 gcc_cv_ld_large_toc
=yes
28946 elif test $in_tree_ld = yes ; then
28947 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
28948 gcc_cv_ld_large_toc
=yes
28950 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28951 cat > conftest.s
<<EOF
28952 .section ".tbss","awT",@nobits
28958 addis 9,13,ie0@got@tprel@ha
28959 ld 9,ie0@got@tprel@l(9)
28961 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28962 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28963 gcc_cv_ld_large_toc
=yes
28965 rm -f conftest conftest.o conftest.s
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28970 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28971 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28973 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28978 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28979 if ${gcc_cv_ld_toc_align+:} false
; then :
28980 $as_echo_n "(cached) " >&6
28982 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28983 cat > conftest.s
<<EOF
28988 .section .data.rel.ro,"aw",@progbits
28993 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28994 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28995 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)) }'`
28997 rm -f conftest conftest.o conftest.s
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29002 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29003 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29005 cat >>confdefs.h
<<_ACEOF
29006 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29016 $as_echo_n "checking linker large toc support... " >&6; }
29017 if ${gcc_cv_ld_large_toc+:} false
; then :
29018 $as_echo_n "(cached) " >&6
29020 gcc_cv_ld_large_toc
=no
29021 if test x
$gcc_cv_as != x
; then
29022 cat > conftest.s
<<EOF
29032 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29033 gcc_cv_ld_large_toc
=yes
29035 rm -f conftest conftest.o conftest.s
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29040 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29041 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29043 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29050 $as_echo_n "checking linker --build-id support... " >&6; }
29051 if ${gcc_cv_ld_buildid+:} false
; then :
29052 $as_echo_n "(cached) " >&6
29054 gcc_cv_ld_buildid
=no
29055 if test $in_tree_ld = yes ; then
29056 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29057 "$gcc_cv_gld_minor_version" -ge 18 -o \
29058 "$gcc_cv_gld_major_version" -gt 2 \
29059 && test $in_tree_ld_is_elf = yes; then
29060 gcc_cv_ld_buildid
=yes
29062 elif test x
$gcc_cv_ld != x
; then
29063 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29064 gcc_cv_ld_buildid
=yes
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29069 $as_echo "$gcc_cv_ld_buildid" >&6; }
29070 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29072 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29076 # Check whether --enable-linker-build-id was given.
29077 if test "${enable_linker_build_id+set}" = set; then :
29078 enableval
=$enable_linker_build_id;
29080 enable_linker_build_id
=no
29084 if test x
"$enable_linker_build_id" = xyes
; then
29085 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29087 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29091 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29095 # In binutils 2.21, GNU ld gained support for new emulations fully
29096 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29098 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29099 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
29100 $as_echo_n "(cached) " >&6
29102 gcc_cv_ld_sol2_emulation
=no
29103 if test $in_tree_ld = yes ; then
29104 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29105 "$gcc_cv_gld_minor_version" -ge 21 -o \
29106 "$gcc_cv_gld_major_version" -gt 2 \
29107 && test $in_tree_ld_is_elf = yes; then
29108 gcc_cv_ld_sol2_emulation
=yes
29110 elif test x
$gcc_cv_ld != x
; then
29111 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29112 grep _sol2
> /dev
/null
; then
29113 gcc_cv_ld_sol2_emulation
=yes
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29118 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29119 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29121 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29126 $as_echo_n "checking linker --sysroot support... " >&6; }
29127 if ${gcc_cv_ld_sysroot+:} false
; then :
29128 $as_echo_n "(cached) " >&6
29130 gcc_cv_ld_sysroot
=no
29131 if test $in_tree_ld = yes ; then
29132 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
29133 gcc_cv_ld_sysroot
=yes
29135 elif test x
$gcc_cv_ld != x
; then
29136 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29137 gcc_cv_ld_sysroot
=yes
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29142 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29143 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29145 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29151 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29153 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29154 if ${gcc_cv_solaris_crts+:} false
; then :
29155 $as_echo_n "(cached) " >&6
29157 gcc_cv_solaris_crts
=no
29158 if test x
$host != x
$target; then
29159 if test "x$with_sysroot" = xyes
; then
29160 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29162 target_sysroot
="${with_sysroot}"
29165 target_libdir
="$target_sysroot/usr/lib"
29166 # At the time they were added, gcrt1.o became a symlink for backwards
29167 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29169 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29170 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29172 sparc
*-*-solaris2*)
29173 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29178 $as_echo "$gcc_cv_solaris_crts" >&6; }
29181 if test x
$gcc_cv_solaris_crts = xyes
; then
29183 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29187 # Check whether --enable-libssp was given.
29188 if test "${enable_libssp+set}" = set; then :
29189 enableval
=$enable_libssp; case "${enableval}" in
29193 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
29199 # Test for stack protector support in target C library.
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29201 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29202 if ${gcc_cv_libc_provides_ssp+:} false
; then :
29203 $as_echo_n "(cached) " >&6
29205 gcc_cv_libc_provides_ssp
=no
29206 if test "x$enable_libssp" = "xno"; then
29207 gcc_cv_libc_provides_ssp
=yes
29208 elif test "x$enable_libssp" = "xyes"; then
29209 gcc_cv_libc_provides_ssp
=no
29213 # All versions of musl provide stack protector
29214 gcc_cv_libc_provides_ssp
=yes;;
29215 *-*-linux* |
*-*-kfreebsd*-gnu)
29216 # glibc 2.4 and later provides __stack_chk_fail and
29217 # either __stack_chk_guard, or TLS access to stack guard canary.
29219 if test $glibc_version_major -gt 2 \
29220 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29221 gcc_cv_libc_provides_ssp
=yes
29224 if test -f $target_header_dir/features.h \
29225 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29226 $target_header_dir/features.h
> /dev
/null
; then
29227 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29228 $target_header_dir/features.h
> /dev
/null
&& \
29229 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29230 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29231 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29232 gcc_cv_libc_provides_ssp
=yes
29234 # all versions of Bionic support stack protector
29235 elif test -f $target_header_dir/sys
/cdefs.h \
29236 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29237 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29238 gcc_cv_libc_provides_ssp
=yes
29243 # Avoid complicated tests (see
29244 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29245 # simply assert that glibc does provide this, which is true for all
29246 # realistically usable GNU/Hurd configurations.
29247 # All supported versions of musl provide it as well
29248 gcc_cv_libc_provides_ssp
=yes;;
29249 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29250 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29251 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
29252 gcc_cv_libc_provides_ssp
=yes
29254 echo "no __stack_chk_fail on this target"
29258 *) gcc_cv_libc_provides_ssp
=no
;;
29262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29263 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29265 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29267 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29271 # Check whether --enable-default-ssp was given.
29272 # Check whether --enable-default-ssp was given.
29273 if test "${enable_default_ssp+set}" = set; then :
29274 enableval
=$enable_default_ssp;
29275 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29277 ia64
*-*-*) enable_default_ssp
=no
;;
29278 *) enable_default_ssp
=$enableval ;;
29281 enable_default_ssp
=no
29284 enable_default_ssp
=no
29287 if test x
$enable_default_ssp = xyes
; then
29289 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29294 # Test for <sys/sdt.h> on the target.
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29297 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29299 if test -f $target_header_dir/sys
/sdt.h
; then
29302 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29306 $as_echo "$have_sys_sdt_h" >&6; }
29308 # Check if TFmode long double should be used by default or not.
29309 # Some glibc targets used DFmode long double, but with glibc 2.4
29310 # and later they can use TFmode.
29312 powerpc
*-*-linux* | \
29313 sparc
*-*-linux* | \
29317 # Check whether --with-long-double-128 was given.
29318 if test "${with_long_double_128+set}" = set; then :
29319 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29322 if test $glibc_version_major -gt 2 \
29323 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29324 gcc_cv_target_ldbl128
=yes
29327 gcc_cv_target_ldbl128
=no
29328 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29329 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29330 && gcc_cv_target_ldbl128
=yes
29337 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29339 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29343 # Check if TFmode long double target should use the IBM extended double or IEEE
29344 # 128-bit floating point formats if long doubles are 128-bits long. The long
29345 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29346 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29349 # Check whether --with-long-double-format was given.
29350 if test "${with_long_double_format+set}" = set; then :
29351 withval
=$with_long_double_format;
29352 case "$target:$with_long_double_format" in
29353 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29356 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29357 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29358 case "$with_cpu" in
29359 power7 | power8 | power9 | power1
*)
29363 as_fn_error $?
"Configuration option --with-long-double-format is only \
29364 supported if the default cpu is power7 or newer" "$LINENO" 5
29365 with_long_double_format
=""
29369 xpowerpc64
*-*-linux*:*)
29370 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29371 with_long_double_format
=""
29374 as_fn_error $?
"Configure option --with-long-double-format is only supported \
29375 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29376 with_long_double_format
=""
29382 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29383 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29384 gcc_cv_libc_provides_hwcap_in_tcb
=no
29388 if test $glibc_version_major -gt 2 \
29389 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29390 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29394 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29396 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29401 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29402 gcc_cv_target_dl_iterate_phdr
=unknown
29404 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29405 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29406 # libdl there, both complicating its use and breaking compatibility
29407 # between Solaris 10 updates.
29408 *-*-solaris2.1
[1-9]*)
29409 # <link.h> needs both a dl_iterate_phdr declaration and support for
29410 # compilation with largefile support.
29411 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29412 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29413 gcc_cv_target_dl_iterate_phdr
=yes
29415 gcc_cv_target_dl_iterate_phdr
=no
29418 *-*-dragonfly* |
*-*-freebsd*)
29419 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29420 gcc_cv_target_dl_iterate_phdr
=yes
29422 gcc_cv_target_dl_iterate_phdr
=no
29426 gcc_cv_target_dl_iterate_phdr
=yes
29430 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29432 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29436 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29438 # We no longer support different GC mechanisms. Emit an error if
29439 # the user configures with --with-gc.
29441 # Check whether --with-gc was given.
29442 if test "${with_gc+set}" = set; then :
29443 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29447 # Libraries to use on the host. This will normally be set by the top
29448 # level Makefile. Here we simply capture the value for our Makefile.
29449 if test -z "${HOST_LIBS+set}"; then
29454 # Use the system's zlib library.
29456 # Use the system's zlib library.
29457 zlibdir
="-L\$(top_builddir)/../zlib"
29458 zlibinc
="-I\$(top_srcdir)/../zlib"
29460 # Check whether --with-system-zlib was given.
29461 if test "${with_system_zlib+set}" = set; then :
29462 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29475 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29476 # Check whether --enable-maintainer-mode was given.
29477 if test "${enable_maintainer_mode+set}" = set; then :
29478 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29485 $as_echo "$maintainer_mode" >&6; }
29487 if test "$maintainer_mode" = "yes"; then
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29495 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29496 # Check whether --enable-link-mutex was given.
29497 if test "${enable_link_mutex+set}" = set; then :
29498 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29504 $as_echo "$do_link_mutex" >&6; }
29506 if test "$do_link_mutex" = "yes"; then
29509 DO_LINK_MUTEX
=false
29517 # Make empty files to contain the specs and options for each language.
29518 # Then add #include lines to for a compiler that has specs and/or options.
29524 # These (without "all_") are set in each config-lang.in.
29525 # `language' must be a single word so is spelled singularly.
29528 all_outputs
='Makefile'
29529 # List of language makefile fragments.
29530 all_lang_makefrags
=
29531 # Additional files for gengtype
29532 all_gtfiles
="$target_gtfiles"
29534 # These are the languages that are set in --enable-languages,
29535 # and are available in the GCC tree.
29536 all_selected_languages
=
29538 # Add the language fragments.
29539 # Languages are added via two mechanisms. Some information must be
29540 # recorded in makefile variables, these are defined in config-lang.in.
29541 # We accumulate them and plug them into the main Makefile.
29542 # The other mechanism is a set of hooks for each of the main targets
29543 # like `clean', `install', etc.
29545 language_hooks
="Make-hooks"
29547 for lang
in ${srcdir}/*/config-lang.
in
29549 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29551 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29552 if test "x$lang_alias" = x
29554 echo "$lang doesn't set \$language." 1>&2
29557 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29558 subdirs
="$subdirs $subdir"
29560 # $gcc_subdir is where the gcc integration files are to be found
29561 # for a language, both for internal compiler purposes (compiler
29562 # sources implementing front-end to GCC tree converters), and for
29563 # build infrastructure purposes (Make-lang.in, etc.)
29565 # This will be <subdir> (relative to $srcdir) if a line like
29566 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29567 # is found in <langdir>/config-lang.in, and will remain <langdir>
29570 # Except for the language alias (fetched above), the regular
29571 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29572 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29573 # only this and the language alias.
29575 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29576 if [ "$gcc_subdir" = "" ]; then
29577 gcc_subdir
="$subdir"
29580 case ",$enable_languages," in
29582 all_selected_languages
="$all_selected_languages $lang_alias"
29583 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29584 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29595 .
${srcdir}/$gcc_subdir/config-lang.
in
29596 if test "x$language" = x
29598 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29603 case ",$enable_languages," in
29604 *,$lang_alias,*) ;;
29606 for i
in $subdir_requires; do
29607 test -f "${srcdir}/$i/config-lang.in" && continue
29615 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29616 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29617 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29618 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29620 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29621 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29623 all_languages
="$all_languages $language"
29624 all_compilers
="$all_compilers $compilers"
29625 all_outputs
="$all_outputs $outputs"
29626 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29627 case ",$enable_languages," in
29630 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29640 for language
in $all_selected_languages
29642 check_languages
="$check_languages check-$language"
29645 selftest_languages
=
29646 for language
in $all_selected_languages
29648 selftest_languages
="$selftest_languages selftest-$language"
29651 # We link each language in with a set of hooks, reached indirectly via
29652 # lang.${target}. Only do so for selected languages.
29656 target_list
="all.cross start.encap rest.encap tags \
29657 install-common install-man install-info install-pdf install-html dvi \
29658 pdf html uninstall info man srcextra srcman srcinfo \
29659 mostlyclean clean distclean maintainer-clean install-plugin"
29661 for t
in $target_list
29664 for lang
in $all_selected_languages
29668 echo "lang.$t: $x" >> Make-hooks
29672 # Option include files
29675 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29676 option_includes
="option-includes.mk"
29685 echo "dir ." > .gdbinit
29686 echo "dir ${srcdir}" >> .gdbinit
29687 if test x
$gdb_needs_out_file_path = xyes
29689 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29691 if test "x$subdirs" != x
; then
29694 echo "dir ${srcdir}/$s" >> .gdbinit
29697 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29698 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29700 # Put a breakpoint on __asan_report_error to help with debugging buffer
29703 *-fsanitize=address
*)
29704 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29708 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29712 # Find a directory in which to install a shared libgcc.
29714 # Check whether --enable-version-specific-runtime-libs was given.
29715 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29716 enableval
=$enable_version_specific_runtime_libs;
29720 # Substitute configuration variables
29788 if test x
${build} = x
${host} ; then
29789 if test x
${host} = x
${target} ; then
29790 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29792 echo "Links are now set up to build a cross-compiler" 1>&2
29793 echo " from ${host} to ${target}." 1>&2
29796 if test x
${host} = x
${target} ; then
29797 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29798 echo " for ${target}." 1>&2
29800 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29801 echo " from ${host} to ${target}." 1>&2
29810 if test "x${ISLLIBS}" != "x" ; then
29812 $as_echo "#define HAVE_isl 1" >>confdefs.h
29816 # Check for plugin support
29817 # Check whether --enable-plugin was given.
29818 if test "${enable_plugin+set}" = set; then :
29819 enableval
=$enable_plugin; enable_plugin
=$enableval
29821 enable_plugin
=yes; default_plugin
=yes
29830 # Since plugin support under MinGW is not as straightforward as on
29831 # other platforms (e.g., we have to link import library, etc), we
29832 # only enable it if explicitly requested.
29833 if test x
"$default_plugin" = x
"yes"; then
29835 elif test x
"$enable_plugin" = x
"yes"; then
29836 # Use make's target variable to derive import library name.
29837 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29842 if test x
$build = x
$host; then
29843 export_sym_check
="nm${exeext} -g"
29844 elif test x
$host = x
$target; then
29845 export_sym_check
="$gcc_cv_nm -g"
29851 if test x
$build = x
$host; then
29852 export_sym_check
="objdump${exeext} -T"
29853 elif test x
$host = x
$target; then
29854 export_sym_check
="$gcc_cv_objdump -T"
29861 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29864 $as_echo_n "checking for exported symbols... " >&6; }
29865 if test "x$export_sym_check" != x
; then
29866 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29867 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29868 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29869 : # No need to use a flag
29870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29871 $as_echo "yes" >&6; }
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29874 $as_echo "yes" >&6; }
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29876 $as_echo_n "checking for -rdynamic... " >&6; }
29877 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29878 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29879 plugin_rdynamic
=yes
29880 pluginlibs
="-rdynamic"
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29886 $as_echo "$plugin_rdynamic" >&6; }
29889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29890 $as_echo "unable to check" >&6; }
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29896 $as_echo_n "checking for library containing dlopen... " >&6; }
29897 if ${ac_cv_search_dlopen+:} false
; then :
29898 $as_echo_n "(cached) " >&6
29900 ac_func_search_save_LIBS
=$LIBS
29901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29902 /* end confdefs.h. */
29904 /* Override any GCC internal prototype to avoid an error.
29905 Use char because int might match the return type of a GCC
29906 builtin and then its argument prototype would still apply. */
29919 for ac_lib
in '' dl
; do
29920 if test -z "$ac_lib"; then
29921 ac_res
="none required"
29924 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29926 if ac_fn_cxx_try_link
"$LINENO"; then :
29927 ac_cv_search_dlopen
=$ac_res
29929 rm -f core conftest.err conftest.
$ac_objext \
29931 if ${ac_cv_search_dlopen+:} false
; then :
29935 if ${ac_cv_search_dlopen+:} false
; then :
29938 ac_cv_search_dlopen
=no
29940 rm conftest.
$ac_ext
29941 LIBS
=$ac_func_search_save_LIBS
29943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29944 $as_echo "$ac_cv_search_dlopen" >&6; }
29945 ac_res
=$ac_cv_search_dlopen
29946 if test "$ac_res" != no
; then :
29947 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29951 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29952 pluginlibs
="$pluginlibs -ldl"
29956 # Check that we can build shared objects with -fPIC -shared
29957 saved_LDFLAGS
="$LDFLAGS"
29958 saved_CFLAGS
="$CFLAGS"
29961 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29962 CFLAGS
="$CFLAGS -fPIC"
29963 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29966 CFLAGS
="$CFLAGS -fPIC"
29967 LDFLAGS
="$LDFLAGS -fPIC -shared"
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29971 $as_echo_n "checking for -fPIC -shared... " >&6; }
29972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29973 /* end confdefs.h. */
29983 if ac_fn_cxx_try_link
"$LINENO"; then :
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29985 $as_echo "yes" >&6; }; have_pic_shared
=yes
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988 $as_echo "no" >&6; }; have_pic_shared
=no
29990 rm -f core conftest.err conftest.
$ac_objext \
29991 conftest
$ac_exeext conftest.
$ac_ext
29992 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29996 LDFLAGS
="$saved_LDFLAGS"
29997 CFLAGS
="$saved_CFLAGS"
29999 # If plugin support had been requested but not available, fail.
30000 if test x
"$enable_plugin" = x
"no" ; then
30001 if test x
"$default_plugin" != x
"yes"; then
30003 Building GCC with plugin support requires a host that supports
30004 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30011 if test x
"$enable_plugin" = x
"yes"; then
30013 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30018 # Enable --enable-host-shared
30019 # Check whether --enable-host-shared was given.
30020 if test "${enable_host_shared+set}" = set; then :
30021 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30030 # Check whether --enable-libquadmath-support was given.
30031 if test "${enable_libquadmath_support+set}" = set; then :
30032 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30034 ENABLE_LIBQUADMATH_SUPPORT
=yes
30037 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30039 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30044 # Specify what hash style to use by default.
30046 # Check whether --with-linker-hash-style was given.
30047 if test "${with_linker_hash_style+set}" = set; then :
30048 withval
=$with_linker_hash_style; case x
"$withval" in
30050 LINKER_HASH_STYLE
=sysv
30053 LINKER_HASH_STYLE
=gnu
30056 LINKER_HASH_STYLE
=both
30059 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30063 LINKER_HASH_STYLE
=''
30066 if test x
"${LINKER_HASH_STYLE}" != x
; then
30068 cat >>confdefs.h
<<_ACEOF
30069 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30074 # Specify what should be the default of -fdiagnostics-color option.
30076 # Check whether --with-diagnostics-color was given.
30077 if test "${with_diagnostics_color+set}" = set; then :
30078 withval
=$with_diagnostics_color; case x
"$withval" in
30080 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30083 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30086 DIAGNOSTICS_COLOR_DEFAULT
=-1
30089 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30092 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30096 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30100 cat >>confdefs.h
<<_ACEOF
30101 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30105 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30106 # of jit/jit-playback.c.
30107 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30108 echo "gcc_driver_version: ${gcc_driver_version}"
30109 cat > gcc-driver-name.h
<<EOF
30110 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30113 # Check whether --enable-default-pie was given.
30114 # Check whether --enable-default-pie was given.
30115 if test "${enable_default_pie+set}" = set; then :
30116 enableval
=$enable_default_pie; enable_default_pie
=$enableval
30118 enable_default_pie
=no
30121 if test x
$enable_default_pie = xyes
; then
30123 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30128 # Check if -fno-PIE works.
30129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30130 $as_echo_n "checking for -fno-PIE option... " >&6; }
30131 if ${gcc_cv_c_no_fpie+:} false
; then :
30132 $as_echo_n "(cached) " >&6
30134 saved_CXXFLAGS
="$CXXFLAGS"
30135 CXXFLAGS
="$CXXFLAGS -fno-PIE"
30136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30137 /* end confdefs.h. */
30138 int main(void) {return 0;}
30140 if ac_fn_cxx_try_compile
"$LINENO"; then :
30141 gcc_cv_c_no_fpie
=yes
30143 gcc_cv_c_no_fpie
=no
30145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30146 CXXFLAGS
="$saved_CXXFLAGS"
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30149 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30150 if test "$gcc_cv_c_no_fpie" = "yes"; then
30151 NO_PIE_CFLAGS
="-fno-PIE"
30155 # Check if -no-pie works.
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30157 $as_echo_n "checking for -no-pie option... " >&6; }
30158 if ${gcc_cv_no_pie+:} false
; then :
30159 $as_echo_n "(cached) " >&6
30161 saved_LDFLAGS
="$LDFLAGS"
30162 LDFLAGS
="$LDFLAGS -no-pie"
30163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30164 /* end confdefs.h. */
30165 int main(void) {return 0;}
30167 if ac_fn_cxx_try_link
"$LINENO"; then :
30172 rm -f core conftest.err conftest.
$ac_objext \
30173 conftest
$ac_exeext conftest.
$ac_ext
30174 LDFLAGS
="$saved_LDFLAGS"
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30177 $as_echo "$gcc_cv_no_pie" >&6; }
30178 if test "$gcc_cv_no_pie" = "yes"; then
30179 NO_PIE_FLAG
="-no-pie"
30183 # Check linker supports '-z bndplt'
30184 ld_bndplt_support
=no
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30186 $as_echo_n "checking linker -z bndplt option... " >&6; }
30187 if test x
"$ld_is_gold" = xno
; then
30188 if test $in_tree_ld = yes ; then
30189 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
30190 ld_bndplt_support
=yes
30192 elif test x
$gcc_cv_ld != x
; then
30193 # Check if linker supports -a bndplt option
30194 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30195 ld_bndplt_support
=yes
30199 if test x
"$ld_bndplt_support" = xyes
; then
30201 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30205 $as_echo "$ld_bndplt_support" >&6; }
30207 # Check linker supports '--push-state'/'--pop-state'
30208 ld_pushpopstate_support
=no
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30210 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30211 if test x
"$ld_is_gold" = xno
; then
30212 if test $in_tree_ld = yes ; then
30213 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
30214 ld_pushpopstate_support
=yes
30216 elif test x
$gcc_cv_ld != x
; then
30217 # Check if linker supports --push-state/--pop-state options
30218 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30219 ld_pushpopstate_support
=yes
30223 if test x
"$ld_pushpopstate_support" = xyes
; then
30225 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30229 $as_echo "$ld_pushpopstate_support" >&6; }
30231 # Configure the subdirectories
30232 # AC_CONFIG_SUBDIRS($subdirs)
30234 # Create the Makefile
30235 # and configure language subdirectories
30236 ac_config_files
="$ac_config_files $all_outputs"
30239 ac_config_commands
="$ac_config_commands default"
30241 cat >confcache
<<\_ACEOF
30242 # This file is a shell script that caches the results of configure
30243 # tests run on this system so they can be shared between configure
30244 # scripts and configure runs, see configure's option --config-cache.
30245 # It is not useful on other systems. If it contains results you don't
30246 # want to keep, you may remove or edit it.
30248 # config.status only pays attention to the cache file if you give it
30249 # the --recheck option to rerun configure.
30251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30253 # following values.
30257 # The following way of writing the cache mishandles newlines in values,
30258 # but we know of no workaround that is simple, portable, and efficient.
30259 # So, we kill variables containing newlines.
30260 # Ultrix sh set writes to stderr and can't be redirected directly,
30261 # and sets the high bit in the cache file unless we assign to the vars.
30263 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30264 eval ac_val
=\$
$ac_var
30268 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30269 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30272 _ | IFS | as_nl
) ;; #(
30273 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30274 *) { eval $ac_var=; unset $ac_var;} ;;
30280 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30281 *${as_nl}ac_space
=\
*)
30282 # `set' does not quote correctly, so add quotes: double-quote
30283 # substitution turns \\\\ into \\, and sed turns \\ into \.
30286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30289 # `set' quotes correctly as required by POSIX, so do not add quotes.
30290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30301 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30303 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30304 if test -w "$cache_file"; then
30305 if test "x$cache_file" != "x/dev/null"; then
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30307 $as_echo "$as_me: updating cache $cache_file" >&6;}
30308 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30309 cat confcache
>"$cache_file"
30311 case $cache_file in #(
30313 mv -f confcache
"$cache_file"$$
&&
30314 mv -f "$cache_file"$$
"$cache_file" ;; #(
30316 mv -f confcache
"$cache_file" ;;
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30322 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30327 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30328 # Let make expand exec_prefix.
30329 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30331 DEFS
=-DHAVE_CONFIG_H
30336 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30337 # 1. Remove the extension, and $U if already installed.
30338 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30339 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30340 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30341 # will be set to the directory where LIBOBJS objects are built.
30342 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30343 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30345 LIBOBJS
=$ac_libobjs
30347 LTLIBOBJS
=$ac_ltlibobjs
30352 : "${CONFIG_STATUS=./config.status}"
30354 ac_clean_files_save
=$ac_clean_files
30355 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30357 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30359 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30361 # Generated by $as_me.
30362 # Run this file to recreate the current configuration.
30363 # Compiler output produced by configure, useful for debugging
30364 # configure, is in config.log if it exists.
30367 ac_cs_recheck=false
30370 SHELL=\${CONFIG_SHELL-$SHELL}
30373 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30374 ## -------------------- ##
30375 ## M4sh Initialization. ##
30376 ## -------------------- ##
30378 # Be more Bourne compatible
30379 DUALCASE
=1; export DUALCASE
# for MKS sh
30380 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30384 # is contrary to our usage. Disable this feature.
30385 alias -g '${1+"$@"}'='"$@"'
30386 setopt NO_GLOB_SUBST
30388 case `(set -o) 2>/dev/null` in #(
30400 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30401 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30404 # Prefer a ksh shell builtin over an external printf program on Solaris,
30405 # but without wasting forks for bash or zsh.
30406 if test -z "$BASH_VERSION$ZSH_VERSION" \
30407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30408 as_echo='print
-r --'
30409 as_echo_n='print
-rn --'
30410 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30411 as_echo='printf %s
\n'
30412 as_echo_n='printf %s
'
30414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30415 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30416 as_echo_n='/usr
/ucb
/echo -n'
30418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30419 as_echo_n_body='eval
30423 expr "X$arg" : "X\\(.*\\)$as_nl";
30424 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30426 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30428 export as_echo_n_body
30429 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30431 export as_echo_body
30432 as_echo='sh
-c $as_echo_body as_echo
'
30435 # The user is always right.
30436 if test "${PATH_SEPARATOR+set}" != set; then
30438 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30439 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30446 # We need space, tab and new line, in precisely that order. Quoting is
30447 # there to prevent editors from complaining about space-tab.
30448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30449 # splitting by setting IFS to empty value.)
30452 # Find who we are. Look in the path if we contain no directory separator.
30455 *[\\/]* ) as_myself=$0 ;;
30456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30457 for as_dir in $PATH
30460 test -z "$as_dir" && as_dir=.
30461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30467 # We did not find ourselves, most probably we were run as `sh COMMAND'
30468 # in which case we are not to be found in the path.
30469 if test "x$as_myself" = x
; then
30472 if test ! -f "$as_myself"; then
30473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30477 # Unset variables that we do not need and which cause bugs (e.g. in
30478 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30479 # suppresses any "Segmentation fault" message there. '((' could
30480 # trigger a bug in pdksh 5.2.14.
30481 for as_var
in BASH_ENV ENV MAIL MAILPATH
30482 do eval test x\
${$as_var+set} = xset \
30483 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30496 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30499 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30500 # ----------------------------------------
30501 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30502 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30503 # script with STATUS, using 1 if that was 0.
30506 as_status
=$1; test $as_status -eq 0 && as_status
=1
30508 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30511 $as_echo "$as_me: error: $2" >&2
30512 as_fn_exit
$as_status
30516 # as_fn_set_status STATUS
30517 # -----------------------
30518 # Set $? to STATUS, without forking.
30519 as_fn_set_status
()
30522 } # as_fn_set_status
30524 # as_fn_exit STATUS
30525 # -----------------
30526 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30530 as_fn_set_status
$1
30536 # Portably unset VAR.
30539 { eval $1=; unset $1;}
30541 as_unset
=as_fn_unset
30542 # as_fn_append VAR VALUE
30543 # ----------------------
30544 # Append the text in VALUE to the end of the definition contained in VAR. Take
30545 # advantage of any shell optimizations that allow amortized linear growth over
30546 # repeated appends, instead of the typical quadratic growth present in naive
30548 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30549 eval 'as_fn_append ()
30560 # as_fn_arith ARG...
30561 # ------------------
30562 # Perform arithmetic evaluation on the ARGs, and store the result in the
30563 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30564 # must be portable across $(()) and expr.
30565 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30566 eval 'as_fn_arith ()
30573 as_val
=`expr "$@" || test $? -eq 1`
30578 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30579 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30585 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30586 as_basename
=basename
30591 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30597 as_me
=`$as_basename -- "$0" ||
30598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30599 X"$0" : 'X\(//\)$' \| \
30600 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30602 sed '/^.*\/\([^/][^/]*\)\/*$/{
30616 # Avoid depending upon Character Ranges.
30617 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30618 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30619 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30620 as_cr_digits
='0123456789'
30621 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30623 ECHO_C
= ECHO_N
= ECHO_T
=
30624 case `echo -n x` in #(((((
30626 case `echo 'xy\c'` in
30627 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30629 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30636 rm -f conf$$ conf$$.exe conf$$.
file
30637 if test -d conf$$.dir
; then
30638 rm -f conf$$.dir
/conf$$.
file
30641 mkdir conf$$.dir
2>/dev
/null
30643 if (echo >conf$$.
file) 2>/dev
/null
; then
30644 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30646 # ... but there are two gotchas:
30647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30649 # In both cases, we have to default to `cp -pR'.
30650 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30652 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30660 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30661 rmdir conf$$.dir
2>/dev
/null
30666 # Create "$as_dir" as a directory, including parents if necessary.
30671 -*) as_dir
=.
/$as_dir;;
30673 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30677 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30678 *) as_qdir
=$as_dir;;
30680 as_dirs
="'$as_qdir' $as_dirs"
30681 as_dir
=`$as_dirname -- "$as_dir" ||
30682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30683 X"$as_dir" : 'X\(//\)[^/]' \| \
30684 X"$as_dir" : 'X\(//\)$' \| \
30685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30686 $as_echo X"$as_dir" |
30687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30691 /^X\(\/\/\)[^/].*/{
30704 test -d "$as_dir" && break
30706 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30707 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
30711 if mkdir
-p .
2>/dev
/null
; then
30712 as_mkdir_p
='mkdir -p "$as_dir"'
30714 test -d .
/-p && rmdir .
/-p
30719 # as_fn_executable_p FILE
30720 # -----------------------
30721 # Test if FILE is an executable regular file.
30722 as_fn_executable_p
()
30724 test -f "$1" && test -x "$1"
30725 } # as_fn_executable_p
30726 as_test_x
='test -x'
30727 as_executable_p
=as_fn_executable_p
30729 # Sed expression to map a string onto a valid CPP name.
30730 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30732 # Sed expression to map a string onto a valid variable name.
30733 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30737 ## ----------------------------------- ##
30738 ## Main body of $CONFIG_STATUS script. ##
30739 ## ----------------------------------- ##
30741 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30744 # Save the log message, to keep $0 and so on meaningful, and to
30745 # report actual input values of CONFIG_FILES etc. instead of their
30746 # values after options handling.
30748 This file was extended by $as_me, which was
30749 generated by GNU Autoconf 2.69. Invocation command line was
30751 CONFIG_FILES = $CONFIG_FILES
30752 CONFIG_HEADERS = $CONFIG_HEADERS
30753 CONFIG_LINKS = $CONFIG_LINKS
30754 CONFIG_COMMANDS = $CONFIG_COMMANDS
30757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30762 case $ac_config_files in *"
30763 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30766 case $ac_config_headers in *"
30767 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30772 # Files that config.status was made for.
30773 config_files="$ac_config_files"
30774 config_headers="$ac_config_headers"
30775 config_links="$ac_config_links"
30776 config_commands="$ac_config_commands"
30780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30782 \`$as_me' instantiates files and other configuration actions
30783 from templates according to the current configuration. Unless the files
30784 and actions are specified as TAGs, all are instantiated by default.
30786 Usage: $0 [OPTION]... [TAG]...
30788 -h, --help print this help, then exit
30789 -V, --version print version number and configuration settings, then exit
30790 --config print configuration, then exit
30791 -q, --quiet, --silent
30792 do not print progress messages
30793 -d, --debug don't remove temporary files
30794 --recheck update $as_me by reconfiguring in the same conditions
30795 --file=FILE[:TEMPLATE]
30796 instantiate the configuration file FILE
30797 --header=FILE[:TEMPLATE]
30798 instantiate the configuration header FILE
30800 Configuration files:
30803 Configuration headers:
30806 Configuration links:
30809 Configuration commands:
30812 Report bugs to the package provider."
30815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30819 configured by $0, generated by GNU Autoconf 2.69,
30820 with options \\"\$ac_cs_config\\"
30822 Copyright (C) 2012 Free Software Foundation, Inc.
30823 This config.status script is free software; the Free Software Foundation
30824 gives unlimited permission to copy, distribute and modify it."
30829 test -n "\$AWK" || AWK=awk
30832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30833 # The default lists apply if the user does not specify any file.
30839 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30840 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30844 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30856 # Handling of the options.
30857 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30859 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30860 $as_echo "$ac_cs_version"; exit ;;
30861 --config |
--confi |
--conf |
--con |
--co |
--c )
30862 $as_echo "$ac_cs_config"; exit ;;
30863 --debug |
--debu |
--deb |
--de |
--d |
-d )
30865 --file |
--fil |
--fi |
--f )
30868 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30869 '') as_fn_error $?
"missing file argument" ;;
30871 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30872 ac_need_defaults
=false
;;
30873 --header |
--heade |
--head |
--hea )
30876 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30878 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30879 ac_need_defaults
=false
;;
30881 # Conflict between --help and --header
30882 as_fn_error $?
"ambiguous option: \`$1'
30883 Try \`$0 --help' for more information.";;
30884 --help |
--hel |
-h )
30885 $as_echo "$ac_cs_usage"; exit ;;
30886 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30887 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30890 # This is an error.
30891 -*) as_fn_error $?
"unrecognized option: \`$1'
30892 Try \`$0 --help' for more information." ;;
30894 *) as_fn_append ac_config_targets
" $1"
30895 ac_need_defaults
=false
;;
30901 ac_configure_extra_args
=
30903 if $ac_cs_silent; then
30905 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30910 if \$ac_cs_recheck; then
30911 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30913 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30914 CONFIG_SHELL='$SHELL'
30915 export CONFIG_SHELL
30920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30924 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30925 ## Running $as_me. ##
30931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30935 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30936 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30943 # Handling of arguments.
30944 for ac_config_target
in $ac_config_targets
30946 case $ac_config_target in
30947 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30948 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30949 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30950 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30951 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30952 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30953 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30954 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30955 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30957 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30962 # If the user did not use the arguments to specify the items to instantiate,
30963 # then the envvar interface is used. Set only those that are not.
30964 # We use the long form for the default assignment because of an extremely
30965 # bizarre bug on SunOS 4.1.3.
30966 if $ac_need_defaults; then
30967 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30968 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30969 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30973 # Have a temporary directory for convenience. Make it in the build tree
30974 # simply because there is no reason against having it here, and in addition,
30975 # creating and moving files from /tmp can sometimes cause problems.
30976 # Hook for its removal unless debugging.
30977 # Note that there is a small window in which the directory will not be cleaned:
30978 # after its creation but before its name has been assigned to `$tmp'.
30982 trap 'exit_status=$?
30983 : "${ac_tmp:=$tmp}"
30984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30986 trap 'as_fn_exit 1' 1 2 13 15
30988 # Create a (secure) tmp directory for tmp files.
30991 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30995 tmp
=.
/conf$$
-$RANDOM
30996 (umask 077 && mkdir
"$tmp")
30997 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31000 # Set up the scripts for CONFIG_FILES section.
31001 # No need to generate them if there are no CONFIG_FILES.
31002 # This happens for instance with `./config.status config.h'.
31003 if test -n "$CONFIG_FILES"; then
31005 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31006 ac_cs_awk_getline
=:
31007 ac_cs_awk_pipe_init
=
31008 ac_cs_awk_read_file
='
31009 while ((getline aline < (F[key])) > 0)
31012 ac_cs_awk_pipe_fini
=
31014 ac_cs_awk_getline
=false
31015 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31016 ac_cs_awk_read_file
='
31018 print "cat " F[key] " &&"
31019 '$ac_cs_awk_pipe_init
31020 # The final `:' finishes the AND list.
31021 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31023 ac_cr
=`echo X | tr X '\015'`
31024 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31025 # But we know of no other shell where ac_cr would be empty at this
31026 # point, so we can use a bashism as a fallback.
31027 if test "x$ac_cr" = x
; then
31028 eval ac_cr
=\$
\'\\r
\'
31030 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31031 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31034 ac_cs_awk_cr
=$ac_cr
31037 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31040 # Create commands to substitute file output variables.
31042 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31043 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31044 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31047 } >conf$
$files.sh
&&
31048 . .
/conf$
$files.sh ||
31049 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31050 rm -f conf$
$files.sh
31053 echo "cat >conf$$subs.awk <<_ACEOF" &&
31054 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31056 } >conf$$subs.sh ||
31057 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31058 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31060 for ac_last_try in false false false false false :; do
31061 . ./conf$$subs.sh ||
31062 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31064 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31065 if test $ac_delim_n = $ac_delim_num; then
31067 elif $ac_last_try; then
31068 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31070 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31073 rm -f conf$$subs.sh
31075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31076 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31080 s/^/S["/; s
/!.
*/"]=/
31090 s/\(.\{148\}\)..*/\1/
31092 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31097 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31104 s/\(.\{148\}\)..*/\1/
31106 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31110 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31115 ' <conf$$subs.awk | sed '
31120 ' >>$CONFIG_STATUS || ac_write_fail=1
31121 rm -f conf$$subs.awk
31122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31124 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31125 for (key in S) S_is_set[key] = 1
31127 \$ac_cs_awk_pipe_init
31131 nfields = split(line, field, "@
")
31133 len = length(field[1])
31134 for (i = 2; i < nfields; i++) {
31136 keylen = length(key)
31137 if (S_is_set[key]) {
31139 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31140 len += length(value) + length(field[++i])
31145 if (nfields == 3 && !substed) {
31147 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31148 \$ac_cs_awk_read_file
31154 \$ac_cs_awk_pipe_fini
31157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31158 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31159 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31162 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31163 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31166 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31167 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31168 # trailing colons and then remove the whole line if VPATH becomes empty
31169 # (actually we leave an empty line to preserve line numbers).
31170 if test "x
$srcdir" = x.; then
31171 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31190 fi # test -n "$CONFIG_FILES"
31192 # Set up the scripts for CONFIG_HEADERS section.
31193 # No need to generate them if there are no CONFIG_HEADERS.
31194 # This happens for instance with `./config.status Makefile'.
31195 if test -n "$CONFIG_HEADERS"; then
31196 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31200 # Transform confdefs.h into an awk script `defines.awk', embedded as
31201 # here-document in config.status, that substitutes the proper values into
31202 # config.h.in to produce config.h.
31204 # Create a delimiter string that does not exist in confdefs.h, to ease
31205 # handling of long lines.
31207 for ac_last_try in false false :; do
31208 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31209 if test -z "$ac_tt"; then
31211 elif $ac_last_try; then
31212 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31214 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31218 # For the awk script, D is an array of macro values keyed by name,
31219 # likewise P contains macro parameters if any. Preserve backslash
31220 # newline sequences.
31222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31224 s/.\{148\}/&'"$ac_delim"'/g
31227 s/^[ ]*#[ ]*define[ ][ ]*/ /
31234 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31236 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31241 D["\
1"]=" \
3\\\\\\n
"\\/p
31243 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31248 s/.\{148\}/&'"$ac_delim"'/g
31253 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31256 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31258 ' <confdefs.h | sed '
31259 s/'"$ac_delim"'/"\\\
31260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31263 for (key in D) D_is_set[key] = 1
31266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31268 split(line, arg, " ")
31269 if (arg[1] == "#") {
31273 defundef
= substr
(arg
[1], 2)
31276 split(mac1
, mac2
, "(") #)
31278 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31279 if (D_is_set
[macro
]) {
31280 # Preserve the white space surrounding the "#".
31281 print prefix
"define", macro P
[macro
] D
[macro
]
31284 # Replace #undef with comments. This is necessary, for example,
31285 # in the case of _POSIX_SOURCE, which is predefined and required
31286 # on some systems where configure will not decide to define it.
31287 if (defundef
== "undef") {
31288 print
"/*", prefix defundef
, macro
, "*/"
31296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31297 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31298 fi # test -n "$CONFIG_HEADERS"
31301 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31306 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31308 case $ac_mode$ac_tag in
31310 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31311 :[FH
]-) ac_tag
=-:-;;
31312 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31329 -) ac_f
="$ac_tmp/stdin";;
31330 *) # Look for the file first in the build tree, then in the source tree
31331 # (if the path is not absolute). The absolute path cannot be DOS-style,
31332 # because $ac_f cannot contain `:'.
31336 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31338 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31340 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31341 as_fn_append ac_file_inputs
" '$ac_f'"
31344 # Let's still pretend it is `configure' which instantiates (i.e., don't
31345 # use $as_me), people would be surprised to read:
31346 # /* config.h. Generated by config.status. */
31347 configure_input
='Generated from '`
31348 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31350 if test x
"$ac_file" != x-
; then
31351 configure_input
="$ac_file. $configure_input"
31352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31353 $as_echo "$as_me: creating $ac_file" >&6;}
31355 # Neutralize special characters interpreted by sed in replacement strings.
31356 case $configure_input in #(
31357 *\
&* |
*\|
* |
*\\* )
31358 ac_sed_conf_input
=`$as_echo "$configure_input" |
31359 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31360 *) ac_sed_conf_input
=$configure_input;;
31364 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31365 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31370 ac_dir
=`$as_dirname -- "$ac_file" ||
31371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31372 X"$ac_file" : 'X\(//\)[^/]' \| \
31373 X"$ac_file" : 'X\(//\)$' \| \
31374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31375 $as_echo X"$ac_file" |
31376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31380 /^X\(\/\/\)[^/].*/{
31393 as_dir
="$ac_dir"; as_fn_mkdir_p
31397 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31399 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31400 # A ".." for each directory in $ac_dir_suffix.
31401 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31402 case $ac_top_builddir_sub in
31403 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31404 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31407 ac_abs_top_builddir
=$ac_pwd
31408 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31409 # for backward compatibility:
31410 ac_top_builddir
=$ac_top_build_prefix
31413 .
) # We are building in place.
31415 ac_top_srcdir
=$ac_top_builddir_sub
31416 ac_abs_top_srcdir
=$ac_pwd ;;
31417 [\\/]* | ?
:[\\/]* ) # Absolute name.
31418 ac_srcdir
=$srcdir$ac_dir_suffix;
31419 ac_top_srcdir
=$srcdir
31420 ac_abs_top_srcdir
=$srcdir ;;
31421 *) # Relative name.
31422 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31423 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31424 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31426 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31438 # If the template does not know about datarootdir, expand it.
31439 # FIXME: This hack should be removed a few years after 2.60.
31440 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31451 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31452 *datarootdir
*) ac_datarootdir_seen
=yes;;
31453 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31455 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31458 ac_datarootdir_hack='
31459 s&@datadir@&$datadir&g
31460 s&@docdir@&$docdir&g
31461 s&@infodir@&$infodir&g
31462 s&@localedir@&$localedir&g
31463 s&@mandir@&$mandir&g
31464 s&\\\${datarootdir}&$datarootdir&g' ;;
31468 # Neutralize VPATH when `$srcdir' = `.'.
31469 # Shell code in configure.ac might set extrasub.
31470 # FIXME: do we really want to maintain this feature?
31471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31472 ac_sed_extra="$ac_vpsub
31475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31477 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31478 s|@configure_input@|
$ac_sed_conf_input|
;t t
31479 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31480 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31481 s
&@srcdir@
&$ac_srcdir&;t t
31482 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31483 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31484 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31485 s
&@builddir@
&$ac_builddir&;t t
31486 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31487 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31488 $ac_datarootdir_hack
31490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31491 if $ac_cs_awk_getline; then
31492 $AWK -f "$ac_tmp/subs.
awk"
31494 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
31496 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
31498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31499 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
31500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31501 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
31502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31503 which seems to be undefined. Please make sure it is defined" >&5
31504 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31505 which seems to be undefined. Please make sure it is defined" >&2;}
31507 rm -f "$ac_tmp/stdin"
31509 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31510 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31518 if test x"$ac_file" != x-; then
31520 $as_echo "/* $configure_input */" \
31521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31522 } >"$ac_tmp/config.h" \
31523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31524 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31526 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31529 mv "$ac_tmp/config.h" "$ac_file" \
31530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31533 $as_echo "/* $configure_input */" \
31534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31535 || as_fn_error $? "could not create -" "$LINENO" 5
31543 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31546 # Prefer the file from the source tree if names are identical.
31547 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31548 ac_source=$srcdir/$ac_source
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31552 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31554 if test ! -r "$ac_source"; then
31555 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31559 # Try a relative symlink, then a hard link, then a copy.
31561 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31562 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31564 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31565 ln "$ac_source" "$ac_file" 2>/dev/null ||
31566 cp -p "$ac_source" "$ac_file" ||
31567 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31570 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31571 $as_echo "$as_me: executing $ac_file commands" >&6;}
31576 case $ac_file$ac_mode in
31577 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31579 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31580 for lang in $subdirs c-family common
31582 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31584 "as":F) chmod +x as ;;
31585 "collect-ld":F) chmod +x collect-ld ;;
31586 "nm":F) chmod +x nm ;;
31588 case ${CONFIG_HEADERS} in
31589 *auto-host.h:config.in*)
31592 # Make sure all the subdirs exist.
31593 for d in $subdirs doc build common c-family
31595 test -d $d || mkdir $d
31605 ac_clean_files=$ac_clean_files_save
31607 test $ac_write_fail = 0 ||
31608 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31611 # configure is writing to config.log, and then calls config.status.
31612 # config.status does its own redirection, appending to config.log.
31613 # Unfortunately, on DOS this fails, as config.log is still kept open
31614 # by configure, so config.status won't be able to
write to it
; its
31615 # output is simply discarded. So we exec the FD to /dev/null,
31616 # effectively closing config.log, so it can be properly (re)opened and
31617 # appended to by config.status. When coming back to configure, we
31618 # need to make the FD available again.
31619 if test "$no_create" != yes; then
31621 ac_config_status_args
=
31622 test "$silent" = yes &&
31623 ac_config_status_args
="$ac_config_status_args --quiet"
31625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31628 # would make configure fail if this is the last instruction.
31629 $ac_cs_success || as_fn_exit
1
31631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31633 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}