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 x86
1692 --disable-win32-registry
1693 disable lookup of installation paths in the Registry
1695 --enable-win32-registry enable registry lookup (default)
1696 --enable-win32-registry=KEY
1697 use KEY instead of GCC version as the last portion
1699 --enable-shared[=PKGS] build shared libraries [default=yes]
1700 --enable-static[=PKGS] build static libraries [default=yes]
1701 --enable-fast-install[=PKGS]
1702 optimize for fast installation [default=yes]
1703 --disable-libtool-lock avoid locking (might break parallel builds)
1704 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1705 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1706 --enable-gnu-indirect-function
1707 enable the use of the @gnu_indirect_function to
1709 --enable-initfini-array use .init_array/.fini_array sections
1710 --enable-comdat enable COMDAT group support
1712 --enable-standard-branch-protection
1713 enable Branch Target Identification Mechanism and
1714 Return Address Signing by default for AArch64
1715 --disable-standard-branch-protection
1716 disable Branch Target Identification Mechanism and
1717 Return Address Signing by default for AArch64
1720 --enable-fix-cortex-a53-835769
1721 enable workaround for AArch64 Cortex-A53 erratum
1723 --disable-fix-cortex-a53-835769
1724 disable workaround for AArch64 Cortex-A53 erratum
1728 --enable-fix-cortex-a53-843419
1729 enable workaround for AArch64 Cortex-A53 erratum
1731 --disable-fix-cortex-a53-843419
1732 disable workaround for AArch64 Cortex-A53 erratum
1735 --enable-gnu-unique-object
1736 enable the use of the @gnu_unique_object ELF
1737 extension on glibc systems
1738 --enable-linker-build-id
1739 compiler will always pass --build-id to linker
1740 --enable-libssp enable linking against libssp
1741 --enable-default-ssp enable Stack Smashing Protection as default
1742 --enable-maintainer-mode
1743 enable make rules and dependencies not useful (and
1744 sometimes confusing) to the casual installer
1745 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1746 thrashing on the build machine
1747 --enable-version-specific-runtime-libs
1748 specify that runtime libraries should be installed
1749 in a compiler-specific directory
1750 --enable-plugin enable plugin support
1751 --enable-host-shared build host code as shared libraries
1752 --disable-libquadmath-support
1753 disable libquadmath support for Fortran
1754 --enable-default-pie enable Position Independent Executable as default
1757 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1758 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1759 --with-build-libsubdir=DIR Directory where to find libraries for build system
1760 --with-local-prefix=DIR specifies directory to put local include
1761 --with-native-system-header-dir=dir
1762 use dir as the directory to look for standard
1763 system header files in. Defaults to /usr/include.
1764 --with-build-sysroot=sysroot
1765 use sysroot as the system root during the build
1766 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1767 --with-gxx-include-dir=DIR
1768 specifies directory to put g++ header files
1769 --with-cpp-install-dir=DIR
1770 install the user visible C preprocessor in DIR
1771 (relative to PREFIX) as well as PREFIX/bin
1772 --with-gnu-ld arrange to work with GNU ld
1773 --with-ld arrange to use the specified ld (full pathname)
1774 --with-demangler-in-ld try to use demangler in GNU ld
1775 --with-gnu-as arrange to work with GNU as
1776 --with-as arrange to use the specified as (full pathname)
1777 --with-stabs arrange to use stabs instead of host debug format
1778 --with-stack-clash-protection-guard-size=size
1779 Set the default stack clash protection guard size
1780 for specific targets as a power of two in bytes.
1781 --with-dwarf2 force the default debug format to be DWARF 2
1782 --with-specs=SPECS add SPECS to driver command-line processing
1783 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1784 --with-bugurl=URL Direct users to URL to report a bug
1785 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1786 --with-gnu-ld assume the C compiler uses GNU ld default=no
1787 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1788 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1789 --with-gcc-major-version-only
1790 use only GCC major number
in filesystem paths
1791 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1793 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1794 --with-plugin-ld=[ARG
] specify the plugin linker
1795 --with-glibc-version=M.N
1796 assume GCC used with glibc version M.N or later
1797 --with-long-double-128 use
128-bit long double by default
1798 --with-long-double-format={ieee
,ibm
}
1799 Specify whether PowerPC long double uses IEEE or IBM format
1801 --with-gc={page
,zone
} this option is not supported anymore. It used to
1802 choose the garbage collection mechanism to use with
1804 --with-system-zlib use installed libz
1805 --with-linker-hash-style={sysv
,gnu
,both
}
1806 specify the linker
hash style
1807 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1808 specify the default of
-fdiagnostics-color option
1809 auto-if-env stands
for -fdiagnostics-color=auto
if
1810 GCC_COLOR environment variable is present and
1811 -fdiagnostics-color=never otherwise
1813 Some influential environment variables
:
1814 CC C compiler
command
1815 CFLAGS C compiler flags
1816 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1817 nonstandard directory
<lib dir
>
1818 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1819 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1820 you have headers
in a nonstandard directory
<include dir
>
1821 CXX C
++ compiler
command
1822 CXXFLAGS C
++ compiler flags
1823 CXXCPP C
++ preprocessor
1825 GMPLIBS How to link GMP
1826 GMPINC How to
find GMP include files
1827 ISLLIBS How to link isl
1828 ISLINC How to
find isl include files
1830 Use these variables to override the choices made by
`configure' or to help
1831 it to find libraries and programs with nonstandard names/locations.
1833 Report bugs to the package provider.
1838 if test "$ac_init_help" = "recursive"; then
1839 # If there are subdirs, report their specific --help.
1840 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1841 test -d "$ac_dir" ||
1842 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1849 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1850 # A ".." for each directory in $ac_dir_suffix.
1851 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1852 case $ac_top_builddir_sub in
1853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1857 ac_abs_top_builddir=$ac_pwd
1858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1859 # for backward compatibility:
1860 ac_top_builddir=$ac_top_build_prefix
1863 .) # We are building in place.
1865 ac_top_srcdir=$ac_top_builddir_sub
1866 ac_abs_top_srcdir=$ac_pwd ;;
1867 [\\/]* | ?:[\\/]* ) # Absolute name.
1868 ac_srcdir=$srcdir$ac_dir_suffix;
1869 ac_top_srcdir=$srcdir
1870 ac_abs_top_srcdir=$srcdir ;;
1872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1873 ac_top_srcdir=$ac_top_build_prefix$srcdir
1874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1878 cd "$ac_dir" || { ac_status=$?; continue; }
1879 # Check for guested configure.
1880 if test -f "$ac_srcdir/configure.gnu"; then
1882 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1883 elif test -f "$ac_srcdir/configure"; then
1885 $SHELL "$ac_srcdir/configure" --help=recursive
1887 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1889 cd "$ac_pwd" || { ac_status=$?; break; }
1893 test -n "$ac_init_help" && exit $ac_status
1894 if $ac_init_version; then
1897 generated by GNU Autoconf 2.69
1899 Copyright (C) 2012 Free Software Foundation, Inc.
1900 This configure script is free software; the Free Software Foundation
1901 gives unlimited permission to copy, distribute and modify it.
1906 ## ------------------------ ##
1907 ## Autoconf initialization. ##
1908 ## ------------------------ ##
1910 # ac_fn_c_try_compile LINENO
1911 # --------------------------
1912 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_c_try_compile ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext
1917 if { { ac_try="$ac_compile"
1919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1920 *) ac_try_echo
=$ac_try;;
1922 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_compile") 2>conftest.err
1926 if test -s conftest.err
; then
1927 grep -v '^ *+' conftest.err
>conftest.er1
1928 cat conftest.er1
>&5
1929 mv -f conftest.er1 conftest.err
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest.
$ac_objext; then :
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.
$ac_ext >&5
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status
$ac_retval
1946 } # ac_fn_c_try_compile
1948 # ac_fn_cxx_try_compile LINENO
1949 # ----------------------------
1950 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_cxx_try_compile
()
1953 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1954 rm -f conftest.
$ac_objext
1955 if { { ac_try
="$ac_compile"
1957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_compile") 2>conftest.err
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest.$ac_objext; then :
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1984 } # ac_fn_cxx_try_compile
1986 # ac_fn_cxx_try_cpp LINENO
1987 # ------------------------
1988 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_cpp ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { { ac_try="$ac_cpp conftest.$ac_ext"
1994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1995 *) ac_try_echo
=$ac_try;;
1997 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2001 if test -s conftest.err
; then
2002 grep -v '^ *+' conftest.err
>conftest.er1
2003 cat conftest.er1
>&5
2004 mv -f conftest.er1 conftest.err
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } > conftest.i
&& {
2008 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2009 test ! -s conftest.err
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.
$ac_ext >&5
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status
$ac_retval
2021 } # ac_fn_cxx_try_cpp
2023 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2024 # ---------------------------------------------------------
2025 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2026 # the include files in INCLUDES and setting the cache variable VAR
2028 ac_fn_cxx_check_header_mongrel
()
2030 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2031 if eval \
${$3+:} false
; then :
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \
${$3+:} false
; then :
2035 $as_echo_n "(cached) " >&6
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2041 # Is the header compilable?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2043 $as_echo_n "checking $2 usability... " >&6; }
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2049 if ac_fn_cxx_try_compile
"$LINENO"; then :
2050 ac_header_compiler
=yes
2052 ac_header_compiler
=no
2054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2056 $as_echo "$ac_header_compiler" >&6; }
2058 # Is the header present?
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2060 $as_echo_n "checking $2 presence... " >&6; }
2061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2065 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2066 ac_header_preproc
=yes
2068 ac_header_preproc
=no
2070 rm -f conftest.err conftest.i conftest.
$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2072 $as_echo "$ac_header_preproc" >&6; }
2074 # So? What about this header?
2075 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2078 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2080 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2084 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2086 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2088 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2090 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval \
${$3+:} false
; then :
2098 $as_echo_n "(cached) " >&6
2100 eval "$3=\$ac_header_compiler"
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 } # ac_fn_cxx_check_header_mongrel
2110 # ac_fn_cxx_try_run LINENO
2111 # ------------------------
2112 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2113 # that executables *can* be run.
2114 ac_fn_cxx_try_run
()
2116 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2117 if { { ac_try
="$ac_link"
2119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124 (eval "$ac_link") 2>&5
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2128 { { case "(($ac_try" in
2129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2130 *) ac_try_echo
=$ac_try;;
2132 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_try") 2>&5
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; }; }; then :
2140 $as_echo "$as_me: program exited with status $ac_status" >&5
2141 $as_echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.
$ac_ext >&5
2144 ac_retval
=$ac_status
2146 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status
$ac_retval
2150 } # ac_fn_cxx_try_run
2152 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2153 # ---------------------------------------------------------
2154 # Tests whether HEADER exists and can be compiled using the include files in
2155 # INCLUDES, setting the cache variable VAR accordingly.
2156 ac_fn_cxx_check_header_compile
()
2158 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \
${$3+:} false
; then :
2162 $as_echo_n "(cached) " >&6
2164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2169 if ac_fn_cxx_try_compile
"$LINENO"; then :
2174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 } # ac_fn_cxx_check_header_compile
2183 # ac_fn_c_try_cpp LINENO
2184 # ----------------------
2185 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2188 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2189 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } > conftest.i && {
2205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2206 test ! -s conftest.err
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2220 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2221 # ----------------------------------------------
2222 # Tries to find the compile-time value of EXPR in a program that includes
2223 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2225 ac_fn_cxx_compute_int ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if test "$cross_compiling" = yes; then
2229 # Depending upon the size, compute the lo and hi bounds.
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2236 static int test_array [1 - 2 * !(($2) >= 0)];
2238 return test_array [0];
2244 if ac_fn_cxx_try_compile "$LINENO"; then :
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2253 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 return test_array [0];
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid; break
2264 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2265 if test $ac_lo -le $ac_mid; then
2269 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2280 static int test_array [1 - 2 * !(($2) < 0)];
2282 return test_array [0];
2288 if ac_fn_cxx_try_compile "$LINENO"; then :
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2297 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2299 return test_array [0];
2305 if ac_fn_cxx_try_compile "$LINENO"; then :
2306 ac_lo=$ac_mid; break
2308 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2309 if test $ac_mid -le $ac_hi; then
2313 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 # Binary search between lo and hi bounds.
2324 while test "x$ac_lo" != "x$ac_hi"; do
2325 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2332 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2334 return test_array [0];
2340 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2355 static long int longval () { return $2; }
2356 static unsigned long int ulongval () { return $2; }
2363 FILE *f = fopen ("conftest.val", "w");
2368 long int i = longval ();
2371 fprintf (f, "%ld", i);
2375 unsigned long int i = ulongval ();
2378 fprintf (f, "%lu", i);
2380 /* Do not output a trailing newline, as this causes \r\n confusion
2381 on some platforms. */
2382 return ferror (f) || fclose (f) != 0;
2388 if ac_fn_cxx_try_run "$LINENO"; then :
2389 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2394 conftest.$ac_objext conftest.beam conftest.$ac_ext
2398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399 as_fn_set_status $ac_retval
2401 } # ac_fn_cxx_compute_int
2403 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2404 # ---------------------------------------------
2405 # Tests whether TYPE exists after having included INCLUDES, setting cache
2406 # variable VAR accordingly.
2407 ac_fn_cxx_check_type ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval \${$3+:} false; then :
2413 $as_echo_n "(cached) " >&6
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2428 if ac_fn_cxx_try_compile "$LINENO"; then :
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2441 if ac_fn_cxx_try_compile "$LINENO"; then :
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455 } # ac_fn_cxx_check_type
2457 # ac_fn_c_find_intX_t LINENO BITS VAR
2458 # -----------------------------------
2459 # Finds a signed integer type with width BITS, setting cache variable VAR
2461 ac_fn_c_find_intX_t ()
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2465 $as_echo_n "checking for int$2_t... " >&6; }
2466 if eval \${$3+:} false; then :
2467 $as_echo_n "(cached) " >&6
2470 # Order is important - never check a type that is potentially smaller
2471 # than half of the expected target width.
2472 for ac_type in int$2_t 'int' 'long int' \
2473 'long long int' 'short int' 'signed char'; do
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 $ac_includes_default
2477 enum { N = $2 / 2 - 1 };
2481 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2483 return test_array [0];
2489 if ac_fn_cxx_try_compile "$LINENO"; then :
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2492 $ac_includes_default
2493 enum { N = $2 / 2 - 1 };
2497 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2498 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2500 return test_array [0];
2506 if ac_fn_cxx_try_compile "$LINENO"; then :
2513 eval "$3=\$ac_type" ;;
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 if eval test \"x\$"$3"\" = x"no"; then :
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2531 } # ac_fn_c_find_intX_t
2533 # ac_fn_cxx_try_link LINENO
2534 # -------------------------
2535 # Try to link conftest.$ac_ext, and return whether this succeeded.
2536 ac_fn_cxx_try_link ()
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 rm -f conftest.$ac_objext conftest$ac_exeext
2540 if { { ac_try="$ac_link"
2542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2543 *) ac_try_echo
=$ac_try;;
2545 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_link") 2>conftest.err
2549 if test -s conftest.err
; then
2550 grep -v '^ *+' conftest.err
>conftest.er1
2551 cat conftest.er1
>&5
2552 mv -f conftest.er1 conftest.err
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555 test $ac_status = 0; } && {
2556 test -z "$ac_cxx_werror_flag" ||
2557 test ! -s conftest.err
2558 } && test -s conftest
$ac_exeext && {
2559 test "$cross_compiling" = yes ||
2560 test -x conftest
$ac_exeext
2564 $as_echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.
$ac_ext >&5
2569 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2570 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2571 # interfere with the next link command; also delete a directory that is
2572 # left behind by Apple's compiler. We do this before executing the actions.
2573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2575 as_fn_set_status
$ac_retval
2577 } # ac_fn_cxx_try_link
2579 # ac_fn_c_find_uintX_t LINENO BITS VAR
2580 # ------------------------------------
2581 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2583 ac_fn_c_find_uintX_t
()
2585 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2587 $as_echo_n "checking for uint$2_t... " >&6; }
2588 if eval \
${$3+:} false
; then :
2589 $as_echo_n "(cached) " >&6
2592 # Order is important - never check a type that is potentially smaller
2593 # than half of the expected target width.
2594 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2595 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2598 $ac_includes_default
2602 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2604 return test_array [0];
2610 if ac_fn_cxx_try_compile
"$LINENO"; then :
2615 eval "$3=\$ac_type" ;;
2618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2619 if eval test \"x\$
"$3"\" = x
"no"; then :
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2628 $as_echo "$ac_res" >&6; }
2629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2631 } # ac_fn_c_find_uintX_t
2633 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2634 # ------------------------------------------------
2635 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2636 ac_fn_cxx_check_header_preproc
()
2638 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2640 $as_echo_n "checking for $2... " >&6; }
2641 if eval \
${$3+:} false
; then :
2642 $as_echo_n "(cached) " >&6
2644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2648 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2653 rm -f conftest.err conftest.i conftest.
$ac_ext
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2657 $as_echo "$ac_res" >&6; }
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2660 } # ac_fn_cxx_check_header_preproc
2662 # ac_fn_cxx_check_func LINENO FUNC VAR
2663 # ------------------------------------
2664 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2665 ac_fn_cxx_check_func
()
2667 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2669 $as_echo_n "checking for $2... " >&6; }
2670 if eval \
${$3+:} false
; then :
2671 $as_echo_n "(cached) " >&6
2673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2675 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2677 #define $2 innocuous_$2
2679 /* System header to define __stub macros and hopefully few prototypes,
2680 which can conflict with char $2 (); below.
2681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2682 <limits.h> exists even on freestanding compilers. */
2685 # include <limits.h>
2687 # include <assert.h>
2692 /* Override any GCC internal prototype to avoid an error.
2693 Use char because int might match the return type of a GCC
2694 builtin and then its argument prototype would still apply. */
2699 /* The GNU C library defines this for functions which it implements
2700 to always fail with ENOSYS. Some functions are actually named
2701 something starting with __ and the normal name is an alias. */
2702 #if defined __stub_$2 || defined __stub___$2
2714 if ac_fn_cxx_try_link
"$LINENO"; then :
2719 rm -f core conftest.err conftest.
$ac_objext \
2720 conftest
$ac_exeext conftest.
$ac_ext
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727 } # ac_fn_cxx_check_func
2729 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2730 # -----------------------------------------------
2731 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2733 ac_fn_cxx_check_decl
()
2735 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2736 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2737 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2739 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2740 if eval \
${$3+:} false
; then :
2741 $as_echo_n "(cached) " >&6
2743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h. */
2749 #ifndef $as_decl_name
2751 (void) $as_decl_use;
2753 (void) $as_decl_name;
2761 if ac_fn_cxx_try_compile
"$LINENO"; then :
2766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770 $as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2773 } # ac_fn_cxx_check_decl
2775 # ac_fn_c_try_link LINENO
2776 # -----------------------
2777 # Try to link conftest.$ac_ext, and return whether this succeeded.
2780 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2781 rm -f conftest.
$ac_objext conftest
$ac_exeext
2782 if { { ac_try
="$ac_link"
2784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_link") 2>conftest.err
2791 if test -s conftest.err; then
2792 grep -v '^ *+' conftest.err >conftest.er1
2793 cat conftest.er1 >&5
2794 mv -f conftest.er1 conftest.err
2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797 test $ac_status = 0; } && {
2798 test -z "$ac_c_werror_flag" ||
2799 test ! -s conftest.err
2800 } && test -s conftest$ac_exeext && {
2801 test "$cross_compiling" = yes ||
2802 test -x conftest$ac_exeext
2806 $as_echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2813 # interfere with the next link command; also delete a directory that is
2814 # left behind by Apple's compiler. We do this before executing the actions.
2815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2817 as_fn_set_status $ac_retval
2819 } # ac_fn_c_try_link
2821 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2822 # ----------------------------------------------
2823 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2824 ac_fn_c_check_header_preproc ()
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2828 $as_echo_n "checking for $2... " >&6; }
2829 if eval \${$3+:} false; then :
2830 $as_echo_n "(cached) " >&6
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2836 if ac_fn_c_try_cpp "$LINENO"; then :
2841 rm -f conftest.err conftest.i conftest.$ac_ext
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2845 $as_echo "$ac_res" >&6; }
2846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2848 } # ac_fn_c_check_header_preproc
2850 # ac_fn_c_check_func LINENO FUNC VAR
2851 # ----------------------------------
2852 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2853 ac_fn_c_check_func ()
2855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2857 $as_echo_n "checking for $2... " >&6; }
2858 if eval \${$3+:} false; then :
2859 $as_echo_n "(cached) " >&6
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2863 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2865 #define $2 innocuous_$2
2867 /* System header to define __stub macros and hopefully few prototypes,
2868 which can conflict with char $2 (); below.
2869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870 <limits.h> exists even on freestanding compilers. */
2873 # include <limits.h>
2875 # include <assert.h>
2880 /* Override any GCC internal prototype to avoid an error.
2881 Use char because int might match the return type of a GCC
2882 builtin and then its argument prototype would still apply. */
2887 /* The GNU C library defines this for functions which it implements
2888 to always fail with ENOSYS. Some functions are actually named
2889 something starting with __ and the normal name is an alias. */
2890 #if defined __stub_$2 || defined __stub___$2
2902 if ac_fn_c_try_link "$LINENO"; then :
2907 rm -f core conftest.err conftest.$ac_objext \
2908 conftest$ac_exeext conftest.$ac_ext
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2912 $as_echo "$ac_res" >&6; }
2913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2915 } # ac_fn_c_check_func
2916 cat >config.log <<_ACEOF
2917 This file contains any messages produced by compilers while
2918 running configure, to aid debugging if configure makes a mistake.
2920 It was created by $as_me, which was
2921 generated by GNU Autoconf 2.69. Invocation command line was
2933 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2934 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2935 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2936 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2937 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2939 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2940 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2942 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2943 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2944 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2945 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2946 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2947 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2948 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 $as_echo "PATH: $as_dir"
2973 # Keep a trace of the command line.
2974 # Strip out --no-create and --no-recursion so they do not pile up.
2975 # Strip out --silent because we don't want to record it for future runs.
2976 # Also quote any args containing shell meta-characters.
2977 # Make two passes to allow for proper duplicate-argument suppression.
2981 ac_must_keep_next=false
2987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2989 | -silent | --silent | --silen | --sile | --sil)
2992 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2997 as_fn_append ac_configure_args1 " '$ac_arg'"
2998 if test $ac_must_keep_next = true; then
2999 ac_must_keep_next=false # Got value, back to normal.
3002 *=* | --config-cache | -C | -disable-* | --disable-* \
3003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3005 | -with-* | --with-* | -without-* | --without-* | --x)
3006 case "$ac_configure_args0 " in
3007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3010 -* ) ac_must_keep_next=true ;;
3013 as_fn_append ac_configure_args " '$ac_arg'"
3018 { ac_configure_args0=; unset ac_configure_args0;}
3019 { ac_configure_args1=; unset ac_configure_args1;}
3021 # When interrupted or exit'd, cleanup temporary files, and complete
3022 # config.log. We remove comments because anyway the quotes in there
3023 # would cause problems or look ugly.
3024 # WARNING: Use '\'' to represent an apostrophe within the trap.
3025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3026 trap 'exit_status=$?
3027 # Save into config.log some information that might help in debugging.
3031 $as_echo "## ---------------- ##
3032 ## Cache variables. ##
3033 ## ---------------- ##"
3035 # The following way of writing the cache mishandles newlines in values,
3037 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3038 eval ac_val=\$$ac_var
3042 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3046 _ | IFS | as_nl) ;; #(
3047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3048 *) { eval $ac_var=; unset $ac_var;} ;;
3053 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3054 *${as_nl}ac_space=\ *)
3056 "s/'\''/'\''\\\\'\'''\''/g;
3057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3067 $as_echo "## ----------------- ##
3068 ## Output variables. ##
3069 ## ----------------- ##"
3071 for ac_var in $ac_subst_vars
3073 eval ac_val=\$$ac_var
3075 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3077 $as_echo "$ac_var='\''$ac_val'\''"
3081 if test -n "$ac_subst_files"; then
3082 $as_echo "## ------------------- ##
3083 ## File substitutions. ##
3084 ## ------------------- ##"
3086 for ac_var in $ac_subst_files
3088 eval ac_val=\$$ac_var
3090 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3092 $as_echo "$ac_var='\''$ac_val'\''"
3097 if test -s confdefs.h; then
3098 $as_echo "## ----------- ##
3105 test "$ac_signal" != 0 &&
3106 $as_echo "$as_me: caught signal $ac_signal"
3107 $as_echo "$as_me: exit $exit_status"
3109 rm -f core *.core core.conftest.* &&
3110 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3113 for ac_signal in 1 2 13 15; do
3114 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3119 rm -f -r conftest* confdefs.h
3121 $as_echo "/* confdefs.h */" > confdefs.h
3123 # Predefined preprocessor variables.
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_NAME "$PACKAGE_NAME"
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_STRING "$PACKAGE_STRING"
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_URL "$PACKAGE_URL"
3150 # Let the site file select an alternate cache file if it wants to.
3151 # Prefer an explicitly selected file to automatically selected ones.
3154 if test -n "$CONFIG_SITE"; then
3155 # We do not want a PATH search for config.site.
3156 case $CONFIG_SITE in #((
3157 -*) ac_site_file1=./$CONFIG_SITE;;
3158 */*) ac_site_file1=$CONFIG_SITE;;
3159 *) ac_site_file1=./$CONFIG_SITE;;
3161 elif test "x$prefix" != xNONE; then
3162 ac_site_file1=$prefix/share/config.site
3163 ac_site_file2=$prefix/etc/config.site
3165 ac_site_file1=$ac_default_prefix/share/config.site
3166 ac_site_file2=$ac_default_prefix/etc/config.site
3168 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3170 test "x$ac_site_file" = xNONE && continue
3171 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3173 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3174 sed 's/^/| /' "$ac_site_file" >&5
3176 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "failed to load site
script $ac_site_file
3179 See \
`config.log' for more details" "$LINENO" 5; }
3183 if test -r "$cache_file"; then
3184 # Some versions of bash will fail to source /dev/null (special files
3185 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3186 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3188 $as_echo "$as_me: loading cache $cache_file" >&6;}
3190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3191 *) . "./$cache_file";;
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3196 $as_echo "$as_me: creating cache $cache_file" >&6;}
3200 # Check that the precious variables saved in the cache have kept the same
3202 ac_cache_corrupted=false
3203 for ac_var in $ac_precious_vars; do
3204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3205 eval ac_new_set=\$ac_env_${ac_var}_set
3206 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3207 eval ac_new_val=\$ac_env_${ac_var}_value
3208 case $ac_old_set,$ac_new_set in
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3211 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3212 ac_cache_corrupted=: ;;
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3215 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3216 ac_cache_corrupted=: ;;
3219 if test "x$ac_old_val" != "x$ac_new_val"; then
3220 # differences in whitespace do not lead to failure.
3221 ac_old_val_w=`echo x
$ac_old_val`
3222 ac_new_val_w=`echo x
$ac_new_val`
3223 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3225 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3226 ac_cache_corrupted=:
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3229 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3230 eval $ac_var=\$ac_old_val
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3233 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3235 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3238 # Pass precious variables to config.status.
3239 if test "$ac_new_set" = set; then
3241 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3242 *) ac_arg=$ac_var=$ac_new_val ;;
3244 case " $ac_configure_args " in
3245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3246 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3250 if $ac_cache_corrupted; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3254 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3255 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3257 ## -------------------- ##
3258 ## Main body of script. ##
3259 ## -------------------- ##
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3275 gcc_version=`cat $srcdir/BASE-VER
`
3277 # Determine the host, build, and target systems
3279 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3280 if test -f "$ac_dir/install-sh"; then
3282 ac_install_sh="$ac_aux_dir/install-sh -c"
3284 elif test -f "$ac_dir/install.sh"; then
3286 ac_install_sh="$ac_aux_dir/install.sh -c"
3288 elif test -f "$ac_dir/shtool"; then
3290 ac_install_sh="$ac_aux_dir/shtool install -c"
3294 if test -z "$ac_aux_dir"; then
3295 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3298 # These three variables are undocumented and unsupported,
3299 # and are intended to be withdrawn in a future Autoconf release.
3300 # They can cause serious problems if a builder's source tree is in a directory
3301 # whose full name contains unusual characters.
3302 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3303 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3304 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3307 # Make sure we can run config.sub.
3308 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3309 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3312 $as_echo_n "checking build system type... " >&6; }
3313 if ${ac_cv_build+:} false; then :
3314 $as_echo_n "(cached) " >&6
3316 ac_build_alias=$build_alias
3317 test "x$ac_build_alias" = x &&
3318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3319 test "x$ac_build_alias" = x &&
3320 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3321 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3322 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3326 $as_echo "$ac_cv_build" >&6; }
3327 case $ac_cv_build in
3329 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3332 ac_save_IFS=$IFS; IFS='-'
3338 # Remember, the first character of IFS is used to create $*,
3339 # except with old shells:
3342 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3346 $as_echo_n "checking host system type... " >&6; }
3347 if ${ac_cv_host+:} false; then :
3348 $as_echo_n "(cached) " >&6
3350 if test "x$host_alias" = x; then
3351 ac_cv_host=$ac_cv_build
3353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3359 $as_echo "$ac_cv_host" >&6; }
3362 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3365 ac_save_IFS=$IFS; IFS='-'
3371 # Remember, the first character of IFS is used to create $*,
3372 # except with old shells:
3375 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3379 $as_echo_n "checking target system type... " >&6; }
3380 if ${ac_cv_target+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 if test "x$target_alias" = x; then
3384 ac_cv_target=$ac_cv_host
3386 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3392 $as_echo "$ac_cv_target" >&6; }
3393 case $ac_cv_target in
3395 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3397 target=$ac_cv_target
3398 ac_save_IFS=$IFS; IFS='-'
3404 # Remember, the first character of IFS is used to create $*,
3405 # except with old shells:
3408 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3411 # The aliases save the names the user supplied, while $host etc.
3412 # will get canonicalized.
3413 test -n "$target_alias" &&
3414 test "$program_prefix$program_suffix$program_transform_name" = \
3416 program_prefix=${target_alias}-
3418 # Determine the noncanonical host name, for Ada.
3419 case ${build_alias} in
3420 "") build_noncanonical=${build} ;;
3421 *) build_noncanonical=${build_alias} ;;
3424 case ${host_alias} in
3425 "") host_noncanonical=${build_noncanonical} ;;
3426 *) host_noncanonical=${host_alias} ;;
3432 # Determine the noncanonical target name, for directory use.
3433 case ${target_alias} in
3434 "") target_noncanonical=${host_noncanonical} ;;
3435 *) target_noncanonical=${target_alias} ;;
3441 # Used for constructing correct paths for offload compilers.
3442 real_target_noncanonical=${target_noncanonical}
3445 # Determine the target- and build-specific subdirectories
3447 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3448 # have matching libraries, they should use host libraries: Makefile.tpl
3449 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3450 # However, they still use the build modules, because the corresponding
3451 # host modules (e.g. bison) are only built for the host when bootstrap
3453 # - build_subdir is where we find build modules, and never changes.
3454 # - build_libsubdir is where we find build libraries, and can be overridden.
3456 # Prefix 'build-' so this never conflicts with target_subdir.
3457 build_subdir="build-${build_noncanonical}"
3459 # Check whether --with-build-libsubdir was given.
3460 if test "${with_build_libsubdir+set}" = set; then :
3461 withval=$with_build_libsubdir; build_libsubdir="$withval"
3463 build_libsubdir="$build_subdir"
3466 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3467 if ( test $srcdir = . && test -d gcc ) \
3468 || test -d $srcdir/../host-${host_noncanonical}; then
3469 host_subdir="host-${host_noncanonical}"
3474 target_subdir=${target_noncanonical}
3477 # Set program_transform_name
3478 test "$program_prefix" != NONE &&
3479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3480 # Use a double $ so make ignores it.
3481 test "$program_suffix" != NONE &&
3482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3483 # Double any \ or $.
3484 # By default was `s
,x
,x
', remove it if useless.
3485 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3486 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3489 # Check for bogus environment variables.
3490 # Test if LIBRARY_PATH contains the notation for the current directory
3491 # since this would lead to problems installing/building glibc.
3492 # LIBRARY_PATH contains the current directory if one of the following
3494 # - one of the terminals (":" and ";") is the first or last sign
3495 # - two terminals occur directly after each other
3496 # - the path contains an element with a dot in it
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3498 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3499 case ${LIBRARY_PATH} in
3500 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3501 library_path_setting="contains current directory"
3504 library_path_setting="ok"
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3508 $as_echo "$library_path_setting" >&6; }
3509 if test "$library_path_setting" != "ok"; then
3511 *** LIBRARY_PATH shouldn't contain the current directory when
3512 *** building gcc. Please change the environment variable
3513 *** and run configure again.
" "$LINENO" 5
3516 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3517 # since this would lead to problems installing/building glibc.
3518 # GCC_EXEC_PREFIX contains the current directory if one of the following
3520 # - one of the terminals (":" and ";") is the first or last sign
3521 # - two terminals occur directly after each other
3522 # - the path contains an element with a dot in it
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3524 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3525 case ${GCC_EXEC_PREFIX} in
3526 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3527 gcc_exec_prefix_setting="contains current directory
"
3530 gcc_exec_prefix_setting="ok
"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3534 $as_echo "$gcc_exec_prefix_setting" >&6; }
3535 if test "$gcc_exec_prefix_setting" != "ok
"; then
3537 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3538 *** building gcc. Please change the environment variable
3539 *** and run configure again." "$LINENO" 5
3546 # Specify the local prefix
3549 # Check whether --with-local-prefix was given.
3550 if test "${with_local_prefix+set}" = set; then :
3551 withval=$with_local_prefix; case "${withval}" in
3552 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3554 *) local_prefix=$with_local_prefix ;;
3559 # Default local prefix if it is empty
3560 if test x$local_prefix = x; then
3561 local_prefix=/usr/local
3565 # Check whether --with-native-system-header-dir was given.
3566 if test "${with_native_system_header_dir+set}" = set; then :
3567 withval=$with_native_system_header_dir;
3568 case ${with_native_system_header_dir} in
3569 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3570 /* | [A-Za-z]:[\\/]*) ;;
3571 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3573 configured_native_system_header_dir="${withval}"
3576 configured_native_system_header_dir=
3581 # Check whether --with-build-sysroot was given.
3582 if test "${with_build_sysroot+set}" = set; then :
3583 withval=$with_build_sysroot; if test x"$withval" != x ; then
3584 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3587 SYSROOT_CFLAGS_FOR_TARGET=
3592 if test "x$prefix" = xNONE; then
3593 test_prefix=/usr/local
3597 if test "x$exec_prefix" = xNONE; then
3598 test_exec_prefix=$test_prefix
3600 test_exec_prefix=$exec_prefix
3604 # Check whether --with-sysroot was given.
3605 if test "${with_sysroot+set}" = set; then :
3606 withval=$with_sysroot;
3607 case ${with_sysroot} in
3609 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3611 case ${with_sysroot} in
3612 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3613 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3616 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3617 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3619 case ${TARGET_SYSTEM_ROOT} in
3620 "${test_prefix}"|"${test_prefix}/"*|\
3621 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3622 '${prefix}'|'${prefix}/'*|\
3623 '${exec_prefix}'|'${exec_prefix}/'*)
3624 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3625 TARGET_SYSTEM_ROOT_DEFINE="$t"
3632 TARGET_SYSTEM_ROOT_DEFINE=
3633 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3641 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3642 # passed in by the toplevel make and thus we'd get different behavior
3643 # depending on where we built the sources.
3644 gcc_gxx_include_dir
=
3645 # Specify the g++ header file directory
3647 # Check whether --with-gxx-include-dir was given.
3648 if test "${with_gxx_include_dir+set}" = set; then :
3649 withval
=$with_gxx_include_dir; case "${withval}" in
3650 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3652 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3657 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3658 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3659 # relative to the sysroot.
3660 gcc_gxx_include_dir_add_sysroot
=0
3662 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3663 if test x
${gcc_gxx_include_dir} = x
; then
3664 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3665 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3667 libstdcxx_incdir
='include/c++/$(version)'
3668 if test x
$host != x
$target; then
3669 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3671 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3673 elif test "${with_sysroot+set}" = set; then
3674 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3675 if test "${gcc_gxx_without_sysroot}"; then
3676 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3677 gcc_gxx_include_dir_add_sysroot
=1
3682 # Check whether --with-cpp_install_dir was given.
3683 if test "${with_cpp_install_dir+set}" = set; then :
3684 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3685 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3686 elif test x
$withval != xno
; then
3687 cpp_install_dir
=$withval
3692 # We would like to our source tree to be readonly. However when releases or
3693 # pre-releases are generated, the flex/bison generated files as well as the
3694 # various formats of manuals need to be included along with the rest of the
3695 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3699 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3700 # Check whether --enable-generated-files-in-srcdir was given.
3701 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3702 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3704 generated_files_in_srcdir
=no
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3709 $as_echo "$generated_files_in_srcdir" >&6; }
3711 if test "$generated_files_in_srcdir" = "yes"; then
3718 # -------------------
3719 # Find default linker
3720 # -------------------
3724 # Check whether --with-gnu-ld was given.
3725 if test "${with_gnu_ld+set}" = set; then :
3726 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3733 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3737 # With pre-defined ld
3739 # Check whether --with-ld was given.
3740 if test "${with_ld+set}" = set; then :
3741 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3744 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3745 if test ! -x "$DEFAULT_LINKER"; then
3746 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3747 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3749 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3753 cat >>confdefs.h
<<_ACEOF
3754 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3760 $as_echo_n "checking whether a default linker was specified... " >&6; }
3761 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3762 if test x
"$gnu_ld_flag" = x
"no"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3764 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3767 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3774 # With demangler in GNU ld
3776 # Check whether --with-demangler-in-ld was given.
3777 if test "${with_demangler_in_ld+set}" = set; then :
3778 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3784 # ----------------------
3785 # Find default assembler
3786 # ----------------------
3790 # Check whether --with-gnu-as was given.
3791 if test "${with_gnu_as+set}" = set; then :
3792 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3799 # Check whether --with-as was given.
3800 if test "${with_as+set}" = set; then :
3801 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3804 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3805 if test ! -x "$DEFAULT_ASSEMBLER"; then
3806 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3807 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3811 cat >>confdefs.h
<<_ACEOF
3812 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3818 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3819 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3820 if test x
"$gas_flag" = x
"no"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3822 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3825 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3836 # If a non-executable a.out is present (e.g. created by GNU as above even if
3837 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3838 # file, even when creating an executable, so an execution test fails.
3839 # Remove possible default executable files to avoid this.
3841 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3842 # Autoconf includes it.
3843 rm -f a.out a.exe b.out
3845 # Find the native compiler
3847 ac_cpp
='$CPP $CPPFLAGS'
3848 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3853 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false
; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC
="$CC" # Let the user override the test.
3862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir
=.
3867 for ac_exec_ext
in '' $ac_executable_extensions; do
3868 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 if test -n "$CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3890 if test -z "$ac_cv_prog_CC"; then
3892 # Extract the first word of "gcc", so it can be a program name with args.
3893 set dummy gcc
; ac_word
=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_CC
="gcc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922 $as_echo "$ac_ct_CC" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3928 if test "x$ac_ct_CC" = x
; then
3931 case $cross_compiling:$ac_tool_warned in
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935 ac_tool_warned
=yes ;;
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3946 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false
; then :
3950 $as_echo_n "(cached) " >&6
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC
="$CC" # Let the user override the test.
3955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir
=.
3960 for ac_exec_ext
in '' $ac_executable_extensions; do
3961 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 if test -n "$CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975 $as_echo "$CC" >&6; }
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3984 if test -z "$CC"; then
3985 # Extract the first word of "cc", so it can be a program name with args.
3986 set dummy cc
; ac_word
=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false
; then :
3990 $as_echo_n "(cached) " >&6
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC
="$CC" # Let the user override the test.
3996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir
=.
4001 for ac_exec_ext
in '' $ac_executable_extensions; do
4002 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4004 ac_prog_rejected
=yes
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 if test $ac_prog_rejected = yes; then
4016 # We found a bogon in the path, so make sure we never use it.
4017 set dummy
$ac_cv_prog_CC
4019 if test $# != 0; then
4020 # We chose a different compiler from the bogus one.
4021 # However, it has the same basename, so the bogon will be chosen
4022 # first if we set CC to just the basename; use the full file name.
4024 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$CC"; then
4041 if test -n "$ac_tool_prefix"; then
4042 for ac_prog
in cl.exe
4044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4045 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_CC+:} false
; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC
="$CC" # Let the user override the test.
4054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir
=.
4059 for ac_exec_ext
in '' $ac_executable_extensions; do
4060 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 if test -n "$CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 $as_echo "$CC" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4081 test -n "$CC" && break
4084 if test -z "$CC"; then
4086 for ac_prog
in cl.exe
4088 # Extract the first word of "$ac_prog", so it can be a program name with args.
4089 set dummy
$ac_prog; ac_word
=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4093 $as_echo_n "(cached) " >&6
4095 if test -n "$ac_ct_CC"; then
4096 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir
=.
4103 for ac_exec_ext
in '' $ac_executable_extensions; do
4104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_ac_ct_CC
="$ac_prog"
4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4116 if test -n "$ac_ct_CC"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4118 $as_echo "$ac_ct_CC" >&6; }
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4125 test -n "$ac_ct_CC" && break
4128 if test "x$ac_ct_CC" = x
; then
4131 case $cross_compiling:$ac_tool_warned in
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned
=yes ;;
4144 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146 as_fn_error $?
"no acceptable C compiler found in \$PATH
4147 See \`config.log' for more details" "$LINENO" 5; }
4149 # Provide some information about the compiler.
4150 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4153 for ac_option
in --version -v -V -qversion; do
4154 { { ac_try
="$ac_compiler $ac_option >&5"
4156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4163 if test -s conftest.err; then
4165 ... rest of stderr output deleted ...
4166 10q' conftest.err >conftest.er1
4167 cat conftest.er1 >&5
4169 rm -f conftest.er1 conftest.err
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4185 ac_clean_files_save=$ac_clean_files
4186 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4187 # Try to create an executable without -o first, disregard a.out.
4188 # It will help us diagnose broken compilers, and finding out an intuition
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4191 $as_echo_n "checking whether the C compiler works... " >&6; }
4192 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4194 # The possible output files:
4195 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4198 for ac_file in $ac_files
4201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4207 if { { ac_try="$ac_link_default"
4209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4210 *) ac_try_echo
=$ac_try;;
4212 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213 $as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_link_default") 2>&5
4216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217 test $ac_status = 0; }; then :
4218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4219 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4220 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4221 # so that the user can short-circuit this test for compilers unknown to
4223 for ac_file
in $ac_files ''
4225 test -f "$ac_file" ||
continue
4227 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4230 # We found the default executable, but exeext='' is most
4234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4236 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4238 # We set ac_cv_exeext here because the later test for it is not
4239 # safe: cross compilers may not add the suffix if given an `-o'
4240 # argument, so we may need to know it at that point already.
4241 # Even if this section looks crufty: it has the advantage of
4248 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4253 if test -z "$ac_file"; then :
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 $as_echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.
$ac_ext >&5
4259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4261 as_fn_error
77 "C compiler cannot create executables
4262 See \`config.log' for more details" "$LINENO" 5; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4265 $as_echo "yes" >&6; }
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4268 $as_echo_n "checking for C compiler default output file name... " >&6; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4270 $as_echo "$ac_file" >&6; }
4271 ac_exeext
=$ac_cv_exeext
4273 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4274 ac_clean_files
=$ac_clean_files_save
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4276 $as_echo_n "checking for suffix of executables... " >&6; }
4277 if { { ac_try
="$ac_link"
4279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_link") 2>&5
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }; then :
4288 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4289 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4290 # work properly (i.e., refer to `conftest.exe'), while it won't with
4292 for ac_file
in conftest.exe conftest conftest.
*; do
4293 test -f "$ac_file" ||
continue
4295 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4296 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4305 See \`config.log' for more details" "$LINENO" 5; }
4307 rm -f conftest conftest
$ac_cv_exeext
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4309 $as_echo "$ac_cv_exeext" >&6; }
4311 rm -f conftest.
$ac_ext
4312 EXEEXT
=$ac_cv_exeext
4314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4320 FILE *f = fopen ("conftest.out", "w");
4321 return ferror (f) || fclose (f) != 0;
4327 ac_clean_files
="$ac_clean_files conftest.out"
4328 # Check that the compiler produces executables we can run. If not, either
4329 # the compiler is broken, or we cross compile.
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4331 $as_echo_n "checking whether we are cross compiling... " >&6; }
4332 if test "$cross_compiling" != yes; then
4333 { { ac_try
="$ac_link"
4335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340 (eval "$ac_link") 2>&5
4342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }
4344 if { ac_try='./conftest$ac_cv_exeext'
4345 { { case "(($ac_try" in
4346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4347 *) ac_try_echo
=$ac_try;;
4349 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_try") 2>&5
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }; }; then
4357 if test "$cross_compiling" = maybe
; then
4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 as_fn_error $?
"cannot run C compiled programs.
4363 If you meant to cross compile, use \`--host'.
4364 See \`config.log' for more details" "$LINENO" 5; }
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4369 $as_echo "$cross_compiling" >&6; }
4371 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4372 ac_clean_files
=$ac_clean_files_save
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4374 $as_echo_n "checking for suffix of object files... " >&6; }
4375 if ${ac_cv_objext+:} false
; then :
4376 $as_echo_n "(cached) " >&6
4378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 rm -f conftest.o conftest.obj
4390 if { { ac_try
="$ac_compile"
4392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_compile") 2>&5
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }; then :
4401 for ac_file in conftest.o conftest.obj conftest.*; do
4402 test -f "$ac_file" || continue;
4404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4405 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4416 See \
`config.log' for more details" "$LINENO" 5; }
4418 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4421 $as_echo "$ac_cv_objext" >&6; }
4422 OBJEXT=$ac_cv_objext
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4425 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4426 if ${ac_cv_c_compiler_gnu+:} false; then :
4427 $as_echo_n "(cached) " >&6
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4443 if ac_fn_c_try_compile "$LINENO"; then :
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4453 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4454 if test $ac_compiler_gnu = yes; then
4459 ac_test_CFLAGS=${CFLAGS+set}
4460 ac_save_CFLAGS=$CFLAGS
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4462 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4463 if ${ac_cv_prog_cc_g+:} false; then :
4464 $as_echo_n "(cached) " >&6
4466 ac_save_c_werror_flag=$ac_c_werror_flag
4467 ac_c_werror_flag=yes
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4481 if ac_fn_c_try_compile "$LINENO"; then :
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4496 if ac_fn_c_try_compile "$LINENO"; then :
4499 ac_c_werror_flag=$ac_save_c_werror_flag
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4512 if ac_fn_c_try_compile "$LINENO"; then :
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 ac_c_werror_flag=$ac_save_c_werror_flag
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4523 $as_echo "$ac_cv_prog_cc_g" >&6; }
4524 if test "$ac_test_CFLAGS" = set; then
4525 CFLAGS=$ac_save_CFLAGS
4526 elif test $ac_cv_prog_cc_g = yes; then
4527 if test "$GCC" = yes; then
4533 if test "$GCC" = yes; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4540 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4541 if ${ac_cv_prog_cc_c89+:} false; then :
4542 $as_echo_n "(cached) " >&6
4544 ac_cv_prog_cc_c89=no
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4551 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4552 struct buf { int x; };
4553 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4554 static char *e (p, i)
4560 static char *f (char * (*g) (char **, int), char **p, ...)
4565 s = g (p, va_arg (v,int));
4570 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4571 function prototypes and stuff, but not '\xHH' hex character constants.
4572 These don't provoke an error unfortunately, instead are silently treated
4573 as 'x'. The following induces an error, until -std is added to get
4574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4575 array size at least. It's necessary to write '\x00'==0 to get something
4576 that's true only with -std. */
4577 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4579 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4580 inside strings and character constants. */
4582 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4584 int test (int i, double x);
4585 struct s1 {int (*f) (int a);};
4586 struct s2 {int (*f) (double a);};
4587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4593 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4601 CC="$ac_save_CC $ac_arg"
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_prog_cc_c89=$ac_arg
4605 rm -f core conftest.err conftest.$ac_objext
4606 test "x$ac_cv_prog_cc_c89" != "xno" && break
4608 rm -f conftest.$ac_ext
4613 case "x$ac_cv_prog_cc_c89" in
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4616 $as_echo "none needed" >&6; } ;;
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4619 $as_echo "unsupported" >&6; } ;;
4621 CC="$CC $ac_cv_prog_cc_c89"
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4623 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4625 if test "x$ac_cv_prog_cc_c89" != xno; then :
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 ac_cpp='$CXXCPP $CPPFLAGS'
4637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4640 if test -z "$CXX"; then
4641 if test -n "$CCC"; then
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CXX+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$CXX"; then
4655 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 if test -n "$CXX"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4677 $as_echo "$CXX" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4684 test -n "$CXX" && break
4687 if test -z "$CXX"; then
4689 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$ac_ct_CXX"; then
4699 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_ac_ct_CXX="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4719 if test -n "$ac_ct_CXX"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4721 $as_echo "$ac_ct_CXX" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 test -n "$ac_ct_CXX" && break
4731 if test "x$ac_ct_CXX" = x; then
4734 case $cross_compiling:$ac_tool_warned in
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4746 # Provide some information about the compiler.
4747 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4750 for ac_option in --version -v -V -qversion; do
4751 { { ac_try="$ac_compiler $ac_option >&5"
4753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4754 *) ac_try_echo
=$ac_try;;
4756 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4760 if test -s conftest.err
; then
4762 ... rest of stderr output deleted ...
4763 10q' conftest.err
>conftest.er1
4764 cat conftest.er1
>&5
4766 rm -f conftest.er1 conftest.err
4767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768 test $ac_status = 0; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4772 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4773 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4774 $as_echo_n "(cached) " >&6
4776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4790 if ac_fn_cxx_try_compile
"$LINENO"; then :
4795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4796 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4800 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4801 if test $ac_compiler_gnu = yes; then
4806 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4807 ac_save_CXXFLAGS
=$CXXFLAGS
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4809 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4810 if ${ac_cv_prog_cxx_g+:} false
; then :
4811 $as_echo_n "(cached) " >&6
4813 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4814 ac_cxx_werror_flag
=yes
4817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4828 if ac_fn_cxx_try_compile
"$LINENO"; then :
4829 ac_cv_prog_cxx_g
=yes
4832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4843 if ac_fn_cxx_try_compile
"$LINENO"; then :
4846 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4859 if ac_fn_cxx_try_compile
"$LINENO"; then :
4860 ac_cv_prog_cxx_g
=yes
4862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4870 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4871 if test "$ac_test_CXXFLAGS" = set; then
4872 CXXFLAGS
=$ac_save_CXXFLAGS
4873 elif test $ac_cv_prog_cxx_g = yes; then
4874 if test "$GXX" = yes; then
4880 if test "$GXX" = yes; then
4887 ac_cpp
='$CPP $CPPFLAGS'
4888 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4897 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_GNATBIND+:} false
; then :
4901 $as_echo_n "(cached) " >&6
4903 if test -n "$GNATBIND"; then
4904 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir
=.
4911 for ac_exec_ext
in '' $ac_executable_extensions; do
4912 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 GNATBIND
=$ac_cv_prog_GNATBIND
4924 if test -n "$GNATBIND"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4926 $as_echo "$GNATBIND" >&6; }
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4934 if test -z "$ac_cv_prog_GNATBIND"; then
4935 ac_ct_GNATBIND
=$GNATBIND
4936 # Extract the first word of "gnatbind", so it can be a program name with args.
4937 set dummy gnatbind
; ac_word
=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4941 $as_echo_n "(cached) " >&6
4943 if test -n "$ac_ct_GNATBIND"; then
4944 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir
=.
4951 for ac_exec_ext
in '' $ac_executable_extensions; do
4952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4964 if test -n "$ac_ct_GNATBIND"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4966 $as_echo "$ac_ct_GNATBIND" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4972 if test "x$ac_ct_GNATBIND" = x
; then
4975 case $cross_compiling:$ac_tool_warned in
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned
=yes ;;
4981 GNATBIND
=$ac_ct_GNATBIND
4984 GNATBIND
="$ac_cv_prog_GNATBIND"
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4989 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_prog_GNATMAKE+:} false
; then :
4993 $as_echo_n "(cached) " >&6
4995 if test -n "$GNATMAKE"; then
4996 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir
=.
5003 for ac_exec_ext
in '' $ac_executable_extensions; do
5004 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5005 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 GNATMAKE
=$ac_cv_prog_GNATMAKE
5016 if test -n "$GNATMAKE"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5018 $as_echo "$GNATMAKE" >&6; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5026 if test -z "$ac_cv_prog_GNATMAKE"; then
5027 ac_ct_GNATMAKE
=$GNATMAKE
5028 # Extract the first word of "gnatmake", so it can be a program name with args.
5029 set dummy gnatmake
; ac_word
=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5033 $as_echo_n "(cached) " >&6
5035 if test -n "$ac_ct_GNATMAKE"; then
5036 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 for ac_exec_ext
in '' $ac_executable_extensions; do
5044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5056 if test -n "$ac_ct_GNATMAKE"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5058 $as_echo "$ac_ct_GNATMAKE" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5064 if test "x$ac_ct_GNATMAKE" = x
; then
5067 case $cross_compiling:$ac_tool_warned in
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned
=yes ;;
5073 GNATMAKE
=$ac_ct_GNATMAKE
5076 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5080 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5081 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5082 $as_echo_n "(cached) " >&6
5084 cat >conftest.adb
<<EOF
5085 procedure conftest is begin null; end conftest;
5087 acx_cv_cc_gcc_supports_ada
=no
5088 # There is a bug in old released versions of GCC which causes the
5089 # driver to exit successfully when the appropriate language module
5090 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5091 # Therefore we must check for the error message as well as an
5092 # unsuccessful exit.
5093 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5094 # given a .adb file, but produce no object file. So we must check
5095 # if an object file was really produced to guard against this.
5096 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5097 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5098 acx_cv_cc_gcc_supports_ada
=yes
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5103 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5105 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5112 # Do configure tests with the C++ compiler, since that's what we build with.
5114 ac_cpp
='$CXXCPP $CPPFLAGS'
5115 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5120 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5121 # optimizations to be activated explicitly by the toplevel.
5123 */prev-gcc
/xgcc
*) ;;
5124 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5125 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5130 # Determine PICFLAG for target gnatlib.
5136 # PIC is the default on some targets or must not be used.
5138 # For darwin, common symbols are not allowed in MH_DYLIB files
5140 # If we are using a compiler supporting mdynamic-no-pic
5141 # and the option has been tested as safe to add, then cancel
5142 # it here, since the code generated is incompatible with shared
5144 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5145 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5149 # PIC is the default.
5152 # PIC is the default for 64-bit PA HP-UX.
5154 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5156 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5158 i
[34567]86-*-interix[3-9]*)
5159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5160 # Instead, we relocate shared libraries at runtime.
5162 i
[34567]86-*-nto-qnx*)
5163 # QNX uses GNU C++, but need to define -shared option too, otherwise
5165 PICFLAG_FOR_TARGET
='-fPIC -shared'
5167 i
[34567]86-pc-msdosdjgpp*)
5168 # DJGPP does not support shared libraries at all.
5171 # On IA64 HP-UX, PIC is the default but the pic flag
5172 # sets the default TLS model and affects inlining.
5173 PICFLAG_FOR_TARGET
=-fPIC
5176 # PIC is the default.
5178 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5179 # All AIX code is PIC.
5182 # Some targets support both -fPIC and -fpic, but prefer the latter.
5184 i
[34567]86-*-* | x86_64-
*-*)
5185 PICFLAG_FOR_TARGET
=-fpic
5187 # FIXME: Override -fPIC default in libgcc only?
5188 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5189 PICFLAG_FOR_TARGET
=-fpic
5191 # FIXME: Simplify to sh*-*-netbsd*?
5192 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5193 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5194 PICFLAG_FOR_TARGET
=-fpic
5196 # Default to -fPIC unless specified otherwise.
5198 PICFLAG_FOR_TARGET
=-fPIC
5202 # If the user explicitly uses -fpic/-fPIC, keep that.
5203 case "${CFLAGS_FOR_TARGET}" in
5205 PICFLAG_FOR_TARGET
=-fpic
5208 PICFLAG_FOR_TARGET
=-fPIC
5214 # -------------------------
5215 # Check C compiler features
5216 # -------------------------
5220 ac_cpp
='$CXXCPP $CPPFLAGS'
5221 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5225 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5226 if test -z "$CXXCPP"; then
5227 if ${ac_cv_prog_CXXCPP+:} false
; then :
5228 $as_echo_n "(cached) " >&6
5230 # Double quotes because CXXCPP needs to be expanded
5231 for CXXCPP
in "$CXX -E" "/lib/cpp"
5234 for ac_cxx_preproc_warn_flag
in '' yes
5236 # Use a header file that comes with gcc, so configuring glibc
5237 # with a fresh cross-compiler works.
5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239 # <limits.h> exists even on freestanding compilers.
5240 # On the NeXT, cc -E runs the code through the compiler's parser,
5241 # not just through cpp. "Syntax error" is here to catch this case.
5242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5245 # include <limits.h>
5247 # include <assert.h>
5251 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5254 # Broken: fails on valid input.
5257 rm -f conftest.err conftest.i conftest.
$ac_ext
5259 # OK, works on sane cases. Now check whether nonexistent headers
5260 # can be detected and how.
5261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <ac_nonexistent.h>
5265 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5266 # Broken: success on invalid input.
5269 # Passes both tests.
5273 rm -f conftest.err conftest.i conftest.
$ac_ext
5276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5277 rm -f conftest.i conftest.err conftest.
$ac_ext
5278 if $ac_preproc_ok; then :
5283 ac_cv_prog_CXXCPP
=$CXXCPP
5286 CXXCPP
=$ac_cv_prog_CXXCPP
5288 ac_cv_prog_CXXCPP
=$CXXCPP
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5291 $as_echo "$CXXCPP" >&6; }
5293 for ac_cxx_preproc_warn_flag
in '' yes
5295 # Use a header file that comes with gcc, so configuring glibc
5296 # with a fresh cross-compiler works.
5297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5298 # <limits.h> exists even on freestanding compilers.
5299 # On the NeXT, cc -E runs the code through the compiler's parser,
5300 # not just through cpp. "Syntax error" is here to catch this case.
5301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5304 # include <limits.h>
5306 # include <assert.h>
5310 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5313 # Broken: fails on valid input.
5316 rm -f conftest.err conftest.i conftest.
$ac_ext
5318 # OK, works on sane cases. Now check whether nonexistent headers
5319 # can be detected and how.
5320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #include <ac_nonexistent.h>
5324 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5325 # Broken: success on invalid input.
5328 # Passes both tests.
5332 rm -f conftest.err conftest.i conftest.
$ac_ext
5335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5336 rm -f conftest.i conftest.err conftest.
$ac_ext
5337 if $ac_preproc_ok; then :
5340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5342 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5343 See \`config.log' for more details" "$LINENO" 5; }
5347 ac_cpp
='$CXXCPP $CPPFLAGS'
5348 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5354 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5355 if ${ac_cv_path_GREP+:} false
; then :
5356 $as_echo_n "(cached) " >&6
5358 if test -z "$GREP"; then
5359 ac_path_GREP_found
=false
5360 # Loop through the user's path and test for each of PROGNAME-LIST
5361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5362 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5365 test -z "$as_dir" && as_dir
=.
5366 for ac_prog
in grep ggrep
; do
5367 for ac_exec_ext
in '' $ac_executable_extensions; do
5368 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5369 as_fn_executable_p
"$ac_path_GREP" ||
continue
5370 # Check for GNU ac_path_GREP and select it if it is found.
5371 # Check for GNU $ac_path_GREP
5372 case `"$ac_path_GREP" --version 2>&1` in
5374 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5377 $as_echo_n 0123456789 >"conftest.in"
5380 cat "conftest.in" "conftest.in" >"conftest.tmp"
5381 mv "conftest.tmp" "conftest.in"
5382 cp "conftest.in" "conftest.nl"
5383 $as_echo 'GREP' >> "conftest.nl"
5384 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5385 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5386 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5387 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5388 # Best one so far, save it but keep looking for a better one
5389 ac_cv_path_GREP
="$ac_path_GREP"
5390 ac_path_GREP_max
=$ac_count
5392 # 10*(2^10) chars as input seems more than enough
5393 test $ac_count -gt 10 && break
5395 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5398 $ac_path_GREP_found && break 3
5403 if test -z "$ac_cv_path_GREP"; then
5404 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5407 ac_cv_path_GREP
=$GREP
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5412 $as_echo "$ac_cv_path_GREP" >&6; }
5413 GREP
="$ac_cv_path_GREP"
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5417 $as_echo_n "checking for egrep... " >&6; }
5418 if ${ac_cv_path_EGREP+:} false
; then :
5419 $as_echo_n "(cached) " >&6
5421 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5422 then ac_cv_path_EGREP
="$GREP -E"
5424 if test -z "$EGREP"; then
5425 ac_path_EGREP_found
=false
5426 # Loop through the user's path and test for each of PROGNAME-LIST
5427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5428 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5431 test -z "$as_dir" && as_dir
=.
5432 for ac_prog
in egrep; do
5433 for ac_exec_ext
in '' $ac_executable_extensions; do
5434 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5435 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5436 # Check for GNU ac_path_EGREP and select it if it is found.
5437 # Check for GNU $ac_path_EGREP
5438 case `"$ac_path_EGREP" --version 2>&1` in
5440 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5443 $as_echo_n 0123456789 >"conftest.in"
5446 cat "conftest.in" "conftest.in" >"conftest.tmp"
5447 mv "conftest.tmp" "conftest.in"
5448 cp "conftest.in" "conftest.nl"
5449 $as_echo 'EGREP' >> "conftest.nl"
5450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5451 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5452 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5454 # Best one so far, save it but keep looking for a better one
5455 ac_cv_path_EGREP
="$ac_path_EGREP"
5456 ac_path_EGREP_max
=$ac_count
5458 # 10*(2^10) chars as input seems more than enough
5459 test $ac_count -gt 10 && break
5461 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5464 $ac_path_EGREP_found && break 3
5469 if test -z "$ac_cv_path_EGREP"; then
5470 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5473 ac_cv_path_EGREP
=$EGREP
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5479 $as_echo "$ac_cv_path_EGREP" >&6; }
5480 EGREP
="$ac_cv_path_EGREP"
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5484 $as_echo_n "checking for ANSI C header files... " >&6; }
5485 if ${ac_cv_header_stdc+:} false
; then :
5486 $as_echo_n "(cached) " >&6
5488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5503 if ac_fn_cxx_try_compile
"$LINENO"; then :
5504 ac_cv_header_stdc
=yes
5506 ac_cv_header_stdc
=no
5508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5510 if test $ac_cv_header_stdc = yes; then
5511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 $EGREP "memchr" >/dev
/null
2>&1; then :
5521 ac_cv_header_stdc
=no
5527 if test $ac_cv_header_stdc = yes; then
5528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5535 $EGREP "free" >/dev
/null
2>&1; then :
5538 ac_cv_header_stdc
=no
5544 if test $ac_cv_header_stdc = yes; then
5545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5546 if test "$cross_compiling" = yes; then :
5549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5553 #if ((' ' & 0x0FF) == 0x020)
5554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557 # define ISLOWER(c) \
5558 (('a' <= (c) && (c) <= 'i') \
5559 || ('j' <= (c) && (c) <= 'r') \
5560 || ('s' <= (c) && (c) <= 'z'))
5561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5569 for (i = 0; i < 256; i++)
5570 if (XOR (islower (i), ISLOWER (i))
5571 || toupper (i) != TOUPPER (i))
5576 if ac_fn_cxx_try_run
"$LINENO"; then :
5579 ac_cv_header_stdc
=no
5581 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5582 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5588 $as_echo "$ac_cv_header_stdc" >&6; }
5589 if test $ac_cv_header_stdc = yes; then
5591 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5595 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5596 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5597 inttypes.h stdint.h unistd.h
5599 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5602 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5603 cat >>confdefs.h
<<_ACEOF
5604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5613 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5614 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5621 if test "$MINIX" = yes; then
5623 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5626 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5629 $as_echo "#define _MINIX 1" >>confdefs.h
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5635 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5636 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5637 $as_echo_n "(cached) " >&6
5639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5642 # define __EXTENSIONS__ 1
5643 $ac_includes_default
5652 if ac_fn_cxx_try_compile
"$LINENO"; then :
5653 ac_cv_safe_to_define___extensions__
=yes
5655 ac_cv_safe_to_define___extensions__
=no
5657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5660 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5661 test $ac_cv_safe_to_define___extensions__ = yes &&
5662 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5664 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5666 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5668 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5670 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5674 ac_cpp
='$CPP $CPPFLAGS'
5675 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5679 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5680 # On Suns, sometimes $CPP names a directory.
5681 if test -n "$CPP" && test -d "$CPP"; then
5684 if test -z "$CPP"; then
5685 if ${ac_cv_prog_CPP+:} false
; then :
5686 $as_echo_n "(cached) " >&6
5688 # Double quotes because CPP needs to be expanded
5689 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5692 for ac_c_preproc_warn_flag
in '' yes
5694 # Use a header file that comes with gcc, so configuring glibc
5695 # with a fresh cross-compiler works.
5696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697 # <limits.h> exists even on freestanding compilers.
5698 # On the NeXT, cc -E runs the code through the compiler's parser,
5699 # not just through cpp. "Syntax error" is here to catch this case.
5700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5703 # include <limits.h>
5705 # include <assert.h>
5709 if ac_fn_c_try_cpp
"$LINENO"; then :
5712 # Broken: fails on valid input.
5715 rm -f conftest.err conftest.i conftest.
$ac_ext
5717 # OK, works on sane cases. Now check whether nonexistent headers
5718 # can be detected and how.
5719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 #include <ac_nonexistent.h>
5723 if ac_fn_c_try_cpp
"$LINENO"; then :
5724 # Broken: success on invalid input.
5727 # Passes both tests.
5731 rm -f conftest.err conftest.i conftest.
$ac_ext
5734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5735 rm -f conftest.i conftest.err conftest.
$ac_ext
5736 if $ac_preproc_ok; then :
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5749 $as_echo "$CPP" >&6; }
5751 for ac_c_preproc_warn_flag
in '' yes
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
5759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5762 # include <limits.h>
5764 # include <assert.h>
5768 if ac_fn_c_try_cpp
"$LINENO"; then :
5771 # Broken: fails on valid input.
5774 rm -f conftest.err conftest.i conftest.
$ac_ext
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <ac_nonexistent.h>
5782 if ac_fn_c_try_cpp
"$LINENO"; then :
5783 # Broken: success on invalid input.
5786 # Passes both tests.
5790 rm -f conftest.err conftest.i conftest.
$ac_ext
5793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794 rm -f conftest.i conftest.err conftest.
$ac_ext
5795 if $ac_preproc_ok; then :
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5801 See \`config.log' for more details" "$LINENO" 5; }
5805 ac_cpp
='$CXXCPP $CPPFLAGS'
5806 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5811 $as_echo_n "checking for inline... " >&6; }
5812 if ${ac_cv_c_inline+:} false
; then :
5813 $as_echo_n "(cached) " >&6
5816 for ac_kw
in inline __inline__ __inline
; do
5817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5821 static $ac_kw foo_t static_foo () {return 0; }
5822 $ac_kw foo_t foo () {return 0; }
5826 if ac_fn_cxx_try_compile
"$LINENO"; then :
5827 ac_cv_c_inline
=$ac_kw
5829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5830 test "$ac_cv_c_inline" != no
&& break
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5835 $as_echo "$ac_cv_c_inline" >&6; }
5837 case $ac_cv_c_inline in
5840 case $ac_cv_c_inline in
5842 *) ac_val
=$ac_cv_c_inline;;
5844 cat >>confdefs.h
<<_ACEOF
5846 #define inline $ac_val
5853 # Check whether --enable-largefile was given.
5854 if test "${enable_largefile+set}" = set; then :
5855 enableval
=$enable_largefile;
5858 if test "$enable_largefile" != no
; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5861 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5862 if ${ac_cv_sys_largefile_CC+:} false
; then :
5863 $as_echo_n "(cached) " >&6
5865 ac_cv_sys_largefile_CC
=no
5866 if test "$GCC" != yes; then
5869 # IRIX 6.2 and later do not support large files by default,
5870 # so use the C compiler's -n32 option if that helps.
5871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873 #include <sys/types.h>
5874 /* Check that off_t can represent 2**63 - 1 correctly.
5875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5876 since some C++ compilers masquerading as C compilers
5877 incorrectly reject 9223372036854775807. */
5878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5880 && LARGE_OFF_T % 2147483647 == 1)
5890 if ac_fn_cxx_try_compile
"$LINENO"; then :
5893 rm -f core conftest.err conftest.
$ac_objext
5895 if ac_fn_cxx_try_compile
"$LINENO"; then :
5896 ac_cv_sys_largefile_CC
=' -n32'; break
5898 rm -f core conftest.err conftest.
$ac_objext
5902 rm -f conftest.
$ac_ext
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5906 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5907 if test "$ac_cv_sys_largefile_CC" != no
; then
5908 CC
=$CC$ac_cv_sys_largefile_CC
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5912 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5913 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5914 $as_echo_n "(cached) " >&6
5917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 #include <sys/types.h>
5920 /* Check that off_t can represent 2**63 - 1 correctly.
5921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5922 since some C++ compilers masquerading as C compilers
5923 incorrectly reject 9223372036854775807. */
5924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5926 && LARGE_OFF_T % 2147483647 == 1)
5936 if ac_fn_cxx_try_compile
"$LINENO"; then :
5937 ac_cv_sys_file_offset_bits
=no
; break
5939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #define _FILE_OFFSET_BITS 64
5943 #include <sys/types.h>
5944 /* Check that off_t can represent 2**63 - 1 correctly.
5945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5946 since some C++ compilers masquerading as C compilers
5947 incorrectly reject 9223372036854775807. */
5948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5950 && LARGE_OFF_T % 2147483647 == 1)
5960 if ac_fn_cxx_try_compile
"$LINENO"; then :
5961 ac_cv_sys_file_offset_bits
=64; break
5963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5964 ac_cv_sys_file_offset_bits
=unknown
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5969 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5970 case $ac_cv_sys_file_offset_bits in #(
5973 cat >>confdefs.h
<<_ACEOF
5974 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5979 if test $ac_cv_sys_file_offset_bits = unknown
; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5981 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5982 if ${ac_cv_sys_large_files+:} false
; then :
5983 $as_echo_n "(cached) " >&6
5986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 #include <sys/types.h>
5989 /* Check that off_t can represent 2**63 - 1 correctly.
5990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5991 since some C++ compilers masquerading as C compilers
5992 incorrectly reject 9223372036854775807. */
5993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5995 && LARGE_OFF_T % 2147483647 == 1)
6005 if ac_fn_cxx_try_compile
"$LINENO"; then :
6006 ac_cv_sys_large_files
=no
; break
6008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #define _LARGE_FILES 1
6012 #include <sys/types.h>
6013 /* Check that off_t can represent 2**63 - 1 correctly.
6014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6015 since some C++ compilers masquerading as C compilers
6016 incorrectly reject 9223372036854775807. */
6017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6019 && LARGE_OFF_T % 2147483647 == 1)
6029 if ac_fn_cxx_try_compile
"$LINENO"; then :
6030 ac_cv_sys_large_files
=1; break
6032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6033 ac_cv_sys_large_files
=unknown
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6038 $as_echo "$ac_cv_sys_large_files" >&6; }
6039 case $ac_cv_sys_large_files in #(
6042 cat >>confdefs.h
<<_ACEOF
6043 #define _LARGE_FILES $ac_cv_sys_large_files
6054 # sizeof(char) is 1 by definition.
6055 # The cast to long int works around a bug in the HP C Compiler
6056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6058 # This bug is HP SR number 8606223364.
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6060 $as_echo_n "checking size of void *... " >&6; }
6061 if ${ac_cv_sizeof_void_p+:} false
; then :
6062 $as_echo_n "(cached) " >&6
6064 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6067 if test "$ac_cv_type_void_p" = yes; then
6068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6070 as_fn_error
77 "cannot compute sizeof (void *)
6071 See \`config.log' for more details" "$LINENO" 5; }
6073 ac_cv_sizeof_void_p
=0
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6079 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6083 cat >>confdefs.h
<<_ACEOF
6084 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6088 # The cast to long int works around a bug in the HP C Compiler
6089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6091 # This bug is HP SR number 8606223364.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6093 $as_echo_n "checking size of short... " >&6; }
6094 if ${ac_cv_sizeof_short+:} false
; then :
6095 $as_echo_n "(cached) " >&6
6097 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6100 if test "$ac_cv_type_short" = yes; then
6101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6103 as_fn_error
77 "cannot compute sizeof (short)
6104 See \`config.log' for more details" "$LINENO" 5; }
6106 ac_cv_sizeof_short
=0
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6112 $as_echo "$ac_cv_sizeof_short" >&6; }
6116 cat >>confdefs.h
<<_ACEOF
6117 #define SIZEOF_SHORT $ac_cv_sizeof_short
6121 # The cast to long int works around a bug in the HP C Compiler
6122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6124 # This bug is HP SR number 8606223364.
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6126 $as_echo_n "checking size of int... " >&6; }
6127 if ${ac_cv_sizeof_int+:} false
; then :
6128 $as_echo_n "(cached) " >&6
6130 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6133 if test "$ac_cv_type_int" = yes; then
6134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6136 as_fn_error
77 "cannot compute sizeof (int)
6137 See \`config.log' for more details" "$LINENO" 5; }
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6145 $as_echo "$ac_cv_sizeof_int" >&6; }
6149 cat >>confdefs.h
<<_ACEOF
6150 #define SIZEOF_INT $ac_cv_sizeof_int
6154 # The cast to long int works around a bug in the HP C Compiler
6155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6157 # This bug is HP SR number 8606223364.
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6159 $as_echo_n "checking size of long... " >&6; }
6160 if ${ac_cv_sizeof_long+:} false
; then :
6161 $as_echo_n "(cached) " >&6
6163 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6166 if test "$ac_cv_type_long" = yes; then
6167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6169 as_fn_error
77 "cannot compute sizeof (long)
6170 See \`config.log' for more details" "$LINENO" 5; }
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6178 $as_echo "$ac_cv_sizeof_long" >&6; }
6182 cat >>confdefs.h
<<_ACEOF
6183 #define SIZEOF_LONG $ac_cv_sizeof_long
6187 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6188 if test "x$ac_cv_type_long_long" = xyes
; then :
6190 cat >>confdefs.h
<<_ACEOF
6191 #define HAVE_LONG_LONG 1
6194 # The cast to long int works around a bug in the HP C Compiler
6195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6197 # This bug is HP SR number 8606223364.
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6199 $as_echo_n "checking size of long long... " >&6; }
6200 if ${ac_cv_sizeof_long_long+:} false
; then :
6201 $as_echo_n "(cached) " >&6
6203 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6206 if test "$ac_cv_type_long_long" = yes; then
6207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209 as_fn_error
77 "cannot compute sizeof (long long)
6210 See \`config.log' for more details" "$LINENO" 5; }
6212 ac_cv_sizeof_long_long
=0
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6218 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6222 cat >>confdefs.h
<<_ACEOF
6223 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6229 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6230 case $ac_cv_c_int8_t in #(
6234 cat >>confdefs.h
<<_ACEOF
6235 #define int8_t $ac_cv_c_int8_t
6240 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6241 case $ac_cv_c_int16_t in #(
6245 cat >>confdefs.h
<<_ACEOF
6246 #define int16_t $ac_cv_c_int16_t
6251 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6252 case $ac_cv_c_int32_t in #(
6256 cat >>confdefs.h
<<_ACEOF
6257 #define int32_t $ac_cv_c_int32_t
6262 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6263 case $ac_cv_c_int64_t in #(
6267 cat >>confdefs.h
<<_ACEOF
6268 #define int64_t $ac_cv_c_int64_t
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6275 $as_echo_n "checking for unsigned long long int... " >&6; }
6276 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6277 $as_echo_n "(cached) " >&6
6279 ac_cv_type_unsigned_long_long_int
=yes
6280 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6284 /* For now, do not test the preprocessor; as of 2007 there are too many
6285 implementations with broken preprocessors. Perhaps this can
6286 be revisited in 2012. In the meantime, code should not expect
6287 #if to work with literals wider than 32 bits. */
6288 /* Test literals. */
6289 long long int ll = 9223372036854775807ll;
6290 long long int nll = -9223372036854775807LL;
6291 unsigned long long int ull = 18446744073709551615ULL;
6292 /* Test constant expressions. */
6293 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6295 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6301 /* Test availability of runtime routines for shift and division. */
6302 long long int llmax = 9223372036854775807ll;
6303 unsigned long long int ullmax = 18446744073709551615ull;
6304 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6305 | (llmax / ll) | (llmax % ll)
6306 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6307 | (ullmax / ull) | (ullmax % ull));
6313 if ac_fn_cxx_try_link
"$LINENO"; then :
6316 ac_cv_type_unsigned_long_long_int
=no
6318 rm -f core conftest.err conftest.
$ac_objext \
6319 conftest
$ac_exeext conftest.
$ac_ext
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6323 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6324 if test $ac_cv_type_unsigned_long_long_int = yes; then
6326 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6333 $as_echo_n "checking for long long int... " >&6; }
6334 if ${ac_cv_type_long_long_int+:} false
; then :
6335 $as_echo_n "(cached) " >&6
6337 ac_cv_type_long_long_int
=yes
6338 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6339 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6340 if test $ac_cv_type_long_long_int = yes; then
6341 if test "$cross_compiling" = yes; then :
6344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6349 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6350 # define LLONG_MAX (HALF - 1 + HALF)
6355 long long int n = 1;
6359 long long int m = n << i;
6362 if (LLONG_MAX / 2 < m)
6370 if ac_fn_cxx_try_run
"$LINENO"; then :
6373 ac_cv_type_long_long_int
=no
6375 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6376 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6383 $as_echo "$ac_cv_type_long_long_int" >&6; }
6384 if test $ac_cv_type_long_long_int = yes; then
6386 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6392 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6393 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6395 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6398 test $ac_cv_type_long_long_int = yes \
6399 && ac_type
='long long int' \
6400 || ac_type
='long int'
6402 cat >>confdefs.h
<<_ACEOF
6403 #define intmax_t $ac_type
6410 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6411 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6413 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6416 for ac_type
in 'int' 'long int' 'long long int'; do
6417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419 $ac_includes_default
6423 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6425 return test_array [0];
6431 if ac_fn_cxx_try_compile
"$LINENO"; then :
6433 cat >>confdefs.h
<<_ACEOF
6434 #define intptr_t $ac_type
6439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6440 test -z "$ac_type" && break
6445 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6446 case $ac_cv_c_uint8_t in #(
6450 $as_echo "#define _UINT8_T 1" >>confdefs.h
6453 cat >>confdefs.h
<<_ACEOF
6454 #define uint8_t $ac_cv_c_uint8_t
6459 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6460 case $ac_cv_c_uint16_t in #(
6465 cat >>confdefs.h
<<_ACEOF
6466 #define uint16_t $ac_cv_c_uint16_t
6471 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6472 case $ac_cv_c_uint32_t in #(
6476 $as_echo "#define _UINT32_T 1" >>confdefs.h
6479 cat >>confdefs.h
<<_ACEOF
6480 #define uint32_t $ac_cv_c_uint32_t
6485 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6486 case $ac_cv_c_uint64_t in #(
6490 $as_echo "#define _UINT64_T 1" >>confdefs.h
6493 cat >>confdefs.h
<<_ACEOF
6494 #define uint64_t $ac_cv_c_uint64_t
6501 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6502 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6504 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6507 test $ac_cv_type_unsigned_long_long_int = yes \
6508 && ac_type
='unsigned long long int' \
6509 || ac_type
='unsigned long int'
6511 cat >>confdefs.h
<<_ACEOF
6512 #define uintmax_t $ac_type
6519 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6520 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6522 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6525 for ac_type
in 'unsigned int' 'unsigned long int' \
6526 'unsigned long long int'; do
6527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 $ac_includes_default
6533 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6535 return test_array [0];
6541 if ac_fn_cxx_try_compile
"$LINENO"; then :
6543 cat >>confdefs.h
<<_ACEOF
6544 #define uintptr_t $ac_type
6549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6550 test -z "$ac_type" && break
6567 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6568 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6571 # check what underlying integer type int64_t uses
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6573 $as_echo_n "checking for int64_t underlying type... " >&6; }
6574 if ${ac_cv_int64_t_type+:} false
; then :
6575 $as_echo_n "(cached) " >&6
6578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6581 #ifdef HAVE_STDINT_H
6584 template <typename T> struct X { };
6586 struct X<long> { typedef long t; };
6596 if ac_fn_cxx_try_compile
"$LINENO"; then :
6597 ac_cv_int64_t_type
=long
6599 ac_cv_int64_t_type
="long long"
6601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6604 $as_echo "$ac_cv_int64_t_type" >&6; }
6605 if test "$ac_cv_int64_t_type" = "long"; then
6607 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6613 #ifdef HAVE_STDINT_H
6616 template <typename T> struct X { };
6618 struct X<long long> { typedef long long t; };
6628 if ac_fn_cxx_try_compile
"$LINENO"; then :
6631 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6637 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6638 if ${ac_cv_std_swap_in_utility+:} false
; then :
6639 $as_echo_n "(cached) " >&6
6642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6650 int a, b; std::swap(a,b);
6655 if ac_fn_cxx_try_compile
"$LINENO"; then :
6656 ac_cv_std_swap_in_utility
=yes
6658 ac_cv_std_swap_in_utility
=no
6660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6663 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6664 if test $ac_cv_std_swap_in_utility = yes; then
6666 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6670 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6671 # If the host compiler is affected by the bug, and we build with optimization
6672 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6673 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6674 # Since there is no reliable feature check for the presence of this bug,
6675 # we simply use a GCC version number check. (This should never trigger for
6676 # stages 2 or 3 of a native bootstrap.)
6678 if test "$GCC" = yes; then
6679 saved_CXXFLAGS
="$CXXFLAGS"
6681 # The following test compilation will succeed if and only if $CXX accepts
6682 # -fno-strict-aliasing *and* is older than GCC 4.3.
6683 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6685 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6689 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6690 #error compiler not affected by placement new aliasing bug
6694 if ac_fn_cxx_try_compile
"$LINENO"; then :
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6696 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6703 CXXFLAGS
="$saved_CXXFLAGS"
6709 # ---------------------
6710 # Warnings and checking
6711 # ---------------------
6713 # Check $CC warning features (if it's GCC).
6714 # We want to use -pedantic, but we don't want warnings about
6717 # * overlong strings
6718 # * C++11 narrowing conversions in { }
6719 # So, we only use -pedantic if we can disable those warnings.
6721 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6722 # Check whether --enable-build-format-warnings was given.
6723 if test "${enable_build_format_warnings+set}" = set; then :
6724 enableval
=$enable_build_format_warnings;
6726 enable_build_format_warnings
=yes
6729 if test $enable_build_format_warnings = no
; then :
6735 ac_cpp
='$CXXCPP $CPPFLAGS'
6736 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6741 save_CXXFLAGS
="$CXXFLAGS"
6742 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6743 # Do the check with the no- prefix removed since gcc silently
6744 # accepts any -Wno-* option on purpose
6745 case $real_option in
6746 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6747 *) option
=$real_option ;;
6749 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6752 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6753 if eval \
${$as_acx_Woption+:} false
; then :
6754 $as_echo_n "(cached) " >&6
6757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6768 if ac_fn_cxx_try_compile
"$LINENO"; then :
6769 eval "$as_acx_Woption=yes"
6771 eval "$as_acx_Woption=no"
6773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6776 eval ac_res
=\$
$as_acx_Woption
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6778 $as_echo "$ac_res" >&6; }
6779 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6780 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6783 CXXFLAGS
="$save_CXXFLAGS"
6785 ac_cpp
='$CXXCPP $CPPFLAGS'
6786 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6793 ac_cpp
='$CPP $CPPFLAGS'
6794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6799 save_CFLAGS
="$CFLAGS"
6800 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6801 # Do the check with the no- prefix removed since gcc silently
6802 # accepts any -Wno-* option on purpose
6803 case $real_option in
6804 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6805 *) option
=$real_option ;;
6807 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6810 $as_echo_n "checking whether $CC supports $option... " >&6; }
6811 if eval \
${$as_acx_Woption+:} false
; then :
6812 $as_echo_n "(cached) " >&6
6815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6826 if ac_fn_c_try_compile
"$LINENO"; then :
6827 eval "$as_acx_Woption=yes"
6829 eval "$as_acx_Woption=no"
6831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6834 eval ac_res
=\$
$as_acx_Woption
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6836 $as_echo "$ac_res" >&6; }
6837 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6838 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6841 CFLAGS
="$save_CFLAGS"
6843 ac_cpp
='$CXXCPP $CPPFLAGS'
6844 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6850 ac_cpp
='$CXXCPP $CPPFLAGS'
6851 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6856 save_CXXFLAGS
="$CXXFLAGS"
6857 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6858 # Do the check with the no- prefix removed since gcc silently
6859 # accepts any -Wno-* option on purpose
6860 case $real_option in
6861 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6862 *) option
=$real_option ;;
6864 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6867 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6868 if eval \
${$as_acx_Woption+:} false
; then :
6869 $as_echo_n "(cached) " >&6
6872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6883 if ac_fn_cxx_try_compile
"$LINENO"; then :
6884 eval "$as_acx_Woption=yes"
6886 eval "$as_acx_Woption=no"
6888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6891 eval ac_res
=\$
$as_acx_Woption
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6893 $as_echo "$ac_res" >&6; }
6894 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6895 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6898 CXXFLAGS
="$save_CXXFLAGS"
6900 ac_cpp
='$CXXCPP $CPPFLAGS'
6901 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6907 ac_cpp
='$CPP $CPPFLAGS'
6908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6913 save_CFLAGS
="$CFLAGS"
6914 for real_option
in -Wold-style-definition -Wc++-compat; do
6915 # Do the check with the no- prefix removed since gcc silently
6916 # accepts any -Wno-* option on purpose
6917 case $real_option in
6918 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6919 *) option
=$real_option ;;
6921 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6924 $as_echo_n "checking whether $CC supports $option... " >&6; }
6925 if eval \
${$as_acx_Woption+:} false
; then :
6926 $as_echo_n "(cached) " >&6
6929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6940 if ac_fn_c_try_compile
"$LINENO"; then :
6941 eval "$as_acx_Woption=yes"
6943 eval "$as_acx_Woption=no"
6945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6948 eval ac_res
=\$
$as_acx_Woption
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6950 $as_echo "$ac_res" >&6; }
6951 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6952 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6955 CFLAGS
="$save_CFLAGS"
6957 ac_cpp
='$CXXCPP $CPPFLAGS'
6958 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6964 ac_cpp
='$CXXCPP $CPPFLAGS'
6965 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6969 # Do the check with the no- prefix removed from the warning options
6970 # since gcc silently accepts any -Wno-* option on purpose
6971 if test "$GXX" = yes; then :
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6973 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6974 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
6975 $as_echo_n "(cached) " >&6
6977 save_CXXFLAGS
="$CXXFLAGS"
6978 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6990 if ac_fn_cxx_try_compile
"$LINENO"; then :
6991 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6993 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6996 CXXFLAGS
="$save_CXXFLAGS"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6999 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7000 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7001 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7006 ac_cpp
='$CXXCPP $CPPFLAGS'
7007 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7013 ac_cpp
='$CXXCPP $CPPFLAGS'
7014 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7018 # Check whether --enable-werror-always was given.
7019 if test "${enable_werror_always+set}" = set; then :
7020 enableval
=$enable_werror_always;
7022 enable_werror_always
=no
7025 if test $enable_werror_always = yes; then :
7026 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7030 ac_cpp
='$CXXCPP $CPPFLAGS'
7031 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7037 # The above macros do nothing if the compiler is not GCC. However, the
7038 # Makefile has more goo to add other flags, so these variables are used
7039 # to enable warnings only for GCC.
7042 if test "x$GCC" = "xyes"; then
7043 warn_cflags
='$(GCC_WARN_CFLAGS)'
7044 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7049 # Disable exceptions and RTTI if building with g++
7051 ac_cpp
='$CPP $CPPFLAGS'
7052 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7057 save_CFLAGS
="$CFLAGS"
7058 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7059 # Do the check with the no- prefix removed since gcc silently
7060 # accepts any -Wno-* option on purpose
7061 case $real_option in
7062 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7063 *) option
=$real_option ;;
7065 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7068 $as_echo_n "checking whether $CC supports $option... " >&6; }
7069 if eval \
${$as_acx_Woption+:} false
; then :
7070 $as_echo_n "(cached) " >&6
7073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7084 if ac_fn_c_try_compile
"$LINENO"; then :
7085 eval "$as_acx_Woption=yes"
7087 eval "$as_acx_Woption=no"
7089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7092 eval ac_res
=\$
$as_acx_Woption
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7094 $as_echo "$ac_res" >&6; }
7095 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7096 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7099 CFLAGS
="$save_CFLAGS"
7101 ac_cpp
='$CXXCPP $CPPFLAGS'
7102 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7108 # Enable expensive internal checks
7110 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7114 # Check whether --enable-checking was given.
7115 if test "${enable_checking+set}" = set; then :
7116 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7119 # Determine the default checks.
7120 if test x
$is_release = x
; then
7121 ac_checking_flags
=yes,extra
7123 ac_checking_flags
=release
7127 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7128 for check
in release
$ac_checking_flags
7131 # these set all the flags to specific states
7132 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7133 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7134 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7135 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7136 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7137 ac_types_checking
=1 ;;
7138 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7139 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7140 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7141 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7142 ac_tree_checking
= ; ac_valgrind_checking
= ;
7143 ac_types_checking
= ;;
7144 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7145 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7146 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7147 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7148 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7149 ac_types_checking
=1 ;;
7150 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7151 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7152 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7153 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7154 ac_tree_checking
= ; ac_valgrind_checking
= ;
7155 ac_types_checking
= ;;
7156 # these enable particular checks
7157 assert
) ac_assert_checking
=1 ;;
7158 df
) ac_df_checking
=1 ;;
7159 extra
) ac_extra_checking
=1 ;;
7160 fold) ac_fold_checking
=1 ;;
7161 gc
) ac_gc_checking
=1 ;;
7162 gcac
) ac_gc_always_collect
=1 ;;
7163 gimple
) ac_gimple_checking
=1 ;;
7164 misc
) ac_checking
=1 ;;
7165 rtl
) ac_rtl_checking
=1 ;;
7166 rtlflag
) ac_rtlflag_checking
=1 ;;
7167 runtime
) ac_runtime_checking
=1 ;;
7168 tree
) ac_tree_checking
=1 ;;
7169 types
) ac_types_checking
=1 ;;
7170 valgrind
) ac_valgrind_checking
=1 ;;
7171 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7177 if test x
$ac_checking != x
; then
7179 $as_echo "#define CHECKING_P 1" >>confdefs.h
7181 nocommon_flag
=-fno-common
7183 $as_echo "#define CHECKING_P 0" >>confdefs.h
7187 if test x
$ac_extra_checking != x
; then
7189 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7192 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7195 if test x
$ac_df_checking != x
; then
7197 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7200 if test x
$ac_assert_checking != x
; then
7202 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7205 if test x
$ac_gimple_checking != x
; then
7207 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7211 if test x
$ac_runtime_checking != x
; then
7213 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7216 if test x
$ac_tree_checking != x
; then
7218 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7222 if test x
$ac_types_checking != x
; then
7224 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7228 if test x
$ac_rtl_checking != x
; then
7230 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7233 if test x
$ac_rtlflag_checking != x
; then
7235 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7238 if test x
$ac_gc_checking != x
; then
7240 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7243 if test x
$ac_gc_always_collect != x
; then
7245 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7248 if test x
$ac_fold_checking != x
; then
7250 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7253 valgrind_path_defines
=
7256 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7257 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7265 # It is certainly possible that there's valgrind but no valgrind.h.
7266 # GCC relies on making annotations so we must have both.
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7268 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #include <valgrind/memcheck.h>
7272 #ifndef VALGRIND_DISCARD
7273 #error VALGRIND_DISCARD not defined
7276 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7277 gcc_cv_header_valgrind_memcheck_h
=yes
7279 gcc_cv_header_valgrind_memcheck_h
=no
7281 rm -f conftest.err conftest.i conftest.
$ac_ext
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7283 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7285 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 #include <memcheck.h>
7289 #ifndef VALGRIND_DISCARD
7290 #error VALGRIND_DISCARD not defined
7293 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7294 gcc_cv_header_memcheck_h
=yes
7296 gcc_cv_header_memcheck_h
=no
7298 rm -f conftest.err conftest.i conftest.
$ac_ext
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7300 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7301 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7303 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7306 if test $gcc_cv_header_memcheck_h = yes; then
7308 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7312 if test x
$ac_valgrind_checking != x
; then
7314 # Prepare PATH_SEPARATOR.
7315 # The user is always right.
7316 if test "${PATH_SEPARATOR+set}" != set; then
7317 echo "#! /bin/sh" >conf$$.sh
7318 echo "exit 0" >>conf$$.sh
7320 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7328 # Find out how to test for executable files. Don't use a zero-byte file,
7329 # as systems may use methods other than mode bits to determine executability.
7330 cat >conf$$.
file <<_ASEOF
7334 chmod +x conf$$.
file
7335 if test -x conf$$.
file >/dev
/null
2>&1; then
7336 ac_executable_p
="test -x"
7338 ac_executable_p
="test -f"
7342 # Extract the first word of "valgrind", so it can be a program name with args.
7343 set dummy valgrind
; ac_word
=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_path_valgrind_path+:} false
; then :
7347 $as_echo_n "(cached) " >&6
7349 case "$valgrind_path" in
7351 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7354 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7355 for ac_dir
in $PATH; do
7357 test -z "$ac_dir" && ac_dir
=.
7358 for ac_exec_ext
in '' $ac_executable_extensions; do
7359 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7360 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7361 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7371 valgrind_path
="$ac_cv_path_valgrind_path"
7372 if test -n "$valgrind_path"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7374 $as_echo "$valgrind_path" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7380 if test "x$valgrind_path" = "x" \
7381 ||
(test $have_valgrind_h = no \
7382 && test $gcc_cv_header_memcheck_h = no \
7383 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7384 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7386 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7387 valgrind_command
="$valgrind_path -q"
7389 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7395 # Enable code coverage collection
7396 # Check whether --enable-coverage was given.
7397 if test "${enable_coverage+set}" = set; then :
7398 enableval
=$enable_coverage; case "${enableval}" in
7400 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7403 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7406 # a.k.a. --disable-coverage
7410 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7419 # Check whether --enable-gather-detailed-mem-stats was given.
7420 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7421 enableval
=$enable_gather_detailed_mem_stats;
7423 enable_gather_detailed_mem_stats
=no
7426 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7428 cat >>confdefs.h
<<_ACEOF
7429 #define GATHER_STATISTICS $gather_stats
7433 # Check whether --enable-valgrind-annotations was given.
7434 if test "${enable_valgrind_annotations+set}" = set; then :
7435 enableval
=$enable_valgrind_annotations;
7437 enable_valgrind_annotations
=no
7440 if test x
$enable_valgrind_annotations != xno \
7441 ||
test x
$ac_valgrind_checking != x
; then
7442 if (test $have_valgrind_h = no \
7443 && test $gcc_cv_header_memcheck_h = no \
7444 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7445 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7448 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7452 # -------------------------------
7453 # Miscenalleous configure options
7454 # -------------------------------
7458 # Check whether --with-stabs was given.
7459 if test "${with_stabs+set}" = set; then :
7460 withval
=$with_stabs; stabs
="$with_stabs"
7466 # Determine whether or not multilibs are enabled.
7467 # Check whether --enable-multilib was given.
7468 if test "${enable_multilib+set}" = set; then :
7469 enableval
=$enable_multilib;
7476 # Determine whether or not multiarch is enabled.
7477 # Check whether --enable-multiarch was given.
7478 if test "${enable_multiarch+set}" = set; then :
7479 enableval
=$enable_multiarch; case "${enableval}" in
7480 yes|no|auto
) enable_multiarch
=$enableval;;
7481 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7484 enable_multiarch
=auto
7487 if test x
${enable_multiarch} = xauto
; then
7488 if test x
${with_native_system_header_dir} != x
; then
7489 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7492 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7493 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7498 $as_echo_n "checking for multiarch configuration... " >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7501 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7503 # needed for setting the multiarch name for soft-float/hard-float ABIs
7507 # default stack clash protection guard size as power of twos in bytes.
7508 # Please keep these in sync with params.def.
7512 # Keep the default value when the option is not used to 0, this allows us to
7513 # distinguish between the cases where the user specifially set a value via
7514 # configure and when the normal default value is used.
7516 # Check whether --with-stack-clash-protection-guard-size was given.
7517 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7518 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7520 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7523 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7524 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7525 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7526 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
7530 cat >>confdefs.h
<<_ACEOF
7531 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7535 # Enable __cxa_atexit for C++.
7536 # Check whether --enable-__cxa_atexit was given.
7537 if test "${enable___cxa_atexit+set}" = set; then :
7538 enableval
=$enable___cxa_atexit;
7542 # Enable C extension for decimal float if target supports it.
7544 # Check whether --enable-decimal-float was given.
7545 if test "${enable_decimal_float+set}" = set; then :
7546 enableval
=$enable_decimal_float;
7547 case $enable_decimal_float in
7548 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7549 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7550 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7556 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7557 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7558 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7559 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7560 enable_decimal_float
=yes
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7564 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7565 enable_decimal_float
=no
7572 # x86's use BID format instead of DPD
7573 case x
$enable_decimal_float in
7576 i?
86*-*-* | x86_64
*-*-*)
7577 enable_decimal_float
=bid
7580 enable_decimal_float
=dpd
7583 default_decimal_float
=$enable_decimal_float
7586 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7587 # dependency on libdecnumber.
7588 default_decimal_float
=dpd
7595 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7597 cat >>confdefs.h
<<_ACEOF
7598 #define ENABLE_DECIMAL_FLOAT $dfp
7602 # Use default_decimal_float for dependency.
7603 enable_decimal_float
=$default_decimal_float
7605 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7607 cat >>confdefs.h
<<_ACEOF
7608 #define ENABLE_DECIMAL_BID_FORMAT $bid
7612 # Enable C extension for fixed-point arithmetic.
7613 # Check whether --enable-fixed-point was given.
7614 if test "${enable_fixed_point+set}" = set; then :
7615 enableval
=$enable_fixed_point;
7620 enable_fixed_point
=yes
7624 enable_fixed_point
=yes
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7628 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7629 enable_fixed_point
=no
7637 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7639 cat >>confdefs.h
<<_ACEOF
7640 #define ENABLE_FIXED_POINT $fixedpoint
7645 # Pass with no value to take the default
7646 # Pass with a value to specify a thread package
7647 # Check whether --enable-threads was given.
7648 if test "${enable_threads+set}" = set; then :
7649 enableval
=$enable_threads;
7655 # Check whether --enable-tls was given.
7656 if test "${enable_tls+set}" = set; then :
7657 enableval
=$enable_tls;
7660 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7661 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7669 # Check whether --enable-vtable-verify was given.
7670 if test "${enable_vtable_verify+set}" = set; then :
7671 enableval
=$enable_vtable_verify;
7673 enable_vtable_verify
=no
7676 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7678 cat >>confdefs.h
<<_ACEOF
7679 #define ENABLE_VTABLE_VERIFY $vtable_verify
7683 # Check whether --enable-objc-gc was given.
7684 if test "${enable_objc_gc+set}" = set; then :
7685 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7696 # Check whether --with-dwarf2 was given.
7697 if test "${with_dwarf2+set}" = set; then :
7698 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7704 # Check whether --enable-shared was given.
7705 if test "${enable_shared+set}" = set; then :
7706 enableval
=$enable_shared;
7707 case $enable_shared in
7711 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7712 for pkg
in $enableval; do
7713 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7727 # Check whether --enable-gcov was given.
7728 if test "${enable_gcov+set}" = set; then :
7729 enableval
=$enable_gcov;
7737 # Check whether --with-specs was given.
7738 if test "${with_specs+set}" = set; then :
7739 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7749 # Check whether --with-pkgversion was given.
7750 if test "${with_pkgversion+set}" = set; then :
7751 withval
=$with_pkgversion; case "$withval" in
7752 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7754 *) PKGVERSION
="($withval) " ;;
7765 # Check whether --with-bugurl was given.
7766 if test "${with_bugurl+set}" = set; then :
7767 withval
=$with_bugurl; case "$withval" in
7768 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7771 *) BUGURL
="$withval"
7775 BUGURL
="https://gcc.gnu.org/bugs/"
7785 REPORT_BUGS_TO
="<$BUGURL>"
7786 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7793 # Sanity check enable_languages in case someone does not run the toplevel
7794 # configure # script.
7795 # Check whether --enable-languages was given.
7796 if test "${enable_languages+set}" = set; then :
7797 enableval
=$enable_languages; case ,${enable_languages}, in
7799 # go safe -- we cannot be much sure without the toplevel
7801 # analysis of which target libs are present and usable
7805 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7810 enable_languages
=c
,${enable_languages}
7818 if test x
"$enable_as_accelerator_for" != x
; then
7820 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7822 enable_as_accelerator
=yes
7825 # In this case we expect offload compiler to be built as native, so we
7826 # need to rename the driver to avoid clashes with host's drivers.
7827 program_transform_name
="s&^&${target}-&" ;;
7829 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7830 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7831 accel_dir_suffix
=/accel
/${target_noncanonical}
7832 real_target_noncanonical
=${enable_as_accelerator_for}
7838 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7839 tgt
=`echo $tgt | sed 's/=.*//'`
7841 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7847 if test x
"$offload_targets" = x
; then
7848 offload_targets
=$tgt
7850 offload_targets
="$offload_targets,$tgt"
7854 cat >>confdefs.h
<<_ACEOF
7855 #define OFFLOAD_TARGETS "$offload_targets"
7858 if test x
"$enable_offloading" != x
; then
7860 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7864 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7868 if test x
"$enable_hsa" = x1
; then
7870 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7875 # Check whether --with-multilib-list was given.
7876 if test "${with_multilib_list+set}" = set; then :
7877 withval
=$with_multilib_list; :
7879 with_multilib_list
=default
7883 # -------------------------
7884 # Checks for other programs
7885 # -------------------------
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7888 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7890 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7891 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7892 $as_echo_n "(cached) " >&6
7894 cat >conftest.
make <<\_ACEOF
7897 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7899 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7900 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7902 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7904 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7908 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910 $as_echo "yes" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 SET_MAKE
="MAKE=${MAKE-make}"
7919 # Find some useful tools
7920 for ac_prog
in gawk mawk nawk
awk
7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
7923 set dummy
$ac_prog; ac_word
=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_prog_AWK+:} false
; then :
7927 $as_echo_n "(cached) " >&6
7929 if test -n "$AWK"; then
7930 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7936 test -z "$as_dir" && as_dir
=.
7937 for ac_exec_ext
in '' $ac_executable_extensions; do
7938 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_AWK
="$ac_prog"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 if test -n "$AWK"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7952 $as_echo "$AWK" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7959 test -n "$AWK" && break
7962 # We need awk to create options.c and options.h.
7963 # Bail out if it's missing.
7965 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7969 $as_echo_n "checking whether ln -s works... " >&6; }
7970 if ${gcc_cv_prog_LN_S+:} false
; then :
7971 $as_echo_n "(cached) " >&6
7973 rm -f conftestdata_t
7974 echo >conftestdata_f
7975 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7977 gcc_cv_prog_LN_S
="ln -s"
7979 if ln conftestdata_f conftestdata_t
2>/dev
/null
7983 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7985 gcc_cv_prog_LN_S
="cp -p"
7991 rm -f conftestdata_f conftestdata_t
7994 LN_S
="$gcc_cv_prog_LN_S"
7995 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7997 $as_echo "yes" >&6; }
7999 if test "$gcc_cv_prog_LN_S" = "ln"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8001 $as_echo "no, using ln" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8004 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8009 $as_echo_n "checking whether ln works... " >&6; }
8010 if ${acx_cv_prog_LN+:} false
; then :
8011 $as_echo_n "(cached) " >&6
8013 rm -f conftestdata_t
8014 echo >conftestdata_f
8015 if ln conftestdata_f conftestdata_t
2>/dev
/null
8021 rm -f conftestdata_f conftestdata_t
8024 if test $acx_cv_prog_LN = no
; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8027 $as_echo "no, using $LN" >&6; }
8029 LN
="$acx_cv_prog_LN"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8031 $as_echo "yes" >&6; }
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8036 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_RANLIB+:} false
; then :
8040 $as_echo_n "(cached) " >&6
8042 if test -n "$RANLIB"; then
8043 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8049 test -z "$as_dir" && as_dir
=.
8050 for ac_exec_ext
in '' $ac_executable_extensions; do
8051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 RANLIB
=$ac_cv_prog_RANLIB
8063 if test -n "$RANLIB"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8065 $as_echo "$RANLIB" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8073 if test -z "$ac_cv_prog_RANLIB"; then
8074 ac_ct_RANLIB
=$RANLIB
8075 # Extract the first word of "ranlib", so it can be a program name with args.
8076 set dummy ranlib
; ac_word
=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8080 $as_echo_n "(cached) " >&6
8082 if test -n "$ac_ct_RANLIB"; then
8083 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8089 test -z "$as_dir" && as_dir
=.
8090 for ac_exec_ext
in '' $ac_executable_extensions; do
8091 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8103 if test -n "$ac_ct_RANLIB"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8105 $as_echo "$ac_ct_RANLIB" >&6; }
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8111 if test "x$ac_ct_RANLIB" = x
; then
8114 case $cross_compiling:$ac_tool_warned in
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned
=yes ;;
8120 RANLIB
=$ac_ct_RANLIB
8123 RANLIB
="$ac_cv_prog_RANLIB"
8129 # Find a good install program. We prefer a C program (faster),
8130 # so one script is as good as another. But avoid the broken or
8131 # incompatible versions:
8132 # SysV /etc/install, /usr/sbin/install
8133 # SunOS /usr/etc/install
8134 # IRIX /sbin/install
8136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8138 # ./install, which can be erroneously created by make from ./install.sh.
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8140 $as_echo_n "checking for a BSD compatible install... " >&6; }
8141 if test -z "$INSTALL"; then
8142 if ${ac_cv_path_install+:} false
; then :
8143 $as_echo_n "(cached) " >&6
8145 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8146 for ac_dir
in $PATH; do
8147 # Account for people who put trailing slashes in PATH elements.
8149 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8151 # OSF1 and SCO ODT 3.0 have their own names for install.
8152 for ac_prog
in ginstall scoinst
install; do
8153 if test -f $ac_dir/$ac_prog; then
8154 if test $ac_prog = install &&
8155 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8156 # AIX install. It has an incompatible calling convention.
8157 # OSF/1 installbsd also uses dspmsg, but is usable.
8160 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8171 if test "${ac_cv_path_install+set}" = set; then
8172 INSTALL
="$ac_cv_path_install"
8174 # As a last resort, use the slow shell script. We don't cache a
8175 # path for INSTALL within a source directory, because that will
8176 # break other packages using the cache if that directory is
8177 # removed, or if the path is relative.
8178 INSTALL
="$ac_install_sh"
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8182 $as_echo "$INSTALL" >&6; }
8184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8185 # It thinks the first close brace ends the variable substitution.
8186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8188 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8191 # See if cmp has --ignore-initial.
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8193 $as_echo_n "checking for cmp's capabilities... " >&6; }
8194 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8195 $as_echo_n "(cached) " >&6
8199 gcc_cv_prog_cmp_skip
=slowcompare
8200 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8201 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8204 gcc_cv_prog_cmp_skip
=gnucompare
8207 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8208 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8209 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8212 gcc_cv_prog_cmp_skip
=fastcompare
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8220 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8221 make_compare_target
=$gcc_cv_prog_cmp_skip
8225 # See if we have the mktemp command.
8226 # Extract the first word of "mktemp", so it can be a program name with args.
8227 set dummy mktemp
; ac_word
=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8231 $as_echo_n "(cached) " >&6
8233 if test -n "$have_mktemp_command"; then
8234 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8240 test -z "$as_dir" && as_dir
=.
8241 for ac_exec_ext
in '' $ac_executable_extensions; do
8242 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8243 ac_cv_prog_have_mktemp_command
="yes"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8254 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8255 if test -n "$have_mktemp_command"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8257 $as_echo "$have_mktemp_command" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8265 # See if makeinfo has been installed and is modern enough
8266 # that we can use it.
8268 # Extract the first word of "makeinfo", so it can be a program name with args.
8269 set dummy makeinfo
; ac_word
=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8273 $as_echo_n "(cached) " >&6
8275 if test -n "$MAKEINFO"; then
8276 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir
=.
8283 for ac_exec_ext
in '' $ac_executable_extensions; do
8284 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_MAKEINFO
="makeinfo"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 MAKEINFO
=$ac_cv_prog_MAKEINFO
8296 if test -n "$MAKEINFO"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8298 $as_echo "$MAKEINFO" >&6; }
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8305 if test -n "$MAKEINFO"; then
8306 # Found it, now check the version.
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8308 $as_echo_n "checking for modern makeinfo... " >&6; }
8309 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8310 $as_echo_n "(cached) " >&6
8312 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8313 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8315 case $ac_prog_version in
8316 '') gcc_cv_prog_makeinfo_modern
=no
;;
8317 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8318 *) gcc_cv_prog_makeinfo_modern
=no
;;
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8323 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8325 gcc_cv_prog_makeinfo_modern
=no
8327 if test $gcc_cv_prog_makeinfo_modern = no
; then
8328 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8331 if test $gcc_cv_prog_makeinfo_modern = no
; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8333 *** Makeinfo is missing or too old.
8334 *** Info documentation will not be built." >&5
8335 $as_echo "$as_me: WARNING:
8336 *** Makeinfo is missing or too old.
8337 *** Info documentation will not be built." >&2;}
8344 # Is pod2man recent enough to regenerate manpages?
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8346 $as_echo_n "checking for recent Pod::Man... " >&6; }
8347 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8349 $as_echo "yes" >&6; }
8350 GENERATED_MANPAGES
=generated-manpages
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8358 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8363 # Extract the first word of "$ac_prog", so it can be a program name with args.
8364 set dummy
$ac_prog; ac_word
=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_prog_FLEX+:} false
; then :
8368 $as_echo_n "(cached) " >&6
8370 if test -n "$FLEX"; then
8371 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8377 test -z "$as_dir" && as_dir
=.
8378 for ac_exec_ext
in '' $ac_executable_extensions; do
8379 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_FLEX
="$ac_prog"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 FLEX
=$ac_cv_prog_FLEX
8391 if test -n "$FLEX"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8393 $as_echo "$FLEX" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8400 test -n "$FLEX" && break
8402 test -n "$FLEX" || FLEX
="$MISSING flex"
8406 for ac_prog
in bison
8408 # Extract the first word of "$ac_prog", so it can be a program name with args.
8409 set dummy
$ac_prog; ac_word
=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if ${ac_cv_prog_BISON+:} false
; then :
8413 $as_echo_n "(cached) " >&6
8415 if test -n "$BISON"; then
8416 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8422 test -z "$as_dir" && as_dir
=.
8423 for ac_exec_ext
in '' $ac_executable_extensions; do
8424 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8425 ac_cv_prog_BISON
="$ac_prog"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 BISON
=$ac_cv_prog_BISON
8436 if test -n "$BISON"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8438 $as_echo "$BISON" >&6; }
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8445 test -n "$BISON" && break
8447 test -n "$BISON" || BISON
="$MISSING bison"
8450 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8451 # check for build == host before using them.
8454 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8455 && test -d ..
/binutils
; then
8456 NM
='${objdir}/../binutils/nm-new'
8458 # Extract the first word of "nm", so it can be a program name with args.
8459 set dummy nm
; ac_word
=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if ${ac_cv_prog_NM+:} false
; then :
8463 $as_echo_n "(cached) " >&6
8465 if test -n "$NM"; then
8466 ac_cv_prog_NM
="$NM" # Let the user override the test.
8468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8472 test -z "$as_dir" && as_dir
=.
8473 for ac_exec_ext
in '' $ac_executable_extensions; do
8474 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8487 if test -n "$NM"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8489 $as_echo "$NM" >&6; }
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8499 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8500 && test -d ..
/binutils
; then
8501 AR
='${objdir}/../binutils/ar'
8503 # Extract the first word of "ar", so it can be a program name with args.
8504 set dummy
ar; ac_word
=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if ${ac_cv_prog_AR+:} false
; then :
8508 $as_echo_n "(cached) " >&6
8510 if test -n "$AR"; then
8511 ac_cv_prog_AR
="$AR" # Let the user override the test.
8513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8517 test -z "$as_dir" && as_dir
=.
8518 for ac_exec_ext
in '' $ac_executable_extensions; do
8519 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8532 if test -n "$AR"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8534 $as_echo "$AR" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8543 # The jit documentation looks better if built with sphinx, but can be
8544 # built with texinfo if sphinx is not available.
8545 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8546 # Extract the first word of "sphinx-build", so it can be a program name with args.
8547 set dummy sphinx-build
; ac_word
=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8551 $as_echo_n "(cached) " >&6
8553 if test -n "$doc_build_sys"; then
8554 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir
=.
8561 for ac_exec_ext
in '' $ac_executable_extensions; do
8562 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_doc_build_sys
="sphinx"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8574 doc_build_sys
=$ac_cv_prog_doc_build_sys
8575 if test -n "$doc_build_sys"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8577 $as_echo "$doc_build_sys" >&6; }
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8585 # --------------------
8586 # Checks for C headers
8587 # --------------------
8589 # Need to reject headers which give warnings, so that the -Werror bootstrap
8590 # works later. *sigh* This needs to come before all header checks.
8592 ac_c_preproc_warn_flag
=yes
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8595 $as_echo_n "checking for ANSI C header files... " >&6; }
8596 if ${ac_cv_header_stdc+:} false
; then :
8597 $as_echo_n "(cached) " >&6
8599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8614 if ac_fn_cxx_try_compile
"$LINENO"; then :
8615 ac_cv_header_stdc
=yes
8617 ac_cv_header_stdc
=no
8619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8621 if test $ac_cv_header_stdc = yes; then
8622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8629 $EGREP "memchr" >/dev
/null
2>&1; then :
8632 ac_cv_header_stdc
=no
8638 if test $ac_cv_header_stdc = yes; then
8639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8646 $EGREP "free" >/dev
/null
2>&1; then :
8649 ac_cv_header_stdc
=no
8655 if test $ac_cv_header_stdc = yes; then
8656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8657 if test "$cross_compiling" = yes; then :
8660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8664 #if ((' ' & 0x0FF) == 0x020)
8665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8668 # define ISLOWER(c) \
8669 (('a' <= (c) && (c) <= 'i') \
8670 || ('j' <= (c) && (c) <= 'r') \
8671 || ('s' <= (c) && (c) <= 'z'))
8672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8680 for (i = 0; i < 256; i++)
8681 if (XOR (islower (i), ISLOWER (i))
8682 || toupper (i) != TOUPPER (i))
8687 if ac_fn_cxx_try_run
"$LINENO"; then :
8690 ac_cv_header_stdc
=no
8692 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8693 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8699 $as_echo "$ac_cv_header_stdc" >&6; }
8700 if test $ac_cv_header_stdc = yes; then
8702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8707 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8708 if ${ac_cv_header_time+:} false
; then :
8709 $as_echo_n "(cached) " >&6
8711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 #include <sys/types.h>
8714 #include <sys/time.h>
8720 if ((struct tm *) 0)
8726 if ac_fn_cxx_try_compile
"$LINENO"; then :
8727 ac_cv_header_time
=yes
8729 ac_cv_header_time
=no
8731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8734 $as_echo "$ac_cv_header_time" >&6; }
8735 if test $ac_cv_header_time = yes; then
8737 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8742 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8743 if ${gcc_cv_header_string+:} false
; then :
8744 $as_echo_n "(cached) " >&6
8746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8749 #include <strings.h>
8758 if ac_fn_cxx_try_compile
"$LINENO"; then :
8759 gcc_cv_header_string
=yes
8761 gcc_cv_header_string
=no
8763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8766 $as_echo "$gcc_cv_header_string" >&6; }
8767 if test $gcc_cv_header_string = yes; then
8769 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8774 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8775 if ${ac_cv_header_sys_wait_h+:} false
; then :
8776 $as_echo_n "(cached) " >&6
8778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8780 #include <sys/types.h>
8781 #include <sys/wait.h>
8783 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8786 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8794 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8799 if ac_fn_cxx_try_compile
"$LINENO"; then :
8800 ac_cv_header_sys_wait_h
=yes
8802 ac_cv_header_sys_wait_h
=no
8804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8807 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8808 if test $ac_cv_header_sys_wait_h = yes; then
8810 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8815 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8816 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8817 $as_echo_n "(cached) " >&6
8819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 #include <sys/types.h>
8822 #include <termios.h>
8828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8829 $EGREP "yes" >/dev
/null
2>&1; then :
8830 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8832 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8838 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8840 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8842 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8843 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8844 $as_echo_n "(cached) " >&6
8846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 #include <sys/types.h>
8849 #include <sys/ioctl.h>
8855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8856 $EGREP "yes" >/dev
/null
2>&1; then :
8857 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8859 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8865 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8867 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8869 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8874 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8875 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8876 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8877 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8879 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8880 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8881 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8882 cat >>confdefs.h
<<_ACEOF
8883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8890 # Check for thread headers.
8891 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8892 if test "x$ac_cv_header_thread_h" = xyes
; then :
8898 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8899 if test "x$ac_cv_header_pthread_h" = xyes
; then :
8906 # These tests can't be done till we know if we have limits.h.
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8908 $as_echo_n "checking for CHAR_BIT... " >&6; }
8909 if ${gcc_cv_decl_char_bit+:} false
; then :
8910 $as_echo_n "(cached) " >&6
8912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #ifdef HAVE_LIMITS_H
8921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8922 $EGREP "found" >/dev
/null
2>&1; then :
8923 gcc_cv_decl_char_bit
=yes
8925 gcc_cv_decl_char_bit
=no
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8932 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8933 if test $gcc_cv_decl_char_bit = no
; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8935 $as_echo_n "checking number of bits in a byte... " >&6; }
8936 if ${gcc_cv_c_nbby+:} false
; then :
8937 $as_echo_n "(cached) " >&6
8941 while test $i -lt 65; do
8942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8949 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8950 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8956 if ac_fn_cxx_try_compile
"$LINENO"; then :
8957 gcc_cv_c_nbby
=$i; break
8959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8962 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8966 $as_echo "$gcc_cv_c_nbby" >&6; }
8967 if test $gcc_cv_c_nbby = failed
; then
8968 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
8971 cat >>confdefs.h
<<_ACEOF
8972 #define CHAR_BIT $gcc_cv_c_nbby
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8978 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8979 if ${ac_cv_c_bigendian+:} false
; then :
8980 $as_echo_n "(cached) " >&6
8982 ac_cv_c_bigendian
=unknown
8983 # See if we're dealing with a universal compiler.
8984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #ifndef __APPLE_CC__
8987 not a universal capable compiler
8992 if ac_fn_cxx_try_compile
"$LINENO"; then :
8994 # Check for potential -arch flags. It is not universal unless
8995 # there are at least two -arch flags with different values.
8998 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8999 if test -n "$ac_prev"; then
9001 i?
86 | x86_64 | ppc | ppc64
)
9002 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9005 ac_cv_c_bigendian
=universal
9011 elif test "x$ac_word" = "x-arch"; then
9016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9017 if test $ac_cv_c_bigendian = unknown
; then
9018 # See if sys/param.h defines the BYTE_ORDER macro.
9019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 #include <sys/types.h>
9022 #include <sys/param.h>
9027 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9028 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9037 if ac_fn_cxx_try_compile
"$LINENO"; then :
9038 # It does; now see whether it defined to BIG_ENDIAN or not.
9039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 #include <sys/types.h>
9042 #include <sys/param.h>
9047 #if BYTE_ORDER != BIG_ENDIAN
9055 if ac_fn_cxx_try_compile
"$LINENO"; then :
9056 ac_cv_c_bigendian
=yes
9058 ac_cv_c_bigendian
=no
9060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9064 if test $ac_cv_c_bigendian = unknown
; then
9065 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9073 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9081 if ac_fn_cxx_try_compile
"$LINENO"; then :
9082 # It does; now see whether it defined to _BIG_ENDIAN or not.
9083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9098 if ac_fn_cxx_try_compile
"$LINENO"; then :
9099 ac_cv_c_bigendian
=yes
9101 ac_cv_c_bigendian
=no
9103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9107 if test $ac_cv_c_bigendian = unknown
; then
9108 # Compile a test program.
9109 if test "$cross_compiling" = yes; then :
9110 # Try to guess by grepping values from an object file.
9111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 short int ascii_mm[] =
9114 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9115 short int ascii_ii[] =
9116 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9117 int use_ascii (int i) {
9118 return ascii_mm[i] + ascii_ii[i];
9120 short int ebcdic_ii[] =
9121 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9122 short int ebcdic_mm[] =
9123 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9124 int use_ebcdic (int i) {
9125 return ebcdic_mm[i] + ebcdic_ii[i];
9132 return use_ascii (foo) == use_ebcdic (foo);
9137 if ac_fn_cxx_try_compile
"$LINENO"; then :
9138 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9139 ac_cv_c_bigendian
=yes
9141 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9142 if test "$ac_cv_c_bigendian" = unknown
; then
9143 ac_cv_c_bigendian
=no
9145 # finding both strings is unlikely to happen, but who knows?
9146 ac_cv_c_bigendian
=unknown
9150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 $ac_includes_default
9159 /* Are we little or big endian? From Harbison&Steele. */
9163 char c[sizeof (long int)];
9166 return u.c[sizeof (long int) - 1] == 1;
9172 if ac_fn_cxx_try_run
"$LINENO"; then :
9173 ac_cv_c_bigendian
=no
9175 ac_cv_c_bigendian
=yes
9177 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9178 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9184 $as_echo "$ac_cv_c_bigendian" >&6; }
9185 case $ac_cv_c_bigendian in #(
9187 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9193 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9197 as_fn_error $?
"unknown endianness
9198 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9202 # ----------------------
9203 # Checks for C++ headers
9204 # ----------------------
9207 ac_cpp
='$CXXCPP $CPPFLAGS'
9208 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9209 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9210 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9212 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9213 if test -z "$CXXCPP"; then
9214 if ${ac_cv_prog_CXXCPP+:} false
; then :
9215 $as_echo_n "(cached) " >&6
9217 # Double quotes because CXXCPP needs to be expanded
9218 for CXXCPP
in "$CXX -E" "/lib/cpp"
9221 for ac_cxx_preproc_warn_flag
in '' yes
9223 # Use a header file that comes with gcc, so configuring glibc
9224 # with a fresh cross-compiler works.
9225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9226 # <limits.h> exists even on freestanding compilers.
9227 # On the NeXT, cc -E runs the code through the compiler's parser,
9228 # not just through cpp. "Syntax error" is here to catch this case.
9229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9232 # include <limits.h>
9234 # include <assert.h>
9238 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9241 # Broken: fails on valid input.
9244 rm -f conftest.err conftest.i conftest.
$ac_ext
9246 # OK, works on sane cases. Now check whether nonexistent headers
9247 # can be detected and how.
9248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 #include <ac_nonexistent.h>
9252 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9253 # Broken: success on invalid input.
9256 # Passes both tests.
9260 rm -f conftest.err conftest.i conftest.
$ac_ext
9263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9264 rm -f conftest.i conftest.err conftest.
$ac_ext
9265 if $ac_preproc_ok; then :
9270 ac_cv_prog_CXXCPP
=$CXXCPP
9273 CXXCPP
=$ac_cv_prog_CXXCPP
9275 ac_cv_prog_CXXCPP
=$CXXCPP
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9278 $as_echo "$CXXCPP" >&6; }
9280 for ac_cxx_preproc_warn_flag
in '' yes
9282 # Use a header file that comes with gcc, so configuring glibc
9283 # with a fresh cross-compiler works.
9284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9285 # <limits.h> exists even on freestanding compilers.
9286 # On the NeXT, cc -E runs the code through the compiler's parser,
9287 # not just through cpp. "Syntax error" is here to catch this case.
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9291 # include <limits.h>
9293 # include <assert.h>
9297 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9300 # Broken: fails on valid input.
9303 rm -f conftest.err conftest.i conftest.
$ac_ext
9305 # OK, works on sane cases. Now check whether nonexistent headers
9306 # can be detected and how.
9307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 #include <ac_nonexistent.h>
9311 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9312 # Broken: success on invalid input.
9315 # Passes both tests.
9319 rm -f conftest.err conftest.i conftest.
$ac_ext
9322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9323 rm -f conftest.i conftest.err conftest.
$ac_ext
9324 if $ac_preproc_ok; then :
9327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9330 See \`config.log' for more details" >&5
9331 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9332 See \`config.log' for more details" >&2;}; }
9336 ac_cpp
='$CXXCPP $CPPFLAGS'
9337 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9338 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9339 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9342 for ac_header
in unordered_map
9344 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9345 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9346 cat >>confdefs.h
<<_ACEOF
9347 #define HAVE_UNORDERED_MAP 1
9353 for ac_header
in tr1/unordered_map
9355 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9356 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9357 cat >>confdefs.h
<<_ACEOF
9358 #define HAVE_TR1_UNORDERED_MAP 1
9364 for ac_header
in ext
/hash_map
9366 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9367 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9368 cat >>confdefs.h
<<_ACEOF
9369 #define HAVE_EXT_HASH_MAP 1
9377 # Dependency checking.
9380 rm -rf .tst
2>/dev
/null
9381 mkdir .tst
2>/dev
/null
9382 if test -d .tst
; then
9387 rmdir .tst
2>/dev
/null
9389 DEPDIR
="${am__leading_dot}deps"
9391 ac_config_commands
="$ac_config_commands depdir"
9394 ac_config_commands
="$ac_config_commands gccdepdir"
9397 depcc
="$CXX" am_compiler_list
=
9399 am_depcomp
=$ac_aux_dir/depcomp
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9401 $as_echo_n "checking dependency style of $depcc... " >&6; }
9402 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9403 $as_echo_n "(cached) " >&6
9405 if test -f "$am_depcomp"; then
9406 # We make a subdir and do the tests there. Otherwise we can end up
9407 # making bogus files that we don't know about and never remove. For
9408 # instance it was reported that on HP-UX the gcc test will end up
9409 # making a dummy file named `D' -- because `-MD' means `put the output
9412 # Copy depcomp to subdir because otherwise we won't find it if we're
9413 # using a relative directory.
9414 cp "$am_depcomp" conftest.dir
9416 # We will build objects and dependencies in a subdirectory because
9417 # it helps to detect inapplicable dependency modes. For instance
9418 # both Tru64's cc and ICC support -MD to output dependencies as a
9419 # side effect of compilation, but ICC will put the dependencies in
9420 # the current directory while Tru64 will put them in the object
9424 am_cv_CXX_dependencies_compiler_type
=none
9425 if test "$am_compiler_list" = ""; then
9426 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9428 for depmode
in $am_compiler_list; do
9429 if test $depmode = none
; then break; fi
9431 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9432 # Setup a source with many dependencies, because some compilers
9433 # like to wrap large dependency lists on column 80 (with \), and
9434 # we should not choose a depcomp mode which is confused by this.
9436 # We need to recreate these files for each test, as the compiler may
9437 # overwrite some of them when testing with obscure command lines.
9438 # This happens at least with the AIX C compiler.
9440 for i
in 1 2 3 4 5 6; do
9441 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9443 # Solaris 8's {/usr,}/bin/sh.
9444 touch sub
/conftst
$i.h
9446 echo "include sub/conftest.Po" > confmf
9448 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9449 # mode. It turns out that the SunPro C++ compiler does not properly
9450 # handle `-M -o', and we need to detect this.
9451 depcmd
="depmode=$depmode \
9452 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9453 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9454 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9455 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9456 if env
$depcmd > conftest.err
2>&1 &&
9457 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9458 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9459 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9460 # icc doesn't choke on unknown options, it will just issue warnings
9461 # or remarks (even with -Werror). So we grep stderr for any message
9462 # that says an option was ignored or not supported.
9463 # When given -MP, icc 7.0 and 7.1 complain thusly:
9464 # icc: Command line warning: ignoring option '-M'; no argument required
9465 # The diagnosis changed in icc 8.0:
9466 # icc: Command line remark: option '-MP' not supported
9467 if (grep 'ignoring option' conftest.err ||
9468 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9469 am_cv_CXX_dependencies_compiler_type
=$depmode
9470 $as_echo "$as_me:$LINENO: success" >&5
9474 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9475 sed -e 's/^/| /' < conftest.err
>&5
9481 am_cv_CXX_dependencies_compiler_type
=none
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9486 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9487 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9488 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9489 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9499 # These libraries may be used by collect2.
9500 # We may need a special search path to get them linked.
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9502 $as_echo_n "checking for collect2 libraries... " >&6; }
9503 if ${gcc_cv_collect2_libs+:} false
; then :
9504 $as_echo_n "(cached) " >&6
9507 for libs
in '' -lld -lmld \
9508 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9509 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9530 if ac_fn_cxx_try_link
"$LINENO"; then :
9531 gcc_cv_collect2_libs
="$libs"; break
9533 rm -f core conftest.err conftest.
$ac_objext \
9534 conftest
$ac_exeext conftest.
$ac_ext
9537 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9540 $as_echo "$gcc_cv_collect2_libs" >&6; }
9541 case $gcc_cv_collect2_libs in
9543 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9547 # When building Ada code on Alpha, we need exc_resume which is usually in
9548 # -lexc. So test for it.
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9552 $as_echo_n "checking for library containing exc_resume... " >&6; }
9553 if ${ac_cv_search_exc_resume+:} false
; then :
9554 $as_echo_n "(cached) " >&6
9556 ac_func_search_save_LIBS
=$LIBS
9557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9570 return exc_resume ();
9575 for ac_lib
in '' exc
; do
9576 if test -z "$ac_lib"; then
9577 ac_res
="none required"
9580 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9582 if ac_fn_cxx_try_link
"$LINENO"; then :
9583 ac_cv_search_exc_resume
=$ac_res
9585 rm -f core conftest.err conftest.
$ac_objext \
9587 if ${ac_cv_search_exc_resume+:} false
; then :
9591 if ${ac_cv_search_exc_resume+:} false
; then :
9594 ac_cv_search_exc_resume
=no
9597 LIBS
=$ac_func_search_save_LIBS
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9600 $as_echo "$ac_cv_search_exc_resume" >&6; }
9601 ac_res
=$ac_cv_search_exc_resume
9602 if test "$ac_res" != no
; then :
9603 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9611 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9615 $as_echo_n "checking for library containing kstat_open... " >&6; }
9616 if ${ac_cv_search_kstat_open+:} false
; then :
9617 $as_echo_n "(cached) " >&6
9619 ac_func_search_save_LIBS
=$LIBS
9620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9623 /* Override any GCC internal prototype to avoid an error.
9624 Use char because int might match the return type of a GCC
9625 builtin and then its argument prototype would still apply. */
9633 return kstat_open ();
9638 for ac_lib
in '' kstat
; do
9639 if test -z "$ac_lib"; then
9640 ac_res
="none required"
9643 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9645 if ac_fn_cxx_try_link
"$LINENO"; then :
9646 ac_cv_search_kstat_open
=$ac_res
9648 rm -f core conftest.err conftest.
$ac_objext \
9650 if ${ac_cv_search_kstat_open+:} false
; then :
9654 if ${ac_cv_search_kstat_open+:} false
; then :
9657 ac_cv_search_kstat_open
=no
9660 LIBS
=$ac_func_search_save_LIBS
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9663 $as_echo "$ac_cv_search_kstat_open" >&6; }
9664 ac_res
=$ac_cv_search_kstat_open
9665 if test "$ac_res" != no
; then :
9666 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9670 EXTRA_GCC_LIBS
="$LIBS"
9674 # Some systems put ldexp and frexp in libm instead of libc; assume
9675 # they're both in the same place. jcf-dump needs them.
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9679 $as_echo_n "checking for library containing ldexp... " >&6; }
9680 if ${ac_cv_search_ldexp+:} false
; then :
9681 $as_echo_n "(cached) " >&6
9683 ac_func_search_save_LIBS
=$LIBS
9684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9702 for ac_lib
in '' m
; do
9703 if test -z "$ac_lib"; then
9704 ac_res
="none required"
9707 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9709 if ac_fn_cxx_try_link
"$LINENO"; then :
9710 ac_cv_search_ldexp
=$ac_res
9712 rm -f core conftest.err conftest.
$ac_objext \
9714 if ${ac_cv_search_ldexp+:} false
; then :
9718 if ${ac_cv_search_ldexp+:} false
; then :
9721 ac_cv_search_ldexp
=no
9724 LIBS
=$ac_func_search_save_LIBS
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9727 $as_echo "$ac_cv_search_ldexp" >&6; }
9728 ac_res
=$ac_cv_search_ldexp
9729 if test "$ac_res" != no
; then :
9730 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9738 # Some systems need dlopen
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9742 $as_echo_n "checking for library containing dlopen... " >&6; }
9743 if ${ac_cv_search_dlopen+:} false
; then :
9744 $as_echo_n "(cached) " >&6
9746 ac_func_search_save_LIBS
=$LIBS
9747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9765 for ac_lib
in '' dl
; do
9766 if test -z "$ac_lib"; then
9767 ac_res
="none required"
9770 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9772 if ac_fn_cxx_try_link
"$LINENO"; then :
9773 ac_cv_search_dlopen
=$ac_res
9775 rm -f core conftest.err conftest.
$ac_objext \
9777 if ${ac_cv_search_dlopen+:} false
; then :
9781 if ${ac_cv_search_dlopen+:} false
; then :
9784 ac_cv_search_dlopen
=no
9787 LIBS
=$ac_func_search_save_LIBS
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9790 $as_echo "$ac_cv_search_dlopen" >&6; }
9791 ac_res
=$ac_cv_search_dlopen
9792 if test "$ac_res" != no
; then :
9793 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9801 # Use <inttypes.h> only if it exists,
9802 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9805 $as_echo_n "checking for inttypes.h... " >&6; }
9806 if ${gcc_cv_header_inttypes_h+:} false
; then :
9807 $as_echo_n "(cached) " >&6
9809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 #define __STDC_FORMAT_MACROS
9812 #include <sys/types.h>
9813 #include <inttypes.h>
9825 if ac_fn_cxx_try_compile
"$LINENO"; then :
9826 gcc_cv_header_inttypes_h
=yes
9828 gcc_cv_header_inttypes_h
=no
9830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9834 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9835 if test $gcc_cv_header_inttypes_h = yes; then
9837 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9843 for ac_func
in times clock kill getrlimit setrlimit atoq \
9844 popen sysconf strsignal getrusage nl_langinfo \
9845 gettimeofday mbstowcs wcswidth mmap setlocale \
9846 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
9848 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9849 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9850 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9851 cat >>confdefs.h
<<_ACEOF
9852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9859 if test x
$ac_cv_func_mbstowcs = xyes
; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9861 $as_echo_n "checking whether mbstowcs works... " >&6; }
9862 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
9863 $as_echo_n "(cached) " >&6
9865 if test "$cross_compiling" = yes; then :
9866 gcc_cv_func_mbstowcs_works
=yes
9868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9877 if ac_fn_cxx_try_run
"$LINENO"; then :
9878 gcc_cv_func_mbstowcs_works
=yes
9880 gcc_cv_func_mbstowcs_works
=no
9882 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9883 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9888 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9889 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9891 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9896 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9897 if test "x$ac_cv_type_ssize_t" = xyes
; then :
9901 cat >>confdefs.h
<<_ACEOF
9907 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9908 if test "x$ac_cv_type_caddr_t" = xyes
; then :
9912 cat >>confdefs.h
<<_ACEOF
9913 #define caddr_t char *
9920 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9921 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
9922 gcc_header_sys_mman_h
=yes
9924 gcc_header_sys_mman_h
=no
9927 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9928 if test "x$ac_cv_func_mmap" = xyes
; then :
9934 if test "$gcc_header_sys_mman_h" != yes \
9935 ||
test "$gcc_func_mmap" != yes; then
9936 gcc_cv_func_mmap_file
=no
9937 gcc_cv_func_mmap_dev_zero
=no
9938 gcc_cv_func_mmap_anon
=no
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9941 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9942 if ${gcc_cv_func_mmap_file+:} false
; then :
9943 $as_echo_n "(cached) " >&6
9945 # Add a system to this blacklist if
9946 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9947 # memory area containing the same data that you'd get if you applied
9948 # read() to the same fd. The only system known to have a problem here
9949 # is VMS, where text files have record structure.
9952 gcc_cv_func_mmap_file
=no
;;
9954 gcc_cv_func_mmap_file
=yes;;
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9958 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9960 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9961 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
9962 $as_echo_n "(cached) " >&6
9964 # Add a system to this blacklist if it has mmap() but /dev/zero
9965 # does not exist, or if mmapping /dev/zero does not give anonymous
9966 # zeroed pages with both the following properties:
9967 # 1. If you map N consecutive pages in with one call, and then
9968 # unmap any subset of those pages, the pages that were not
9969 # explicitly unmapped remain accessible.
9970 # 2. If you map two adjacent blocks of memory and then unmap them
9971 # both at once, they must both go away.
9972 # Systems known to be in this category are Windows (all variants),
9975 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9976 gcc_cv_func_mmap_dev_zero
=no
;;
9978 gcc_cv_func_mmap_dev_zero
=yes;;
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9982 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9984 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9986 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9987 if ${gcc_cv_decl_map_anon+:} false
; then :
9988 $as_echo_n "(cached) " >&6
9990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 #include <sys/types.h>
9993 #include <sys/mman.h>
9996 #ifndef MAP_ANONYMOUS
9997 #define MAP_ANONYMOUS MAP_ANON
10003 int n = MAP_ANONYMOUS;
10008 if ac_fn_cxx_try_compile
"$LINENO"; then :
10009 gcc_cv_decl_map_anon
=yes
10011 gcc_cv_decl_map_anon
=no
10013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10016 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10018 if test $gcc_cv_decl_map_anon = no
; then
10019 gcc_cv_func_mmap_anon
=no
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10022 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10023 if ${gcc_cv_func_mmap_anon+:} false
; then :
10024 $as_echo_n "(cached) " >&6
10026 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10027 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10028 # doesn't give anonymous zeroed pages with the same properties listed
10029 # above for use of /dev/zero.
10030 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10032 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10033 gcc_cv_func_mmap_anon
=no
;;
10035 gcc_cv_func_mmap_anon
=yes;;
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10039 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10043 if test $gcc_cv_func_mmap_file = yes; then
10045 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10048 if test $gcc_cv_func_mmap_dev_zero = yes; then
10050 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10053 if test $gcc_cv_func_mmap_anon = yes; then
10055 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10062 # Under VMS, vfork works very differently than on Unix. The standard test
10063 # won't work, and it isn't easily adaptable. It makes more sense to
10065 ac_cv_func_vfork_works
=yes
10068 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10069 if test "x$ac_cv_type_pid_t" = xyes
; then :
10073 cat >>confdefs.h
<<_ACEOF
10079 for ac_header
in vfork.h
10081 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10082 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10083 cat >>confdefs.h
<<_ACEOF
10084 #define HAVE_VFORK_H 1
10090 for ac_func
in fork vfork
10092 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10093 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10094 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10095 cat >>confdefs.h
<<_ACEOF
10096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10102 if test "x$ac_cv_func_fork" = xyes
; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10104 $as_echo_n "checking for working fork... " >&6; }
10105 if ${ac_cv_func_fork_works+:} false
; then :
10106 $as_echo_n "(cached) " >&6
10108 if test "$cross_compiling" = yes; then :
10109 ac_cv_func_fork_works
=cross
10111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 $ac_includes_default
10118 /* By Ruediger Kuhlmann. */
10119 return fork () < 0;
10125 if ac_fn_cxx_try_run
"$LINENO"; then :
10126 ac_cv_func_fork_works
=yes
10128 ac_cv_func_fork_works
=no
10130 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10131 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10136 $as_echo "$ac_cv_func_fork_works" >&6; }
10139 ac_cv_func_fork_works
=$ac_cv_func_fork
10141 if test "x$ac_cv_func_fork_works" = xcross
; then
10143 *-*-amigaos* |
*-*-msdosdjgpp*)
10144 # Override, as these systems have only a dummy fork() stub
10145 ac_cv_func_fork_works
=no
10148 ac_cv_func_fork_works
=yes
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10152 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10154 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10155 if test "x$ac_cv_func_vfork" = xyes
; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10157 $as_echo_n "checking for working vfork... " >&6; }
10158 if ${ac_cv_func_vfork_works+:} false
; then :
10159 $as_echo_n "(cached) " >&6
10161 if test "$cross_compiling" = yes; then :
10162 ac_cv_func_vfork_works
=cross
10164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10166 /* Thanks to Paul Eggert for this test. */
10167 $ac_includes_default
10168 #include <sys/wait.h>
10169 #ifdef HAVE_VFORK_H
10170 # include <vfork.h>
10172 /* On some sparc systems, changes by the child to local and incoming
10173 argument registers are propagated back to the parent. The compiler
10174 is told about this with #include <vfork.h>, but some compilers
10175 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10176 static variable whose address is put into a register that is
10177 clobbered by the vfork. */
10180 sparc_address_test (int arg)
10182 sparc_address_test (arg) int arg;
10185 static pid_t child;
10203 pid_t parent = getpid ();
10206 sparc_address_test (0);
10211 /* Here is another test for sparc vfork register problems. This
10212 test uses lots of local variables, at least as many local
10213 variables as main has allocated so far including compiler
10214 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10215 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10216 reuse the register of parent for one of the local variables,
10217 since it will think that parent can't possibly be used any more
10218 in this routine. Assigning to the local variable will thus
10219 munge parent in the parent process. */
10221 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10222 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10223 /* Convince the compiler that p..p7 are live; otherwise, it might
10224 use the same hardware register for all 8 local variables. */
10225 if (p != p1 || p != p2 || p != p3 || p != p4
10226 || p != p5 || p != p6 || p != p7)
10229 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10230 from child file descriptors. If the child closes a descriptor
10231 before it execs or exits, this munges the parent's descriptor
10232 as well. Test for this by closing stdout in the child. */
10233 _exit(close(fileno(stdout)) != 0);
10238 while (wait(&status) != child)
10241 /* Was there some problem with vforking? */
10244 /* Did the child fail? (This shouldn't happen.) */
10247 /* Did the vfork/compiler bug occur? */
10248 || parent != getpid()
10250 /* Did the file descriptor bug occur? */
10251 || fstat(fileno(stdout), &st) != 0
10256 if ac_fn_cxx_try_run
"$LINENO"; then :
10257 ac_cv_func_vfork_works
=yes
10259 ac_cv_func_vfork_works
=no
10261 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10262 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10267 $as_echo "$ac_cv_func_vfork_works" >&6; }
10270 if test "x$ac_cv_func_fork_works" = xcross
; then
10271 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10273 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10276 if test "x$ac_cv_func_vfork_works" = xyes
; then
10278 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10282 $as_echo "#define vfork fork" >>confdefs.h
10285 if test "x$ac_cv_func_fork_works" = xyes
; then
10287 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10293 if test "X$prefix" = "XNONE"; then
10294 acl_final_prefix
="$ac_default_prefix"
10296 acl_final_prefix
="$prefix"
10298 if test "X$exec_prefix" = "XNONE"; then
10299 acl_final_exec_prefix
='${prefix}'
10301 acl_final_exec_prefix
="$exec_prefix"
10303 acl_save_prefix
="$prefix"
10304 prefix
="$acl_final_prefix"
10305 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10306 prefix
="$acl_save_prefix"
10309 # Check whether --with-gnu-ld was given.
10310 if test "${with_gnu_ld+set}" = set; then :
10311 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10316 # Prepare PATH_SEPARATOR.
10317 # The user is always right.
10318 if test "${PATH_SEPARATOR+set}" != set; then
10319 echo "#! /bin/sh" >conf$$.sh
10320 echo "exit 0" >>conf$$.sh
10322 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10330 if test "$GCC" = yes; then
10331 # Check if gcc -print-prog-name=ld gives a path.
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10333 $as_echo_n "checking for ld used by GCC... " >&6; }
10336 # gcc leaves a trailing carriage return which upsets mingw
10337 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10339 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10342 # Accept absolute paths.
10343 [\\/]* |
[A-Za-z
]:[\\/]*)
10344 re_direlt
='/[^/][^/]*/\.\./'
10345 # Canonicalize the path of ld
10346 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10347 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10348 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10350 test -z "$LD" && LD
="$ac_prog"
10353 # If it fails, then pretend we aren't using GCC.
10357 # If it is relative, then search for the first ld in PATH.
10358 with_gnu_ld
=unknown
10361 elif test "$with_gnu_ld" = yes; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10363 $as_echo_n "checking for GNU ld... " >&6; }
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10366 $as_echo_n "checking for non-GNU ld... " >&6; }
10368 if ${acl_cv_path_LD+:} false
; then :
10369 $as_echo_n "(cached) " >&6
10371 if test -z "$LD"; then
10372 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10373 for ac_dir
in $PATH; do
10374 test -z "$ac_dir" && ac_dir
=.
10375 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10376 acl_cv_path_LD
="$ac_dir/$ac_prog"
10377 # Check to see if the program is GNU ld. I'd rather use --version,
10378 # but apparently some GNU ld's only accept -v.
10379 # Break only if it was the GNU/non-GNU ld that we prefer.
10380 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10381 test "$with_gnu_ld" != no
&& break
10383 test "$with_gnu_ld" != yes && break
10389 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10393 LD
="$acl_cv_path_LD"
10394 if test -n "$LD"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10396 $as_echo "$LD" >&6; }
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10401 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10404 if ${acl_cv_prog_gnu_ld+:} false
; then :
10405 $as_echo_n "(cached) " >&6
10407 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10408 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10409 acl_cv_prog_gnu_ld
=yes
10411 acl_cv_prog_gnu_ld
=no
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10415 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10416 with_gnu_ld
=$acl_cv_prog_gnu_ld
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10421 $as_echo_n "checking for shared library run path origin... " >&6; }
10422 if ${acl_cv_rpath+:} false
; then :
10423 $as_echo_n "(cached) " >&6
10426 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10427 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10429 rm -f .
/conftest.sh
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10434 $as_echo "$acl_cv_rpath" >&6; }
10436 libext
="$acl_cv_libext"
10437 shlibext
="$acl_cv_shlibext"
10438 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10439 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10440 hardcode_direct
="$acl_cv_hardcode_direct"
10441 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10442 # Check whether --enable-rpath was given.
10443 if test "${enable_rpath+set}" = set; then :
10444 enableval
=$enable_rpath; :
10458 acl_save_prefix
="$prefix"
10459 prefix
="$acl_final_prefix"
10460 acl_save_exec_prefix
="$exec_prefix"
10461 exec_prefix
="$acl_final_exec_prefix"
10463 eval additional_includedir
=\"$includedir\"
10464 eval additional_libdir
=\"$libdir\"
10466 exec_prefix
="$acl_save_exec_prefix"
10467 prefix
="$acl_save_prefix"
10470 # Check whether --with-libiconv-prefix was given.
10471 if test "${with_libiconv_prefix+set}" = set; then :
10472 withval
=$with_libiconv_prefix;
10473 if test "X$withval" = "Xno"; then
10476 if test "X$withval" = "X"; then
10478 acl_save_prefix
="$prefix"
10479 prefix
="$acl_final_prefix"
10480 acl_save_exec_prefix
="$exec_prefix"
10481 exec_prefix
="$acl_final_exec_prefix"
10483 eval additional_includedir
=\"$includedir\"
10484 eval additional_libdir
=\"$libdir\"
10486 exec_prefix
="$acl_save_exec_prefix"
10487 prefix
="$acl_save_prefix"
10490 additional_includedir
="$withval/include"
10491 additional_libdir
="$withval/lib"
10502 names_already_handled
=
10503 names_next_round
='iconv '
10504 while test -n "$names_next_round"; do
10505 names_this_round
="$names_next_round"
10507 for name
in $names_this_round; do
10509 for n
in $names_already_handled; do
10510 if test "$n" = "$name"; then
10511 already_handled
=yes
10515 if test -z "$already_handled"; then
10516 names_already_handled
="$names_already_handled $name"
10517 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10518 eval value
=\"\
$HAVE_LIB$uppername\"
10519 if test -n "$value"; then
10520 if test "$value" = yes; then
10521 eval value
=\"\
$LIB$uppername\"
10522 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10523 eval value
=\"\
$LTLIB$uppername\"
10524 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10533 if test $use_additional = yes; then
10534 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10535 found_dir
="$additional_libdir"
10536 found_so
="$additional_libdir/lib$name.$shlibext"
10537 if test -f "$additional_libdir/lib$name.la"; then
10538 found_la
="$additional_libdir/lib$name.la"
10541 if test -f "$additional_libdir/lib$name.$libext"; then
10542 found_dir
="$additional_libdir"
10543 found_a
="$additional_libdir/lib$name.$libext"
10544 if test -f "$additional_libdir/lib$name.la"; then
10545 found_la
="$additional_libdir/lib$name.la"
10550 if test "X$found_dir" = "X"; then
10551 for x
in $LDFLAGS $LTLIBICONV; do
10553 acl_save_prefix
="$prefix"
10554 prefix
="$acl_final_prefix"
10555 acl_save_exec_prefix
="$exec_prefix"
10556 exec_prefix
="$acl_final_exec_prefix"
10558 exec_prefix
="$acl_save_exec_prefix"
10559 prefix
="$acl_save_prefix"
10563 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10564 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10566 found_so
="$dir/lib$name.$shlibext"
10567 if test -f "$dir/lib$name.la"; then
10568 found_la
="$dir/lib$name.la"
10571 if test -f "$dir/lib$name.$libext"; then
10573 found_a
="$dir/lib$name.$libext"
10574 if test -f "$dir/lib$name.la"; then
10575 found_la
="$dir/lib$name.la"
10581 if test "X$found_dir" != "X"; then
10586 if test "X$found_dir" != "X"; then
10587 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10588 if test "X$found_so" != "X"; then
10589 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10590 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10593 for x
in $ltrpathdirs; do
10594 if test "X$x" = "X$found_dir"; then
10599 if test -z "$haveit"; then
10600 ltrpathdirs
="$ltrpathdirs $found_dir"
10602 if test "$hardcode_direct" = yes; then
10603 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10605 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10606 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10608 for x
in $rpathdirs; do
10609 if test "X$x" = "X$found_dir"; then
10614 if test -z "$haveit"; then
10615 rpathdirs
="$rpathdirs $found_dir"
10619 for x
in $LDFLAGS $LIBICONV; do
10621 acl_save_prefix
="$prefix"
10622 prefix
="$acl_final_prefix"
10623 acl_save_exec_prefix
="$exec_prefix"
10624 exec_prefix
="$acl_final_exec_prefix"
10626 exec_prefix
="$acl_save_exec_prefix"
10627 prefix
="$acl_save_prefix"
10629 if test "X$x" = "X-L$found_dir"; then
10634 if test -z "$haveit"; then
10635 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10637 if test "$hardcode_minus_L" != no
; then
10638 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10640 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10646 if test "X$found_a" != "X"; then
10647 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10649 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10652 additional_includedir
=
10653 case "$found_dir" in
10655 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10656 additional_includedir
="$basedir/include"
10659 if test "X$additional_includedir" != "X"; then
10660 if test "X$additional_includedir" != "X/usr/include"; then
10662 if test "X$additional_includedir" = "X/usr/local/include"; then
10663 if test -n "$GCC"; then
10665 linux
*) haveit
=yes;;
10669 if test -z "$haveit"; then
10670 for x
in $CPPFLAGS $INCICONV; do
10672 acl_save_prefix
="$prefix"
10673 prefix
="$acl_final_prefix"
10674 acl_save_exec_prefix
="$exec_prefix"
10675 exec_prefix
="$acl_final_exec_prefix"
10677 exec_prefix
="$acl_save_exec_prefix"
10678 prefix
="$acl_save_prefix"
10680 if test "X$x" = "X-I$additional_includedir"; then
10685 if test -z "$haveit"; then
10686 if test -d "$additional_includedir"; then
10687 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10693 if test -n "$found_la"; then
10694 save_libdir
="$libdir"
10695 case "$found_la" in
10696 */* |
*\\*) .
"$found_la" ;;
10697 *) .
"./$found_la" ;;
10699 libdir
="$save_libdir"
10700 for dep
in $dependency_libs; do
10703 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10704 if test "X$additional_libdir" != "X/usr/lib"; then
10706 if test "X$additional_libdir" = "X/usr/local/lib"; then
10707 if test -n "$GCC"; then
10709 linux
*) haveit
=yes;;
10713 if test -z "$haveit"; then
10715 for x
in $LDFLAGS $LIBICONV; do
10717 acl_save_prefix
="$prefix"
10718 prefix
="$acl_final_prefix"
10719 acl_save_exec_prefix
="$exec_prefix"
10720 exec_prefix
="$acl_final_exec_prefix"
10722 exec_prefix
="$acl_save_exec_prefix"
10723 prefix
="$acl_save_prefix"
10725 if test "X$x" = "X-L$additional_libdir"; then
10730 if test -z "$haveit"; then
10731 if test -d "$additional_libdir"; then
10732 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10736 for x
in $LDFLAGS $LTLIBICONV; do
10738 acl_save_prefix
="$prefix"
10739 prefix
="$acl_final_prefix"
10740 acl_save_exec_prefix
="$exec_prefix"
10741 exec_prefix
="$acl_final_exec_prefix"
10743 exec_prefix
="$acl_save_exec_prefix"
10744 prefix
="$acl_save_prefix"
10746 if test "X$x" = "X-L$additional_libdir"; then
10751 if test -z "$haveit"; then
10752 if test -d "$additional_libdir"; then
10753 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10760 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10761 if test "$enable_rpath" != no
; then
10763 for x
in $rpathdirs; do
10764 if test "X$x" = "X$dir"; then
10769 if test -z "$haveit"; then
10770 rpathdirs
="$rpathdirs $dir"
10773 for x
in $ltrpathdirs; do
10774 if test "X$x" = "X$dir"; then
10779 if test -z "$haveit"; then
10780 ltrpathdirs
="$ltrpathdirs $dir"
10785 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10788 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10791 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10792 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10798 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10799 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10805 if test "X$rpathdirs" != "X"; then
10806 if test -n "$hardcode_libdir_separator"; then
10808 for found_dir
in $rpathdirs; do
10809 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10811 acl_save_libdir
="$libdir"
10813 eval flag
=\"$hardcode_libdir_flag_spec\"
10814 libdir
="$acl_save_libdir"
10815 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10817 for found_dir
in $rpathdirs; do
10818 acl_save_libdir
="$libdir"
10819 libdir
="$found_dir"
10820 eval flag
=\"$hardcode_libdir_flag_spec\"
10821 libdir
="$acl_save_libdir"
10822 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10826 if test "X$ltrpathdirs" != "X"; then
10827 for found_dir
in $ltrpathdirs; do
10828 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10839 $as_echo_n "checking for iconv... " >&6; }
10840 if ${am_cv_func_iconv+:} false
; then :
10841 $as_echo_n "(cached) " >&6
10844 am_cv_func_iconv
="no, consider installing GNU libiconv"
10846 am_save_CPPFLAGS
="$CPPFLAGS"
10847 CPPFLAGS
="$CPPFLAGS $INCICONV"
10848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850 #include <stdlib.h>
10855 iconv_t cd = iconv_open("","");
10856 iconv(cd,NULL,NULL,NULL,NULL);
10862 if ac_fn_cxx_try_link
"$LINENO"; then :
10863 am_cv_func_iconv
=yes
10865 rm -f core conftest.err conftest.
$ac_objext \
10866 conftest
$ac_exeext conftest.
$ac_ext
10867 CPPFLAGS
="$am_save_CPPFLAGS"
10869 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10870 for _libs
in .libs _libs
; do
10871 am_save_CPPFLAGS
="$CPPFLAGS"
10872 am_save_LIBS
="$LIBS"
10873 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10874 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877 #include <stdlib.h>
10882 iconv_t cd = iconv_open("","");
10883 iconv(cd,NULL,NULL,NULL,NULL);
10889 if ac_fn_cxx_try_link
"$LINENO"; then :
10890 INCICONV
="-I../libiconv/include"
10891 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10892 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10893 am_cv_lib_iconv
=yes
10894 am_cv_func_iconv
=yes
10896 rm -f core conftest.err conftest.
$ac_objext \
10897 conftest
$ac_exeext conftest.
$ac_ext
10898 CPPFLAGS
="$am_save_CPPFLAGS"
10899 LIBS
="$am_save_LIBS"
10900 if test "$am_cv_func_iconv" = "yes"; then
10906 if test "$am_cv_func_iconv" != yes; then
10907 am_save_CPPFLAGS
="$CPPFLAGS"
10908 am_save_LIBS
="$LIBS"
10909 CPPFLAGS
="$CPPFLAGS $INCICONV"
10910 LIBS
="$LIBS $LIBICONV"
10911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10913 #include <stdlib.h>
10918 iconv_t cd = iconv_open("","");
10919 iconv(cd,NULL,NULL,NULL,NULL);
10925 if ac_fn_cxx_try_link
"$LINENO"; then :
10926 am_cv_lib_iconv
=yes
10927 am_cv_func_iconv
=yes
10929 rm -f core conftest.err conftest.
$ac_objext \
10930 conftest
$ac_exeext conftest.
$ac_ext
10931 CPPFLAGS
="$am_save_CPPFLAGS"
10932 LIBS
="$am_save_LIBS"
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10937 $as_echo "$am_cv_func_iconv" >&6; }
10938 if test "$am_cv_func_iconv" = yes; then
10940 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10943 if test "$am_cv_lib_iconv" = yes; then
10945 for element
in $INCICONV; do
10947 for x
in $CPPFLAGS; do
10949 acl_save_prefix
="$prefix"
10950 prefix
="$acl_final_prefix"
10951 acl_save_exec_prefix
="$exec_prefix"
10952 exec_prefix
="$acl_final_exec_prefix"
10954 exec_prefix
="$acl_save_exec_prefix"
10955 prefix
="$acl_save_prefix"
10957 if test "X$x" = "X$element"; then
10962 if test -z "$haveit"; then
10963 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10968 $as_echo_n "checking how to link with libiconv... " >&6; }
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10970 $as_echo "$LIBICONV" >&6; }
10978 if test "$am_cv_func_iconv" = yes; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10980 $as_echo_n "checking for iconv declaration... " >&6; }
10981 if ${am_cv_proto_iconv+:} false
; then :
10982 $as_echo_n "(cached) " >&6
10985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10988 #include <stdlib.h>
10994 #if defined(__STDC__) || defined(__cplusplus)
10995 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11008 if ac_fn_cxx_try_compile
"$LINENO"; then :
11009 am_cv_proto_iconv_arg1
=""
11011 am_cv_proto_iconv_arg1
="const"
11013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11014 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);"
11017 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11019 }$am_cv_proto_iconv" >&5
11021 }$am_cv_proto_iconv" >&6; }
11023 cat >>confdefs.h
<<_ACEOF
11024 #define ICONV_CONST $am_cv_proto_iconv_arg1
11030 # Until we have in-tree GNU iconv:
11032 if test -f "$LTLIBICONV"; then
11033 LIBICONV_DEP
=$LTLIBICONV
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11039 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11040 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11041 $as_echo_n "(cached) " >&6
11043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045 #include <locale.h>
11054 if ac_fn_cxx_try_link
"$LINENO"; then :
11055 am_cv_val_LC_MESSAGES
=yes
11057 am_cv_val_LC_MESSAGES
=no
11059 rm -f core conftest.err conftest.
$ac_objext \
11060 conftest
$ac_exeext conftest.
$ac_ext
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11063 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11064 if test $am_cv_val_LC_MESSAGES = yes; then
11066 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11073 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11074 if ${am_cv_langinfo_codeset+:} false
; then :
11075 $as_echo_n "(cached) " >&6
11077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079 #include <langinfo.h>
11083 char* cs = nl_langinfo(CODESET);
11088 if ac_fn_cxx_try_link
"$LINENO"; then :
11089 am_cv_langinfo_codeset
=yes
11091 am_cv_langinfo_codeset
=no
11093 rm -f core conftest.err conftest.
$ac_objext \
11094 conftest
$ac_exeext conftest.
$ac_ext
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11098 $as_echo "$am_cv_langinfo_codeset" >&6; }
11099 if test $am_cv_langinfo_codeset = yes; then
11101 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11106 # We will need to find libiberty.h and ansidecl.h
11107 saved_CFLAGS
="$CFLAGS"
11108 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11109 saved_CXXFLAGS
="$CXXFLAGS"
11110 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11112 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11113 # normal autoconf function for these. But force definition of
11114 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11115 # basename handling in libiberty.h.
11116 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11117 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11118 #undef HAVE_DECL_BASENAME
11119 #define HAVE_DECL_BASENAME 1
11120 #include \"ansidecl.h\"
11121 #include \"system.h\"
11123 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11129 cat >>confdefs.h
<<_ACEOF
11130 #define HAVE_DECL_BASENAME $ac_have_decl
11132 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11133 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11134 #undef HAVE_DECL_BASENAME
11135 #define HAVE_DECL_BASENAME 1
11136 #include \"ansidecl.h\"
11137 #include \"system.h\"
11139 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11145 cat >>confdefs.h
<<_ACEOF
11146 #define HAVE_DECL_STRSTR $ac_have_decl
11150 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11151 madvise stpcpy strnlen strsignal strverscmp \
11152 strtol strtoul strtoll strtoull setenv unsetenv \
11153 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11154 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
11156 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11158 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11159 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11160 $as_echo_n "(cached) " >&6
11162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11165 #define $ac_tr_decl 1
11167 #include "ansidecl.h"
11168 #include "system.h"
11174 char *(*pfn) = (char *(*)) $ac_func ;
11180 if ac_fn_cxx_try_compile
"$LINENO"; then :
11181 eval "gcc_cv_have_decl_$ac_func=yes"
11183 eval "gcc_cv_have_decl_$ac_func=no"
11185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11188 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11190 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11191 #define $ac_tr_decl 1
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11197 #define $ac_tr_decl 0
11205 for ac_func
in getrlimit setrlimit getrusage
11207 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11209 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11210 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11211 $as_echo_n "(cached) " >&6
11213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11216 #define $ac_tr_decl 1
11218 #include "ansidecl.h"
11219 #include "system.h"
11220 #ifdef HAVE_SYS_RESOURCE_H
11221 #include <sys/resource.h>
11229 char *(*pfn) = (char *(*)) $ac_func ;
11235 if ac_fn_cxx_try_compile
"$LINENO"; then :
11236 eval "gcc_cv_have_decl_$ac_func=yes"
11238 eval "gcc_cv_have_decl_$ac_func=no"
11240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11243 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11246 #define $ac_tr_decl 1
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11252 #define $ac_tr_decl 0
11260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11263 #include "ansidecl.h"
11264 #include "system.h"
11265 #ifdef HAVE_SYS_RESOURCE_H
11266 #include <sys/resource.h>
11277 if ac_fn_cxx_try_compile
"$LINENO"; then :
11281 $as_echo "#define rlim_t long" >>confdefs.h
11284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11286 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11287 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11288 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11289 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11290 for ac_func
in ldgetname
11292 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11294 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11295 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11296 $as_echo_n "(cached) " >&6
11298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11301 #define $ac_tr_decl 1
11303 #include "ansidecl.h"
11304 #include "system.h"
11305 #ifdef HAVE_LDFCN_H
11316 char *(*pfn) = (char *(*)) $ac_func ;
11322 if ac_fn_cxx_try_compile
"$LINENO"; then :
11323 eval "gcc_cv_have_decl_$ac_func=yes"
11325 eval "gcc_cv_have_decl_$ac_func=no"
11327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11330 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11332 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11333 #define $ac_tr_decl 1
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11339 #define $ac_tr_decl 0
11347 for ac_func
in times
11349 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11351 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11352 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11353 $as_echo_n "(cached) " >&6
11355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11358 #define $ac_tr_decl 1
11360 #include "ansidecl.h"
11361 #include "system.h"
11362 #ifdef HAVE_SYS_TIMES_H
11363 #include <sys/times.h>
11371 char *(*pfn) = (char *(*)) $ac_func ;
11377 if ac_fn_cxx_try_compile
"$LINENO"; then :
11378 eval "gcc_cv_have_decl_$ac_func=yes"
11380 eval "gcc_cv_have_decl_$ac_func=no"
11382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11385 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11387 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11388 #define $ac_tr_decl 1
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11394 #define $ac_tr_decl 0
11402 for ac_func
in sigaltstack
11404 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11406 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11407 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11408 $as_echo_n "(cached) " >&6
11410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 #define $ac_tr_decl 1
11415 #include "ansidecl.h"
11416 #include "system.h"
11417 #include <signal.h>
11424 char *(*pfn) = (char *(*)) $ac_func ;
11430 if ac_fn_cxx_try_compile
"$LINENO"; then :
11431 eval "gcc_cv_have_decl_$ac_func=yes"
11433 eval "gcc_cv_have_decl_$ac_func=no"
11435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11438 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11441 #define $ac_tr_decl 1
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11447 #define $ac_tr_decl 0
11455 # More time-related stuff.
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11457 $as_echo_n "checking for struct tms... " >&6; }
11458 if ${ac_cv_struct_tms+:} false
; then :
11459 $as_echo_n "(cached) " >&6
11462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11465 #include "ansidecl.h"
11466 #include "system.h"
11467 #ifdef HAVE_SYS_TIMES_H
11468 #include <sys/times.h>
11479 if ac_fn_cxx_try_compile
"$LINENO"; then :
11480 ac_cv_struct_tms
=yes
11482 ac_cv_struct_tms
=no
11484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11487 $as_echo "$ac_cv_struct_tms" >&6; }
11488 if test $ac_cv_struct_tms = yes; then
11490 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11494 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11495 # revisit after autoconf 2.50.
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11497 $as_echo_n "checking for clock_t... " >&6; }
11498 if ${gcc_cv_type_clock_t+:} false
; then :
11499 $as_echo_n "(cached) " >&6
11502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 #include "ansidecl.h"
11506 #include "system.h"
11516 if ac_fn_cxx_try_compile
"$LINENO"; then :
11517 gcc_cv_type_clock_t
=yes
11519 gcc_cv_type_clock_t
=no
11521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11524 $as_echo "$gcc_cv_type_clock_t" >&6; }
11525 if test $gcc_cv_type_clock_t = yes; then
11527 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11531 # Check if F_SETLKW is supported by fcntl.
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11533 $as_echo_n "checking for F_SETLKW... " >&6; }
11534 if ${ac_cv_f_setlkw+:} false
; then :
11535 $as_echo_n "(cached) " >&6
11538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11551 return fcntl (1, F_SETLKW, &fl);
11556 if ac_fn_cxx_try_compile
"$LINENO"; then :
11561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11564 $as_echo "$ac_cv_f_setlkw" >&6; }
11565 if test $ac_cv_f_setlkw = yes; then
11567 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11571 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11572 CFLAGS
="$saved_CFLAGS"
11573 CXXFLAGS
="$saved_CXXFLAGS"
11575 # mkdir takes a single argument on some systems.
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11577 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11578 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11579 $as_echo_n "(cached) " >&6
11581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11584 #include <sys/types.h>
11585 #ifdef HAVE_SYS_STAT_H
11586 # include <sys/stat.h>
11588 #ifdef HAVE_UNISTD_H
11589 # include <unistd.h>
11591 #ifdef HAVE_DIRECT_H
11592 # include <direct.h>
11602 if ac_fn_cxx_try_compile
"$LINENO"; then :
11603 gcc_cv_mkdir_takes_one_arg
=no
11605 gcc_cv_mkdir_takes_one_arg
=yes
11607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11610 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11611 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11613 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11624 # With Setjmp/Longjmp based exception handling.
11625 # Check whether --enable-sjlj-exceptions was given.
11626 if test "${enable_sjlj_exceptions+set}" = set; then :
11627 enableval
=$enable_sjlj_exceptions; case $target in
11629 if test $enableval != yes; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11631 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11636 force_sjlj_exceptions
=yes
11640 force_sjlj_exceptions
=yes
11644 force_sjlj_exceptions
=yes
11648 force_sjlj_exceptions
=no
11653 if test $force_sjlj_exceptions = yes; then
11654 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11656 cat >>confdefs.h
<<_ACEOF
11657 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11662 # --------------------------------------------------------
11663 # Build, host, and target specific configuration fragments
11664 # --------------------------------------------------------
11666 # Collect build-machine-specific information.
11667 .
${srcdir}/config.build ||
exit 1
11669 # Collect host-machine-specific information.
11670 .
${srcdir}/config.
host ||
exit 1
11674 # Collect target-machine-specific information.
11675 .
${srcdir}/config.gcc ||
exit 1
11677 extra_objs
="${host_extra_objs} ${extra_objs}"
11678 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11680 # Default the target-machine variables that were not explicitly set.
11681 if test x
"$tm_file" = x
11682 then tm_file
=$cpu_type/$cpu_type.h
; fi
11684 if test x
"$extra_headers" = x
11685 then extra_headers
=; fi
11687 if test x
$md_file = x
11688 then md_file
=$cpu_type/$cpu_type.md
; fi
11690 if test x
$out_file = x
11691 then out_file
=$cpu_type/$cpu_type.c
; fi
11693 if test x
"$tmake_file" = x
11694 then tmake_file
=$cpu_type/t-
$cpu_type
11697 # Support --enable-initfini-array.
11698 if test x
$enable_initfini_array != xno
; then
11699 tm_file
="${tm_file} initfini-array.h"
11702 if test x
"$dwarf2" = xyes
11703 then tm_file
="$tm_file tm-dwarf2.h"
11706 # Say what files are being used for the output code and MD file.
11707 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11708 echo "Using \`$srcdir/config/$md_file' as machine description file."
11710 # If any of the xm_file variables contain nonexistent files, warn
11711 # about them and drop them.
11714 for x
in $build_xm_file; do
11715 if test -f $srcdir/config
/$x
11717 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11718 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11721 build_xm_file
="$bx"
11724 for x
in $host_xm_file; do
11725 if test -f $srcdir/config
/$x
11727 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11728 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11734 for x
in $xm_file; do
11735 if test -f $srcdir/config
/$x
11737 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11738 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11744 for f
in $tm_file; do
11747 if test $count = ax
; then
11748 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11750 echo "Using the following target machine macro files:"
11751 for f
in $tm_file; do
11752 echo " $srcdir/config/$f"
11756 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11758 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11762 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11764 cat >>confdefs.h
<<_ACEOF
11765 #define HAVE_GNU_LD $gnu_ld_bool
11769 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11771 cat >>confdefs.h
<<_ACEOF
11772 #define HAVE_GNU_AS $gnu_as_bool
11777 for f
in $host_xm_file; do
11780 if test $count = a
; then
11782 elif test $count = ax
; then
11783 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11785 echo "Using the following host machine macro files:"
11786 for f
in $host_xm_file; do
11787 echo " $srcdir/config/$f"
11790 echo "Using ${out_host_hook_obj} for host machine hooks."
11792 if test "$host_xm_file" != "$build_xm_file"; then
11794 for f
in $build_xm_file; do
11797 if test $count = a
; then
11799 elif test $count = ax
; then
11800 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11802 echo "Using the following build machine macro files:"
11803 for f
in $build_xm_file; do
11804 echo " $srcdir/config/$f"
11809 if test -n "$configured_native_system_header_dir"; then
11810 native_system_header_dir
=$configured_native_system_header_dir
11812 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11816 powerpc
*-*-darwin*)
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11818 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11819 if ${gcc_cv_mcontext_underscores+:} false
; then :
11820 $as_echo_n "(cached) " >&6
11822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11825 #include <sys/cdefs.h>
11826 #include <sys/signal.h>
11827 #include <ucontext.h>
11828 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11831 if ac_fn_cxx_try_compile
"$LINENO"; then :
11832 gcc_cv_mcontext_underscores
=no
11834 gcc_cv_mcontext_underscores
=yes
11836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11839 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11840 if test $gcc_cv_mcontext_underscores = yes; then
11842 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11852 # Check if a valid thread package
11853 case ${enable_threads} in
11856 target_thread_file
='single'
11860 target_thread_file
='single'
11862 aix | dce | lynx | mipssde | posix | rtems | \
11863 single | tpf | vxworks | win32
)
11864 target_thread_file
=${enable_threads}
11867 echo "${enable_threads} is an unknown thread package" 1>&2
11872 if test x
${thread_file} = x
; then
11873 # No thread file set by target-specific clauses in config.gcc,
11874 # so use file chosen by default logic above
11875 thread_file
=${target_thread_file}
11883 if test x
$enable___cxa_atexit = xyes || \
11884 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11885 if test x
$host = x
$target; then
11887 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11888 # keyed to flag_use_cxa_atexit
11896 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11897 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
11900 echo "__cxa_atexit can't be enabled on this target"
11906 # We can't check for __cxa_atexit when building a cross, so assume
11910 if test x
$use_cxa_atexit = xyes
; then
11912 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11917 # Look for a file containing extra machine modes.
11918 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11919 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11922 cat >>confdefs.h
<<_ACEOF
11923 #define EXTRA_MODES_FILE "config/$extra_modes"
11928 # Convert extra_options into a form suitable for Makefile use.
11931 for f
in $extra_options; do
11932 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11933 all_opt_files
="$all_opt_files $srcdir/config/$f"
11937 # auto-host.h is the file containing items generated by autoconf and is
11938 # the first file included by config.h.
11939 # If host=build, it is correct to have bconfig include auto-host.h
11940 # as well. If host!=build, we are in error and need to do more
11941 # work to find out the build config parameters.
11942 if test x
$host = x
$build
11944 build_auto
=auto-host.h
11946 # We create a subdir, then run autoconf in the subdir.
11947 # To prevent recursion we set host and build for the new
11948 # invocation of configure to the build for this invocation
11955 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11956 *) realsrcdir
=..
/${srcdir};;
11958 # Clearing GMPINC is necessary to prevent host headers being
11959 # used by the build compiler. Defining GENERATOR_FILE stops
11960 # system.h from including gmp.h.
11961 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11962 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11963 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11964 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11965 ${realsrcdir}/configure \
11966 --enable-languages=${enable_languages-all} \
11967 --target=$target_alias --host=$build_alias --build=$build_alias
11969 # We just finished tests for the build machine, so rename
11970 # the file auto-build.h in the gcc directory.
11971 mv auto-host.h ..
/auto-build.h
11974 build_auto
=auto-build.h
11978 tm_file
="${tm_file} defaults.h"
11979 tm_p_file
="${tm_p_file} tm-preds.h"
11980 tm_d_file
="${tm_d_file} defaults.h"
11981 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11982 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11983 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11984 # put this back in temporarily.
11985 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11991 # Compile in configure arguments.
11992 if test -f configargs.h
; then
11993 # Being re-configured.
11994 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11995 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11996 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11997 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12000 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12003 # Double all backslashes and backslash all quotes to turn
12004 # gcc_config_arguments into a C string.
12005 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12006 $gcc_config_arguments
12008 gcc_config_arguments_str
=`cat conftest.out`
12011 cat > configargs.h
<<EOF
12012 /* Generated automatically. */
12013 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12014 static const char thread_model[] = "$thread_file";
12016 static const struct {
12017 const char *name, *value;
12018 } configure_default_options[] = $configure_default_options;
12021 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12022 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12023 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12024 if test -f $srcdir/REVISION
; then
12025 gcc_REVISION
=`cat $srcdir/REVISION`
12029 cat > plugin-version.h
<<EOF
12030 #include "configargs.h"
12032 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12033 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12034 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12035 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12037 static char basever[] = "$gcc_BASEVER";
12038 static char datestamp[] = "$gcc_DATESTAMP";
12039 static char devphase[] = "$gcc_DEVPHASE";
12040 static char revision[] = "$gcc_REVISION";
12042 /* FIXME plugins: We should make the version information more precise.
12043 One way to do is to add a checksum. */
12045 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12046 devphase, revision,
12047 configuration_arguments};
12050 # Determine what GCC version number to use in filesystem paths.
12052 get_gcc_base_ver
="cat"
12054 # Check whether --with-gcc-major-version-only was given.
12055 if test "${with_gcc_major_version_only+set}" = set; then :
12056 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12057 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12065 # Internationalization
12066 # If we haven't got the data from the intl directory,
12067 # assume NLS is disabled.
12076 if test -f ..
/intl
/config.intl
; then
12077 . ..
/intl
/config.intl
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12080 $as_echo_n "checking whether NLS is requested... " >&6; }
12081 if test x
"$USE_NLS" != xyes
; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12086 $as_echo "yes" >&6; }
12088 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12092 $as_echo_n "checking for catalogs to be installed... " >&6; }
12093 # Look for .po and .gmo files in the source directory.
12096 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12097 # If there aren't any .gmo files the shell will give us the
12098 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12100 case "$cat" in *\
**)
12103 # The quadruple backslash is collapsed to a double backslash
12104 # by the backticks, then collapsed again by the double quotes,
12105 # leaving us with one backslash in the sed expression (right
12106 # before the dot that mustn't act as a wildcard).
12107 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12108 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12109 # The user is allowed to set LINGUAS to a list of languages to
12110 # install catalogs for. If it's empty that means "all of them."
12111 if test "x$LINGUAS" = x
; then
12112 CATALOGS
="$CATALOGS $cat"
12113 XLINGUAS
="$XLINGUAS $lang"
12115 case "$LINGUAS" in *$lang*)
12116 CATALOGS
="$CATALOGS $cat"
12117 XLINGUAS
="$XLINGUAS $lang"
12122 LINGUAS
="$XLINGUAS"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12124 $as_echo "$LINGUAS" >&6; }
12137 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12138 # -liconv on the link line twice.
12139 case "$LIBINTL" in *$LIBICONV*)
12143 # Check whether --enable-secureplt was given.
12144 if test "${enable_secureplt+set}" = set; then :
12145 enableval
=$enable_secureplt;
12149 # Check whether --enable-mingw-wildcard was given.
12150 if test "${enable_mingw_wildcard+set}" = set; then :
12151 enableval
=$enable_mingw_wildcard;
12153 enable_mingw_wildcard
=platform
12156 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12158 cat >>confdefs.h
<<_ACEOF
12159 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12164 # Check whether --enable-large-address-aware was given.
12165 if test "${enable_large_address_aware+set}" = set; then :
12166 enableval
=$enable_large_address_aware;
12169 if test x
"$enable_large_address_aware" = xyes
; then :
12171 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12175 # Check whether --enable-leading-mingw64-underscores was given.
12176 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12177 enableval
=$enable_leading_mingw64_underscores;
12180 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12182 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12186 # Check whether --enable-cld was given.
12187 if test "${enable_cld+set}" = set; then :
12188 enableval
=$enable_cld;
12194 # Check whether --enable-frame-pointer was given.
12195 if test "${enable_frame_pointer+set}" = set; then :
12196 enableval
=$enable_frame_pointer;
12200 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12201 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12202 enable_frame_pointer
=no
12205 enable_frame_pointer
=yes
12213 i
[34567]86-*-* | x86_64-
*-*)
12214 if test "x$enable_cld" = xyes
; then
12215 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12217 if test "x$enable_frame_pointer" = xyes
; then
12218 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12223 # Windows32 Registry support for specifying GCC installation paths.
12224 # Check whether --enable-win32-registry was given.
12225 if test "${enable_win32_registry+set}" = set; then :
12226 enableval
=$enable_win32_registry;
12231 win32 | pe | cygwin
* | mingw32
*)
12232 if test "x$enable_win32_registry" != xno
; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12234 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12235 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12236 $as_echo_n "(cached) " >&6
12238 ac_func_search_save_LIBS
=$LIBS
12239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12248 char RegOpenKeyExA ();
12252 return RegOpenKeyExA ();
12257 for ac_lib
in '' advapi32
; do
12258 if test -z "$ac_lib"; then
12259 ac_res
="none required"
12262 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12264 if ac_fn_cxx_try_link
"$LINENO"; then :
12265 ac_cv_search_RegOpenKeyExA
=$ac_res
12267 rm -f core conftest.err conftest.
$ac_objext \
12269 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12273 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12276 ac_cv_search_RegOpenKeyExA
=no
12278 rm conftest.
$ac_ext
12279 LIBS
=$ac_func_search_save_LIBS
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12282 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12283 ac_res
=$ac_cv_search_RegOpenKeyExA
12284 if test "$ac_res" != no
; then :
12285 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12288 enable_win32_registry
=no
12293 if test "x$enable_win32_registry" != xno
; then
12295 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12298 if test "x$enable_win32_registry" != xyes \
12299 && test "x$enable_win32_registry" != x
; then
12301 cat >>confdefs.h
<<_ACEOF
12302 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12310 # Get an absolute path to the GCC top-level source directory
12311 holddir
=`${PWDCMD-pwd}`
12313 topdir
=`${PWDCMD-pwd}`
12316 # Conditionalize the makefile for this host machine.
12318 for f
in ${host_xmake_file}
12320 if test -f ${srcdir}/config
/$f
12322 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12326 # Conditionalize the makefile for this target machine.
12328 for f
in ${tmake_file}
12330 if test -f ${srcdir}/config
/$f
12332 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12335 tmake_file
="${tmake_file_}"
12337 out_object_file
=`basename $out_file .c`.o
12338 common_out_object_file
=`basename $common_out_file .c`.o
12340 tm_file_list
="options.h"
12341 tm_include_list
="options.h insn-constants.h"
12342 for f
in $tm_file; do
12345 f
=`echo $f | sed 's/^..//'`
12346 tm_file_list
="${tm_file_list} $f"
12347 tm_include_list
="${tm_include_list} $f"
12350 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12351 tm_include_list
="${tm_include_list} $f"
12354 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12355 tm_include_list
="${tm_include_list} config/$f"
12362 for f
in $tm_p_file; do
12365 tm_p_file_list
="${tm_p_file_list} $f"
12366 tm_p_include_list
="${tm_p_include_list} $f"
12369 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12370 tm_p_include_list
="${tm_p_include_list} config/$f"
12375 tm_d_include_list
="options.h insn-constants.h"
12376 for f
in $tm_d_file; do
12379 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12380 tm_d_include_list
="${tm_d_include_list} $f"
12383 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12384 tm_d_include_list
="${tm_d_include_list} config/$f"
12391 for f
in $xm_file; do
12394 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12395 xm_include_list
="${xm_include_list} $f"
12398 xm_file_list
="${xm_file_list} $f"
12399 xm_include_list
="${xm_include_list} $f"
12402 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12403 xm_include_list
="${xm_include_list} config/$f"
12409 host_xm_include_list
=
12410 for f
in $host_xm_file; do
12413 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12414 host_xm_include_list
="${host_xm_include_list} $f"
12417 host_xm_file_list
="${host_xm_file_list} $f"
12418 host_xm_include_list
="${host_xm_include_list} $f"
12421 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12422 host_xm_include_list
="${host_xm_include_list} config/$f"
12427 build_xm_file_list
=
12428 for f
in $build_xm_file; do
12431 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12432 build_xm_include_list
="${build_xm_include_list} $f"
12434 auto-build.h | auto-host.h
)
12435 build_xm_file_list
="${build_xm_file_list} $f"
12436 build_xm_include_list
="${build_xm_include_list} $f"
12439 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12440 build_xm_include_list
="${build_xm_include_list} config/$f"
12445 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12446 # cross-compiler which does not use the native headers and libraries.
12447 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12450 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12451 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12453 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12454 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12455 if test "x$with_build_sysroot" != x
; then
12456 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12458 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12461 if test x
$host != x
$target
12463 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12465 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12466 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12467 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12470 if test "x$with_build_sysroot" != "x"; then
12471 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12472 elif test "x$with_sysroot" = x
; then
12473 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12474 elif test "x$with_sysroot" = xyes
; then
12475 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12477 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12480 target_header_dir
=${native_system_header_dir}
12483 # If this is a cross-compiler that does not
12484 # have its own set of headers then define
12487 # If this is using newlib, without having the headers available now,
12488 # then define inhibit_libc in LIBGCC2_CFLAGS.
12489 # This prevents libgcc2 from containing any code which requires libc
12491 : ${inhibit_libc=false}
12492 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12493 test x
$with_newlib = xyes
; } &&
12494 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12499 # When building gcc with a cross-compiler, we need to adjust things so
12500 # that the generator programs are still built with the native compiler.
12501 # Also, we cannot run fixincludes.
12503 # These are the normal (build=host) settings:
12504 CC_FOR_BUILD
='$(CC)'
12505 CXX_FOR_BUILD
='$(CXX)'
12506 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12507 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12508 BUILD_LDFLAGS
='$(LDFLAGS)'
12509 STMP_FIXINC
=stmp-fixinc
12511 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12512 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12514 # And these apply if build != host, or we are generating coverage data
12515 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12517 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12518 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12519 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12521 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12522 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12523 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12524 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12529 # Expand extra_headers to include complete path.
12530 # This substitutes for lots of t-* files.
12531 extra_headers_list
=
12532 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12533 for file in ${extra_headers} ; do
12534 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12537 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12538 if test x
"$use_gcc_tgmath" = xyes
12539 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12542 # Define collect2 in Makefile.
12543 case $host_can_use_collect2 in
12545 *) collect2
='collect2$(exeext)' ;;
12549 # Add a definition of USE_COLLECT2 if system wants one.
12550 case $use_collect2 in
12551 no
) use_collect2
= ;;
12554 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12555 xm_defines
="${xm_defines} USE_COLLECT2"
12556 case $host_can_use_collect2 in
12558 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12565 cat >>confdefs.h
<<_ACEOF
12566 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12570 # ---------------------------
12571 # Assembler & linker features
12572 # ---------------------------
12574 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12575 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12576 # However when ld-new is first executed from the build tree, libtool will
12577 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12578 # to the build tree. While doing this we need to use the previous-stage
12579 # linker, or we have an infinite loop. The presence of a shell script as
12580 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12581 # the gcc/collect-ld script. So we need to know how libtool works, or
12582 # exec-tool will fail.
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12588 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12593 macro_version
='2.2.7a'
12594 macro_revision
='1.3134'
12608 ltmain
="$ac_aux_dir/ltmain.sh"
12610 # Backslashify metacharacters that are still active within
12611 # double-quoted strings.
12612 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12614 # Same as above, but do not quote variable references.
12615 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12617 # Sed substitution to delay expansion of an escaped shell variable in a
12618 # double_quote_subst'ed string.
12619 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12621 # Sed substitution to delay expansion of an escaped single quote.
12622 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12624 # Sed substitution to avoid accidental globbing in evaled expressions
12625 no_glob_subst
='s/\*/\\\*/g'
12627 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12628 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12629 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12632 $as_echo_n "checking how to print strings... " >&6; }
12633 # Test print first, because it will be a builtin if present.
12634 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12635 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12637 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12640 # Use this function as a fallback that always works.
12641 func_fallback_echo ()
12643 eval 'cat <<_LTECHO_EOF
12647 ECHO='func_fallback_echo
'
12650 # func_echo_all arg...
12651 # Invoke $ECHO with all args, space-separated.
12658 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12659 $as_echo "printf" >&6; } ;;
12660 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12661 $as_echo "print -r" >&6; } ;;
12662 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12663 $as_echo "cat" >&6; } ;;
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12680 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12681 if ${ac_cv_path_SED+:} false; then :
12682 $as_echo_n "(cached) " >&6
12684 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12685 for ac_i in 1 2 3 4 5 6 7; do
12686 ac_script="$ac_script$as_nl$ac_script"
12688 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12689 { ac_script=; unset ac_script;}
12690 if test -z "$SED"; then
12691 ac_path_SED_found=false
12692 # Loop through the user's path and
test for each of PROGNAME-LIST
12693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12694 for as_dir
in $PATH
12697 test -z "$as_dir" && as_dir
=.
12698 for ac_prog
in sed gsed
; do
12699 for ac_exec_ext
in '' $ac_executable_extensions; do
12700 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12701 as_fn_executable_p
"$ac_path_SED" ||
continue
12702 # Check for GNU ac_path_SED and select it if it is found.
12703 # Check for GNU $ac_path_SED
12704 case `"$ac_path_SED" --version 2>&1` in
12706 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12709 $as_echo_n 0123456789 >"conftest.in"
12712 cat "conftest.in" "conftest.in" >"conftest.tmp"
12713 mv "conftest.tmp" "conftest.in"
12714 cp "conftest.in" "conftest.nl"
12715 $as_echo '' >> "conftest.nl"
12716 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12717 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12718 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12719 if test $ac_count -gt ${ac_path_SED_max-0}; then
12720 # Best one so far, save it but keep looking for a better one
12721 ac_cv_path_SED
="$ac_path_SED"
12722 ac_path_SED_max
=$ac_count
12724 # 10*(2^10) chars as input seems more than enough
12725 test $ac_count -gt 10 && break
12727 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12730 $ac_path_SED_found && break 3
12735 if test -z "$ac_cv_path_SED"; then
12736 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12739 ac_cv_path_SED
=$SED
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12744 $as_echo "$ac_cv_path_SED" >&6; }
12745 SED
="$ac_cv_path_SED"
12748 test -z "$SED" && SED
=sed
12749 Xsed
="$SED -e 1s/^X//"
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12762 $as_echo_n "checking for fgrep... " >&6; }
12763 if ${ac_cv_path_FGREP+:} false
; then :
12764 $as_echo_n "(cached) " >&6
12766 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12767 then ac_cv_path_FGREP
="$GREP -F"
12769 if test -z "$FGREP"; then
12770 ac_path_FGREP_found
=false
12771 # Loop through the user's path and test for each of PROGNAME-LIST
12772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12773 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12776 test -z "$as_dir" && as_dir
=.
12777 for ac_prog
in fgrep
; do
12778 for ac_exec_ext
in '' $ac_executable_extensions; do
12779 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12780 as_fn_executable_p
"$ac_path_FGREP" ||
continue
12781 # Check for GNU ac_path_FGREP and select it if it is found.
12782 # Check for GNU $ac_path_FGREP
12783 case `"$ac_path_FGREP" --version 2>&1` in
12785 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12788 $as_echo_n 0123456789 >"conftest.in"
12791 cat "conftest.in" "conftest.in" >"conftest.tmp"
12792 mv "conftest.tmp" "conftest.in"
12793 cp "conftest.in" "conftest.nl"
12794 $as_echo 'FGREP' >> "conftest.nl"
12795 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12796 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12797 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12798 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12799 # Best one so far, save it but keep looking for a better one
12800 ac_cv_path_FGREP
="$ac_path_FGREP"
12801 ac_path_FGREP_max
=$ac_count
12803 # 10*(2^10) chars as input seems more than enough
12804 test $ac_count -gt 10 && break
12806 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12809 $ac_path_FGREP_found && break 3
12814 if test -z "$ac_cv_path_FGREP"; then
12815 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12818 ac_cv_path_FGREP
=$FGREP
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12824 $as_echo "$ac_cv_path_FGREP" >&6; }
12825 FGREP
="$ac_cv_path_FGREP"
12828 test -z "$GREP" && GREP
=grep
12848 # Check whether --with-gnu-ld was given.
12849 if test "${with_gnu_ld+set}" = set; then :
12850 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12856 if test "$GCC" = yes; then
12857 # Check if gcc -print-prog-name=ld gives a path.
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12859 $as_echo_n "checking for ld used by $CC... " >&6; }
12862 # gcc leaves a trailing carriage return which upsets mingw
12863 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12865 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12868 # Accept absolute paths.
12870 re_direlt
='/[^/][^/]*/\.\./'
12871 # Canonicalize the pathname of ld
12872 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12873 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12874 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12876 test -z "$LD" && LD
="$ac_prog"
12879 # If it fails, then pretend we aren't using GCC.
12883 # If it is relative, then search for the first ld in PATH.
12884 with_gnu_ld
=unknown
12887 elif test "$with_gnu_ld" = yes; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12889 $as_echo_n "checking for GNU ld... " >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12892 $as_echo_n "checking for non-GNU ld... " >&6; }
12894 if ${lt_cv_path_LD+:} false
; then :
12895 $as_echo_n "(cached) " >&6
12897 if test -z "$LD"; then
12898 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12899 for ac_dir
in $PATH; do
12901 test -z "$ac_dir" && ac_dir
=.
12902 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12903 lt_cv_path_LD
="$ac_dir/$ac_prog"
12904 # Check to see if the program is GNU ld. I'd rather use --version,
12905 # but apparently some variants of GNU ld only accept -v.
12906 # Break only if it was the GNU/non-GNU ld that we prefer.
12907 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12908 *GNU
* |
*'with BFD'*)
12909 test "$with_gnu_ld" != no
&& break
12912 test "$with_gnu_ld" != yes && break
12919 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12923 LD
="$lt_cv_path_LD"
12924 if test -n "$LD"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12926 $as_echo "$LD" >&6; }
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12931 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12933 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12934 if ${lt_cv_prog_gnu_ld+:} false
; then :
12935 $as_echo_n "(cached) " >&6
12937 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12938 case `$LD -v 2>&1 </dev/null` in
12939 *GNU
* |
*'with BFD'*)
12940 lt_cv_prog_gnu_ld
=yes
12943 lt_cv_prog_gnu_ld
=no
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12948 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12949 with_gnu_ld
=$lt_cv_prog_gnu_ld
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12960 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12961 if ${lt_cv_path_NM+:} false
; then :
12962 $as_echo_n "(cached) " >&6
12964 if test -n "$NM"; then
12965 # Let the user override the test.
12966 lt_cv_path_NM
="$NM"
12968 lt_nm_to_check
="${ac_tool_prefix}nm"
12969 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12970 lt_nm_to_check
="$lt_nm_to_check nm"
12972 for lt_tmp_nm
in $lt_nm_to_check; do
12973 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12974 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12976 test -z "$ac_dir" && ac_dir
=.
12977 tmp_nm
="$ac_dir/$lt_tmp_nm"
12978 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12979 # Check to see if the nm accepts a BSD-compat flag.
12980 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12981 # nm: unknown option "B" ignored
12982 # Tru64's nm complains that /dev/null is an invalid object file
12983 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12984 */dev
/null
* |
*'Invalid file or object type'*)
12985 lt_cv_path_NM
="$tmp_nm -B"
12989 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12991 lt_cv_path_NM
="$tmp_nm -p"
12995 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12996 continue # so that we can try to find one that supports BSD flags
13005 : ${lt_cv_path_NM=no}
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13009 $as_echo "$lt_cv_path_NM" >&6; }
13010 if test "$lt_cv_path_NM" != "no"; then
13011 NM
="$lt_cv_path_NM"
13013 # Didn't find any BSD compatible name lister, look for dumpbin.
13014 if test -n "$DUMPBIN"; then :
13015 # Let the user override the test.
13017 if test -n "$ac_tool_prefix"; then
13018 for ac_prog
in dumpbin
"link -dump"
13020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13021 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13025 $as_echo_n "(cached) " >&6
13027 if test -n "$DUMPBIN"; then
13028 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13031 for as_dir
in $PATH
13034 test -z "$as_dir" && as_dir
=.
13035 for ac_exec_ext
in '' $ac_executable_extensions; do
13036 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13037 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13047 DUMPBIN
=$ac_cv_prog_DUMPBIN
13048 if test -n "$DUMPBIN"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13050 $as_echo "$DUMPBIN" >&6; }
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13057 test -n "$DUMPBIN" && break
13060 if test -z "$DUMPBIN"; then
13061 ac_ct_DUMPBIN
=$DUMPBIN
13062 for ac_prog
in dumpbin
"link -dump"
13064 # Extract the first word of "$ac_prog", so it can be a program name with args.
13065 set dummy
$ac_prog; ac_word
=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13069 $as_echo_n "(cached) " >&6
13071 if test -n "$ac_ct_DUMPBIN"; then
13072 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13075 for as_dir
in $PATH
13078 test -z "$as_dir" && as_dir
=.
13079 for ac_exec_ext
in '' $ac_executable_extensions; do
13080 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13092 if test -n "$ac_ct_DUMPBIN"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13094 $as_echo "$ac_ct_DUMPBIN" >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13101 test -n "$ac_ct_DUMPBIN" && break
13104 if test "x$ac_ct_DUMPBIN" = x
; then
13107 case $cross_compiling:$ac_tool_warned in
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13111 ac_tool_warned
=yes ;;
13113 DUMPBIN
=$ac_ct_DUMPBIN
13117 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13119 DUMPBIN
="$DUMPBIN -symbols"
13127 if test "$DUMPBIN" != ":"; then
13131 test -z "$NM" && NM
=nm
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13139 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13140 if ${lt_cv_nm_interface+:} false
; then :
13141 $as_echo_n "(cached) " >&6
13143 lt_cv_nm_interface
="BSD nm"
13144 echo "int some_variable = 0;" > conftest.
$ac_ext
13145 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13146 (eval "$ac_compile" 2>conftest.err
)
13147 cat conftest.err
>&5
13148 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13149 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13150 cat conftest.err
>&5
13151 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13152 cat conftest.out
>&5
13153 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13154 lt_cv_nm_interface
="MS dumpbin"
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13159 $as_echo "$lt_cv_nm_interface" >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13162 $as_echo_n "checking whether ln -s works... " >&6; }
13164 if test "$LN_S" = "ln -s"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13166 $as_echo "yes" >&6; }
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13169 $as_echo "no, using $LN_S" >&6; }
13172 # find the maximum length of command line arguments
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13174 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13175 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13176 $as_echo_n "(cached) " >&6
13183 # On DJGPP, this test can blow up pretty badly due to problems in libc
13184 # (any single argument exceeding 2000 bytes causes a buffer overrun
13185 # during glob expansion). Even if it were fixed, the result of this
13186 # check would be larger than it should be.
13187 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13191 # Under GNU Hurd, this test is not required because there is
13192 # no limit to the length of command line arguments.
13193 # Libtool will interpret -1 as no limit whatsoever
13194 lt_cv_sys_max_cmd_len
=-1;
13197 cygwin
* | mingw
* | cegcc
*)
13198 # On Win9x/ME, this test blows up -- it succeeds, but takes
13199 # about 5 minutes as the teststring grows exponentially.
13200 # Worse, since 9x/ME are not pre-emptively multitasking,
13201 # you end up with a "frozen" computer, even though with patience
13202 # the test eventually succeeds (with a max line length of 256k).
13203 # Instead, let's just punt: use the minimum linelength reported by
13204 # all of the supported platforms: 8192 (on NT/2K/XP).
13205 lt_cv_sys_max_cmd_len
=8192;
13209 # On MiNT this can take a long time and run out of memory.
13210 lt_cv_sys_max_cmd_len
=8192;
13214 # On AmigaOS with pdksh, this test takes hours, literally.
13215 # So we just punt and use a minimum line length of 8192.
13216 lt_cv_sys_max_cmd_len
=8192;
13219 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13220 # This has been around since 386BSD, at least. Likely further.
13221 if test -x /sbin
/sysctl
; then
13222 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13223 elif test -x /usr
/sbin
/sysctl
; then
13224 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13226 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13228 # And add a safety zone
13229 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13230 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13234 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13235 lt_cv_sys_max_cmd_len
=196608
13239 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13240 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13241 # nice to cause kernel panics so lets avoid the loop below.
13242 # First set a reasonable default.
13243 lt_cv_sys_max_cmd_len
=16384
13245 if test -x /sbin
/sysconfig
; then
13246 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13247 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13252 lt_cv_sys_max_cmd_len
=102400
13254 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13255 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13256 if test -n "$kargmax"; then
13257 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13259 lt_cv_sys_max_cmd_len
=32768
13263 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13264 if test -n "$lt_cv_sys_max_cmd_len"; then
13265 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13266 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13268 # Make teststring a little bigger before we do anything with it.
13269 # a 1K string should be a reasonable start.
13270 for i
in 1 2 3 4 5 6 7 8 ; do
13271 teststring
=$teststring$teststring
13273 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13274 # If test is not a shell built-in, we'll probably end up computing a
13275 # maximum length that is only half of the actual maximum length, but
13277 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13278 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13279 test $i != 17 # 1/2 MB should be enough
13282 teststring
=$teststring$teststring
13284 # Only check the string length outside the loop.
13285 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13287 # Add a significant safety factor because C++ compilers can tack on
13288 # massive amounts of additional arguments before passing them to the
13289 # linker. It appears as though 1/2 is a usable value.
13290 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13297 if test -n $lt_cv_sys_max_cmd_len ; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13299 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13302 $as_echo "none" >&6; }
13304 max_cmd_len
=$lt_cv_sys_max_cmd_len
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13316 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13317 # Try some XSI features
13319 ( _lt_dummy
="a/b/c"
13320 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13322 && eval 'test $(( 1 + 1 )) -eq 2 \
13323 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13326 $as_echo "$xsi_shell" >&6; }
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13330 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13332 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13334 && lt_shell_append=yes
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13336 $as_echo "$lt_shell_append" >&6; }
13339 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13349 # test EBCDIC or ASCII
13350 case `echo X|tr X '\101'` in
13351 A) # ASCII based system
13352 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13353 lt_SP2NL='tr \040 \012'
13354 lt_NL2SP='tr \015\012 \040\040'
13356 *) # EBCDIC based system
13357 lt_SP2NL='tr \100 \n'
13358 lt_NL2SP='tr \r\n \100\100'
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13371 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13372 if ${lt_cv_ld_reload_flag+:} false; then :
13373 $as_echo_n "(cached
) " >&6
13375 lt_cv_ld_reload_flag='-r'
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13378 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13379 reload_flag=$lt_cv_ld_reload_flag
13380 case $reload_flag in
13382 *) reload_flag=" $reload_flag" ;;
13384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13387 if test "$GCC" = yes; then
13388 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13403 if test -n "$ac_tool_prefix"; then
13404 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13405 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13407 $as_echo_n "checking
for $ac_word...
" >&6; }
13408 if ${ac_cv_prog_OBJDUMP+:} false; then :
13409 $as_echo_n "(cached
) " >&6
13411 if test -n "$OBJDUMP"; then
13412 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13421 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13431 OBJDUMP=$ac_cv_prog_OBJDUMP
13432 if test -n "$OBJDUMP"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13434 $as_echo "$OBJDUMP" >&6; }
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13437 $as_echo "no
" >&6; }
13442 if test -z "$ac_cv_prog_OBJDUMP"; then
13443 ac_ct_OBJDUMP=$OBJDUMP
13444 # Extract the first word of "objdump
", so it can be a program name with args.
13445 set dummy objdump; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13447 $as_echo_n "checking
for $ac_word...
" >&6; }
13448 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13449 $as_echo_n "(cached
) " >&6
13451 if test -n "$ac_ct_OBJDUMP"; then
13452 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13458 test -z "$as_dir" && as_dir=.
13459 for ac_exec_ext in '' $ac_executable_extensions; do
13460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13461 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13462 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13471 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13472 if test -n "$ac_ct_OBJDUMP"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13474 $as_echo "$ac_ct_OBJDUMP" >&6; }
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13477 $as_echo "no
" >&6; }
13480 if test "x
$ac_ct_OBJDUMP" = x; then
13483 case $cross_compiling:$ac_tool_warned in
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13486 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13487 ac_tool_warned=yes ;;
13489 OBJDUMP=$ac_ct_OBJDUMP
13492 OBJDUMP="$ac_cv_prog_OBJDUMP"
13495 test -z "$OBJDUMP" && OBJDUMP=objdump
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13506 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13507 if ${lt_cv_deplibs_check_method+:} false; then :
13508 $as_echo_n "(cached
) " >&6
13510 lt_cv_file_magic_cmd='$MAGIC_CMD'
13511 lt_cv_file_magic_test_file=
13512 lt_cv_deplibs_check_method='unknown'
13513 # Need to set the preceding variable on all platforms that support
13514 # interlibrary dependencies.
13515 # 'none' -- dependencies not supported.
13516 # `unknown' -- same as none, but documents that we really don't know.
13517 # 'pass_all' -- all dependencies passed with no checks.
13518 # 'test_compile' -- check by making test program.
13519 # 'file_magic [[regex]]' -- check by looking for files in library path
13520 # which responds to the $file_magic_cmd with a given extended regex.
13521 # If you have `file' or equivalent on your system and you're not sure
13522 # whether `pass_all' will *always* work, you probably want this one.
13526 lt_cv_deplibs_check_method=pass_all
13530 lt_cv_deplibs_check_method=pass_all
13534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13535 lt_cv_file_magic_cmd='/usr/bin/file -L'
13536 lt_cv_file_magic_test_file=/shlib/libc.so
13540 # func_win32_libid is a shell function defined in ltmain.sh
13541 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13542 lt_cv_file_magic_cmd='func_win32_libid'
13546 # Base MSYS/MinGW do not provide the 'file' command needed by
13547 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13548 # unless we find 'file', for example because we are cross-compiling.
13549 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13550 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13552 lt_cv_file_magic_cmd='func_win32_libid'
13554 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13555 lt_cv_file_magic_cmd='$OBJDUMP -f'
13560 # use the weaker test based on 'objdump'. See mingw*.
13561 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13562 lt_cv_file_magic_cmd='$OBJDUMP -f'
13565 darwin* | rhapsody*)
13566 lt_cv_deplibs_check_method=pass_all
13569 freebsd* | dragonfly*)
13570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13573 # Not sure whether the presence of OpenBSD here was a mistake.
13574 # Let's accept both of them until this is cleared up.
13575 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13576 lt_cv_file_magic_cmd=/usr/bin/file
13577 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13581 lt_cv_deplibs_check_method=pass_all
13586 lt_cv_deplibs_check_method=pass_all
13590 lt_cv_deplibs_check_method=pass_all
13593 hpux10.20* | hpux11*)
13594 lt_cv_file_magic_cmd=/usr/bin/file
13597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13598 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13601 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]'
13602 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13606 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13612 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13616 irix5* | irix6* | nonstopux*)
13618 *-32|*"-32 ") libmagic=32-bit;;
13619 *-n32|*"-n32 ") libmagic=N32;;
13620 *-64|*"-64 ") libmagic=64-bit;;
13621 *) libmagic=never-match;;
13623 lt_cv_deplibs_check_method=pass_all
13626 # This must be Linux ELF.
13627 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13628 lt_cv_deplibs_check_method=pass_all
13632 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13641 lt_cv_file_magic_cmd=/usr/bin/file
13642 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13646 lt_cv_deplibs_check_method=pass_all
13650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13657 osf3* | osf4* | osf5*)
13658 lt_cv_deplibs_check_method=pass_all
13662 lt_cv_deplibs_check_method=pass_all
13666 lt_cv_deplibs_check_method=pass_all
13669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13670 lt_cv_deplibs_check_method=pass_all
13674 case $host_vendor in
13676 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]'
13677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13680 lt_cv_deplibs_check_method=pass_all
13683 lt_cv_file_magic_cmd='/bin/file'
13684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13687 lt_cv_file_magic_cmd='/bin/file'
13688 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13689 lt_cv_file_magic_test_file=/lib/libc.so
13692 lt_cv_deplibs_check_method=pass_all
13695 lt_cv_deplibs_check_method=pass_all
13701 lt_cv_deplibs_check_method=pass_all
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13707 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13708 file_magic_cmd=$lt_cv_file_magic_cmd
13709 deplibs_check_method=$lt_cv_deplibs_check_method
13710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13723 if test -n "$ac_tool_prefix"; then
13724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13725 set dummy ${ac_tool_prefix}ar; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13727 $as_echo_n "checking
for $ac_word...
" >&6; }
13728 if ${ac_cv_prog_AR+:} false; then :
13729 $as_echo_n "(cached
) " >&6
13731 if test -n "$AR"; then
13732 ac_cv_prog_AR="$AR" # Let the user override the test.
13734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 for as_dir in $PATH
13738 test -z "$as_dir" && as_dir=.
13739 for ac_exec_ext in '' $ac_executable_extensions; do
13740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13741 ac_cv_prog_AR="${ac_tool_prefix}ar"
13742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13752 if test -n "$AR"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13754 $as_echo "$AR" >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13757 $as_echo "no
" >&6; }
13762 if test -z "$ac_cv_prog_AR"; then
13764 # Extract the first word of "ar", so it can be a program name with args.
13765 set dummy ar; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13767 $as_echo_n "checking
for $ac_word...
" >&6; }
13768 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13769 $as_echo_n "(cached
) " >&6
13771 if test -n "$ac_ct_AR"; then
13772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_ac_ct_AR="ar"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13791 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13792 if test -n "$ac_ct_AR"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13794 $as_echo "$ac_ct_AR" >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13797 $as_echo "no
" >&6; }
13800 if test "x
$ac_ct_AR" = x; then
13803 case $cross_compiling:$ac_tool_warned in
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13806 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13807 ac_tool_warned=yes ;;
13812 AR="$ac_cv_prog_AR"
13815 test -z "$AR" && AR=ar
13816 test -z "$AR_FLAGS" && AR_FLAGS=cru
13828 if test -n "$ac_tool_prefix"; then
13829 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13830 set dummy ${ac_tool_prefix}strip; ac_word=$2
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13832 $as_echo_n "checking
for $ac_word...
" >&6; }
13833 if ${ac_cv_prog_STRIP+:} false; then :
13834 $as_echo_n "(cached
) " >&6
13836 if test -n "$STRIP"; then
13837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13843 test -z "$as_dir" && as_dir=.
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13846 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13847 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13856 STRIP=$ac_cv_prog_STRIP
13857 if test -n "$STRIP"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13859 $as_echo "$STRIP" >&6; }
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13862 $as_echo "no
" >&6; }
13867 if test -z "$ac_cv_prog_STRIP"; then
13869 # Extract the first word of "strip
", so it can be a program name with args.
13870 set dummy strip; ac_word=$2
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13872 $as_echo_n "checking
for $ac_word...
" >&6; }
13873 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13874 $as_echo_n "(cached
) " >&6
13876 if test -n "$ac_ct_STRIP"; then
13877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13886 ac_cv_prog_ac_ct_STRIP="strip
"
13887 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13897 if test -n "$ac_ct_STRIP"; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13899 $as_echo "$ac_ct_STRIP" >&6; }
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13902 $as_echo "no
" >&6; }
13905 if test "x
$ac_ct_STRIP" = x; then
13908 case $cross_compiling:$ac_tool_warned in
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13911 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13912 ac_tool_warned=yes ;;
13917 STRIP="$ac_cv_prog_STRIP"
13920 test -z "$STRIP" && STRIP=:
13927 if test -n "$ac_tool_prefix"; then
13928 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13929 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13931 $as_echo_n "checking
for $ac_word...
" >&6; }
13932 if ${ac_cv_prog_RANLIB+:} false; then :
13933 $as_echo_n "(cached
) " >&6
13935 if test -n "$RANLIB"; then
13936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13955 RANLIB=$ac_cv_prog_RANLIB
13956 if test -n "$RANLIB"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13958 $as_echo "$RANLIB" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13961 $as_echo "no
" >&6; }
13966 if test -z "$ac_cv_prog_RANLIB"; then
13967 ac_ct_RANLIB=$RANLIB
13968 # Extract the first word of "ranlib
", so it can be a program name with args.
13969 set dummy ranlib; ac_word=$2
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13971 $as_echo_n "checking
for $ac_word...
" >&6; }
13972 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13973 $as_echo_n "(cached
) " >&6
13975 if test -n "$ac_ct_RANLIB"; then
13976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979 for as_dir in $PATH
13982 test -z "$as_dir" && as_dir=.
13983 for ac_exec_ext in '' $ac_executable_extensions; do
13984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13985 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13986 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13996 if test -n "$ac_ct_RANLIB"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13998 $as_echo "$ac_ct_RANLIB" >&6; }
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14001 $as_echo "no
" >&6; }
14004 if test "x
$ac_ct_RANLIB" = x; then
14007 case $cross_compiling:$ac_tool_warned in
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14010 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14011 ac_tool_warned=yes ;;
14013 RANLIB=$ac_ct_RANLIB
14016 RANLIB="$ac_cv_prog_RANLIB"
14019 test -z "$RANLIB" && RANLIB=:
14026 # Determine commands to create old-style static archives.
14027 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14028 old_postinstall_cmds='chmod 644 $oldlib'
14029 old_postuninstall_cmds=
14031 if test -n "$RANLIB"; then
14034 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14037 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14040 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14045 lock_old_archive_extraction=yes ;;
14047 lock_old_archive_extraction=no ;;
14088 # If no C compiler was specified, use CC.
14091 # If no C compiler flags were specified, use CFLAGS.
14092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14094 # Allow CC to be a program name with arguments.
14098 # Check for command to grab the raw symbol name followed by C symbol from nm.
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14100 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14101 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14102 $as_echo_n "(cached
) " >&6
14105 # These are sane defaults that work on at least a few old systems.
14106 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14108 # Character class describing NM global symbol codes.
14109 symcode='[BCDEGRST]'
14111 # Regexp to match symbols that can be accessed directly from C.
14112 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14114 # Define system-specific variables.
14119 cygwin* | mingw* | pw32* | cegcc*)
14120 symcode='[ABCDGISTW]'
14123 if test "$host_cpu" = ia64; then
14124 symcode='[ABCDEGRST]'
14127 irix* | nonstopux*)
14128 symcode='[BCDEGRST]'
14131 symcode='[BCDEGQRST]'
14142 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14150 # If we're using GNU nm, then use its standard symbol codes.
14151 case `$NM -V 2>&1` in
14152 *GNU* | *'with BFD'*)
14153 symcode='[ABCDGIRSTW]' ;;
14156 # Transform an extracted symbol line into a proper C declaration.
14157 # Some systems (esp. on ia64) link data and code symbols differently,
14158 # so use this general approach.
14159 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14161 # Transform an extracted symbol line into symbol name and symbol address
14162 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14163 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'"
14165 # Handle CRLF in mingw tool chain
14169 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14173 # Try without a prefix underscore, then with it.
14174 for ac_symprfx in "" "_
"; do
14176 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14177 symxfrm="\\1 $ac_symprfx\\2 \\2"
14179 # Write the raw and C identifiers.
14180 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14181 # Fake it for dumpbin and say T for any non-static function
14182 # and D for any global variable.
14183 # Also find C++ and __fastcall symbols from MSVC++,
14184 # which start with @ or ?.
14185 lt_cv_sys_global_symbol_pipe="$AWK '"\
14186 " {last_section=section; section=\$ 3};"\
14187 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14188 " \$ 0!~/External *\|/{next};"\
14189 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14190 " {if(hide[section]) next};"\
14191 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14192 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14193 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14194 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14195 " ' prfx
=^
$ac_symprfx"
14197 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14200 # Check to see that the pipe works correctly.
14204 cat > conftest.$ac_ext <<_LT_EOF
14209 void nm_test_func(void);
14210 void nm_test_func(void){}
14214 int main(){nm_test_var='a';nm_test_func();return(0);}
14217 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14218 (eval $ac_compile) 2>&5
14220 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14221 test $ac_status = 0; }; then
14222 # Now try to grab the symbols.
14224 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14225 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14227 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14228 test $ac_status = 0; } && test -s "$nlist"; then
14229 # Try sorting and uniquifying the output.
14230 if sort "$nlist" | uniq > "$nlist"T; then
14231 mv -f "$nlist"T "$nlist"
14236 # Make sure that we snagged all the symbols we need.
14237 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14238 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14239 cat <<_LT_EOF > conftest.$ac_ext
14245 # Now generate the symbol file.
14246 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14248 cat <<_LT_EOF >> conftest.$ac_ext
14250 /* The mapping between symbol names and symbols. */
14255 lt__PROGRAM__LTX_preloaded_symbols[] =
14257 { "@PROGRAM@
", (void *) 0 },
14259 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14260 cat <<\_LT_EOF >> conftest.$ac_ext
14264 /* This works around a problem in FreeBSD linker */
14265 #ifdef FREEBSD_WORKAROUND
14266 static const void *lt_preloaded_setup() {
14267 return lt__PROGRAM__LTX_preloaded_symbols;
14275 # Now try linking the two files.
14276 mv conftest.$ac_objext conftstm.$ac_objext
14277 lt_save_LIBS="$LIBS"
14278 lt_save_CFLAGS="$CFLAGS"
14279 LIBS="conftstm.
$ac_objext"
14280 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14281 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14282 (eval $ac_link) 2>&5
14284 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14285 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14288 LIBS="$lt_save_LIBS"
14289 CFLAGS="$lt_save_CFLAGS"
14291 echo "cannot
find nm_test_func
in $nlist" >&5
14294 echo "cannot
find nm_test_var
in $nlist" >&5
14297 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14300 echo "$progname: failed program was
:" >&5
14301 cat conftest.$ac_ext >&5
14303 rm -rf conftest* conftst*
14305 # Do not use the global_symbol_pipe unless it works.
14306 if test "$pipe_works" = yes; then
14309 lt_cv_sys_global_symbol_pipe=
14315 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14316 lt_cv_sys_global_symbol_to_cdecl=
14318 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14320 $as_echo "failed
" >&6; }
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14323 $as_echo "ok
" >&6; }
14347 # Check whether --enable-libtool-lock was given.
14348 if test "${enable_libtool_lock+set}" = set; then :
14349 enableval=$enable_libtool_lock;
14352 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14354 # Some flags need to be propagated to the compiler or linker for good
14358 # Find out which ABI we are using.
14359 echo 'int i;' > conftest.$ac_ext
14360 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14361 (eval $ac_compile) 2>&5
14363 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14364 test $ac_status = 0; }; then
14365 case `/usr/bin/file conftest.$ac_objext` in
14367 HPUX_IA64_MODE="32"
14370 HPUX_IA64_MODE="64"
14377 # Find out which ABI we are using.
14378 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14379 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14380 (eval $ac_compile) 2>&5
14382 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14383 test $ac_status = 0; }; then
14384 if test "$lt_cv_prog_gnu_ld" = yes; then
14385 case `/usr/bin/file conftest.$ac_objext` in
14387 LD="${LD-ld} -melf32bsmip"
14390 LD="${LD-ld} -melf32bmipn32"
14393 LD="${LD-ld} -melf64bmip"
14397 case `/usr/bin/file conftest.$ac_objext` in
14413 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14414 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14415 # Find out which ABI we are using.
14416 echo 'int i;' > conftest.$ac_ext
14417 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14418 (eval $ac_compile) 2>&5
14420 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14421 test $ac_status = 0; }; then
14422 case `/usr/bin/file conftest.o` in
14425 x86_64-*kfreebsd*-gnu)
14426 LD="${LD-ld} -m elf_i386_fbsd
"
14429 case `/usr/bin/file conftest.o` in
14431 LD="${LD-ld} -m elf32_x86_64
"
14434 LD="${LD-ld} -m elf_i386
"
14438 powerpc64le-*linux*)
14439 LD="${LD-ld} -m elf32lppclinux
"
14442 LD="${LD-ld} -m elf32ppclinux
"
14445 LD="${LD-ld} -m elf_s390
"
14448 LD="${LD-ld} -m elf32_sparc
"
14454 x86_64-*kfreebsd*-gnu)
14455 LD="${LD-ld} -m elf_x86_64_fbsd
"
14458 LD="${LD-ld} -m elf_x86_64
"
14461 LD="${LD-ld} -m elf64lppc
"
14464 LD="${LD-ld} -m elf64ppc
"
14466 s390*-*linux*|s390*-*tpf*)
14467 LD="${LD-ld} -m elf64_s390
"
14470 LD="${LD-ld} -m elf64_sparc
"
14480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14481 SAVE_CFLAGS="$CFLAGS"
14482 CFLAGS="$CFLAGS -belf"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14484 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14485 if ${lt_cv_cc_needs_belf+:} false; then :
14486 $as_echo_n "(cached
) " >&6
14489 ac_cpp='$CPP $CPPFLAGS'
14490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14505 if ac_fn_c_try_link "$LINENO"; then :
14506 lt_cv_cc_needs_belf=yes
14508 lt_cv_cc_needs_belf=no
14510 rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14513 ac_cpp='$CPP $CPPFLAGS'
14514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14520 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14523 CFLAGS="$SAVE_CFLAGS"
14527 # Find out which ABI we are using.
14528 echo 'int i;' > conftest.$ac_ext
14529 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14530 (eval $ac_compile) 2>&5
14532 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14533 test $ac_status = 0; }; then
14534 case `/usr/bin/file conftest.o` in
14536 case $lt_cv_prog_gnu_ld in
14537 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14539 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14551 need_locks="$enable_libtool_lock"
14555 rhapsody* | darwin*)
14556 if test -n "$ac_tool_prefix"; then
14557 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14558 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14560 $as_echo_n "checking
for $ac_word...
" >&6; }
14561 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14562 $as_echo_n "(cached
) " >&6
14564 if test -n "$DSYMUTIL"; then
14565 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568 for as_dir in $PATH
14571 test -z "$as_dir" && as_dir=.
14572 for ac_exec_ext in '' $ac_executable_extensions; do
14573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14574 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14584 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14585 if test -n "$DSYMUTIL"; then
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14587 $as_echo "$DSYMUTIL" >&6; }
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14590 $as_echo "no
" >&6; }
14595 if test -z "$ac_cv_prog_DSYMUTIL"; then
14596 ac_ct_DSYMUTIL=$DSYMUTIL
14597 # Extract the first word of "dsymutil
", so it can be a program name with args.
14598 set dummy dsymutil; ac_word=$2
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14600 $as_echo_n "checking
for $ac_word...
" >&6; }
14601 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14602 $as_echo_n "(cached
) " >&6
14604 if test -n "$ac_ct_DSYMUTIL"; then
14605 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14614 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14624 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14625 if test -n "$ac_ct_DSYMUTIL"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14627 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14630 $as_echo "no
" >&6; }
14633 if test "x
$ac_ct_DSYMUTIL" = x; then
14636 case $cross_compiling:$ac_tool_warned in
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14639 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14640 ac_tool_warned=yes ;;
14642 DSYMUTIL=$ac_ct_DSYMUTIL
14645 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14648 if test -n "$ac_tool_prefix"; then
14649 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14650 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14652 $as_echo_n "checking
for $ac_word...
" >&6; }
14653 if ${ac_cv_prog_NMEDIT+:} false; then :
14654 $as_echo_n "(cached
) " >&6
14656 if test -n "$NMEDIT"; then
14657 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14660 for as_dir in $PATH
14663 test -z "$as_dir" && as_dir=.
14664 for ac_exec_ext in '' $ac_executable_extensions; do
14665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14666 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14667 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14676 NMEDIT=$ac_cv_prog_NMEDIT
14677 if test -n "$NMEDIT"; then
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14679 $as_echo "$NMEDIT" >&6; }
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14682 $as_echo "no
" >&6; }
14687 if test -z "$ac_cv_prog_NMEDIT"; then
14688 ac_ct_NMEDIT=$NMEDIT
14689 # Extract the first word of "nmedit
", so it can be a program name with args.
14690 set dummy nmedit; ac_word=$2
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14692 $as_echo_n "checking
for $ac_word...
" >&6; }
14693 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14694 $as_echo_n "(cached
) " >&6
14696 if test -n "$ac_ct_NMEDIT"; then
14697 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700 for as_dir in $PATH
14703 test -z "$as_dir" && as_dir=.
14704 for ac_exec_ext in '' $ac_executable_extensions; do
14705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14706 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14707 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14716 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14717 if test -n "$ac_ct_NMEDIT"; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14719 $as_echo "$ac_ct_NMEDIT" >&6; }
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14722 $as_echo "no
" >&6; }
14725 if test "x
$ac_ct_NMEDIT" = x; then
14728 case $cross_compiling:$ac_tool_warned in
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14731 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14732 ac_tool_warned=yes ;;
14734 NMEDIT=$ac_ct_NMEDIT
14737 NMEDIT="$ac_cv_prog_NMEDIT"
14740 if test -n "$ac_tool_prefix"; then
14741 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14742 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14744 $as_echo_n "checking
for $ac_word...
" >&6; }
14745 if ${ac_cv_prog_LIPO+:} false; then :
14746 $as_echo_n "(cached
) " >&6
14748 if test -n "$LIPO"; then
14749 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752 for as_dir in $PATH
14755 test -z "$as_dir" && as_dir=.
14756 for ac_exec_ext in '' $ac_executable_extensions; do
14757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14758 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14768 LIPO=$ac_cv_prog_LIPO
14769 if test -n "$LIPO"; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14771 $as_echo "$LIPO" >&6; }
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14774 $as_echo "no
" >&6; }
14779 if test -z "$ac_cv_prog_LIPO"; then
14781 # Extract the first word of "lipo
", so it can be a program name with args.
14782 set dummy lipo; ac_word=$2
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14784 $as_echo_n "checking
for $ac_word...
" >&6; }
14785 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14786 $as_echo_n "(cached
) " >&6
14788 if test -n "$ac_ct_LIPO"; then
14789 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14792 for as_dir in $PATH
14795 test -z "$as_dir" && as_dir=.
14796 for ac_exec_ext in '' $ac_executable_extensions; do
14797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14798 ac_cv_prog_ac_ct_LIPO="lipo
"
14799 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14808 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14809 if test -n "$ac_ct_LIPO"; then
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14811 $as_echo "$ac_ct_LIPO" >&6; }
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14814 $as_echo "no
" >&6; }
14817 if test "x
$ac_ct_LIPO" = x; then
14820 case $cross_compiling:$ac_tool_warned in
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14823 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14824 ac_tool_warned=yes ;;
14829 LIPO="$ac_cv_prog_LIPO"
14832 if test -n "$ac_tool_prefix"; then
14833 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14834 set dummy ${ac_tool_prefix}otool; ac_word=$2
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14836 $as_echo_n "checking
for $ac_word...
" >&6; }
14837 if ${ac_cv_prog_OTOOL+:} false; then :
14838 $as_echo_n "(cached
) " >&6
14840 if test -n "$OTOOL"; then
14841 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14844 for as_dir in $PATH
14847 test -z "$as_dir" && as_dir=.
14848 for ac_exec_ext in '' $ac_executable_extensions; do
14849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14850 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14851 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14860 OTOOL=$ac_cv_prog_OTOOL
14861 if test -n "$OTOOL"; then
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14863 $as_echo "$OTOOL" >&6; }
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14866 $as_echo "no
" >&6; }
14871 if test -z "$ac_cv_prog_OTOOL"; then
14873 # Extract the first word of "otool
", so it can be a program name with args.
14874 set dummy otool; ac_word=$2
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14876 $as_echo_n "checking
for $ac_word...
" >&6; }
14877 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14878 $as_echo_n "(cached
) " >&6
14880 if test -n "$ac_ct_OTOOL"; then
14881 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884 for as_dir in $PATH
14887 test -z "$as_dir" && as_dir=.
14888 for ac_exec_ext in '' $ac_executable_extensions; do
14889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14890 ac_cv_prog_ac_ct_OTOOL="otool
"
14891 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14900 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14901 if test -n "$ac_ct_OTOOL"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14903 $as_echo "$ac_ct_OTOOL" >&6; }
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14906 $as_echo "no
" >&6; }
14909 if test "x
$ac_ct_OTOOL" = x; then
14912 case $cross_compiling:$ac_tool_warned in
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14915 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14916 ac_tool_warned=yes ;;
14921 OTOOL="$ac_cv_prog_OTOOL"
14924 if test -n "$ac_tool_prefix"; then
14925 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14926 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14928 $as_echo_n "checking
for $ac_word...
" >&6; }
14929 if ${ac_cv_prog_OTOOL64+:} false; then :
14930 $as_echo_n "(cached
) " >&6
14932 if test -n "$OTOOL64"; then
14933 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936 for as_dir in $PATH
14939 test -z "$as_dir" && as_dir=.
14940 for ac_exec_ext in '' $ac_executable_extensions; do
14941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14942 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14943 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14952 OTOOL64=$ac_cv_prog_OTOOL64
14953 if test -n "$OTOOL64"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14955 $as_echo "$OTOOL64" >&6; }
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14958 $as_echo "no
" >&6; }
14963 if test -z "$ac_cv_prog_OTOOL64"; then
14964 ac_ct_OTOOL64=$OTOOL64
14965 # Extract the first word of "otool64
", so it can be a program name with args.
14966 set dummy otool64; ac_word=$2
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14968 $as_echo_n "checking
for $ac_word...
" >&6; }
14969 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14970 $as_echo_n "(cached
) " >&6
14972 if test -n "$ac_ct_OTOOL64"; then
14973 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14979 test -z "$as_dir" && as_dir=.
14980 for ac_exec_ext in '' $ac_executable_extensions; do
14981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14983 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14992 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14993 if test -n "$ac_ct_OTOOL64"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14995 $as_echo "$ac_ct_OTOOL64" >&6; }
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14998 $as_echo "no
" >&6; }
15001 if test "x
$ac_ct_OTOOL64" = x; then
15004 case $cross_compiling:$ac_tool_warned in
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15007 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15008 ac_tool_warned=yes ;;
15010 OTOOL64=$ac_ct_OTOOL64
15013 OTOOL64="$ac_cv_prog_OTOOL64"
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15043 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15044 if ${lt_cv_apple_cc_single_mod+:} false; then :
15045 $as_echo_n "(cached
) " >&6
15047 lt_cv_apple_cc_single_mod=no
15048 if test -z "${LT_MULTI_MODULE}"; then
15049 # By default we will add the -single_module flag. You can override
15050 # by either setting the environment variable LT_MULTI_MODULE
15051 # non-empty at configure time, or by adding -multi_module to the
15053 rm -rf libconftest.dylib*
15054 echo "int foo
(void
){return 1;}" > conftest.c
15055 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15056 -dynamiclib -Wl,-single_module conftest.c
" >&5
15057 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15058 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15060 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15061 lt_cv_apple_cc_single_mod=yes
15063 cat conftest.err >&5
15065 rm -rf libconftest.dylib*
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15070 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15072 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15073 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15074 $as_echo_n "(cached
) " >&6
15076 lt_cv_ld_exported_symbols_list=no
15077 save_LDFLAGS=$LDFLAGS
15078 echo "_main
" > conftest.sym
15079 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15091 if ac_fn_c_try_link "$LINENO"; then :
15092 lt_cv_ld_exported_symbols_list=yes
15094 lt_cv_ld_exported_symbols_list=no
15096 rm -f core conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext conftest.$ac_ext
15098 LDFLAGS="$save_LDFLAGS"
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15102 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15104 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15105 if ${lt_cv_ld_force_load+:} false; then :
15106 $as_echo_n "(cached
) " >&6
15108 lt_cv_ld_force_load=no
15109 cat > conftest.c << _LT_EOF
15110 int forced_loaded() { return 2;}
15112 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15113 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15114 echo "$AR cru libconftest.a conftest.o
" >&5
15115 $AR cru libconftest.a conftest.o 2>&5
15116 cat > conftest.c << _LT_EOF
15117 int main() { return 0;}
15119 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15120 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15122 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15123 lt_cv_ld_force_load=yes
15125 cat conftest.err >&5
15127 rm -f conftest.err libconftest.a conftest conftest.c
15128 rm -rf conftest.dSYM
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15132 $as_echo "$lt_cv_ld_force_load" >&6; }
15134 rhapsody* | darwin1.[012])
15135 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15137 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15138 darwin*) # darwin 5.x on
15139 # if running on 10.5 or later, the deployment target defaults
15140 # to the OS version, if on x86, and 10.4, the deployment
15141 # target defaults to 10.4. Don't you love it?
15142 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15143 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15144 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15146 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15148 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15152 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15153 _lt_dar_single_mod='$single_module'
15155 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15156 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15158 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15160 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15161 _lt_dsymutil='~$DSYMUTIL $lib || :'
15169 for ac_header in dlfcn.h
15171 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15172 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15173 cat >>confdefs.h <<_ACEOF
15174 #define HAVE_DLFCN_H 1
15191 enable_win32_dll=no
15194 # Check whether --enable-shared was given.
15195 if test "${enable_shared+set}" = set; then :
15196 enableval=$enable_shared; p=${PACKAGE-default}
15198 yes) enable_shared=yes ;;
15199 no) enable_shared=no ;;
15202 # Look at the argument we got. We use all the common list separators.
15203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15204 for pkg in $enableval; do
15206 if test "X
$pkg" = "X
$p"; then
15225 # Check whether --enable-static was given.
15226 if test "${enable_static+set}" = set; then :
15227 enableval=$enable_static; p=${PACKAGE-default}
15229 yes) enable_static=yes ;;
15230 no) enable_static=no ;;
15233 # Look at the argument we got. We use all the common list separators.
15234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15235 for pkg in $enableval; do
15237 if test "X
$pkg" = "X
$p"; then
15257 # Check whether --with-pic was given.
15258 if test "${with_pic+set}" = set; then :
15259 withval=$with_pic; pic_mode="$withval"
15265 test -z "$pic_mode" && pic_mode=default
15273 # Check whether --enable-fast-install was given.
15274 if test "${enable_fast_install+set}" = set; then :
15275 enableval=$enable_fast_install; p=${PACKAGE-default}
15277 yes) enable_fast_install=yes ;;
15278 no) enable_fast_install=no ;;
15280 enable_fast_install=no
15281 # Look at the argument we got. We use all the common list separators.
15282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15283 for pkg in $enableval; do
15285 if test "X
$pkg" = "X
$p"; then
15286 enable_fast_install=yes
15293 enable_fast_install=yes
15306 # This can be used to rebuild libtool when needed
15307 LIBTOOL_DEPS="$ltmain"
15309 # Always use our own libtool.
15310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15337 test -z "$LN_S" && LN_S="ln -s"
15352 if test -n "${ZSH_VERSION+set}" ; then
15353 setopt NO_GLOB_SUBST
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15357 $as_echo_n "checking
for objdir...
" >&6; }
15358 if ${lt_cv_objdir+:} false; then :
15359 $as_echo_n "(cached
) " >&6
15361 rm -f .libs 2>/dev/null
15362 mkdir .libs 2>/dev/null
15363 if test -d .libs; then
15366 # MS-DOS does not allow filenames that begin with a dot.
15369 rmdir .libs 2>/dev/null
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15372 $as_echo "$lt_cv_objdir" >&6; }
15373 objdir=$lt_cv_objdir
15379 cat >>confdefs.h <<_ACEOF
15380 #define LT_OBJDIR "$lt_cv_objdir/"
15388 # AIX sometimes has problems with the GCC collect2 program. For some
15389 # reason, if we set the COLLECT_NAMES environment variable, the problems
15390 # vanish in a puff of smoke.
15391 if test "X
${COLLECT_NAMES+set}" != Xset; then
15393 export COLLECT_NAMES
15398 # Global variables:
15400 can_build_shared=yes
15402 # All known linkers require a `.a' archive for static linking (except MSVC,
15403 # which needs '.lib').
15406 with_gnu_ld="$lt_cv_prog_gnu_ld"
15409 old_CFLAGS="$CFLAGS"
15411 # Set sane defaults for various variables
15412 test -z "$CC" && CC=cc
15413 test -z "$LTCC" && LTCC=$CC
15414 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15415 test -z "$LD" && LD=ld
15416 test -z "$ac_objext" && ac_objext=o
15418 for cc_temp in $compiler""; do
15420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15426 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15429 # Only perform the check for file, if the check method requires it
15430 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15431 case $deplibs_check_method in
15433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15435 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15436 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15437 $as_echo_n "(cached
) " >&6
15441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15444 lt_save_MAGIC_CMD="$MAGIC_CMD"
15445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15446 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15447 for ac_dir in $ac_dummy; do
15449 test -z "$ac_dir" && ac_dir=.
15450 if test -f $ac_dir/${ac_tool_prefix}file; then
15451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15452 if test -n "$file_magic_test_file"; then
15453 case $deplibs_check_method in
15455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15458 $EGREP "$file_magic_regex" > /dev/null; then
15463 *** Warning: the command libtool uses to detect shared libraries,
15464 *** $file_magic_cmd, produces output that libtool cannot recognize.
15465 *** The result is that libtool may fail to recognize shared libraries
15466 *** as such. This will affect the creation of libtool libraries that
15467 *** depend on shared libraries, but programs linked with such libtool
15468 *** libraries will work regardless of this problem. Nevertheless, you
15469 *** may want to report the problem to your system manager and/or to
15470 *** bug-libtool@gnu.org
15480 MAGIC_CMD="$lt_save_MAGIC_CMD"
15485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15486 if test -n "$MAGIC_CMD"; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15488 $as_echo "$MAGIC_CMD" >&6; }
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15491 $as_echo "no
" >&6; }
15498 if test -z "$lt_cv_path_MAGIC_CMD"; then
15499 if test -n "$ac_tool_prefix"; then
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15501 $as_echo_n "checking
for file...
" >&6; }
15502 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15503 $as_echo_n "(cached
) " >&6
15507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15510 lt_save_MAGIC_CMD="$MAGIC_CMD"
15511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15512 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15513 for ac_dir in $ac_dummy; do
15515 test -z "$ac_dir" && ac_dir=.
15516 if test -f $ac_dir/file; then
15517 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15518 if test -n "$file_magic_test_file"; then
15519 case $deplibs_check_method in
15521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15524 $EGREP "$file_magic_regex" > /dev/null; then
15529 *** Warning: the command libtool uses to detect shared libraries,
15530 *** $file_magic_cmd, produces output that libtool cannot recognize.
15531 *** The result is that libtool may fail to recognize shared libraries
15532 *** as such. This will affect the creation of libtool libraries that
15533 *** depend on shared libraries, but programs linked with such libtool
15534 *** libraries will work regardless of this problem. Nevertheless, you
15535 *** may want to report the problem to your system manager and/or to
15536 *** bug-libtool@gnu.org
15546 MAGIC_CMD="$lt_save_MAGIC_CMD"
15551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15552 if test -n "$MAGIC_CMD"; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15554 $as_echo "$MAGIC_CMD" >&6; }
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15557 $as_echo "no
" >&6; }
15570 # Use C for the default configuration in the libtool script
15574 ac_cpp='$CPP $CPPFLAGS'
15575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15580 # Source file extension for C test sources.
15583 # Object file extension for compiled C test sources.
15587 # Code to be used in simple compile tests
15588 lt_simple_compile_test_code="int some_variable
= 0;"
15590 # Code to be used in simple link tests
15591 lt_simple_link_test_code='int main(){return(0);}'
15599 # If no C compiler was specified, use CC.
15602 # If no C compiler flags were specified, use CFLAGS.
15603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15605 # Allow CC to be a program name with arguments.
15608 # Save the default compiler, since it gets overwritten when the other
15609 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15610 compiler_DEFAULT=$CC
15612 # save warnings/boilerplate of simple test code
15613 ac_outfile=conftest.$ac_objext
15614 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15616 _lt_compiler_boilerplate=`cat conftest.err`
15619 ac_outfile=conftest.$ac_objext
15620 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15622 _lt_linker_boilerplate=`cat conftest.err`
15627 ## There is no encapsulation within the following macros, do not change
15628 ## the running order or otherwise move them around unless you know exactly
15629 ## what you are doing...
15630 if test -n "$compiler"; then
15632 lt_prog_compiler_no_builtin_flag=
15634 if test "$GCC" = yes; then
15635 case $cc_basename in
15637 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15639 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15643 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15644 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15645 $as_echo_n "(cached
) " >&6
15647 lt_cv_prog_compiler_rtti_exceptions=no
15648 ac_outfile=conftest.$ac_objext
15649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15650 lt_compiler_flag="-fno-rtti -fno-exceptions"
15651 # Insert the option either (1) after the last *FLAGS variable, or
15652 # (2) before a word containing "conftest.
", or (3) at the end.
15653 # Note that $ac_compile itself does not contain backslashes and begins
15654 # with a dollar sign (not a hyphen), so the echo should work correctly.
15655 # The option is referenced via a variable to avoid confusing sed.
15656 lt_compile=`echo "$ac_compile" | $SED \
15657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15659 -e 's:$: $lt_compiler_flag:'`
15660 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15661 (eval "$lt_compile" 2>conftest.err)
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15665 if (exit $ac_status) && test -s "$ac_outfile"; then
15666 # The compiler can only warn and ignore the option if not recognized
15667 # So say no if there are warnings other than the usual output.
15668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15671 lt_cv_prog_compiler_rtti_exceptions=yes
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15678 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15680 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15693 lt_prog_compiler_wl=
15694 lt_prog_compiler_pic=
15695 lt_prog_compiler_static=
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15698 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15700 if test "$GCC" = yes; then
15701 lt_prog_compiler_wl='-Wl,'
15702 lt_prog_compiler_static='-static'
15706 # All AIX code is PIC.
15707 if test "$host_cpu" = ia64; then
15708 # AIX 5 now supports IA64 processor
15709 lt_prog_compiler_static='-Bstatic'
15711 lt_prog_compiler_pic='-fPIC'
15717 # see comment about AmigaOS4 .so support
15718 lt_prog_compiler_pic='-fPIC'
15721 # FIXME: we need at least 68020 code to build shared libraries, but
15722 # adding the `-m68020' flag to GCC prevents building anything better,
15724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15730 # PIC is the default for these OSes.
15733 mingw* | cygwin* | pw32* | os2* | cegcc*)
15734 # This hack is so that the source file can tell whether it is being
15735 # built for inclusion in a dll (and should export symbols for example).
15736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15737 # (--disable-auto-import) libraries
15738 lt_prog_compiler_pic='-DDLL_EXPORT'
15741 darwin* | rhapsody*)
15742 # PIC is the default on this platform
15743 # Common symbols not allowed in MH_DYLIB files
15744 lt_prog_compiler_pic='-fno-common'
15748 # PIC is the default for Haiku.
15749 # The "-static" flag exists, but is broken.
15750 lt_prog_compiler_static=
15754 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15755 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15756 # sets the default TLS model and affects inlining.
15762 lt_prog_compiler_pic='-fPIC'
15768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15769 # Instead, we relocate shared libraries at runtime.
15773 # Just because we use GCC doesn't mean we suddenly get shared libraries
15774 # on systems that don't support them.
15775 lt_prog_compiler_can_build_shared=no
15780 # QNX uses GNU C++, but need to define -shared option too, otherwise
15781 # it will coredump.
15782 lt_prog_compiler_pic='-fPIC -shared'
15786 if test -d /usr/nec; then
15787 lt_prog_compiler_pic=-Kconform_pic
15792 lt_prog_compiler_pic='-fPIC'
15796 case $cc_basename in
15797 nvcc*) # Cuda Compiler Driver 2.2
15798 lt_prog_compiler_wl='-Xlinker '
15799 lt_prog_compiler_pic='-Xcompiler -fPIC'
15803 # PORTME Check for flag to pass linker flags through the system compiler.
15806 lt_prog_compiler_wl='-Wl,'
15807 if test "$host_cpu" = ia64; then
15808 # AIX 5 now supports IA64 processor
15809 lt_prog_compiler_static='-Bstatic'
15811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15815 mingw* | cygwin* | pw32* | os2* | cegcc*)
15816 # This hack is so that the source file can tell whether it is being
15817 # built for inclusion in a dll (and should export symbols for example).
15818 lt_prog_compiler_pic='-DDLL_EXPORT'
15821 hpux9* | hpux10* | hpux11*)
15822 lt_prog_compiler_wl='-Wl,'
15823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15824 # not for PA HP-UX.
15830 lt_prog_compiler_pic='+Z'
15833 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15834 lt_prog_compiler_static='${wl}-a ${wl}archive'
15837 irix5* | irix6* | nonstopux*)
15838 lt_prog_compiler_wl='-Wl,'
15839 # PIC (with -KPIC) is the default.
15840 lt_prog_compiler_static='-non_shared'
15843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15844 case $cc_basename in
15845 # old Intel for x86_64 which still supported -KPIC.
15847 lt_prog_compiler_wl='-Wl,'
15848 lt_prog_compiler_pic='-KPIC'
15849 lt_prog_compiler_static='-static'
15851 # icc used to be incompatible with GCC.
15852 # ICC 10 doesn't accept -KPIC any more.
15854 lt_prog_compiler_wl='-Wl,'
15855 lt_prog_compiler_pic='-fPIC'
15856 lt_prog_compiler_static='-static'
15858 # Lahey Fortran 8.1.
15860 lt_prog_compiler_wl='-Wl,'
15861 lt_prog_compiler_pic='--shared'
15862 lt_prog_compiler_static='--static'
15864 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15865 # Portland Group compilers (*not* the Pentium gcc compiler,
15866 # which looks to be a dead project)
15867 lt_prog_compiler_wl='-Wl,'
15868 lt_prog_compiler_pic='-fpic'
15869 lt_prog_compiler_static='-Bstatic'
15872 lt_prog_compiler_wl='-Wl,'
15873 # All Alpha code is PIC.
15874 lt_prog_compiler_static='-non_shared'
15876 xl* | bgxl* | bgf* | mpixl*)
15877 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15878 lt_prog_compiler_wl='-Wl,'
15879 lt_prog_compiler_pic='-qpic'
15880 lt_prog_compiler_static='-qstaticlink'
15883 case `$CC -V 2>&1 | sed 5q` in
15884 *Sun\ F* | *Sun*Fortran*)
15885 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15886 lt_prog_compiler_pic='-KPIC'
15887 lt_prog_compiler_static='-Bstatic'
15888 lt_prog_compiler_wl=''
15892 lt_prog_compiler_pic='-KPIC'
15893 lt_prog_compiler_static='-Bstatic'
15894 lt_prog_compiler_wl='-Wl,'
15902 lt_prog_compiler_pic='-KPIC'
15903 lt_prog_compiler_static='-Bstatic'
15907 # QNX uses GNU C++, but need to define -shared option too, otherwise
15908 # it will coredump.
15909 lt_prog_compiler_pic='-fPIC -shared'
15912 osf3* | osf4* | osf5*)
15913 lt_prog_compiler_wl='-Wl,'
15914 # All OSF/1 code is PIC.
15915 lt_prog_compiler_static='-non_shared'
15919 lt_prog_compiler_static='-non_shared'
15923 lt_prog_compiler_pic='-KPIC'
15924 lt_prog_compiler_static='-Bstatic'
15925 case $cc_basename in
15926 f77* | f90* | f95*)
15927 lt_prog_compiler_wl='-Qoption ld ';;
15929 lt_prog_compiler_wl='-Wl,';;
15934 lt_prog_compiler_wl='-Qoption ld '
15935 lt_prog_compiler_pic='-PIC'
15936 lt_prog_compiler_static='-Bstatic'
15939 sysv4 | sysv4.2uw2* | sysv4.3*)
15940 lt_prog_compiler_wl='-Wl,'
15941 lt_prog_compiler_pic='-KPIC'
15942 lt_prog_compiler_static='-Bstatic'
15946 if test -d /usr/nec ;then
15947 lt_prog_compiler_pic='-Kconform_pic'
15948 lt_prog_compiler_static='-Bstatic'
15952 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15953 lt_prog_compiler_wl='-Wl,'
15954 lt_prog_compiler_pic='-KPIC'
15955 lt_prog_compiler_static='-Bstatic'
15959 lt_prog_compiler_wl='-Wl,'
15960 lt_prog_compiler_can_build_shared=no
15964 lt_prog_compiler_pic='-pic'
15965 lt_prog_compiler_static='-Bstatic'
15969 lt_prog_compiler_can_build_shared=no
15975 # For platforms which do not support PIC, -DPIC is meaningless:
15977 lt_prog_compiler_pic=
15980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15984 $as_echo "$lt_prog_compiler_pic" >&6; }
15992 # Check to make sure the PIC flag actually works.
15994 if test -n "$lt_prog_compiler_pic"; then
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15996 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15997 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15998 $as_echo_n "(cached
) " >&6
16000 lt_cv_prog_compiler_pic_works=no
16001 ac_outfile=conftest.$ac_objext
16002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16003 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16004 # Insert the option either (1) after the last *FLAGS variable, or
16005 # (2) before a word containing "conftest.
", or (3) at the end.
16006 # Note that $ac_compile itself does not contain backslashes and begins
16007 # with a dollar sign (not a hyphen), so the echo should work correctly.
16008 # The option is referenced via a variable to avoid confusing sed.
16009 lt_compile=`echo "$ac_compile" | $SED \
16010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16012 -e 's:$: $lt_compiler_flag:'`
16013 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16014 (eval "$lt_compile" 2>conftest.err)
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16018 if (exit $ac_status) && test -s "$ac_outfile"; then
16019 # The compiler can only warn and ignore the option if not recognized
16020 # So say no if there are warnings other than the usual output.
16021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16024 lt_cv_prog_compiler_pic_works=yes
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16031 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16033 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16034 case $lt_prog_compiler_pic in
16036 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16039 lt_prog_compiler_pic=
16040 lt_prog_compiler_can_build_shared=no
16051 # Check to make sure the static flag actually works.
16053 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16055 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16056 if ${lt_cv_prog_compiler_static_works+:} false; then :
16057 $as_echo_n "(cached
) " >&6
16059 lt_cv_prog_compiler_static_works=no
16060 save_LDFLAGS="$LDFLAGS"
16061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16064 # The linker can only warn and ignore the option if not recognized
16065 # So say no if there are warnings
16066 if test -s conftest.err; then
16067 # Append any errors to the config.log.
16068 cat conftest.err 1>&5
16069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16071 if diff conftest.exp conftest.er2 >/dev/null; then
16072 lt_cv_prog_compiler_static_works=yes
16075 lt_cv_prog_compiler_static_works=yes
16079 LDFLAGS="$save_LDFLAGS"
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16083 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16085 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16088 lt_prog_compiler_static=
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16098 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16099 if ${lt_cv_prog_compiler_c_o+:} false; then :
16100 $as_echo_n "(cached
) " >&6
16102 lt_cv_prog_compiler_c_o=no
16103 $RM -r conftest 2>/dev/null
16107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16109 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16110 # Insert the option either (1) after the last *FLAGS variable, or
16111 # (2) before a word containing "conftest.
", or (3) at the end.
16112 # Note that $ac_compile itself does not contain backslashes and begins
16113 # with a dollar sign (not a hyphen), so the echo should work correctly.
16114 lt_compile=`echo "$ac_compile" | $SED \
16115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16117 -e 's:$: $lt_compiler_flag:'`
16118 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16119 (eval "$lt_compile" 2>out/conftest.err)
16121 cat out/conftest.err >&5
16122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16125 # The compiler can only warn and ignore the option if not recognized
16126 # So say no if there are warnings
16127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16130 lt_cv_prog_compiler_c_o=yes
16135 # SGI C++ compiler will create directory out/ii_files/ for
16136 # template instantiation
16137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16138 $RM out/* && rmdir out
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16145 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16153 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16154 if ${lt_cv_prog_compiler_c_o+:} false; then :
16155 $as_echo_n "(cached
) " >&6
16157 lt_cv_prog_compiler_c_o=no
16158 $RM -r conftest 2>/dev/null
16162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16164 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16165 # Insert the option either (1) after the last *FLAGS variable, or
16166 # (2) before a word containing "conftest.
", or (3) at the end.
16167 # Note that $ac_compile itself does not contain backslashes and begins
16168 # with a dollar sign (not a hyphen), so the echo should work correctly.
16169 lt_compile=`echo "$ac_compile" | $SED \
16170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16172 -e 's:$: $lt_compiler_flag:'`
16173 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16174 (eval "$lt_compile" 2>out/conftest.err)
16176 cat out/conftest.err >&5
16177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16180 # The compiler can only warn and ignore the option if not recognized
16181 # So say no if there are warnings
16182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16185 lt_cv_prog_compiler_c_o=yes
16190 # SGI C++ compiler will create directory out/ii_files/ for
16191 # template instantiation
16192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16193 $RM out/* && rmdir out
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16205 hard_links="nottested
"
16206 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16207 # do not overwrite the value of need_locks provided by the user
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16209 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16214 ln conftest.a conftest.b 2>&5 || hard_links=no
16215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16217 $as_echo "$hard_links" >&6; }
16218 if test "$hard_links" = no; then
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16220 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16233 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16236 allow_undefined_flag=
16237 always_export_symbols=no
16239 archive_expsym_cmds=
16240 compiler_needs_object=no
16241 enable_shared_with_static_runtimes=no
16242 export_dynamic_flag_spec=
16243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16244 hardcode_automatic=no
16246 hardcode_direct_absolute=no
16247 hardcode_libdir_flag_spec=
16248 hardcode_libdir_flag_spec_ld=
16249 hardcode_libdir_separator=
16250 hardcode_minus_L=no
16251 hardcode_shlibpath_var=unsupported
16253 link_all_deplibs=unknown
16255 module_expsym_cmds=
16256 old_archive_from_new_cmds=
16257 old_archive_from_expsyms_cmds=
16258 thread_safe_flag_spec=
16259 whole_archive_flag_spec=
16260 # include_expsyms should be a list of space-separated symbols to be *always*
16261 # included in the symbol list
16263 # exclude_expsyms can be an extended regexp of symbols to exclude
16264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16266 # as well as any symbol that contains `d'.
16267 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16269 # platforms (ab)use it in PIC code, but their linkers get confused if
16270 # the symbol is explicitly referenced. Since portable code cannot
16271 # rely on this symbol name, it's probably fine to never include it in
16272 # preloaded symbol tables.
16273 # Exclude shared library initialization/finalization symbols.
16274 extract_expsyms_cmds=
16277 cygwin* | mingw* | pw32* | cegcc*)
16278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16279 # When not using gcc, we currently assume that we are using
16280 # Microsoft Visual C++.
16281 if test "$GCC" != yes; then
16286 # we just hope/assume this is gcc and not c89 (= MSVC++)
16296 # On some targets, GNU ld is compatible enough with the native linker
16297 # that we're better off using the native interface for both.
16298 lt_use_gnu_ld_interface=no
16299 if test "$with_gnu_ld" = yes; then
16302 # The AIX port of GNU ld has always aspired to compatibility
16303 # with the native linker. However, as the warning in the GNU ld
16304 # block says, versions before 2.19.5* couldn't really create working
16305 # shared libraries, regardless of the interface used.
16306 case `$LD -v 2>&1` in
16307 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16308 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16309 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16311 lt_use_gnu_ld_interface=yes
16316 lt_use_gnu_ld_interface=yes
16321 if test "$lt_use_gnu_ld_interface" = yes; then
16322 # If archive_cmds runs LD, not CC, wlarc should be empty
16325 # Set some defaults for GNU ld with shared library support. These
16326 # are reset later if shared libraries are not supported. Putting them
16327 # here allows them to be overridden if necessary.
16328 runpath_var=LD_RUN_PATH
16329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16330 export_dynamic_flag_spec='${wl}--export-dynamic'
16331 # ancient GNU ld didn't support --whole-archive et. al.
16332 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16333 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16335 whole_archive_flag_spec=
16337 supports_anon_versioning=no
16338 case `$LD -v 2>&1` in
16339 *GNU\ gold*) supports_anon_versioning=yes ;;
16340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16343 *\ 2.11.*) ;; # other 2.11 versions
16344 *) supports_anon_versioning=yes ;;
16347 # See if GNU ld supports shared libraries.
16350 # On AIX/PPC, the GNU linker is very broken
16351 if test "$host_cpu" != ia64; then
16355 *** Warning: the GNU linker, at least up to release 2.19, is reported
16356 *** to be unable to reliably create shared libraries on AIX.
16357 *** Therefore, libtool is disabling shared libraries support. If you
16358 *** really care for shared libraries, you may want to install binutils
16359 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16360 *** You will then need to restart the configuration process.
16369 # see comment about AmigaOS4 .so support
16370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16371 archive_expsym_cmds=''
16374 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)'
16375 hardcode_libdir_flag_spec
='-L$libdir'
16376 hardcode_minus_L
=yes
16382 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16383 allow_undefined_flag
=unsupported
16384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16385 # support --undefined. This deserves some investigation. FIXME
16386 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16392 cygwin
* | mingw
* | pw32
* | cegcc
*)
16393 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16394 # as there is no search path for DLLs.
16395 hardcode_libdir_flag_spec
='-L$libdir'
16396 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16397 allow_undefined_flag
=unsupported
16398 always_export_symbols
=no
16399 enable_shared_with_static_runtimes
=yes
16400 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16402 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16403 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16404 # If the export-symbols file already is a .def file (1st line
16405 # is EXPORTS), use it as is; otherwise, prepend...
16406 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16407 cp $export_symbols $output_objdir/$soname.def;
16409 echo EXPORTS > $output_objdir/$soname.def;
16410 cat $export_symbols >> $output_objdir/$soname.def;
16412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16419 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16420 link_all_deplibs
=yes
16425 hardcode_shlibpath_var
=no
16426 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16427 export_dynamic_flag_spec
='${wl}-E'
16428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16429 # Instead, shared libraries are loaded at an image base (0x10000000 by
16430 # default) and relocated if they conflict, which is a slow very memory
16431 # consuming and fragmenting process. To avoid this, we pick a random,
16432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16434 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16435 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'
16438 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16440 if test "$host_os" = linux-dietlibc
; then
16441 case $cc_basename in
16442 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16445 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16446 && test "$tmp_diet" = no
16448 tmp_addflag
=' $pic_flag'
16449 tmp_sharedflag
='-shared'
16450 case $cc_basename,$host_cpu in
16451 pgcc
*) # Portland Group C compiler
16452 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'
16453 tmp_addflag
=' $pic_flag'
16455 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16456 # Portland Group f77 and f90 compilers
16457 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'
16458 tmp_addflag
=' $pic_flag -Mnomain' ;;
16459 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16460 tmp_addflag
=' -i_dynamic' ;;
16461 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16462 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16463 ifc
* | ifort
*) # Intel Fortran compiler
16464 tmp_addflag
=' -nofor_main' ;;
16465 lf95
*) # Lahey Fortran 8.1
16466 whole_archive_flag_spec
=
16467 tmp_sharedflag
='--shared' ;;
16468 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16469 tmp_sharedflag
='-qmkshrobj'
16471 nvcc
*) # Cuda Compiler Driver 2.2
16472 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'
16473 compiler_needs_object
=yes
16476 case `$CC -V 2>&1 | sed 5q` in
16477 *Sun\ C
*) # Sun C 5.9
16478 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'
16479 compiler_needs_object
=yes
16480 tmp_sharedflag
='-G' ;;
16481 *Sun\ F
*) # Sun Fortran 8.3
16482 tmp_sharedflag
='-G' ;;
16484 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16486 if test "x$supports_anon_versioning" = xyes
; then
16487 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16489 echo "local: *; };" >> $output_objdir/$libname.ver~
16490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16493 case $cc_basename in
16494 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16495 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16496 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16497 hardcode_libdir_flag_spec
=
16498 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16499 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16500 if test "x$supports_anon_versioning" = xyes
; then
16501 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16503 echo "local: *; };" >> $output_objdir/$libname.ver~
16504 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16514 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16515 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16518 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16519 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16524 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16528 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16529 *** create shared libraries on Solaris systems. Therefore, libtool
16530 *** is disabling shared libraries support. We urge you to upgrade GNU
16531 *** binutils to release 2.9.1 or newer. Another option is to modify
16532 *** your PATH or compiler configuration so that the native linker is
16533 *** used, and then restart.
16536 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16537 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16538 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16544 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16545 case `$LD -v 2>&1` in
16546 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16550 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16551 *** reliably create shared libraries on SCO systems. Therefore, libtool
16552 *** is disabling shared libraries support. We urge you to upgrade GNU
16553 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16554 *** your PATH or compiler configuration so that the native linker is
16555 *** used, and then restart.
16560 # For security reasons, it is highly recommended that you always
16561 # use absolute paths for naming shared libraries, and exclude the
16562 # DT_RUNPATH tag from executables and libraries. But doing so
16563 # requires that you compile everything twice, which is a pain.
16564 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16565 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16566 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16567 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16576 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_direct
=yes
16579 hardcode_shlibpath_var
=no
16583 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16584 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16585 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16592 if test "$ld_shlibs" = no
; then
16594 hardcode_libdir_flag_spec
=
16595 export_dynamic_flag_spec
=
16596 whole_archive_flag_spec
=
16599 # PORTME fill in a description of your system's linker (not GNU ld)
16602 allow_undefined_flag
=unsupported
16603 always_export_symbols
=yes
16604 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'
16605 # Note: this linker hardcodes the directories in LIBPATH if there
16606 # are no directories specified by -L.
16607 hardcode_minus_L
=yes
16608 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16609 # Neither direct hardcoding nor static linking is supported with a
16611 hardcode_direct
=unsupported
16616 if test "$host_cpu" = ia64
; then
16617 # On IA64, the linker does run time linking by default, so we don't
16618 # have to do anything special.
16619 aix_use_runtimelinking
=no
16620 exp_sym_flag
='-Bexport'
16623 # If we're using GNU nm, then we don't want the "-C" option.
16624 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16625 # Also, AIX nm treats weak defined symbols like other global
16626 # defined symbols, whereas GNU nm marks them as "W".
16627 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16628 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'
16630 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'
16632 aix_use_runtimelinking
=no
16634 # Test if we are trying to use run time linking or normal
16635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16636 # need to do runtime linking.
16637 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16638 for ld_flag
in $LDFLAGS; do
16639 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16640 aix_use_runtimelinking
=yes
16647 exp_sym_flag
='-bexport'
16648 no_entry_flag
='-bnoentry'
16651 # When large executables or shared objects are built, AIX ld can
16652 # have problems creating the table of contents. If linking a library
16653 # or program results in "error TOC overflow" add -mminimal-toc to
16654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16658 hardcode_direct
=yes
16659 hardcode_direct_absolute
=yes
16660 hardcode_libdir_separator
=':'
16661 link_all_deplibs
=yes
16662 file_list_spec
='${wl}-f,'
16664 if test "$GCC" = yes; then
16665 case $host_os in aix4.
[012]|aix4.
[012].
*)
16666 # We only want to do this on AIX 4.2 and lower, the check
16667 # below for broken collect2 doesn't work under 4.3+
16668 collect2name
=`${CC} -print-prog-name=collect2`
16669 if test -f "$collect2name" &&
16670 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16672 # We have reworked collect2
16675 # We have old collect2
16676 hardcode_direct
=unsupported
16677 # It fails to find uninstalled libraries when the uninstalled
16678 # path is not listed in the libpath. Setting hardcode_minus_L
16679 # to unsupported forces relinking
16680 hardcode_minus_L
=yes
16681 hardcode_libdir_flag_spec
='-L$libdir'
16682 hardcode_libdir_separator
=
16686 shared_flag
='-shared'
16687 if test "$aix_use_runtimelinking" = yes; then
16688 shared_flag
="$shared_flag "'${wl}-G'
16692 if test "$host_cpu" = ia64
; then
16693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16694 # chokes on -Wl,-G. The following line is correct:
16697 if test "$aix_use_runtimelinking" = yes; then
16698 shared_flag
='${wl}-G'
16700 shared_flag
='${wl}-bM:SRE'
16705 export_dynamic_flag_spec
='${wl}-bexpall'
16706 # It seems that -bexpall does not export symbols beginning with
16707 # underscore (_), so it is better to generate a list of symbols to export.
16708 always_export_symbols
=yes
16709 if test "$aix_use_runtimelinking" = yes; then
16710 # Warning - without using the other runtime loading flags (-brtl),
16711 # -berok will link without error, but may produce a broken library.
16712 allow_undefined_flag
='-berok'
16713 # Determine the default libpath from the value encoded in an
16714 # empty executable.
16715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16726 if ac_fn_c_try_link
"$LINENO"; then :
16728 lt_aix_libpath_sed
='
16729 /Import File Strings/,/^$/ {
16735 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16736 # Check for a 64-bit object if we didn't find anything.
16737 if test -z "$aix_libpath"; then
16738 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16741 rm -f core conftest.err conftest.
$ac_objext \
16742 conftest
$ac_exeext conftest.
$ac_ext
16743 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16745 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16746 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"
16748 if test "$host_cpu" = ia64
; then
16749 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16750 allow_undefined_flag
="-z nodefs"
16751 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"
16753 # Determine the default libpath from the value encoded in an
16754 # empty executable.
16755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16766 if ac_fn_c_try_link
"$LINENO"; then :
16768 lt_aix_libpath_sed
='
16769 /Import File Strings/,/^$/ {
16775 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16776 # Check for a 64-bit object if we didn't find anything.
16777 if test -z "$aix_libpath"; then
16778 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16781 rm -f core conftest.err conftest.
$ac_objext \
16782 conftest
$ac_exeext conftest.
$ac_ext
16783 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16785 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16786 # Warning - without using the other run time loading flags,
16787 # -berok will link without error, but may produce a broken library.
16788 no_undefined_flag
=' ${wl}-bernotok'
16789 allow_undefined_flag
=' ${wl}-berok'
16790 if test "$with_gnu_ld" = yes; then
16791 # We only use this code for GNU lds that support --whole-archive.
16792 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16794 # Exported symbols can be pulled into shared objects from archives
16795 whole_archive_flag_spec
='$convenience'
16797 archive_cmds_need_lc
=yes
16798 # This is similar to how AIX traditionally builds its shared libraries.
16799 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'
16807 # see comment about AmigaOS4 .so support
16808 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16809 archive_expsym_cmds
=''
16812 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)'
16813 hardcode_libdir_flag_spec
='-L$libdir'
16814 hardcode_minus_L
=yes
16820 export_dynamic_flag_spec
=-rdynamic
16823 cygwin
* | mingw
* | pw32
* | cegcc
*)
16824 # When not using gcc, we currently assume that we are using
16825 # Microsoft Visual C++.
16826 # hardcode_libdir_flag_spec is actually meaningless, as there is
16827 # no search path for DLLs.
16828 hardcode_libdir_flag_spec
=' '
16829 allow_undefined_flag
=unsupported
16830 # Tell ltmain to make .lib files, not .a files.
16832 # Tell ltmain to make .dll files, not .so files.
16834 # FIXME: Setting linknames here is a bad hack.
16835 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16836 # The linker will automatically build a .lib file if we build a DLL.
16837 old_archive_from_new_cmds
='true'
16838 # FIXME: Should let the user specify the lib program.
16839 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16840 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16841 enable_shared_with_static_runtimes
=yes
16844 darwin
* | rhapsody
*)
16847 archive_cmds_need_lc
=no
16849 hardcode_automatic
=yes
16850 hardcode_shlibpath_var
=unsupported
16851 if test "$lt_cv_ld_force_load" = "yes"; then
16852 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\"`'
16854 whole_archive_flag_spec
=''
16856 link_all_deplibs
=yes
16857 allow_undefined_flag
="$_lt_dar_allow_undefined"
16858 case $cc_basename in
16859 ifort
*) _lt_dar_can_shared
=yes ;;
16860 *) _lt_dar_can_shared
=$GCC ;;
16862 if test "$_lt_dar_can_shared" = "yes"; then
16863 output_verbose_link_cmd
=func_echo_all
16864 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16865 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16866 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}"
16867 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}"
16876 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 hardcode_libdir_flag_spec
='-L$libdir'
16878 hardcode_shlibpath_var
=no
16881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16882 # support. Future versions do this automatically, but an explicit c++rt0.o
16883 # does not break anything, and helps significantly (at the cost of a little
16886 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16887 hardcode_libdir_flag_spec
='-R$libdir'
16888 hardcode_direct
=yes
16889 hardcode_shlibpath_var
=no
16892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16894 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16895 hardcode_direct
=yes
16896 hardcode_minus_L
=yes
16897 hardcode_shlibpath_var
=no
16900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16901 freebsd
* | dragonfly
*)
16902 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16903 hardcode_libdir_flag_spec
='-R$libdir'
16904 hardcode_direct
=yes
16905 hardcode_shlibpath_var
=no
16909 if test "$GCC" = yes; then
16910 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'
16912 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'
16914 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16915 hardcode_libdir_separator
=:
16916 hardcode_direct
=yes
16918 # hardcode_minus_L: Not really in the search PATH,
16919 # but as the default location of the library.
16920 hardcode_minus_L
=yes
16921 export_dynamic_flag_spec
='${wl}-E'
16925 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16926 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16928 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16930 if test "$with_gnu_ld" = no
; then
16931 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16932 hardcode_libdir_flag_spec_ld
='+b $libdir'
16933 hardcode_libdir_separator
=:
16934 hardcode_direct
=yes
16935 hardcode_direct_absolute
=yes
16936 export_dynamic_flag_spec
='${wl}-E'
16937 # hardcode_minus_L: Not really in the search PATH,
16938 # but as the default location of the library.
16939 hardcode_minus_L
=yes
16944 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16947 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16950 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16953 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16959 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16962 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16966 # Older versions of the 11.00 compiler do not understand -b yet
16967 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16969 $as_echo_n "checking if $CC understands -b... " >&6; }
16970 if ${lt_cv_prog_compiler__b+:} false
; then :
16971 $as_echo_n "(cached) " >&6
16973 lt_cv_prog_compiler__b
=no
16974 save_LDFLAGS
="$LDFLAGS"
16975 LDFLAGS
="$LDFLAGS -b"
16976 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16977 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16978 # The linker can only warn and ignore the option if not recognized
16979 # So say no if there are warnings
16980 if test -s conftest.err
; then
16981 # Append any errors to the config.log.
16982 cat conftest.err
1>&5
16983 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16984 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16985 if diff conftest.exp conftest.er2
>/dev
/null
; then
16986 lt_cv_prog_compiler__b
=yes
16989 lt_cv_prog_compiler__b
=yes
16993 LDFLAGS
="$save_LDFLAGS"
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16997 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16999 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17000 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17002 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17008 if test "$with_gnu_ld" = no
; then
17009 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17010 hardcode_libdir_separator
=:
17015 hardcode_shlibpath_var
=no
17018 hardcode_direct
=yes
17019 hardcode_direct_absolute
=yes
17020 export_dynamic_flag_spec
='${wl}-E'
17022 # hardcode_minus_L: Not really in the search PATH,
17023 # but as the default location of the library.
17024 hardcode_minus_L
=yes
17030 irix5
* | irix6
* | nonstopux
*)
17031 if test "$GCC" = yes; then
17032 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'
17033 # Try to use the -exported_symbol ld option, if it does not
17034 # work, assume that -exports_file does not work either and
17035 # implicitly export all symbols.
17036 save_LDFLAGS
="$LDFLAGS"
17037 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17039 /* end confdefs.h. */
17042 if ac_fn_c_try_link
"$LINENO"; then :
17043 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'
17046 rm -f core conftest.err conftest.
$ac_objext \
17047 conftest
$ac_exeext conftest.
$ac_ext
17048 LDFLAGS
="$save_LDFLAGS"
17050 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'
17051 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'
17053 archive_cmds_need_lc
='no'
17054 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17055 hardcode_libdir_separator
=:
17057 link_all_deplibs
=yes
17061 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17062 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17064 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17066 hardcode_libdir_flag_spec
='-R$libdir'
17067 hardcode_direct
=yes
17068 hardcode_shlibpath_var
=no
17072 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_direct
=yes
17074 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17075 hardcode_libdir_separator
=:
17076 hardcode_shlibpath_var
=no
17083 if test -f /usr
/libexec
/ld.so
; then
17084 hardcode_direct
=yes
17085 hardcode_shlibpath_var
=no
17086 hardcode_direct_absolute
=yes
17087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17088 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17089 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17090 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17091 export_dynamic_flag_spec
='${wl}-E'
17094 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17095 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17096 hardcode_libdir_flag_spec
='-R$libdir'
17099 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17100 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17110 hardcode_libdir_flag_spec
='-L$libdir'
17111 hardcode_minus_L
=yes
17112 allow_undefined_flag
=unsupported
17113 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'
17114 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17118 if test "$GCC" = yes; then
17119 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17120 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'
17122 allow_undefined_flag
=' -expect_unresolved \*'
17123 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'
17125 archive_cmds_need_lc
='no'
17126 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17127 hardcode_libdir_separator
=:
17130 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17131 if test "$GCC" = yes; then
17132 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17133 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'
17134 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17136 allow_undefined_flag
=' -expect_unresolved \*'
17137 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'
17138 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~
17139 $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'
17141 # Both c and cxx compiler support -rpath directly
17142 hardcode_libdir_flag_spec
='-rpath $libdir'
17144 archive_cmds_need_lc
='no'
17145 hardcode_libdir_separator
=:
17149 no_undefined_flag
=' -z defs'
17150 if test "$GCC" = yes; then
17152 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17153 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17154 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17156 case `$CC -V 2>&1` in
17159 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17161 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17165 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17166 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17167 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17171 hardcode_libdir_flag_spec
='-R$libdir'
17172 hardcode_shlibpath_var
=no
17174 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17176 # The compiler driver will combine and reorder linker options,
17177 # but understands `-z linker_flag'. GCC discards it without `$wl',
17178 # but is careful enough not to reorder.
17179 # Supported since Solaris 2.6 (maybe 2.5.1?)
17180 if test "$GCC" = yes; then
17181 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17183 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17187 link_all_deplibs
=yes
17191 if test "x$host_vendor" = xsequent
; then
17192 # Use $CC to link under sequent, because it throws in some extra .o
17193 # files that make .init and .fini sections work.
17194 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17196 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17198 hardcode_libdir_flag_spec
='-L$libdir'
17199 hardcode_direct
=yes
17200 hardcode_minus_L
=yes
17201 hardcode_shlibpath_var
=no
17205 case $host_vendor in
17207 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17208 hardcode_direct
=yes # is this really true???
17211 ## LD is ld it makes a PLAMLIB
17212 ## CC just makes a GrossModule.
17213 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17214 reload_cmds
='$CC -r -o $output$reload_objs'
17218 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17222 runpath_var
='LD_RUN_PATH'
17223 hardcode_shlibpath_var
=no
17227 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17228 hardcode_shlibpath_var
=no
17229 export_dynamic_flag_spec
='-Bexport'
17233 if test -d /usr
/nec
; then
17234 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_shlibpath_var
=no
17236 runpath_var
=LD_RUN_PATH
17237 hardcode_runpath_var
=yes
17242 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17243 no_undefined_flag
='${wl}-z,text'
17244 archive_cmds_need_lc
=no
17245 hardcode_shlibpath_var
=no
17246 runpath_var
='LD_RUN_PATH'
17248 if test "$GCC" = yes; then
17249 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17250 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17252 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17253 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17257 sysv5
* | sco3.2v5
* | sco5v6
*)
17258 # Note: We can NOT use -z defs as we might desire, because we do not
17259 # link with -lc, and that would cause any symbols used from libc to
17260 # always be unresolved, which means just about no library would
17261 # ever link correctly. If we're not using GNU ld we use -z text
17262 # though, which does catch some bad symbols but isn't as heavy-handed
17264 no_undefined_flag
='${wl}-z,text'
17265 allow_undefined_flag
='${wl}-z,nodefs'
17266 archive_cmds_need_lc
=no
17267 hardcode_shlibpath_var
=no
17268 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17269 hardcode_libdir_separator
=':'
17270 link_all_deplibs
=yes
17271 export_dynamic_flag_spec
='${wl}-Bexport'
17272 runpath_var
='LD_RUN_PATH'
17274 if test "$GCC" = yes; then
17275 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17276 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17278 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17279 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17284 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17285 hardcode_libdir_flag_spec
='-L$libdir'
17286 hardcode_shlibpath_var
=no
17294 if test x
$host_vendor = xsni
; then
17296 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17297 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17304 $as_echo "$ld_shlibs" >&6; }
17305 test "$ld_shlibs" = no
&& can_build_shared
=no
17307 with_gnu_ld
=$with_gnu_ld
17324 # Do we need to explicitly link libc?
17326 case "x$archive_cmds_need_lc" in
17328 # Assume -lc should be added
17329 archive_cmds_need_lc
=yes
17331 if test "$enable_shared" = yes && test "$GCC" = yes; then
17332 case $archive_cmds in
17334 # FIXME: we may have to deal with multi-command sequences.
17337 # Test whether the compiler implicitly links with -lc since on some
17338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17339 # to ld, don't add -lc before -lgcc.
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17341 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17342 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17343 $as_echo_n "(cached) " >&6
17346 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17349 (eval $ac_compile) 2>&5
17351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17352 test $ac_status = 0; } 2>conftest.err
; then
17355 libobjs
=conftest.
$ac_objext
17357 wl
=$lt_prog_compiler_wl
17358 pic_flag
=$lt_prog_compiler_pic
17364 lt_save_allow_undefined_flag
=$allow_undefined_flag
17365 allow_undefined_flag
=
17366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17367 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17370 test $ac_status = 0; }
17372 lt_cv_archive_cmds_need_lc
=no
17374 lt_cv_archive_cmds_need_lc
=yes
17376 allow_undefined_flag
=$lt_save_allow_undefined_flag
17378 cat conftest.err
1>&5
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17384 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17385 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17549 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17551 if test "$GCC" = yes; then
17553 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17554 *) lt_awk_arg
="/^libraries:/" ;;
17557 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17558 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17560 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17561 case $lt_search_path_spec in
17563 # if the path contains ";" then we assume it to be the separator
17564 # otherwise default to the standard path separator (i.e. ":") - it is
17565 # assumed that no part of a normal pathname contains ";" but that should
17566 # okay in the real world where ";" in dirpaths is itself problematic.
17567 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17570 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17573 # Ok, now we have the path, separated by spaces, we can step through it
17574 # and add multilib dir if necessary.
17575 lt_tmp_lt_search_path_spec
=
17576 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17577 for lt_sys_path
in $lt_search_path_spec; do
17578 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17579 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17581 test -d "$lt_sys_path" && \
17582 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17585 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17586 BEGIN {RS=" "; FS="/|\n";} {
17589 for (lt_i = NF; lt_i > 0; lt_i--) {
17590 if ($lt_i != "" && $lt_i != ".") {
17591 if ($lt_i == "..") {
17594 if (lt_count == 0) {
17595 lt_foo="/" $lt_i lt_foo;
17602 if (lt_foo != "") { lt_freq[lt_foo]++; }
17603 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17605 # AWK program above erroneously prepends '/' to C:/dos/paths
17608 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17609 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17611 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17613 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17615 library_names_spec
=
17616 libname_spec
='lib$name'
17620 postuninstall_cmds
=
17624 shlibpath_overrides_runpath
=unknown
17626 dynamic_linker
="$host_os ld.so"
17627 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17628 need_lib_prefix
=unknown
17629 hardcode_into_libs
=no
17631 # when you set need_version to no, make sure it does not cause -set_version
17632 # flags to be left without arguments
17633 need_version
=unknown
17638 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17639 shlibpath_var
=LIBPATH
17641 # AIX 3 has no versioning support, so we append a major version to the name.
17642 soname_spec
='${libname}${release}${shared_ext}$major'
17649 hardcode_into_libs
=yes
17650 if test "$host_cpu" = ia64
; then
17651 # AIX 5 supports IA64
17652 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17653 shlibpath_var
=LD_LIBRARY_PATH
17655 # With GCC up to 2.95.x, collect2 would create an import file
17656 # for dependence libraries. The import file would start with
17657 # the line `#! .'. This would cause the generated library to
17658 # depend on `.', always an invalid library. This was fixed in
17659 # development snapshots of GCC prior to 3.0.
17661 aix4 | aix4.
[01] | aix4.
[01].
*)
17662 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17664 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17667 can_build_shared
=no
17671 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17672 # soname into executable. Probably we can add versioning support to
17673 # collect2, so additional links can be useful in future.
17674 if test "$aix_use_runtimelinking" = yes; then
17675 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17676 # instead of lib<name>.a to let people know that these are not
17677 # typical AIX shared libraries.
17678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 # We preserve .a as extension for shared libraries through AIX4.2
17681 # and later when we are not doing run time linking.
17682 library_names_spec
='${libname}${release}.a $libname.a'
17683 soname_spec
='${libname}${release}${shared_ext}$major'
17685 shlibpath_var
=LIBPATH
17692 # Since July 2007 AmigaOS4 officially supports .so libraries.
17693 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17694 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17697 library_names_spec
='$libname.ixlibrary $libname.a'
17698 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17699 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'
17705 library_names_spec
='${libname}${shared_ext}'
17706 dynamic_linker
="$host_os ld.so"
17707 shlibpath_var
=LIBRARY_PATH
17713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 soname_spec
='${libname}${release}${shared_ext}$major'
17715 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17716 shlibpath_var
=LD_LIBRARY_PATH
17717 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17718 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17719 # the default ld.so.conf also contains /usr/contrib/lib and
17720 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17721 # libtool to hard-code these into programs
17724 cygwin
* | mingw
* | pw32
* | cegcc
*)
17725 version_type
=windows
17730 case $GCC,$host_os in
17731 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17732 library_names_spec
='$libname.dll.a'
17733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17734 postinstall_cmds
='base_file=`basename \${file}`~
17735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17736 dldir=$destdir/`dirname \$dlpath`~
17737 test -d \$dldir || mkdir -p \$dldir~
17738 $install_prog $dir/$dlname \$dldir/$dlname~
17739 chmod a+x \$dldir/$dlname~
17740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17741 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17743 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17744 dlpath=$dir/\$dldll~
17746 shlibpath_overrides_runpath
=yes
17750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17751 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17753 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17756 # MinGW DLLs use traditional 'lib' prefix
17757 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17760 # pw32 DLLs use 'pw' prefix rather than 'lib'
17761 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17767 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17770 dynamic_linker
='Win32 ld.exe'
17771 # FIXME: first we should search . and the directory the executable is in
17775 darwin
* | rhapsody
*)
17776 dynamic_linker
="$host_os dyld"
17777 version_type
=darwin
17780 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17781 soname_spec
='${libname}${release}${major}$shared_ext'
17782 shlibpath_overrides_runpath
=yes
17783 shlibpath_var
=DYLD_LIBRARY_PATH
17784 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17786 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17787 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17795 soname_spec
='${libname}${release}${shared_ext}$major'
17796 shlibpath_var
=LD_LIBRARY_PATH
17799 freebsd
* | dragonfly
*)
17800 # DragonFly does not have aout. When/if they implement a new
17801 # versioning mechanism, adjust this.
17802 if test -x /usr
/bin
/objformat
; then
17803 objformat
=`/usr/bin/objformat`
17806 freebsd
[23].
*) objformat
=aout
;;
17807 *) objformat
=elf
;;
17810 version_type
=freebsd-
$objformat
17811 case $version_type in
17813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17818 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17822 shlibpath_var
=LD_LIBRARY_PATH
17825 shlibpath_overrides_runpath
=yes
17827 freebsd3.
[01]* | freebsdelf3.
[01]*)
17828 shlibpath_overrides_runpath
=yes
17829 hardcode_into_libs
=yes
17831 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17832 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17833 shlibpath_overrides_runpath
=no
17834 hardcode_into_libs
=yes
17836 *) # from 4.6 on, and DragonFly
17837 shlibpath_overrides_runpath
=yes
17838 hardcode_into_libs
=yes
17847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17848 soname_spec
='${libname}${release}${shared_ext}$major'
17849 shlibpath_var
=LD_LIBRARY_PATH
17850 hardcode_into_libs
=yes
17857 dynamic_linker
="$host_os runtime_loader"
17858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17859 soname_spec
='${libname}${release}${shared_ext}$major'
17860 shlibpath_var
=LIBRARY_PATH
17861 shlibpath_overrides_runpath
=yes
17862 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17863 hardcode_into_libs
=yes
17866 hpux9
* | hpux10
* | hpux11
*)
17867 # Give a soname corresponding to the major version so that dld.sl refuses to
17868 # link against other versions.
17875 hardcode_into_libs
=yes
17876 dynamic_linker
="$host_os dld.so"
17877 shlibpath_var
=LD_LIBRARY_PATH
17878 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880 soname_spec
='${libname}${release}${shared_ext}$major'
17881 if test "X$HPUX_IA64_MODE" = X32
; then
17882 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17884 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17886 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17890 hardcode_into_libs
=yes
17891 dynamic_linker
="$host_os dld.sl"
17892 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17893 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17895 soname_spec
='${libname}${release}${shared_ext}$major'
17896 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17897 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17901 dynamic_linker
="$host_os dld.sl"
17902 shlibpath_var
=SHLIB_PATH
17903 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905 soname_spec
='${libname}${release}${shared_ext}$major'
17908 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17909 postinstall_cmds
='chmod 555 $lib'
17910 # or fails outright, so override atomically:
17911 install_override_mode
=555
17918 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17919 soname_spec
='${libname}${release}${shared_ext}$major'
17920 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17921 shlibpath_var
=LD_LIBRARY_PATH
17922 shlibpath_overrides_runpath
=no
17923 hardcode_into_libs
=yes
17926 irix5
* | irix6
* | nonstopux
*)
17928 nonstopux
*) version_type
=nonstopux
;;
17930 if test "$lt_cv_prog_gnu_ld" = yes; then
17938 soname_spec
='${libname}${release}${shared_ext}$major'
17939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17941 irix5
* | nonstopux
*)
17942 libsuff
= shlibsuff
=
17945 case $LD in # libtool.m4 will add one of these switches to LD
17946 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17947 libsuff
= shlibsuff
= libmagic
=32-bit;;
17948 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17949 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17950 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17951 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17952 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17956 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17957 shlibpath_overrides_runpath
=no
17958 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17959 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17960 hardcode_into_libs
=yes
17963 # No shared lib support for Linux oldld, aout, or coff.
17964 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17968 # This must be Linux ELF.
17969 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974 soname_spec
='${libname}${release}${shared_ext}$major'
17975 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17976 shlibpath_var
=LD_LIBRARY_PATH
17977 shlibpath_overrides_runpath
=no
17979 # Some binutils ld are patched to set DT_RUNPATH
17980 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
17981 $as_echo_n "(cached) " >&6
17983 lt_cv_shlibpath_overrides_runpath
=no
17984 save_LDFLAGS
=$LDFLAGS
17985 save_libdir
=$libdir
17986 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17987 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17999 if ac_fn_c_try_link
"$LINENO"; then :
18000 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18001 lt_cv_shlibpath_overrides_runpath
=yes
18004 rm -f core conftest.err conftest.
$ac_objext \
18005 conftest
$ac_exeext conftest.
$ac_ext
18006 LDFLAGS
=$save_LDFLAGS
18007 libdir
=$save_libdir
18011 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18013 # This implies no fast_install, which is unacceptable.
18014 # Some rework will be needed to allow for fast_install
18015 # before this can be enabled.
18016 hardcode_into_libs
=yes
18018 # Append ld.so.conf contents to the search path
18019 if test -f /etc
/ld.so.conf
; then
18020 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' ' '`
18021 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18024 # We used to test for /lib/ld.so.1 and disable shared libraries on
18025 # powerpc, because MkLinux only supported shared libraries with the
18026 # GNU dynamic linker. Since this was broken with cross compilers,
18027 # most powerpc-linux boxes support dynamic linking these days and
18028 # people can always --disable-shared, the test was removed, and we
18029 # assume the GNU/Linux dynamic linker is in use.
18030 dynamic_linker
='GNU/Linux ld.so'
18037 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18039 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18040 dynamic_linker
='NetBSD (a.out) ld.so'
18042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18043 soname_spec
='${libname}${release}${shared_ext}$major'
18044 dynamic_linker
='NetBSD ld.elf_so'
18046 shlibpath_var
=LD_LIBRARY_PATH
18047 shlibpath_overrides_runpath
=yes
18048 hardcode_into_libs
=yes
18053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 shlibpath_var
=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath
=yes
18062 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063 soname_spec
='${libname}${release}${shared_ext}$major'
18064 shlibpath_var
=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath
=no
18066 hardcode_into_libs
=yes
18067 dynamic_linker
='ldqnx.so'
18072 sys_lib_dlsearch_path_spec
="/usr/lib"
18074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18076 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18077 *) need_version
=no
;;
18079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18080 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18081 shlibpath_var
=LD_LIBRARY_PATH
18082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18084 openbsd2.
[89] | openbsd2.
[89].
*)
18085 shlibpath_overrides_runpath
=no
18088 shlibpath_overrides_runpath
=yes
18092 shlibpath_overrides_runpath
=yes
18097 libname_spec
='$name'
18100 library_names_spec
='$libname${shared_ext} $libname.a'
18101 dynamic_linker
='OS/2 ld.exe'
18102 shlibpath_var
=LIBPATH
18105 osf3
* | osf4
* | osf5
*)
18109 soname_spec
='${libname}${release}${shared_ext}$major'
18110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18111 shlibpath_var
=LD_LIBRARY_PATH
18112 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18113 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18125 soname_spec
='${libname}${release}${shared_ext}$major'
18126 shlibpath_var
=LD_LIBRARY_PATH
18127 shlibpath_overrides_runpath
=yes
18128 hardcode_into_libs
=yes
18129 # ldd complains unless libraries are executable
18130 postinstall_cmds
='chmod +x $lib'
18135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18136 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18137 shlibpath_var
=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath
=yes
18139 if test "$with_gnu_ld" = yes; then
18147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148 soname_spec
='${libname}${release}${shared_ext}$major'
18149 shlibpath_var
=LD_LIBRARY_PATH
18150 case $host_vendor in
18152 shlibpath_overrides_runpath
=no
18154 runpath_var
=LD_RUN_PATH
18162 shlibpath_overrides_runpath
=no
18163 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18169 if test -d /usr
/nec
;then
18171 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18172 soname_spec
='$libname${shared_ext}.$major'
18173 shlibpath_var
=LD_LIBRARY_PATH
18177 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18178 version_type
=freebsd-elf
18181 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18182 soname_spec
='${libname}${release}${shared_ext}$major'
18183 shlibpath_var
=LD_LIBRARY_PATH
18184 shlibpath_overrides_runpath
=yes
18185 hardcode_into_libs
=yes
18186 if test "$with_gnu_ld" = yes; then
18187 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18189 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18192 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18196 sys_lib_dlsearch_path_spec
='/usr/lib'
18200 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18205 shlibpath_var
=LD_LIBRARY_PATH
18206 shlibpath_overrides_runpath
=no
18207 hardcode_into_libs
=yes
18212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 soname_spec
='${libname}${release}${shared_ext}$major'
18214 shlibpath_var
=LD_LIBRARY_PATH
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18222 $as_echo "$dynamic_linker" >&6; }
18223 test "$dynamic_linker" = no
&& can_build_shared
=no
18225 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18226 if test "$GCC" = yes; then
18227 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18231 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18234 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18331 if test -n "$hardcode_libdir_flag_spec" ||
18332 test -n "$runpath_var" ||
18333 test "X$hardcode_automatic" = "Xyes" ; then
18335 # We can hardcode non-existent directories.
18336 if test "$hardcode_direct" != no
&&
18337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18338 # have to relink, otherwise we might link with an installed library
18339 # when we should be linking with a yet-to-be-installed one
18340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18341 test "$hardcode_minus_L" != no
; then
18342 # Linking always hardcodes the temporary library directory.
18343 hardcode_action
=relink
18345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18346 hardcode_action
=immediate
18349 # We cannot hardcode anything, or else we can only hardcode existing
18351 hardcode_action
=unsupported
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18354 $as_echo "$hardcode_action" >&6; }
18356 if test "$hardcode_action" = relink ||
18357 test "$inherit_rpath" = yes; then
18358 # Fast installation is not supported
18359 enable_fast_install
=no
18360 elif test "$shlibpath_overrides_runpath" = yes ||
18361 test "$enable_shared" = no
; then
18362 # Fast installation is not necessary
18363 enable_fast_install
=needless
18371 if test "x$enable_dlopen" != xyes
; then
18372 enable_dlopen
=unknown
18373 enable_dlopen_self
=unknown
18374 enable_dlopen_self_static
=unknown
18381 lt_cv_dlopen
="load_add_on"
18383 lt_cv_dlopen_self
=yes
18386 mingw
* | pw32
* | cegcc
*)
18387 lt_cv_dlopen
="LoadLibrary"
18392 lt_cv_dlopen
="dlopen"
18397 # if libdl is installed we need to link against it
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18400 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18401 $as_echo_n "(cached) " >&6
18403 ac_check_lib_save_LIBS
=$LIBS
18405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18408 /* Override any GCC internal prototype to avoid an error.
18409 Use char because int might match the return type of a GCC
18410 builtin and then its argument prototype would still apply. */
18423 if ac_fn_c_try_link
"$LINENO"; then :
18424 ac_cv_lib_dl_dlopen
=yes
18426 ac_cv_lib_dl_dlopen
=no
18428 rm -f core conftest.err conftest.
$ac_objext \
18429 conftest
$ac_exeext conftest.
$ac_ext
18430 LIBS
=$ac_check_lib_save_LIBS
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18434 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18435 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18438 lt_cv_dlopen
="dyld"
18440 lt_cv_dlopen_self
=yes
18447 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18448 if test "x$ac_cv_func_shl_load" = xyes
; then :
18449 lt_cv_dlopen
="shl_load"
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18452 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18453 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18454 $as_echo_n "(cached) " >&6
18456 ac_check_lib_save_LIBS
=$LIBS
18458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18461 /* Override any GCC internal prototype to avoid an error.
18462 Use char because int might match the return type of a GCC
18463 builtin and then its argument prototype would still apply. */
18471 return shl_load ();
18476 if ac_fn_c_try_link
"$LINENO"; then :
18477 ac_cv_lib_dld_shl_load
=yes
18479 ac_cv_lib_dld_shl_load
=no
18481 rm -f core conftest.err conftest.
$ac_objext \
18482 conftest
$ac_exeext conftest.
$ac_ext
18483 LIBS
=$ac_check_lib_save_LIBS
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18486 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18487 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18488 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18490 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18491 if test "x$ac_cv_func_dlopen" = xyes
; then :
18492 lt_cv_dlopen
="dlopen"
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18495 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18496 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18497 $as_echo_n "(cached) " >&6
18499 ac_check_lib_save_LIBS
=$LIBS
18501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18504 /* Override any GCC internal prototype to avoid an error.
18505 Use char because int might match the return type of a GCC
18506 builtin and then its argument prototype would still apply. */
18519 if ac_fn_c_try_link
"$LINENO"; then :
18520 ac_cv_lib_dl_dlopen
=yes
18522 ac_cv_lib_dl_dlopen
=no
18524 rm -f core conftest.err conftest.
$ac_objext \
18525 conftest
$ac_exeext conftest.
$ac_ext
18526 LIBS
=$ac_check_lib_save_LIBS
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18529 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18530 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18531 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18534 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18535 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18536 $as_echo_n "(cached) " >&6
18538 ac_check_lib_save_LIBS
=$LIBS
18539 LIBS
="-lsvld $LIBS"
18540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18543 /* Override any GCC internal prototype to avoid an error.
18544 Use char because int might match the return type of a GCC
18545 builtin and then its argument prototype would still apply. */
18558 if ac_fn_c_try_link
"$LINENO"; then :
18559 ac_cv_lib_svld_dlopen
=yes
18561 ac_cv_lib_svld_dlopen
=no
18563 rm -f core conftest.err conftest.
$ac_objext \
18564 conftest
$ac_exeext conftest.
$ac_ext
18565 LIBS
=$ac_check_lib_save_LIBS
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18568 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18569 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18570 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18573 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18574 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18575 $as_echo_n "(cached) " >&6
18577 ac_check_lib_save_LIBS
=$LIBS
18579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18582 /* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18592 return dld_link ();
18597 if ac_fn_c_try_link
"$LINENO"; then :
18598 ac_cv_lib_dld_dld_link
=yes
18600 ac_cv_lib_dld_dld_link
=no
18602 rm -f core conftest.err conftest.
$ac_objext \
18603 conftest
$ac_exeext conftest.
$ac_ext
18604 LIBS
=$ac_check_lib_save_LIBS
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18607 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18608 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18609 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18630 if test "x$lt_cv_dlopen" != xno
; then
18636 case $lt_cv_dlopen in
18638 save_CPPFLAGS
="$CPPFLAGS"
18639 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18641 save_LDFLAGS
="$LDFLAGS"
18642 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18645 LIBS
="$lt_cv_dlopen_libs $LIBS"
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18648 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18649 if ${lt_cv_dlopen_self+:} false
; then :
18650 $as_echo_n "(cached) " >&6
18652 if test "$cross_compiling" = yes; then :
18653 lt_cv_dlopen_self
=cross
18655 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18656 lt_status
=$lt_dlunknown
18657 cat > conftest.
$ac_ext <<_LT_EOF
18658 #line 18658 "configure"
18659 #include "confdefs.h"
18668 # define LT_DLGLOBAL RTLD_GLOBAL
18671 # define LT_DLGLOBAL DL_GLOBAL
18673 # define LT_DLGLOBAL 0
18677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18678 find out it does not work in some platform. */
18679 #ifndef LT_DLLAZY_OR_NOW
18681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18684 # define LT_DLLAZY_OR_NOW DL_LAZY
18687 # define LT_DLLAZY_OR_NOW RTLD_NOW
18690 # define LT_DLLAZY_OR_NOW DL_NOW
18692 # define LT_DLLAZY_OR_NOW 0
18699 /* When -fvisbility=hidden is used, assume the code has been annotated
18700 correspondingly for the symbols needed. */
18701 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18702 void fnord () __attribute__((visibility("default")));
18705 void fnord () { int i=42; }
18708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18709 int status = $lt_dlunknown;
18713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18717 else puts (dlerror ());
18719 /* dlclose (self); */
18727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18728 (eval $ac_link) 2>&5
18730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18731 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18732 (.
/conftest
; exit; ) >&5 2>/dev
/null
18734 case x
$lt_status in
18735 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18736 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18737 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18740 # compilation failed
18741 lt_cv_dlopen_self
=no
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18749 $as_echo "$lt_cv_dlopen_self" >&6; }
18751 if test "x$lt_cv_dlopen_self" = xyes
; then
18752 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18755 if ${lt_cv_dlopen_self_static+:} false
; then :
18756 $as_echo_n "(cached) " >&6
18758 if test "$cross_compiling" = yes; then :
18759 lt_cv_dlopen_self_static
=cross
18761 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18762 lt_status
=$lt_dlunknown
18763 cat > conftest.
$ac_ext <<_LT_EOF
18764 #line 18764 "configure"
18765 #include "confdefs.h"
18774 # define LT_DLGLOBAL RTLD_GLOBAL
18777 # define LT_DLGLOBAL DL_GLOBAL
18779 # define LT_DLGLOBAL 0
18783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18784 find out it does not work in some platform. */
18785 #ifndef LT_DLLAZY_OR_NOW
18787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18790 # define LT_DLLAZY_OR_NOW DL_LAZY
18793 # define LT_DLLAZY_OR_NOW RTLD_NOW
18796 # define LT_DLLAZY_OR_NOW DL_NOW
18798 # define LT_DLLAZY_OR_NOW 0
18805 /* When -fvisbility=hidden is used, assume the code has been annotated
18806 correspondingly for the symbols needed. */
18807 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18808 void fnord () __attribute__((visibility("default")));
18811 void fnord () { int i=42; }
18814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18815 int status = $lt_dlunknown;
18819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18822 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18823 else puts (dlerror ());
18825 /* dlclose (self); */
18833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18834 (eval $ac_link) 2>&5
18836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18837 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18838 (.
/conftest
; exit; ) >&5 2>/dev
/null
18840 case x
$lt_status in
18841 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18842 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18843 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18846 # compilation failed
18847 lt_cv_dlopen_self_static
=no
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18855 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18858 CPPFLAGS
="$save_CPPFLAGS"
18859 LDFLAGS
="$save_LDFLAGS"
18864 case $lt_cv_dlopen_self in
18865 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18866 *) enable_dlopen_self
=unknown
;;
18869 case $lt_cv_dlopen_self_static in
18870 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18871 *) enable_dlopen_self_static
=unknown
;;
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18894 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18895 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18896 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18897 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18899 $as_echo "yes" >&6; }
18901 # FIXME - insert some real tests, host_os isn't really good enough
18904 if test -n "$STRIP" ; then
18905 striplib
="$STRIP -x"
18906 old_striplib
="$STRIP -S"
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18908 $as_echo "yes" >&6; }
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911 $as_echo "no" >&6; }
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916 $as_echo "no" >&6; }
18932 # Report which library types will actually be built
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18934 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18936 $as_echo "$can_build_shared" >&6; }
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18939 $as_echo_n "checking whether to build shared libraries... " >&6; }
18940 test "$can_build_shared" = "no" && enable_shared
=no
18942 # On AIX, shared libraries and static libraries use the same namespace, and
18943 # are all built from PIC.
18946 test "$enable_shared" = yes && enable_static
=no
18947 if test -n "$RANLIB"; then
18948 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18949 postinstall_cmds
='$RANLIB $lib'
18954 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18955 test "$enable_shared" = yes && enable_static
=no
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18960 $as_echo "$enable_shared" >&6; }
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18963 $as_echo_n "checking whether to build static libraries... " >&6; }
18964 # Make sure either enable_shared or enable_static is yes.
18965 test "$enable_shared" = yes || enable_static
=yes
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18967 $as_echo "$enable_static" >&6; }
18974 ac_cpp
='$CXXCPP $CPPFLAGS'
18975 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18976 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18977 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18983 (test "X$CXX" != "Xg++"))) ; then
18985 ac_cpp
='$CXXCPP $CPPFLAGS'
18986 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18987 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18988 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18990 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18991 if test -z "$CXXCPP"; then
18992 if ${ac_cv_prog_CXXCPP+:} false
; then :
18993 $as_echo_n "(cached) " >&6
18995 # Double quotes because CXXCPP needs to be expanded
18996 for CXXCPP
in "$CXX -E" "/lib/cpp"
18998 ac_preproc_ok
=false
18999 for ac_cxx_preproc_warn_flag
in '' yes
19001 # Use a header file that comes with gcc, so configuring glibc
19002 # with a fresh cross-compiler works.
19003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19004 # <limits.h> exists even on freestanding compilers.
19005 # On the NeXT, cc -E runs the code through the compiler's parser,
19006 # not just through cpp. "Syntax error" is here to catch this case.
19007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19010 # include <limits.h>
19012 # include <assert.h>
19016 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19019 # Broken: fails on valid input.
19022 rm -f conftest.err conftest.i conftest.
$ac_ext
19024 # OK, works on sane cases. Now check whether nonexistent headers
19025 # can be detected and how.
19026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19028 #include <ac_nonexistent.h>
19030 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19031 # Broken: success on invalid input.
19034 # Passes both tests.
19038 rm -f conftest.err conftest.i conftest.
$ac_ext
19041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19042 rm -f conftest.i conftest.err conftest.
$ac_ext
19043 if $ac_preproc_ok; then :
19048 ac_cv_prog_CXXCPP
=$CXXCPP
19051 CXXCPP
=$ac_cv_prog_CXXCPP
19053 ac_cv_prog_CXXCPP
=$CXXCPP
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19056 $as_echo "$CXXCPP" >&6; }
19057 ac_preproc_ok
=false
19058 for ac_cxx_preproc_warn_flag
in '' yes
19060 # Use a header file that comes with gcc, so configuring glibc
19061 # with a fresh cross-compiler works.
19062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19063 # <limits.h> exists even on freestanding compilers.
19064 # On the NeXT, cc -E runs the code through the compiler's parser,
19065 # not just through cpp. "Syntax error" is here to catch this case.
19066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19069 # include <limits.h>
19071 # include <assert.h>
19075 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19078 # Broken: fails on valid input.
19081 rm -f conftest.err conftest.i conftest.
$ac_ext
19083 # OK, works on sane cases. Now check whether nonexistent headers
19084 # can be detected and how.
19085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19087 #include <ac_nonexistent.h>
19089 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19090 # Broken: success on invalid input.
19093 # Passes both tests.
19097 rm -f conftest.err conftest.i conftest.
$ac_ext
19100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19101 rm -f conftest.i conftest.err conftest.
$ac_ext
19102 if $ac_preproc_ok; then :
19105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19107 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19108 See \`config.log' for more details" "$LINENO" 5; }
19112 ac_cpp
='$CXXCPP $CPPFLAGS'
19113 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19114 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19115 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19118 _lt_caught_CXX_error
=yes
19122 ac_cpp
='$CXXCPP $CPPFLAGS'
19123 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19124 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19125 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19127 archive_cmds_need_lc_CXX
=no
19128 allow_undefined_flag_CXX
=
19129 always_export_symbols_CXX
=no
19130 archive_expsym_cmds_CXX
=
19131 compiler_needs_object_CXX
=no
19132 export_dynamic_flag_spec_CXX
=
19133 hardcode_direct_CXX
=no
19134 hardcode_direct_absolute_CXX
=no
19135 hardcode_libdir_flag_spec_CXX
=
19136 hardcode_libdir_flag_spec_ld_CXX
=
19137 hardcode_libdir_separator_CXX
=
19138 hardcode_minus_L_CXX
=no
19139 hardcode_shlibpath_var_CXX
=unsupported
19140 hardcode_automatic_CXX
=no
19141 inherit_rpath_CXX
=no
19143 module_expsym_cmds_CXX
=
19144 link_all_deplibs_CXX
=unknown
19145 old_archive_cmds_CXX
=$old_archive_cmds
19146 reload_flag_CXX
=$reload_flag
19147 reload_cmds_CXX
=$reload_cmds
19148 no_undefined_flag_CXX
=
19149 whole_archive_flag_spec_CXX
=
19150 enable_shared_with_static_runtimes_CXX
=no
19152 # Source file extension for C++ test sources.
19155 # Object file extension for compiled C++ test sources.
19159 # No sense in running all these tests if we already determined that
19160 # the CXX compiler isn't working. Some variables (like enable_shared)
19161 # are currently assumed to apply to all compilers on this platform,
19162 # and will be corrupted by setting them based on a non-working compiler.
19163 if test "$_lt_caught_CXX_error" != yes; then
19164 # Code to be used in simple compile tests
19165 lt_simple_compile_test_code
="int some_variable = 0;"
19167 # Code to be used in simple link tests
19168 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19177 # If no C compiler was specified, use CC.
19180 # If no C compiler flags were specified, use CFLAGS.
19181 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19183 # Allow CC to be a program name with arguments.
19187 # save warnings/boilerplate of simple test code
19188 ac_outfile
=conftest.
$ac_objext
19189 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19190 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19191 _lt_compiler_boilerplate
=`cat conftest.err`
19194 ac_outfile
=conftest.
$ac_objext
19195 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19196 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19197 _lt_linker_boilerplate
=`cat conftest.err`
19201 # Allow CC to be a program name with arguments.
19206 lt_save_with_gnu_ld
=$with_gnu_ld
19207 lt_save_path_LD
=$lt_cv_path_LD
19208 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19209 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19211 $as_unset lt_cv_prog_gnu_ld
19213 if test -n "${lt_cv_path_LDCXX+set}"; then
19214 lt_cv_path_LD
=$lt_cv_path_LDCXX
19216 $as_unset lt_cv_path_LD
19218 test -z "${LDCXX+set}" || LD
=$LDCXX
19222 for cc_temp
in $compiler""; do
19224 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19225 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19230 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19233 if test -n "$compiler"; then
19234 # We don't want -fno-exception when compiling C++ code, so set the
19235 # no_builtin_flag separately
19236 if test "$GXX" = yes; then
19237 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19239 lt_prog_compiler_no_builtin_flag_CXX
=
19242 if test "$GXX" = yes; then
19243 # Set up default GNU C++ configuration
19247 # Check whether --with-gnu-ld was given.
19248 if test "${with_gnu_ld+set}" = set; then :
19249 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19255 if test "$GCC" = yes; then
19256 # Check if gcc -print-prog-name=ld gives a path.
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19258 $as_echo_n "checking for ld used by $CC... " >&6; }
19261 # gcc leaves a trailing carriage return which upsets mingw
19262 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19264 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19267 # Accept absolute paths.
19269 re_direlt
='/[^/][^/]*/\.\./'
19270 # Canonicalize the pathname of ld
19271 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19272 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19273 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19275 test -z "$LD" && LD
="$ac_prog"
19278 # If it fails, then pretend we aren't using GCC.
19282 # If it is relative, then search for the first ld in PATH.
19283 with_gnu_ld
=unknown
19286 elif test "$with_gnu_ld" = yes; then
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19288 $as_echo_n "checking for GNU ld... " >&6; }
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19291 $as_echo_n "checking for non-GNU ld... " >&6; }
19293 if ${lt_cv_path_LD+:} false
; then :
19294 $as_echo_n "(cached) " >&6
19296 if test -z "$LD"; then
19297 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19298 for ac_dir
in $PATH; do
19300 test -z "$ac_dir" && ac_dir
=.
19301 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19302 lt_cv_path_LD
="$ac_dir/$ac_prog"
19303 # Check to see if the program is GNU ld. I'd rather use --version,
19304 # but apparently some variants of GNU ld only accept -v.
19305 # Break only if it was the GNU/non-GNU ld that we prefer.
19306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19307 *GNU
* |
*'with BFD'*)
19308 test "$with_gnu_ld" != no
&& break
19311 test "$with_gnu_ld" != yes && break
19318 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19322 LD
="$lt_cv_path_LD"
19323 if test -n "$LD"; then
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19325 $as_echo "$LD" >&6; }
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19328 $as_echo "no" >&6; }
19330 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19332 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19333 if ${lt_cv_prog_gnu_ld+:} false
; then :
19334 $as_echo_n "(cached) " >&6
19336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19337 case `$LD -v 2>&1 </dev/null` in
19338 *GNU
* |
*'with BFD'*)
19339 lt_cv_prog_gnu_ld
=yes
19342 lt_cv_prog_gnu_ld
=no
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19347 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19348 with_gnu_ld
=$lt_cv_prog_gnu_ld
19356 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19357 # archiving commands below assume that GNU ld is being used.
19358 if test "$with_gnu_ld" = yes; then
19359 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19360 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'
19362 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19363 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19365 # If archive_cmds runs LD, not CC, wlarc should be empty
19366 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19367 # investigate it a little bit more. (MM)
19370 # ancient GNU ld didn't support --whole-archive et. al.
19371 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19372 $GREP 'no-whole-archive' > /dev
/null
; then
19373 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19375 whole_archive_flag_spec_CXX
=
19381 # A generic and very simple default shared library creation
19382 # command for GNU C++ for the case where it uses the native
19383 # linker, instead of GNU ld. If possible, this setting should
19384 # overridden to take advantage of the native linker features on
19385 # the platform it is being used on.
19386 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19389 # Commands to make compiler produce verbose output that lists
19390 # what "hidden" libraries, object files and flags are used when
19391 # linking a shared library.
19392 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19400 # PORTME: fill in a description of your system's C++ link characteristics
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19402 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19406 # FIXME: insert proper C++ library support
19410 if test "$host_cpu" = ia64
; then
19411 # On IA64, the linker does run time linking by default, so we don't
19412 # have to do anything special.
19413 aix_use_runtimelinking
=no
19414 exp_sym_flag
='-Bexport'
19417 aix_use_runtimelinking
=no
19419 # Test if we are trying to use run time linking or normal
19420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19421 # need to do runtime linking.
19422 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19423 for ld_flag
in $LDFLAGS; do
19426 aix_use_runtimelinking
=yes
19434 exp_sym_flag
='-bexport'
19435 no_entry_flag
='-bnoentry'
19438 # When large executables or shared objects are built, AIX ld can
19439 # have problems creating the table of contents. If linking a library
19440 # or program results in "error TOC overflow" add -mminimal-toc to
19441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19444 archive_cmds_CXX
=''
19445 hardcode_direct_CXX
=yes
19446 hardcode_direct_absolute_CXX
=yes
19447 hardcode_libdir_separator_CXX
=':'
19448 link_all_deplibs_CXX
=yes
19449 file_list_spec_CXX
='${wl}-f,'
19451 if test "$GXX" = yes; then
19452 case $host_os in aix4.
[012]|aix4.
[012].
*)
19453 # We only want to do this on AIX 4.2 and lower, the check
19454 # below for broken collect2 doesn't work under 4.3+
19455 collect2name
=`${CC} -print-prog-name=collect2`
19456 if test -f "$collect2name" &&
19457 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19459 # We have reworked collect2
19462 # We have old collect2
19463 hardcode_direct_CXX
=unsupported
19464 # It fails to find uninstalled libraries when the uninstalled
19465 # path is not listed in the libpath. Setting hardcode_minus_L
19466 # to unsupported forces relinking
19467 hardcode_minus_L_CXX
=yes
19468 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19469 hardcode_libdir_separator_CXX
=
19472 shared_flag
='-shared'
19473 if test "$aix_use_runtimelinking" = yes; then
19474 shared_flag
="$shared_flag "'${wl}-G'
19478 if test "$host_cpu" = ia64
; then
19479 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19480 # chokes on -Wl,-G. The following line is correct:
19483 if test "$aix_use_runtimelinking" = yes; then
19484 shared_flag
='${wl}-G'
19486 shared_flag
='${wl}-bM:SRE'
19491 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19492 # It seems that -bexpall does not export symbols beginning with
19493 # underscore (_), so it is better to generate a list of symbols to
19495 always_export_symbols_CXX
=yes
19496 if test "$aix_use_runtimelinking" = yes; then
19497 # Warning - without using the other runtime loading flags (-brtl),
19498 # -berok will link without error, but may produce a broken library.
19499 allow_undefined_flag_CXX
='-berok'
19500 # Determine the default libpath from the value encoded in an empty
19502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19513 if ac_fn_cxx_try_link
"$LINENO"; then :
19515 lt_aix_libpath_sed
='
19516 /Import File Strings/,/^$/ {
19522 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19523 # Check for a 64-bit object if we didn't find anything.
19524 if test -z "$aix_libpath"; then
19525 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19528 rm -f core conftest.err conftest.
$ac_objext \
19529 conftest
$ac_exeext conftest.
$ac_ext
19530 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19532 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19534 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"
19536 if test "$host_cpu" = ia64
; then
19537 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19538 allow_undefined_flag_CXX
="-z nodefs"
19539 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"
19541 # Determine the default libpath from the value encoded in an
19542 # empty executable.
19543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19554 if ac_fn_cxx_try_link
"$LINENO"; then :
19556 lt_aix_libpath_sed
='
19557 /Import File Strings/,/^$/ {
19563 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19564 # Check for a 64-bit object if we didn't find anything.
19565 if test -z "$aix_libpath"; then
19566 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19569 rm -f core conftest.err conftest.
$ac_objext \
19570 conftest
$ac_exeext conftest.
$ac_ext
19571 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19573 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19574 # Warning - without using the other run time loading flags,
19575 # -berok will link without error, but may produce a broken library.
19576 no_undefined_flag_CXX
=' ${wl}-bernotok'
19577 allow_undefined_flag_CXX
=' ${wl}-berok'
19578 if test "$with_gnu_ld" = yes; then
19579 # We only use this code for GNU lds that support --whole-archive.
19580 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19582 # Exported symbols can be pulled into shared objects from archives
19583 whole_archive_flag_spec_CXX
='$convenience'
19585 archive_cmds_need_lc_CXX
=yes
19586 # This is similar to how AIX traditionally builds its shared
19588 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'
19594 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19595 allow_undefined_flag_CXX
=unsupported
19596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19597 # support --undefined. This deserves some investigation. FIXME
19598 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19605 case $cc_basename in
19607 # FIXME: insert proper C++ library support
19613 cygwin
* | mingw
* | pw32
* | cegcc
*)
19614 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19615 # as there is no search path for DLLs.
19616 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19617 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19618 allow_undefined_flag_CXX
=unsupported
19619 always_export_symbols_CXX
=no
19620 enable_shared_with_static_runtimes_CXX
=yes
19622 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19623 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'
19624 # If the export-symbols file already is a .def file (1st line
19625 # is EXPORTS), use it as is; otherwise, prepend...
19626 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19627 cp $export_symbols $output_objdir/$soname.def;
19629 echo EXPORTS > $output_objdir/$soname.def;
19630 cat $export_symbols >> $output_objdir/$soname.def;
19632 $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'
19637 darwin
* | rhapsody
*)
19640 archive_cmds_need_lc_CXX
=no
19641 hardcode_direct_CXX
=no
19642 hardcode_automatic_CXX
=yes
19643 hardcode_shlibpath_var_CXX
=unsupported
19644 if test "$lt_cv_ld_force_load" = "yes"; then
19645 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\"`'
19647 whole_archive_flag_spec_CXX
=''
19649 link_all_deplibs_CXX
=yes
19650 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19651 case $cc_basename in
19652 ifort
*) _lt_dar_can_shared
=yes ;;
19653 *) _lt_dar_can_shared
=$GCC ;;
19655 if test "$_lt_dar_can_shared" = "yes"; then
19656 output_verbose_link_cmd
=func_echo_all
19657 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}"
19658 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19659 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}"
19660 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}"
19661 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19662 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}"
19663 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}"
19673 case $cc_basename in
19675 # FIXME: insert proper C++ library support
19679 # Green Hills C++ Compiler
19680 # FIXME: insert proper C++ library support
19684 # FIXME: insert proper C++ library support
19691 # C++ shared libraries reported to be fairly broken before
19697 archive_cmds_need_lc_CXX
=no
19700 freebsd
* | dragonfly
*)
19701 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19710 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19711 link_all_deplibs_CXX
=yes
19715 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19716 hardcode_libdir_separator_CXX
=:
19717 export_dynamic_flag_spec_CXX
='${wl}-E'
19718 hardcode_direct_CXX
=yes
19719 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19720 # but as the default
19721 # location of the library.
19723 case $cc_basename in
19725 # FIXME: insert proper C++ library support
19729 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'
19730 # Commands to make compiler produce verbose output that lists
19731 # what "hidden" libraries, object files and flags are used when
19732 # linking a shared library.
19734 # There doesn't appear to be a way to prevent this compiler from
19735 # explicitly linking system object files so we need to strip them
19736 # from the output so that they don't get included in the library
19738 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"'
19741 if test "$GXX" = yes; then
19742 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'
19744 # FIXME: insert proper C++ library support
19752 if test $with_gnu_ld = no
; then
19753 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19754 hardcode_libdir_separator_CXX
=:
19760 export_dynamic_flag_spec_CXX
='${wl}-E'
19766 hardcode_direct_CXX
=no
19767 hardcode_shlibpath_var_CXX
=no
19770 hardcode_direct_CXX
=yes
19771 hardcode_direct_absolute_CXX
=yes
19772 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19773 # but as the default
19774 # location of the library.
19778 case $cc_basename in
19780 # FIXME: insert proper C++ library support
19786 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19789 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19792 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19795 # Commands to make compiler produce verbose output that lists
19796 # what "hidden" libraries, object files and flags are used when
19797 # linking a shared library.
19799 # There doesn't appear to be a way to prevent this compiler from
19800 # explicitly linking system object files so we need to strip them
19801 # from the output so that they don't get included in the library
19803 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"'
19806 if test "$GXX" = yes; then
19807 if test $with_gnu_ld = no
; then
19810 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19813 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19816 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'
19821 # FIXME: insert proper C++ library support
19829 hardcode_direct_CXX
=no
19830 hardcode_shlibpath_var_CXX
=no
19831 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19832 export_dynamic_flag_spec_CXX
='${wl}-E'
19833 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19834 # Instead, shared libraries are loaded at an image base (0x10000000 by
19835 # default) and relocated if they conflict, which is a slow very memory
19836 # consuming and fragmenting process. To avoid this, we pick a random,
19837 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19838 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19839 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'
19840 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'
19843 case $cc_basename in
19846 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'
19848 # Archives containing C++ object files must be created using
19849 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19850 # necessary to make sure instantiated templates are included
19852 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19855 if test "$GXX" = yes; then
19856 if test "$with_gnu_ld" = no
; then
19857 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'
19859 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'
19862 link_all_deplibs_CXX
=yes
19865 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19866 hardcode_libdir_separator_CXX
=:
19867 inherit_rpath_CXX
=yes
19870 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19871 case $cc_basename in
19873 # Kuck and Associates, Inc. (KAI) C++ Compiler
19875 # KCC will only create a shared library if the output file
19876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19877 # to its proper name (with version) after linking.
19878 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'
19879 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'
19880 # Commands to make compiler produce verbose output that lists
19881 # what "hidden" libraries, object files and flags are used when
19882 # linking a shared library.
19884 # There doesn't appear to be a way to prevent this compiler from
19885 # explicitly linking system object files so we need to strip them
19886 # from the output so that they don't get included in the library
19888 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"'
19890 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19891 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19893 # Archives containing C++ object files must be created using
19894 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19895 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19900 # version 8.0 and above of icpc choke on multiply defined symbols
19901 # if we add $predep_objects and $postdep_objects, however 7.1 and
19902 # earlier do not add the objects themselves.
19903 case `$CC -V 2>&1` in
19905 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19906 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'
19908 *) # Version 8.0 or newer
19911 ia64
*) tmp_idyn
=' -i_dynamic';;
19913 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19914 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'
19917 archive_cmds_need_lc_CXX
=no
19918 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19919 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19920 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19923 # Portland Group C++ compiler
19925 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19926 prelink_cmds_CXX
='tpldir=Template.dir~
19928 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19929 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19930 old_archive_cmds_CXX
='tpldir=Template.dir~
19932 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19933 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19935 archive_cmds_CXX
='tpldir=Template.dir~
19937 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19938 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19939 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19941 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19942 $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'
19944 *) # Version 6 and above use weak symbols
19945 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19946 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'
19950 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19951 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19952 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'
19956 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19957 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'
19959 runpath_var
=LD_RUN_PATH
19960 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19961 hardcode_libdir_separator_CXX
=:
19963 # Commands to make compiler produce verbose output that lists
19964 # what "hidden" libraries, object files and flags are used when
19965 # linking a shared library.
19967 # There doesn't appear to be a way to prevent this compiler from
19968 # explicitly linking system object files so we need to strip them
19969 # from the output so that they don't get included in the library
19971 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'
19973 xl
* | mpixl
* | bgxl
*)
19974 # IBM XL 8.0 on PPC, with GNU ld
19975 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19976 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19977 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19978 if test "x$supports_anon_versioning" = xyes
; then
19979 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19981 echo "local: *; };" >> $output_objdir/$libname.ver~
19982 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19986 case `$CC -V 2>&1 | sed 5q` in
19989 no_undefined_flag_CXX
=' -zdefs'
19990 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19991 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'
19992 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19993 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'
19994 compiler_needs_object_CXX
=yes
19996 # Not sure whether something based on
19997 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19999 output_verbose_link_cmd
='func_echo_all'
20001 # Archives containing C++ object files must be created using
20002 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20003 # necessary to make sure instantiated templates are included
20005 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20013 # FIXME: insert proper C++ library support
20018 # FIXME: insert proper C++ library support
20023 case $cc_basename in
20025 # FIXME: insert proper C++ library support
20029 # FIXME: insert proper C++ library support
20036 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20037 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20039 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20040 hardcode_direct_CXX
=yes
20041 hardcode_shlibpath_var_CXX
=no
20043 # Workaround some broken pre-1.5 toolchains
20044 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20052 # C++ shared libraries are fairly broken
20057 if test -f /usr
/libexec
/ld.so
; then
20058 hardcode_direct_CXX
=yes
20059 hardcode_shlibpath_var_CXX
=no
20060 hardcode_direct_absolute_CXX
=yes
20061 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20062 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20064 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20065 export_dynamic_flag_spec_CXX
='${wl}-E'
20066 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20068 output_verbose_link_cmd
=func_echo_all
20074 osf3
* | osf4
* | osf5
*)
20075 case $cc_basename in
20077 # Kuck and Associates, Inc. (KAI) C++ Compiler
20079 # KCC will only create a shared library if the output file
20080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20081 # to its proper name (with version) after linking.
20082 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'
20084 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20085 hardcode_libdir_separator_CXX
=:
20087 # Archives containing C++ object files must be created using
20088 # the KAI C++ compiler.
20090 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20091 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20095 # Rational C++ 2.4.1
20096 # FIXME: insert proper C++ library support
20102 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20103 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'
20104 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20107 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20108 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'
20109 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20110 echo "-hidden">> $lib.exp~
20111 $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~
20113 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20117 hardcode_libdir_separator_CXX
=:
20119 # Commands to make compiler produce verbose output that lists
20120 # what "hidden" libraries, object files and flags are used when
20121 # linking a shared library.
20123 # There doesn't appear to be a way to prevent this compiler from
20124 # explicitly linking system object files so we need to strip them
20125 # from the output so that they don't get included in the library
20127 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"'
20130 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20131 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20134 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'
20137 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'
20141 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20142 hardcode_libdir_separator_CXX
=:
20144 # Commands to make compiler produce verbose output that lists
20145 # what "hidden" libraries, object files and flags are used when
20146 # linking a shared library.
20147 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20150 # FIXME: insert proper C++ library support
20158 # FIXME: insert proper C++ library support
20163 case $cc_basename in
20166 # FIXME: insert proper C++ library support
20171 # FIXME: insert proper C++ library support
20175 # FIXME: insert proper C++ library support
20182 case $cc_basename in
20184 # Sun C++ 4.2, 5.x and Centerline C++
20185 archive_cmds_need_lc_CXX
=yes
20186 no_undefined_flag_CXX
=' -zdefs'
20187 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20188 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20189 $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'
20191 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20192 hardcode_shlibpath_var_CXX
=no
20194 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20196 # The compiler driver will combine and reorder linker options,
20197 # but understands `-z linker_flag'.
20198 # Supported since Solaris 2.6 (maybe 2.5.1?)
20199 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20202 link_all_deplibs_CXX
=yes
20204 output_verbose_link_cmd
='func_echo_all'
20206 # Archives containing C++ object files must be created using
20207 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20208 # necessary to make sure instantiated templates are included
20210 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20213 # Green Hills C++ Compiler
20214 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20216 # The C++ compiler must be used to create the archive.
20217 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20220 # GNU C++ compiler with Solaris linker
20221 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20222 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20223 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20224 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20225 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20226 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20228 # Commands to make compiler produce verbose output that lists
20229 # what "hidden" libraries, object files and flags are used when
20230 # linking a shared library.
20231 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20233 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20235 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20236 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20237 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20239 # Commands to make compiler produce verbose output that lists
20240 # what "hidden" libraries, object files and flags are used when
20241 # linking a shared library.
20242 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20245 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20247 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20249 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20257 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20258 no_undefined_flag_CXX
='${wl}-z,text'
20259 archive_cmds_need_lc_CXX
=no
20260 hardcode_shlibpath_var_CXX
=no
20261 runpath_var
='LD_RUN_PATH'
20263 case $cc_basename in
20265 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20266 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20269 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20270 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20275 sysv5
* | sco3.2v5
* | sco5v6
*)
20276 # Note: We can NOT use -z defs as we might desire, because we do not
20277 # link with -lc, and that would cause any symbols used from libc to
20278 # always be unresolved, which means just about no library would
20279 # ever link correctly. If we're not using GNU ld we use -z text
20280 # though, which does catch some bad symbols but isn't as heavy-handed
20282 no_undefined_flag_CXX
='${wl}-z,text'
20283 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20284 archive_cmds_need_lc_CXX
=no
20285 hardcode_shlibpath_var_CXX
=no
20286 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20287 hardcode_libdir_separator_CXX
=':'
20288 link_all_deplibs_CXX
=yes
20289 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20290 runpath_var
='LD_RUN_PATH'
20292 case $cc_basename in
20294 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20295 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20296 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20297 '"$old_archive_cmds_CXX"
20298 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20299 '"$reload_cmds_CXX"
20302 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20303 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20309 case $cc_basename in
20311 # NonStop-UX NCC 3.20
20312 # FIXME: insert proper C++ library support
20316 # FIXME: insert proper C++ library support
20323 # FIXME: insert proper C++ library support
20328 # FIXME: insert proper C++ library support
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20334 $as_echo "$ld_shlibs_CXX" >&6; }
20335 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20341 ## There is no encapsulation within the following macros, do not change
20342 ## the running order or otherwise move them around unless you know exactly
20343 ## what you are doing...
20344 # Dependencies to place before and after the object being linked:
20345 predep_objects_CXX
=
20346 postdep_objects_CXX
=
20349 compiler_lib_search_path_CXX
=
20351 cat > conftest.
$ac_ext <<_LT_EOF
20355 Foo (void) { a = 0; }
20361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20362 (eval $ac_compile) 2>&5
20364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20365 test $ac_status = 0; }; then
20366 # Parse the compiler output and extract the necessary
20367 # objects, libraries and library flags.
20369 # Sentinel used to keep track of whether or not we are before
20370 # the conftest object file.
20371 pre_test_object_deps_done
=no
20373 for p
in `eval "$output_verbose_link_cmd"`; do
20377 # Some compilers place space between "-{L,R}" and the path.
20378 # Remove the space.
20379 if test $p = "-L" ||
20380 test $p = "-R"; then
20387 if test "$pre_test_object_deps_done" = no
; then
20390 # Internal compiler library paths should come after those
20391 # provided the user. The postdeps already come after the
20392 # user supplied libs so there is no need to process them.
20393 if test -z "$compiler_lib_search_path_CXX"; then
20394 compiler_lib_search_path_CXX
="${prev}${p}"
20396 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20399 # The "-l" case would never come before the object being
20400 # linked, so don't bother handling this case.
20403 if test -z "$postdeps_CXX"; then
20404 postdeps_CXX
="${prev}${p}"
20406 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20412 # This assumes that the test object file only shows up
20413 # once in the compiler output.
20414 if test "$p" = "conftest.$objext"; then
20415 pre_test_object_deps_done
=yes
20419 if test "$pre_test_object_deps_done" = no
; then
20420 if test -z "$predep_objects_CXX"; then
20421 predep_objects_CXX
="$p"
20423 predep_objects_CXX
="$predep_objects_CXX $p"
20426 if test -z "$postdep_objects_CXX"; then
20427 postdep_objects_CXX
="$p"
20429 postdep_objects_CXX
="$postdep_objects_CXX $p"
20434 *) ;; # Ignore the rest.
20442 echo "libtool.m4: error: problem compiling CXX test program"
20445 $RM -f confest.
$objext
20447 # PORTME: override above test on systems where it is broken
20450 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20451 # hack all around it, let's just trust "g++" to DTRT.
20452 predep_objects_CXX
=
20453 postdep_objects_CXX
=
20458 case `$CC -V 2>&1 | sed 5q` in
20462 # The more standards-conforming stlport4 library is
20463 # incompatible with the Cstd library. Avoid specifying
20464 # it if it's in CXXFLAGS. Ignore libCrun as
20465 # -library=stlport4 depends on it.
20466 case " $CXX $CXXFLAGS " in
20467 *" -library=stlport4 "*)
20468 solaris_use_stlport4
=yes
20472 if test "$solaris_use_stlport4" != yes; then
20473 postdeps_CXX
='-library=Cstd -library=Crun'
20480 case $cc_basename in
20482 # The more standards-conforming stlport4 library is
20483 # incompatible with the Cstd library. Avoid specifying
20484 # it if it's in CXXFLAGS. Ignore libCrun as
20485 # -library=stlport4 depends on it.
20486 case " $CXX $CXXFLAGS " in
20487 *" -library=stlport4 "*)
20488 solaris_use_stlport4
=yes
20492 # Adding this requires a known-good setup of shared libraries for
20493 # Sun compiler versions before 5.6, else PIC objects from an old
20494 # archive will be linked into the output, leading to subtle bugs.
20495 if test "$solaris_use_stlport4" != yes; then
20496 postdeps_CXX
='-library=Cstd -library=Crun'
20504 case " $postdeps_CXX " in
20505 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20507 compiler_lib_search_dirs_CXX
=
20508 if test -n "${compiler_lib_search_path_CXX}"; then
20509 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20542 lt_prog_compiler_wl_CXX
=
20543 lt_prog_compiler_pic_CXX
=
20544 lt_prog_compiler_static_CXX
=
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20547 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20549 # C++ specific cases for pic, static, wl, etc.
20550 if test "$GXX" = yes; then
20551 lt_prog_compiler_wl_CXX
='-Wl,'
20552 lt_prog_compiler_static_CXX
='-static'
20556 # All AIX code is PIC.
20557 if test "$host_cpu" = ia64
; then
20558 # AIX 5 now supports IA64 processor
20559 lt_prog_compiler_static_CXX
='-Bstatic'
20561 lt_prog_compiler_pic_CXX
='-fPIC'
20567 # see comment about AmigaOS4 .so support
20568 lt_prog_compiler_pic_CXX
='-fPIC'
20571 # FIXME: we need at least 68020 code to build shared libraries, but
20572 # adding the `-m68020' flag to GCC prevents building anything better,
20574 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20579 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20580 # PIC is the default for these OSes.
20582 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20583 # This hack is so that the source file can tell whether it is being
20584 # built for inclusion in a dll (and should export symbols for example).
20585 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20586 # (--disable-auto-import) libraries
20587 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20589 darwin
* | rhapsody
*)
20590 # PIC is the default on this platform
20591 # Common symbols not allowed in MH_DYLIB files
20592 lt_prog_compiler_pic_CXX
='-fno-common'
20595 # DJGPP does not support shared libraries at all
20596 lt_prog_compiler_pic_CXX
=
20599 # PIC is the default for Haiku.
20600 # The "-static" flag exists, but is broken.
20601 lt_prog_compiler_static_CXX
=
20604 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20605 # Instead, we relocate shared libraries at runtime.
20608 if test -d /usr
/nec
; then
20609 lt_prog_compiler_pic_CXX
=-Kconform_pic
20613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20615 # sets the default TLS model and affects inlining.
20620 lt_prog_compiler_pic_CXX
='-fPIC'
20625 # QNX uses GNU C++, but need to define -shared option too, otherwise
20626 # it will coredump.
20627 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20630 lt_prog_compiler_pic_CXX
='-fPIC'
20636 # All AIX code is PIC.
20637 if test "$host_cpu" = ia64
; then
20638 # AIX 5 now supports IA64 processor
20639 lt_prog_compiler_static_CXX
='-Bstatic'
20641 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20645 case $cc_basename in
20647 # Green Hills C++ Compiler
20648 # _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"
20653 case $cc_basename in
20655 lt_prog_compiler_pic_CXX
='-KPIC'
20658 # Green Hills C++ Compiler
20659 lt_prog_compiler_pic_CXX
='-pic'
20665 freebsd
* | dragonfly
*)
20666 # FreeBSD uses GNU C++
20668 hpux9
* | hpux10
* | hpux11
*)
20669 case $cc_basename in
20671 lt_prog_compiler_wl_CXX
='-Wl,'
20672 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20673 if test "$host_cpu" != ia64
; then
20674 lt_prog_compiler_pic_CXX
='+Z'
20678 lt_prog_compiler_wl_CXX
='-Wl,'
20679 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20685 lt_prog_compiler_pic_CXX
='+Z'
20694 # This is c89, which is MS Visual C++ (no shared libs)
20695 # Anyone wants to do a port?
20697 irix5
* | irix6
* | nonstopux
*)
20698 case $cc_basename in
20700 lt_prog_compiler_wl_CXX
='-Wl,'
20701 lt_prog_compiler_static_CXX
='-non_shared'
20702 # CC pic flag -KPIC is the default.
20708 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20709 case $cc_basename in
20712 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20713 lt_prog_compiler_pic_CXX
='-fPIC'
20716 # old Intel C++ for x86_64 which still supported -KPIC.
20717 lt_prog_compiler_wl_CXX
='-Wl,'
20718 lt_prog_compiler_pic_CXX
='-KPIC'
20719 lt_prog_compiler_static_CXX
='-static'
20722 # Intel C++, used to be incompatible with GCC.
20723 # ICC 10 doesn't accept -KPIC any more.
20724 lt_prog_compiler_wl_CXX
='-Wl,'
20725 lt_prog_compiler_pic_CXX
='-fPIC'
20726 lt_prog_compiler_static_CXX
='-static'
20729 # Portland Group C++ compiler
20730 lt_prog_compiler_wl_CXX
='-Wl,'
20731 lt_prog_compiler_pic_CXX
='-fpic'
20732 lt_prog_compiler_static_CXX
='-Bstatic'
20736 # Make sure the PIC flag is empty. It appears that all Alpha
20737 # Linux and Compaq Tru64 Unix objects are PIC.
20738 lt_prog_compiler_pic_CXX
=
20739 lt_prog_compiler_static_CXX
='-non_shared'
20741 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20742 # IBM XL 8.0, 9.0 on PPC and BlueGene
20743 lt_prog_compiler_wl_CXX
='-Wl,'
20744 lt_prog_compiler_pic_CXX
='-qpic'
20745 lt_prog_compiler_static_CXX
='-qstaticlink'
20748 case `$CC -V 2>&1 | sed 5q` in
20751 lt_prog_compiler_pic_CXX
='-KPIC'
20752 lt_prog_compiler_static_CXX
='-Bstatic'
20753 lt_prog_compiler_wl_CXX
='-Qoption ld '
20764 case $cc_basename in
20766 lt_prog_compiler_pic_CXX
='-W c,exportall'
20775 # QNX uses GNU C++, but need to define -shared option too, otherwise
20776 # it will coredump.
20777 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20779 osf3
* | osf4
* | osf5
*)
20780 case $cc_basename in
20782 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20785 # Rational C++ 2.4.1
20786 lt_prog_compiler_pic_CXX
='-pic'
20789 # Digital/Compaq C++
20790 lt_prog_compiler_wl_CXX
='-Wl,'
20791 # Make sure the PIC flag is empty. It appears that all Alpha
20792 # Linux and Compaq Tru64 Unix objects are PIC.
20793 lt_prog_compiler_pic_CXX
=
20794 lt_prog_compiler_static_CXX
='-non_shared'
20803 case $cc_basename in
20805 # Sun C++ 4.2, 5.x and Centerline C++
20806 lt_prog_compiler_pic_CXX
='-KPIC'
20807 lt_prog_compiler_static_CXX
='-Bstatic'
20808 lt_prog_compiler_wl_CXX
='-Qoption ld '
20811 # Green Hills C++ Compiler
20812 lt_prog_compiler_pic_CXX
='-PIC'
20819 case $cc_basename in
20822 lt_prog_compiler_pic_CXX
='-pic'
20823 lt_prog_compiler_static_CXX
='-Bstatic'
20827 lt_prog_compiler_pic_CXX
='-pic'
20833 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20834 case $cc_basename in
20836 lt_prog_compiler_wl_CXX
='-Wl,'
20837 lt_prog_compiler_pic_CXX
='-KPIC'
20838 lt_prog_compiler_static_CXX
='-Bstatic'
20843 case $cc_basename in
20845 # NonStop-UX NCC 3.20
20846 lt_prog_compiler_pic_CXX
='-KPIC'
20855 lt_prog_compiler_can_build_shared_CXX
=no
20861 # For platforms which do not support PIC, -DPIC is meaningless:
20863 lt_prog_compiler_pic_CXX
=
20866 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20870 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20875 # Check to make sure the PIC flag actually works.
20877 if test -n "$lt_prog_compiler_pic_CXX"; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20879 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20880 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
20881 $as_echo_n "(cached) " >&6
20883 lt_cv_prog_compiler_pic_works_CXX
=no
20884 ac_outfile
=conftest.
$ac_objext
20885 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20886 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20887 # Insert the option either (1) after the last *FLAGS variable, or
20888 # (2) before a word containing "conftest.", or (3) at the end.
20889 # Note that $ac_compile itself does not contain backslashes and begins
20890 # with a dollar sign (not a hyphen), so the echo should work correctly.
20891 # The option is referenced via a variable to avoid confusing sed.
20892 lt_compile
=`echo "$ac_compile" | $SED \
20893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20895 -e 's:$: $lt_compiler_flag:'`
20896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20897 (eval "$lt_compile" 2>conftest.err
)
20899 cat conftest.err
>&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 if (exit $ac_status) && test -s "$ac_outfile"; then
20902 # The compiler can only warn and ignore the option if not recognized
20903 # So say no if there are warnings other than the usual output.
20904 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20905 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20906 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20907 lt_cv_prog_compiler_pic_works_CXX
=yes
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20914 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20916 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20917 case $lt_prog_compiler_pic_CXX in
20919 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20922 lt_prog_compiler_pic_CXX
=
20923 lt_prog_compiler_can_build_shared_CXX
=no
20931 # Check to make sure the static flag actually works.
20933 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20936 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
20937 $as_echo_n "(cached) " >&6
20939 lt_cv_prog_compiler_static_works_CXX
=no
20940 save_LDFLAGS
="$LDFLAGS"
20941 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20942 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20943 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20944 # The linker can only warn and ignore the option if not recognized
20945 # So say no if there are warnings
20946 if test -s conftest.err
; then
20947 # Append any errors to the config.log.
20948 cat conftest.err
1>&5
20949 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20950 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20951 if diff conftest.exp conftest.er2
>/dev
/null
; then
20952 lt_cv_prog_compiler_static_works_CXX
=yes
20955 lt_cv_prog_compiler_static_works_CXX
=yes
20959 LDFLAGS
="$save_LDFLAGS"
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20963 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20965 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20968 lt_prog_compiler_static_CXX
=
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20975 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20976 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
20977 $as_echo_n "(cached) " >&6
20979 lt_cv_prog_compiler_c_o_CXX
=no
20980 $RM -r conftest
2>/dev
/null
20984 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20986 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20987 # Insert the option either (1) after the last *FLAGS variable, or
20988 # (2) before a word containing "conftest.", or (3) at the end.
20989 # Note that $ac_compile itself does not contain backslashes and begins
20990 # with a dollar sign (not a hyphen), so the echo should work correctly.
20991 lt_compile
=`echo "$ac_compile" | $SED \
20992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20994 -e 's:$: $lt_compiler_flag:'`
20995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20996 (eval "$lt_compile" 2>out
/conftest.err
)
20998 cat out
/conftest.err
>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21002 # The compiler can only warn and ignore the option if not recognized
21003 # So say no if there are warnings
21004 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21005 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21006 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21007 lt_cv_prog_compiler_c_o_CXX
=yes
21012 # SGI C++ compiler will create directory out/ii_files/ for
21013 # template instantiation
21014 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21015 $RM out
/* && rmdir out
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21022 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21028 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21029 $as_echo_n "(cached) " >&6
21031 lt_cv_prog_compiler_c_o_CXX
=no
21032 $RM -r conftest
2>/dev
/null
21036 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21038 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21039 # Insert the option either (1) after the last *FLAGS variable, or
21040 # (2) before a word containing "conftest.", or (3) at the end.
21041 # Note that $ac_compile itself does not contain backslashes and begins
21042 # with a dollar sign (not a hyphen), so the echo should work correctly.
21043 lt_compile
=`echo "$ac_compile" | $SED \
21044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21046 -e 's:$: $lt_compiler_flag:'`
21047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21048 (eval "$lt_compile" 2>out
/conftest.err
)
21050 cat out
/conftest.err
>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21054 # The compiler can only warn and ignore the option if not recognized
21055 # So say no if there are warnings
21056 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21057 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21058 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21059 lt_cv_prog_compiler_c_o_CXX
=yes
21064 # SGI C++ compiler will create directory out/ii_files/ for
21065 # template instantiation
21066 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21067 $RM out
/* && rmdir out
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21074 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21079 hard_links
="nottested"
21080 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21081 # do not overwrite the value of need_locks provided by the user
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21083 $as_echo_n "checking if we can lock with hard links... " >&6; }
21086 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21088 ln conftest.a conftest.b
2>&5 || hard_links
=no
21089 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21091 $as_echo "$hard_links" >&6; }
21092 if test "$hard_links" = no
; then
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21094 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21104 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21106 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21109 # If we're using GNU nm, then we don't want the "-C" option.
21110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21111 # Also, AIX nm treats weak defined symbols like other global defined
21112 # symbols, whereas GNU nm marks them as "W".
21113 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21114 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'
21116 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'
21120 export_symbols_cmds_CXX
="$ltdll_cmds"
21122 cygwin
* | mingw
* | cegcc
*)
21123 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'
21126 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21129 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21132 $as_echo "$ld_shlibs_CXX" >&6; }
21133 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21135 with_gnu_ld_CXX
=$with_gnu_ld
21143 # Do we need to explicitly link libc?
21145 case "x$archive_cmds_need_lc_CXX" in
21147 # Assume -lc should be added
21148 archive_cmds_need_lc_CXX
=yes
21150 if test "$enable_shared" = yes && test "$GCC" = yes; then
21151 case $archive_cmds_CXX in
21153 # FIXME: we may have to deal with multi-command sequences.
21156 # Test whether the compiler implicitly links with -lc since on some
21157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21158 # to ld, don't add -lc before -lgcc.
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21160 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21161 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21162 $as_echo_n "(cached) " >&6
21165 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21168 (eval $ac_compile) 2>&5
21170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21171 test $ac_status = 0; } 2>conftest.err
; then
21174 libobjs
=conftest.
$ac_objext
21176 wl
=$lt_prog_compiler_wl_CXX
21177 pic_flag
=$lt_prog_compiler_pic_CXX
21183 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21184 allow_undefined_flag_CXX
=
21185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21186 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21189 test $ac_status = 0; }
21191 lt_cv_archive_cmds_need_lc_CXX
=no
21193 lt_cv_archive_cmds_need_lc_CXX
=yes
21195 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21197 cat conftest.err
1>&5
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21203 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21204 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21277 library_names_spec
=
21278 libname_spec
='lib$name'
21282 postuninstall_cmds
=
21286 shlibpath_overrides_runpath
=unknown
21288 dynamic_linker
="$host_os ld.so"
21289 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21290 need_lib_prefix
=unknown
21291 hardcode_into_libs
=no
21293 # when you set need_version to no, make sure it does not cause -set_version
21294 # flags to be left without arguments
21295 need_version
=unknown
21300 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21301 shlibpath_var
=LIBPATH
21303 # AIX 3 has no versioning support, so we append a major version to the name.
21304 soname_spec
='${libname}${release}${shared_ext}$major'
21311 hardcode_into_libs
=yes
21312 if test "$host_cpu" = ia64
; then
21313 # AIX 5 supports IA64
21314 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21315 shlibpath_var
=LD_LIBRARY_PATH
21317 # With GCC up to 2.95.x, collect2 would create an import file
21318 # for dependence libraries. The import file would start with
21319 # the line `#! .'. This would cause the generated library to
21320 # depend on `.', always an invalid library. This was fixed in
21321 # development snapshots of GCC prior to 3.0.
21323 aix4 | aix4.
[01] | aix4.
[01].
*)
21324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21326 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21329 can_build_shared
=no
21333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21334 # soname into executable. Probably we can add versioning support to
21335 # collect2, so additional links can be useful in future.
21336 if test "$aix_use_runtimelinking" = yes; then
21337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21338 # instead of lib<name>.a to let people know that these are not
21339 # typical AIX shared libraries.
21340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21342 # We preserve .a as extension for shared libraries through AIX4.2
21343 # and later when we are not doing run time linking.
21344 library_names_spec
='${libname}${release}.a $libname.a'
21345 soname_spec
='${libname}${release}${shared_ext}$major'
21347 shlibpath_var
=LIBPATH
21354 # Since July 2007 AmigaOS4 officially supports .so libraries.
21355 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21359 library_names_spec
='$libname.ixlibrary $libname.a'
21360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21361 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'
21367 library_names_spec
='${libname}${shared_ext}'
21368 dynamic_linker
="$host_os ld.so"
21369 shlibpath_var
=LIBRARY_PATH
21375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21376 soname_spec
='${libname}${release}${shared_ext}$major'
21377 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21378 shlibpath_var
=LD_LIBRARY_PATH
21379 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21380 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21381 # the default ld.so.conf also contains /usr/contrib/lib and
21382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21383 # libtool to hard-code these into programs
21386 cygwin
* | mingw
* | pw32
* | cegcc
*)
21387 version_type
=windows
21392 case $GCC,$host_os in
21393 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21394 library_names_spec
='$libname.dll.a'
21395 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21396 postinstall_cmds
='base_file=`basename \${file}`~
21397 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21398 dldir=$destdir/`dirname \$dlpath`~
21399 test -d \$dldir || mkdir -p \$dldir~
21400 $install_prog $dir/$dlname \$dldir/$dlname~
21401 chmod a+x \$dldir/$dlname~
21402 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21403 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21405 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21406 dlpath=$dir/\$dldll~
21408 shlibpath_overrides_runpath
=yes
21412 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21413 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21417 # MinGW DLLs use traditional 'lib' prefix
21418 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21421 # pw32 DLLs use 'pw' prefix rather than 'lib'
21422 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21428 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21431 dynamic_linker
='Win32 ld.exe'
21432 # FIXME: first we should search . and the directory the executable is in
21436 darwin
* | rhapsody
*)
21437 dynamic_linker
="$host_os dyld"
21438 version_type
=darwin
21441 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21442 soname_spec
='${libname}${release}${major}$shared_ext'
21443 shlibpath_overrides_runpath
=yes
21444 shlibpath_var
=DYLD_LIBRARY_PATH
21445 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21447 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21455 soname_spec
='${libname}${release}${shared_ext}$major'
21456 shlibpath_var
=LD_LIBRARY_PATH
21459 freebsd
* | dragonfly
*)
21460 # DragonFly does not have aout. When/if they implement a new
21461 # versioning mechanism, adjust this.
21462 if test -x /usr
/bin
/objformat
; then
21463 objformat
=`/usr/bin/objformat`
21466 freebsd
[23].
*) objformat
=aout
;;
21467 *) objformat
=elf
;;
21470 version_type
=freebsd-
$objformat
21471 case $version_type in
21473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21478 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21482 shlibpath_var
=LD_LIBRARY_PATH
21485 shlibpath_overrides_runpath
=yes
21487 freebsd3.
[01]* | freebsdelf3.
[01]*)
21488 shlibpath_overrides_runpath
=yes
21489 hardcode_into_libs
=yes
21491 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21492 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21493 shlibpath_overrides_runpath
=no
21494 hardcode_into_libs
=yes
21496 *) # from 4.6 on, and DragonFly
21497 shlibpath_overrides_runpath
=yes
21498 hardcode_into_libs
=yes
21507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21508 soname_spec
='${libname}${release}${shared_ext}$major'
21509 shlibpath_var
=LD_LIBRARY_PATH
21510 hardcode_into_libs
=yes
21517 dynamic_linker
="$host_os runtime_loader"
21518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21519 soname_spec
='${libname}${release}${shared_ext}$major'
21520 shlibpath_var
=LIBRARY_PATH
21521 shlibpath_overrides_runpath
=yes
21522 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21523 hardcode_into_libs
=yes
21526 hpux9
* | hpux10
* | hpux11
*)
21527 # Give a soname corresponding to the major version so that dld.sl refuses to
21528 # link against other versions.
21535 hardcode_into_libs
=yes
21536 dynamic_linker
="$host_os dld.so"
21537 shlibpath_var
=LD_LIBRARY_PATH
21538 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21540 soname_spec
='${libname}${release}${shared_ext}$major'
21541 if test "X$HPUX_IA64_MODE" = X32
; then
21542 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21544 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21546 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21550 hardcode_into_libs
=yes
21551 dynamic_linker
="$host_os dld.sl"
21552 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21553 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21555 soname_spec
='${libname}${release}${shared_ext}$major'
21556 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21557 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21561 dynamic_linker
="$host_os dld.sl"
21562 shlibpath_var
=SHLIB_PATH
21563 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21564 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21565 soname_spec
='${libname}${release}${shared_ext}$major'
21568 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21569 postinstall_cmds
='chmod 555 $lib'
21570 # or fails outright, so override atomically:
21571 install_override_mode
=555
21578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21579 soname_spec
='${libname}${release}${shared_ext}$major'
21580 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21581 shlibpath_var
=LD_LIBRARY_PATH
21582 shlibpath_overrides_runpath
=no
21583 hardcode_into_libs
=yes
21586 irix5
* | irix6
* | nonstopux
*)
21588 nonstopux
*) version_type
=nonstopux
;;
21590 if test "$lt_cv_prog_gnu_ld" = yes; then
21598 soname_spec
='${libname}${release}${shared_ext}$major'
21599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21601 irix5
* | nonstopux
*)
21602 libsuff
= shlibsuff
=
21605 case $LD in # libtool.m4 will add one of these switches to LD
21606 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21607 libsuff
= shlibsuff
= libmagic
=32-bit;;
21608 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21609 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21610 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21611 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21612 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21616 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21617 shlibpath_overrides_runpath
=no
21618 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21619 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21620 hardcode_into_libs
=yes
21623 # No shared lib support for Linux oldld, aout, or coff.
21624 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21628 # This must be Linux ELF.
21629 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21634 soname_spec
='${libname}${release}${shared_ext}$major'
21635 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21636 shlibpath_var
=LD_LIBRARY_PATH
21637 shlibpath_overrides_runpath
=no
21639 # Some binutils ld are patched to set DT_RUNPATH
21640 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
21641 $as_echo_n "(cached) " >&6
21643 lt_cv_shlibpath_overrides_runpath
=no
21644 save_LDFLAGS
=$LDFLAGS
21645 save_libdir
=$libdir
21646 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21647 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21649 /* end confdefs.h. */
21659 if ac_fn_cxx_try_link
"$LINENO"; then :
21660 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21661 lt_cv_shlibpath_overrides_runpath
=yes
21664 rm -f core conftest.err conftest.
$ac_objext \
21665 conftest
$ac_exeext conftest.
$ac_ext
21666 LDFLAGS
=$save_LDFLAGS
21667 libdir
=$save_libdir
21671 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21673 # This implies no fast_install, which is unacceptable.
21674 # Some rework will be needed to allow for fast_install
21675 # before this can be enabled.
21676 hardcode_into_libs
=yes
21678 # Append ld.so.conf contents to the search path
21679 if test -f /etc
/ld.so.conf
; then
21680 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' ' '`
21681 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21684 # We used to test for /lib/ld.so.1 and disable shared libraries on
21685 # powerpc, because MkLinux only supported shared libraries with the
21686 # GNU dynamic linker. Since this was broken with cross compilers,
21687 # most powerpc-linux boxes support dynamic linking these days and
21688 # people can always --disable-shared, the test was removed, and we
21689 # assume the GNU/Linux dynamic linker is in use.
21690 dynamic_linker
='GNU/Linux ld.so'
21697 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21699 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21700 dynamic_linker
='NetBSD (a.out) ld.so'
21702 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21703 soname_spec
='${libname}${release}${shared_ext}$major'
21704 dynamic_linker
='NetBSD ld.elf_so'
21706 shlibpath_var
=LD_LIBRARY_PATH
21707 shlibpath_overrides_runpath
=yes
21708 hardcode_into_libs
=yes
21713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21714 shlibpath_var
=LD_LIBRARY_PATH
21715 shlibpath_overrides_runpath
=yes
21722 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21723 soname_spec
='${libname}${release}${shared_ext}$major'
21724 shlibpath_var
=LD_LIBRARY_PATH
21725 shlibpath_overrides_runpath
=no
21726 hardcode_into_libs
=yes
21727 dynamic_linker
='ldqnx.so'
21732 sys_lib_dlsearch_path_spec
="/usr/lib"
21734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21736 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21737 *) need_version
=no
;;
21739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21740 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21741 shlibpath_var
=LD_LIBRARY_PATH
21742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21744 openbsd2.
[89] | openbsd2.
[89].
*)
21745 shlibpath_overrides_runpath
=no
21748 shlibpath_overrides_runpath
=yes
21752 shlibpath_overrides_runpath
=yes
21757 libname_spec
='$name'
21760 library_names_spec
='$libname${shared_ext} $libname.a'
21761 dynamic_linker
='OS/2 ld.exe'
21762 shlibpath_var
=LIBPATH
21765 osf3
* | osf4
* | osf5
*)
21769 soname_spec
='${libname}${release}${shared_ext}$major'
21770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21771 shlibpath_var
=LD_LIBRARY_PATH
21772 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21773 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21785 soname_spec
='${libname}${release}${shared_ext}$major'
21786 shlibpath_var
=LD_LIBRARY_PATH
21787 shlibpath_overrides_runpath
=yes
21788 hardcode_into_libs
=yes
21789 # ldd complains unless libraries are executable
21790 postinstall_cmds
='chmod +x $lib'
21795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21796 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21797 shlibpath_var
=LD_LIBRARY_PATH
21798 shlibpath_overrides_runpath
=yes
21799 if test "$with_gnu_ld" = yes; then
21807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21808 soname_spec
='${libname}${release}${shared_ext}$major'
21809 shlibpath_var
=LD_LIBRARY_PATH
21810 case $host_vendor in
21812 shlibpath_overrides_runpath
=no
21814 runpath_var
=LD_RUN_PATH
21822 shlibpath_overrides_runpath
=no
21823 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21829 if test -d /usr
/nec
;then
21831 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21832 soname_spec
='$libname${shared_ext}.$major'
21833 shlibpath_var
=LD_LIBRARY_PATH
21837 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21838 version_type
=freebsd-elf
21841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21842 soname_spec
='${libname}${release}${shared_ext}$major'
21843 shlibpath_var
=LD_LIBRARY_PATH
21844 shlibpath_overrides_runpath
=yes
21845 hardcode_into_libs
=yes
21846 if test "$with_gnu_ld" = yes; then
21847 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21849 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21852 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21856 sys_lib_dlsearch_path_spec
='/usr/lib'
21860 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21865 shlibpath_var
=LD_LIBRARY_PATH
21866 shlibpath_overrides_runpath
=no
21867 hardcode_into_libs
=yes
21872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21873 soname_spec
='${libname}${release}${shared_ext}$major'
21874 shlibpath_var
=LD_LIBRARY_PATH
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21882 $as_echo "$dynamic_linker" >&6; }
21883 test "$dynamic_linker" = no
&& can_build_shared
=no
21885 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21886 if test "$GCC" = yes; then
21887 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21890 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21891 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21893 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21894 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21935 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21936 hardcode_action_CXX
=
21937 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21938 test -n "$runpath_var_CXX" ||
21939 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21941 # We can hardcode non-existent directories.
21942 if test "$hardcode_direct_CXX" != no
&&
21943 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21944 # have to relink, otherwise we might link with an installed library
21945 # when we should be linking with a yet-to-be-installed one
21946 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21947 test "$hardcode_minus_L_CXX" != no
; then
21948 # Linking always hardcodes the temporary library directory.
21949 hardcode_action_CXX
=relink
21951 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21952 hardcode_action_CXX
=immediate
21955 # We cannot hardcode anything, or else we can only hardcode existing
21957 hardcode_action_CXX
=unsupported
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21960 $as_echo "$hardcode_action_CXX" >&6; }
21962 if test "$hardcode_action_CXX" = relink ||
21963 test "$inherit_rpath_CXX" = yes; then
21964 # Fast installation is not supported
21965 enable_fast_install
=no
21966 elif test "$shlibpath_overrides_runpath" = yes ||
21967 test "$enable_shared" = no
; then
21968 # Fast installation is not necessary
21969 enable_fast_install
=needless
21978 fi # test -n "$compiler"
21984 with_gnu_ld
=$lt_save_with_gnu_ld
21985 lt_cv_path_LDCXX
=$lt_cv_path_LD
21986 lt_cv_path_LD
=$lt_save_path_LD
21987 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21988 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21989 fi # test "$_lt_caught_CXX_error" != yes
21992 ac_cpp
='$CXXCPP $CPPFLAGS'
21993 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21994 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21995 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22012 # Only expand once:
22018 # Identify the assembler which will work hand-in-glove with the newly
22019 # built GCC, so that we can examine its features. This is the assembler
22020 # which will be driven by the driver program.
22022 # If build != host, and we aren't building gas in-tree, we identify a
22023 # build->target assembler and hope that it will have the same features
22024 # as the host->target assembler we'll be using.
22025 gcc_cv_gas_major_version
=
22026 gcc_cv_gas_minor_version
=
22027 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22029 if ${gcc_cv_as+:} false
; then :
22033 if test -x "$DEFAULT_ASSEMBLER"; then
22034 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22035 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22036 && test -f ..
/gas
/Makefile \
22037 && test x
$build = x
$host; then
22038 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22039 elif test -x as
$build_exeext; then
22040 # Build using assembler in the current directory.
22041 gcc_cv_as
=.
/as
$build_exeext
22042 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22043 gcc_cv_as
="$AS_FOR_TARGET"
22045 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22046 set dummy
$AS_FOR_TARGET; ac_word
=$2
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22048 $as_echo_n "checking for $ac_word... " >&6; }
22049 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22050 $as_echo_n "(cached) " >&6
22054 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22058 for as_dir
in $PATH
22061 test -z "$as_dir" && as_dir
=.
22062 for ac_exec_ext
in '' $ac_executable_extensions; do
22063 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22064 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22075 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22076 if test -n "$gcc_cv_as"; then
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22078 $as_echo "$gcc_cv_as" >&6; }
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22081 $as_echo "no" >&6; }
22088 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22090 case "$ORIGINAL_AS_FOR_TARGET" in
22091 .
/as | .
/as
$build_exeext) ;;
22092 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22097 $as_echo_n "checking what assembler to use... " >&6; }
22098 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22099 # Single tree build which includes gas. We want to prefer it
22100 # over whatever linker top-level may have detected, since
22101 # we'll use what we're building after installation anyway.
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22103 $as_echo "newly built gas" >&6; }
22105 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22106 for f
in $gcc_cv_as_bfd_srcdir/configure \
22107 $gcc_cv_as_gas_srcdir/configure \
22108 $gcc_cv_as_gas_srcdir/configure.ac \
22109 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22110 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22111 if test x
$gcc_cv_gas_version != x
; then
22115 case $gcc_cv_gas_version in
22117 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22119 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22120 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22121 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22122 case $gcc_cv_gas_patch_version in
22123 "") gcc_cv_gas_patch_version
="0" ;;
22125 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22126 + $gcc_cv_gas_minor_version \) \* 1000 \
22127 + $gcc_cv_gas_patch_version`
22129 in_tree_gas_is_elf
=no
22130 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22131 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22132 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22134 in_tree_gas_is_elf
=yes
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22138 $as_echo "$gcc_cv_as" >&6; }
22143 # Check whether --enable-ld was given.
22144 if test "${enable_ld+set}" = set; then :
22145 enableval
=$enable_ld; case "${enableval}" in
22153 install_gold_as_default
=no
22154 # Check whether --enable-gold was given.
22155 if test "${enable_gold+set}" = set; then :
22156 enableval
=$enable_gold; case "${enableval}" in
22158 install_gold_as_default
=yes
22161 if test x
${default_ld} != x
; then
22162 install_gold_as_default
=yes
22168 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22174 # Identify the linker which will work hand-in-glove with the newly
22175 # built GCC, so that we can examine its features. This is the linker
22176 # which will be driven by the driver program.
22178 # If build != host, and we aren't building gas in-tree, we identify a
22179 # build->target linker and hope that it will have the same features
22180 # as the host->target linker we'll be using.
22181 gcc_cv_gld_major_version
=
22182 gcc_cv_gld_minor_version
=
22183 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22184 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22185 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22187 if ${gcc_cv_ld+:} false
; then :
22191 if test -x "$DEFAULT_LINKER"; then
22192 gcc_cv_ld
="$DEFAULT_LINKER"
22193 elif test $install_gold_as_default = yes \
22194 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22195 && test -f ..
/gold
/Makefile \
22196 && test x
$build = x
$host; then
22197 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22198 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22199 && test -f ..
/ld
/Makefile \
22200 && test x
$build = x
$host; then
22201 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22202 elif test -x collect-ld
$build_exeext; then
22203 # Build using linker in the current directory.
22204 gcc_cv_ld
=.
/collect-ld
$build_exeext
22205 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22206 gcc_cv_ld
="$LD_FOR_TARGET"
22208 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22209 set dummy
$LD_FOR_TARGET; ac_word
=$2
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22211 $as_echo_n "checking for $ac_word... " >&6; }
22212 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22213 $as_echo_n "(cached) " >&6
22217 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22221 for as_dir
in $PATH
22224 test -z "$as_dir" && as_dir
=.
22225 for ac_exec_ext
in '' $ac_executable_extensions; do
22226 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22227 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22238 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22239 if test -n "$gcc_cv_ld"; then
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22241 $as_echo "$gcc_cv_ld" >&6; }
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22244 $as_echo "no" >&6; }
22251 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22252 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22253 # if the PLUGIN_LD is set ld-new, just have it as ld
22254 # as that is the installed named.
22255 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22256 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22257 PLUGIN_LD_SUFFIX
=ld
22260 # Check whether --with-plugin-ld was given.
22261 if test "${with_plugin_ld+set}" = set; then :
22262 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22263 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22264 PLUGIN_LD_SUFFIX
="$withval"
22270 cat >>confdefs.h
<<_ACEOF
22271 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22275 # Check to see if we are using gold instead of ld
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22277 $as_echo_n "checking whether we are using gold... " >&6; }
22279 if test x
$gcc_cv_ld != x
; then
22280 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22281 |
grep "GNU gold" > /dev
/null
; then
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22286 $as_echo "$ld_is_gold" >&6; }
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22289 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22290 # Check to see if default ld is not gold, but gold is
22291 # available and has support for split stack. If gcc was configured
22292 # with gold then no checking is done.
22294 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22296 # For platforms other than powerpc64*, enable as appropriate.
22298 gold_non_default
=no
22299 ld_gold
=`which ${gcc_cv_ld}.gold`
22300 # Make sure this gold has minimal split stack support
22301 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22302 ld_vers
=`$ld_gold --version | sed 1q`
22303 gold_vers
=`echo $ld_vers | sed -n \
22304 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22306 # check that the gold version contains the complete split stack support
22307 # on powerpc64 big and little endian
22309 case "$gold_vers" in
22310 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22312 *) gold_non_default
=no
22318 if test $gold_non_default = yes; then
22320 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22325 $as_echo "$gold_non_default" >&6; }
22327 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22329 case "$ORIGINAL_LD_FOR_TARGET" in
22330 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22331 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22336 $as_echo_n "checking what linker to use... " >&6; }
22337 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22338 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22339 # Single tree build which includes ld. We want to prefer it
22340 # over whatever linker top-level may have detected, since
22341 # we'll use what we're building after installation anyway.
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22343 $as_echo "newly built ld" >&6; }
22345 in_tree_ld_is_elf
=no
22346 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22347 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22348 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22349 in_tree_ld_is_elf
=yes
22350 elif test "$ld_is_gold" = yes; then
22351 in_tree_ld_is_elf
=yes
22353 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
22355 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22356 if test x
$gcc_cv_gld_version != x
; then
22360 case $gcc_cv_gld_version in
22362 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22364 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22365 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22366 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22367 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22370 $as_echo "$gcc_cv_ld" >&6; }
22372 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22373 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22374 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22380 # Figure out what nm we will be using.
22381 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22382 if ${gcc_cv_nm+:} false
; then :
22386 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22387 && test -f ..
/binutils
/Makefile \
22388 && test x
$build = x
$host; then
22389 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22390 elif test -x nm
$build_exeext; then
22391 gcc_cv_nm
=.
/nm
$build_exeext
22392 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22393 gcc_cv_nm
="$NM_FOR_TARGET"
22395 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22396 set dummy
$NM_FOR_TARGET; ac_word
=$2
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22398 $as_echo_n "checking for $ac_word... " >&6; }
22399 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22400 $as_echo_n "(cached) " >&6
22404 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22408 for as_dir
in $PATH
22411 test -z "$as_dir" && as_dir
=.
22412 for ac_exec_ext
in '' $ac_executable_extensions; do
22413 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22414 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22425 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22426 if test -n "$gcc_cv_nm"; then
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22428 $as_echo "$gcc_cv_nm" >&6; }
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22431 $as_echo "no" >&6; }
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22439 $as_echo_n "checking what nm to use... " >&6; }
22440 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22441 # Single tree build which includes binutils.
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22443 $as_echo "newly built nm" >&6; }
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22447 $as_echo "$gcc_cv_nm" >&6; }
22451 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22453 case "$ORIGINAL_NM_FOR_TARGET" in
22454 .
/nm | .
/nm
$build_exeext) ;;
22455 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22460 # Figure out what objdump we will be using.
22461 if ${gcc_cv_objdump+:} false
; then :
22465 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22466 && test -f ..
/binutils
/Makefile \
22467 && test x
$build = x
$host; then
22468 # Single tree build which includes binutils.
22469 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22470 elif test -x objdump
$build_exeext; then
22471 gcc_cv_objdump
=.
/objdump
$build_exeext
22472 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22473 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22475 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22476 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22478 $as_echo_n "checking for $ac_word... " >&6; }
22479 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22480 $as_echo_n "(cached) " >&6
22482 case $gcc_cv_objdump in
22484 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22488 for as_dir
in $PATH
22491 test -z "$as_dir" && as_dir
=.
22492 for ac_exec_ext
in '' $ac_executable_extensions; do
22493 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22494 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22505 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22506 if test -n "$gcc_cv_objdump"; then
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22508 $as_echo "$gcc_cv_objdump" >&6; }
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22511 $as_echo "no" >&6; }
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22519 $as_echo_n "checking what objdump to use... " >&6; }
22520 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22521 # Single tree build which includes binutils.
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22523 $as_echo "newly built objdump" >&6; }
22524 elif test x
$gcc_cv_objdump = x
; then
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22526 $as_echo "not found" >&6; }
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22529 $as_echo "$gcc_cv_objdump" >&6; }
22532 # Figure out what readelf we will be using.
22533 if ${gcc_cv_readelf+:} false
; then :
22537 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22538 && test -f ..
/binutils
/Makefile \
22539 && test x
$build = x
$host; then
22540 # Single tree build which includes binutils.
22541 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22542 elif test -x readelf
$build_exeext; then
22543 gcc_cv_readelf
=.
/readelf
$build_exeext
22544 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22545 gcc_cv_readelf
="$READELF_FOR_TARGET"
22547 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22548 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22550 $as_echo_n "checking for $ac_word... " >&6; }
22551 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22552 $as_echo_n "(cached) " >&6
22554 case $gcc_cv_readelf in
22556 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22560 for as_dir
in $PATH
22563 test -z "$as_dir" && as_dir
=.
22564 for ac_exec_ext
in '' $ac_executable_extensions; do
22565 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22566 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22577 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22578 if test -n "$gcc_cv_readelf"; then
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22580 $as_echo "$gcc_cv_readelf" >&6; }
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22583 $as_echo "no" >&6; }
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22591 $as_echo_n "checking what readelf to use... " >&6; }
22592 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22593 # Single tree build which includes binutils.
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22595 $as_echo "newly built readelf" >&6; }
22596 elif test x
$gcc_cv_readelf = x
; then
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22598 $as_echo "not found" >&6; }
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22601 $as_echo "$gcc_cv_readelf" >&6; }
22604 # Figure out what otool we will be using.
22605 if ${gcc_cv_otool+:} false
; then :
22609 if test -x otool
$build_exeext; then
22610 gcc_cv_otool
=.
/otool
$build_exeext
22611 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22612 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22614 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22615 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22617 $as_echo_n "checking for $ac_word... " >&6; }
22618 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22619 $as_echo_n "(cached) " >&6
22621 case $gcc_cv_otool in
22623 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
22626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22627 for as_dir
in $PATH
22630 test -z "$as_dir" && as_dir
=.
22631 for ac_exec_ext
in '' $ac_executable_extensions; do
22632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22633 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
22634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22644 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
22645 if test -n "$gcc_cv_otool"; then
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22647 $as_echo "$gcc_cv_otool" >&6; }
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22650 $as_echo "no" >&6; }
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22658 $as_echo_n "checking what otool to use... " >&6; }
22659 if test x
$gcc_cv_otool = x
; then
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22661 $as_echo "not found" >&6; }
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22664 $as_echo "$gcc_cv_otool" >&6; }
22667 # Figure out what assembler alignment features are present.
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22669 $as_echo_n "checking assembler flags... " >&6; }
22670 if ${gcc_cv_as_flags+:} false
; then :
22671 $as_echo_n "(cached) " >&6
22674 i
[34567]86-*-linux*)
22675 gcc_cv_as_flags
=--32
22677 x86_64-
*-linux-gnux32)
22678 gcc_cv_as_flags
=--x32
22681 gcc_cv_as_flags
=--64
22683 powerpc
*-*-darwin*)
22684 gcc_cv_as_flags
="-arch ppc"
22687 gcc_cv_as_flags
=" "
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22692 $as_echo "$gcc_cv_as_flags" >&6; }
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22695 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22696 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
22697 $as_echo_n "(cached) " >&6
22699 gcc_cv_as_balign_and_p2align
=no
22700 if test $in_tree_gas = yes; then
22701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22702 then gcc_cv_as_balign_and_p2align
=yes
22704 elif test x
$gcc_cv_as != x
; then
22705 $as_echo '.balign 4
22706 .p2align 2' > conftest.s
22707 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22709 (eval $ac_try) 2>&5
22711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22712 test $ac_status = 0; }; }
22714 gcc_cv_as_balign_and_p2align
=yes
22716 echo "configure: failed program was" >&5
22719 rm -f conftest.o conftest.s
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22723 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22724 if test $gcc_cv_as_balign_and_p2align = yes; then
22726 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22732 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22733 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
22734 $as_echo_n "(cached) " >&6
22736 gcc_cv_as_max_skip_p2align
=no
22737 if test $in_tree_gas = yes; then
22738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22739 then gcc_cv_as_max_skip_p2align
=yes
22741 elif test x
$gcc_cv_as != x
; then
22742 $as_echo '.p2align 4,,7' > conftest.s
22743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22745 (eval $ac_try) 2>&5
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; }
22750 gcc_cv_as_max_skip_p2align
=yes
22752 echo "configure: failed program was" >&5
22755 rm -f conftest.o conftest.s
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22759 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22760 if test $gcc_cv_as_max_skip_p2align = yes; then
22762 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22768 $as_echo_n "checking assembler for .literal16... " >&6; }
22769 if ${gcc_cv_as_literal16+:} false
; then :
22770 $as_echo_n "(cached) " >&6
22772 gcc_cv_as_literal16
=no
22773 if test $in_tree_gas = yes; then
22774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22775 then gcc_cv_as_literal16
=yes
22777 elif test x
$gcc_cv_as != x
; then
22778 $as_echo '.literal16' > conftest.s
22779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22781 (eval $ac_try) 2>&5
22783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22784 test $ac_status = 0; }; }
22786 gcc_cv_as_literal16
=yes
22788 echo "configure: failed program was" >&5
22791 rm -f conftest.o conftest.s
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22795 $as_echo "$gcc_cv_as_literal16" >&6; }
22796 if test $gcc_cv_as_literal16 = yes; then
22798 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22804 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22805 if ${gcc_cv_as_subsection_m1+:} false
; then :
22806 $as_echo_n "(cached) " >&6
22808 gcc_cv_as_subsection_m1
=no
22809 if test $in_tree_gas = yes; then
22810 if test $in_tree_gas_is_elf = yes \
22811 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22812 then gcc_cv_as_subsection_m1
=yes
22814 elif test x
$gcc_cv_as != x
; then
22815 $as_echo 'conftest_label1: .word 0
22817 conftest_label2: .word 0
22818 .previous' > conftest.s
22819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22821 (eval $ac_try) 2>&5
22823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22824 test $ac_status = 0; }; }
22826 if test x
$gcc_cv_nm != x
; then
22827 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22828 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22829 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22831 else gcc_cv_as_subsection_m1
=yes
22833 rm -f conftest.nm1 conftest.nm2
22836 echo "configure: failed program was" >&5
22839 rm -f conftest.o conftest.s
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22843 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22844 if test $gcc_cv_as_subsection_m1 = yes; then
22846 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22852 $as_echo_n "checking assembler for .weak... " >&6; }
22853 if ${gcc_cv_as_weak+:} false
; then :
22854 $as_echo_n "(cached) " >&6
22857 if test $in_tree_gas = yes; then
22858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22859 then gcc_cv_as_weak
=yes
22861 elif test x
$gcc_cv_as != x
; then
22862 $as_echo ' .weak foobar' > conftest.s
22863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22865 (eval $ac_try) 2>&5
22867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22868 test $ac_status = 0; }; }
22872 echo "configure: failed program was" >&5
22875 rm -f conftest.o conftest.s
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22879 $as_echo "$gcc_cv_as_weak" >&6; }
22880 if test $gcc_cv_as_weak = yes; then
22882 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22888 $as_echo_n "checking assembler for .weakref... " >&6; }
22889 if ${gcc_cv_as_weakref+:} false
; then :
22890 $as_echo_n "(cached) " >&6
22892 gcc_cv_as_weakref
=no
22893 if test $in_tree_gas = yes; then
22894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22895 then gcc_cv_as_weakref
=yes
22897 elif test x
$gcc_cv_as != x
; then
22898 $as_echo ' .weakref foobar, barfnot' > conftest.s
22899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22901 (eval $ac_try) 2>&5
22903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22904 test $ac_status = 0; }; }
22906 gcc_cv_as_weakref
=yes
22908 echo "configure: failed program was" >&5
22911 rm -f conftest.o conftest.s
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22915 $as_echo "$gcc_cv_as_weakref" >&6; }
22916 if test $gcc_cv_as_weakref = yes; then
22918 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22924 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22925 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
22926 $as_echo_n "(cached) " >&6
22928 gcc_cv_as_nsubspa_comdat
=no
22929 if test $in_tree_gas = yes; then
22930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22931 then gcc_cv_as_nsubspa_comdat
=yes
22933 elif test x
$gcc_cv_as != x
; then
22934 $as_echo ' .SPACE $TEXT$
22935 .NSUBSPA $CODE$,COMDAT' > conftest.s
22936 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938 (eval $ac_try) 2>&5
22940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941 test $ac_status = 0; }; }
22943 gcc_cv_as_nsubspa_comdat
=yes
22945 echo "configure: failed program was" >&5
22948 rm -f conftest.o conftest.s
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22952 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22953 if test $gcc_cv_as_nsubspa_comdat = yes; then
22955 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22960 # .hidden needs to be supported in both the assembler and the linker,
22961 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22962 # This is irritatingly difficult to feature test for; we have to check the
22963 # date string after the version number. If we've got an in-tree
22964 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22966 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22967 case "${target}" in
22969 conftest_s
=' .globl foobar,hidden'
22972 conftest_s
=' .hidden foobar
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22977 $as_echo_n "checking assembler for .hidden... " >&6; }
22978 if ${gcc_cv_as_hidden+:} false
; then :
22979 $as_echo_n "(cached) " >&6
22981 gcc_cv_as_hidden
=no
22982 if test $in_tree_gas = yes; then
22983 if test $in_tree_gas_is_elf = yes \
22984 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22985 then gcc_cv_as_hidden
=yes
22987 elif test x
$gcc_cv_as != x
; then
22988 $as_echo "$conftest_s" > conftest.s
22989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22991 (eval $ac_try) 2>&5
22993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22994 test $ac_status = 0; }; }
22996 gcc_cv_as_hidden
=yes
22998 echo "configure: failed program was" >&5
23001 rm -f conftest.o conftest.s
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23005 $as_echo "$gcc_cv_as_hidden" >&6; }
23008 case "${target}" in
23010 # Darwin as has some visibility support, though with a different syntax.
23011 gcc_cv_as_hidden
=yes
23015 # gnu_indirect_function type is an extension proposed at
23016 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23017 # selection of function implementation
23018 # Check whether --enable-gnu-indirect-function was given.
23019 if test "${enable_gnu_indirect_function+set}" = set; then :
23020 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23022 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23023 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23026 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23030 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23032 cat >>confdefs.h
<<_ACEOF
23033 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23038 if test $in_tree_ld != yes ; then
23039 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23040 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23041 if test x
"$ld_is_gold" = xyes
; then
23042 # GNU gold --version looks like this:
23044 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23046 # We extract the binutils version which is more familiar and specific
23047 # than the gold version.
23048 ld_vers
=`echo $ld_ver | sed -n \
23049 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23051 # GNU ld --version looks like this:
23053 # GNU ld (GNU Binutils) 2.21.51.20110225
23054 ld_vers
=`echo $ld_ver | sed -n \
23055 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23057 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'`
23058 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23059 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23060 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23062 case "${target}" in
23064 # Solaris 2 ld -V output looks like this for a regular version:
23066 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23068 # but test versions add stuff at the end:
23070 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23072 # In Solaris 11.4, this was changed to
23074 # ld: Solaris ELF Utilities: 11.4-1.3123
23076 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23077 # numbers can be used in ld.so.1 feature checks even if a different
23078 # linker is configured.
23079 ld_ver
=`$gcc_cv_ld -V 2>&1`
23080 if echo "$ld_ver" |
$EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev
/null
; then
23081 ld_vers
=`echo $ld_ver | sed -n \
23082 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
23083 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23084 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23092 $as_echo_n "checking linker for .hidden support... " >&6; }
23093 if ${gcc_cv_ld_hidden+:} false
; then :
23094 $as_echo_n "(cached) " >&6
23096 if test $in_tree_ld = yes ; then
23097 gcc_cv_ld_hidden
=no
23098 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 \
23099 && test $in_tree_ld_is_elf = yes; then
23100 gcc_cv_ld_hidden
=yes
23103 gcc_cv_ld_hidden
=yes
23104 if test x
"$ld_is_gold" = xyes
; then
23106 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23107 case "${target}" in
23108 mmix-knuth-mmixware
)
23109 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23110 gcc_cv_ld_hidden
=no
23113 if test 0"$ld_date" -lt 20020404; then
23114 if test -n "$ld_date"; then
23115 # If there was date string, but was earlier than 2002-04-04, fail
23116 gcc_cv_ld_hidden
=no
23117 elif test -z "$ld_vers"; then
23118 # If there was no date string nor ld version number, something is wrong
23119 gcc_cv_ld_hidden
=no
23121 test -z "$ld_vers_patch" && ld_vers_patch
=0
23122 if test "$ld_vers_major" -lt 2; then
23123 gcc_cv_ld_hidden
=no
23124 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23125 gcc_cv_ld_hidden
="no"
23126 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23127 gcc_cv_ld_hidden
=no
23132 case "${target}" in
23134 gcc_cv_ld_hidden
=yes
23137 # Darwin ld has some visibility support.
23138 gcc_cv_ld_hidden
=yes
23140 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23141 gcc_cv_ld_hidden
=yes
23144 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23145 # .symbolic was only added in Solaris 9 12/02.
23146 gcc_cv_ld_hidden
=yes
23149 gcc_cv_ld_hidden
=no
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23156 $as_echo "$gcc_cv_ld_hidden" >&6; }
23157 libgcc_visibility
=no
23160 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23161 libgcc_visibility
=yes
23163 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23168 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23169 gcc_cv_ld_ro_rw_mix
=unknown
23170 if test $in_tree_ld = yes ; then
23171 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 \
23172 && test $in_tree_ld_is_elf = yes; then
23173 gcc_cv_ld_ro_rw_mix
=read-write
23175 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23176 echo '.section myfoosect, "a"' > conftest1.s
23177 echo '.section myfoosect, "aw"' > conftest2.s
23178 echo '.byte 1' >> conftest2.s
23179 echo '.section myfoosect, "a"' > conftest3.s
23180 echo '.byte 0' >> conftest3.s
23181 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23182 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23183 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23184 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23185 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23186 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23187 | sed -e '/myfoosect/!d' -e N`
23188 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23189 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23190 gcc_cv_ld_ro_rw_mix
=read-only
23192 gcc_cv_ld_ro_rw_mix
=read-write
23196 rm -f conftest.
* conftest
[123].
*
23198 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23200 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23204 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23206 # Check whether --enable-initfini-array was given.
23207 if test "${enable_initfini_array+set}" = set; then :
23208 enableval
=$enable_initfini_array;
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23212 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23213 if ${gcc_cv_initfini_array+:} false
; then :
23214 $as_echo_n "(cached) " >&6
23216 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23217 case "${target}" in
23219 if test "$cross_compiling" = yes; then :
23220 gcc_cv_initfini_array
=no
23222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23226 #error Not an ELF OS
23228 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23229 if it can be used. */
23231 int main (void) { return x; }
23232 int foo (void) { x = 0; }
23233 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23236 if ac_fn_cxx_try_run
"$LINENO"; then :
23237 gcc_cv_initfini_array
=yes
23239 gcc_cv_initfini_array
=no
23241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23246 gcc_cv_initfini_array
=no
23247 if test $in_tree_ld = yes ; then
23248 if test "$gcc_cv_gld_major_version" -eq 2 \
23249 -a "$gcc_cv_gld_minor_version" -ge 22 \
23250 -o "$gcc_cv_gld_major_version" -gt 2 \
23251 && test $in_tree_ld_is_elf = yes; then
23252 gcc_cv_initfini_array
=yes
23254 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23255 case $target:$gas in
23258 sh_type
='%progbits'
23260 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23262 sh_type
='@progbits'
23264 sparc
*-*-solaris2*:no
)
23266 sh_type
='#progbits'
23270 case "$target:$gnu_ld" in
23272 cat > conftest.s
<<EOF
23273 .section .dtors,$sh_flags,$sh_type
23275 .byte 'A', 'A', 'A', 'A'
23276 .section .ctors,$sh_flags,$sh_type
23278 .byte 'B', 'B', 'B', 'B'
23279 .section .fini_array.65530,$sh_flags,$sh_type
23281 .byte 'C', 'C', 'C', 'C'
23282 .section .init_array.65530,$sh_flags,$sh_type
23284 .byte 'D', 'D', 'D', 'D'
23285 .section .dtors.64528,$sh_flags,$sh_type
23287 .byte 'E', 'E', 'E', 'E'
23288 .section .ctors.64528,$sh_flags,$sh_type
23290 .byte 'F', 'F', 'F', 'F'
23291 .section .fini_array.01005,$sh_flags,$sh_type
23293 .byte 'G', 'G', 'G', 'G'
23294 .section .init_array.01005,$sh_flags,$sh_type
23296 .byte 'H', 'H', 'H', 'H'
23301 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23302 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23303 && $gcc_cv_objdump -s -j .init_array conftest \
23304 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23305 && $gcc_cv_objdump -s -j .fini_array conftest \
23306 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23307 gcc_cv_initfini_array
=yes
23311 # When Solaris ld added constructor priority support, it was
23312 # decided to only handle .init_array.N/.fini_array.N since
23313 # there was no need for backwards compatibility with
23314 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23315 # sections with correct execution order resp. to
23316 # .init_array/.fini_array, while gld merges them into
23317 # .init_array/.fini_array.
23318 cat > conftest.s
<<EOF
23319 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23321 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23322 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23324 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23325 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23327 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23328 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23330 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23335 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23336 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23337 && $gcc_cv_objdump -s -j .init_array conftest \
23338 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23339 && $gcc_cv_objdump -s -j .fini_array conftest \
23340 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23341 gcc_cv_initfini_array
=yes
23345 rm -f conftest conftest.
*
23347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23348 /* end confdefs.h. */
23351 # error Not an ELF OS
23353 #include <stdlib.h>
23354 #if defined __GLIBC_PREREQ
23355 # if __GLIBC_PREREQ (2, 4)
23357 # error GLIBC 2.4 required
23360 # if defined __sun__ && defined __svr4__
23361 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23363 # error The C library not known to support .init_array/.fini_array
23368 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23371 gcc_cv_initfini_array
=no
23373 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23377 $as_echo_n "checking cross compile... guessing... " >&6; }
23378 gcc_cv_initfini_array
=no
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23382 $as_echo "$gcc_cv_initfini_array" >&6; }
23383 enable_initfini_array
=$gcc_cv_initfini_array
23388 cat >>confdefs.h
<<_ACEOF
23389 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23394 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23396 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23397 if ${gcc_cv_as_leb128+:} false
; then :
23398 $as_echo_n "(cached) " >&6
23400 gcc_cv_as_leb128
=no
23401 if test $in_tree_gas = yes; then
23402 if test $in_tree_gas_is_elf = yes \
23403 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23404 then gcc_cv_as_leb128
=yes
23406 elif test x
$gcc_cv_as != x
; then
23413 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23415 (eval $ac_try) 2>&5
23417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23418 test $ac_status = 0; }; }
23420 # GAS versions before 2.11 do not support uleb128,
23421 # despite appearing to.
23422 # ??? There exists an elf-specific test that will crash
23423 # the assembler. Perhaps it's better to figure out whether
23424 # arbitrary sections are supported and try the test.
23425 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23426 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23427 as_vers
=`echo $as_ver | sed -n \
23428 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23429 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23430 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23431 if test $as_major -eq 2 && test $as_minor -lt 11
23433 else gcc_cv_as_leb128
=yes
23437 echo "configure: failed program was" >&5
23440 rm -f conftest.o conftest.s
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23444 $as_echo "$gcc_cv_as_leb128" >&6; }
23445 if test $gcc_cv_as_leb128 = yes; then
23447 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23450 if test $gcc_cv_as_leb128 != yes; then
23452 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23456 # Determine if an .eh_frame section is read-only.
23457 gcc_fn_eh_frame_ro
() {
23458 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23459 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23460 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23463 # Check if we have assembler support for unwind directives.
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23465 $as_echo_n "checking assembler for cfi directives... " >&6; }
23466 if ${gcc_cv_as_cfi_directive+:} false
; then :
23467 $as_echo_n "(cached) " >&6
23469 gcc_cv_as_cfi_directive
=no
23470 if test x
$gcc_cv_as != x
; then
23476 .cfi_escape 1, 2, 3, 4, 5
23477 .cfi_endproc' > conftest.s
23478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23480 (eval $ac_try) 2>&5
23482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23483 test $ac_status = 0; }; }
23487 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23488 # read-only and read-write sections, we need to make sure that the
23489 # assembler used emits read-write .eh_frame sections.
23490 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23491 gcc_cv_as_cfi_directive
=yes
23492 elif test "x$gcc_cv_objdump" = x
; then
23493 # No objdump, err on the side of caution.
23494 gcc_cv_as_cfi_directive
=no
23496 if test x
$gas = xyes
; then
23504 sparc
*-*-solaris2.
*)
23505 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23506 if gcc_fn_eh_frame_ro
$as_32_opt \
23507 || gcc_fn_eh_frame_ro
$as_64_opt; then
23508 gcc_cv_as_cfi_directive
=no
23510 gcc_cv_as_cfi_directive
=yes
23513 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23514 # On Solaris/x86, make sure that GCC and assembler agree on using
23515 # read-only .eh_frame sections for 64-bit.
23516 if gcc_fn_eh_frame_ro
$as_32_opt; then
23517 gcc_cv_as_cfi_directive
=no
23518 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23519 gcc_cv_as_cfi_directive
=yes
23521 gcc_cv_as_cfi_directive
=no
23528 gcc_cv_as_cfi_directive
=yes
23532 echo "configure: failed program was" >&5
23535 rm -f conftest.o conftest.s
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23539 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23542 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23544 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23545 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23546 $as_echo_n "(cached) " >&6
23548 gcc_cv_as_cfi_advance_working
=no
23549 if test x
$gcc_cv_as != x
; then
23552 .cfi_adjust_cfa_offset 64
23554 .cfi_adjust_cfa_offset 128
23555 .cfi_endproc' > conftest.s
23556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23558 (eval $ac_try) 2>&5
23560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23561 test $ac_status = 0; }; }
23564 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23565 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23566 gcc_cv_as_cfi_advance_working
=yes
23570 echo "configure: failed program was" >&5
23573 rm -f conftest.o conftest.s
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23577 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23581 # no objdump, err on the side of caution
23582 gcc_cv_as_cfi_advance_working
=no
23586 cat >>confdefs.h
<<_ACEOF
23587 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23588 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23594 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23595 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23596 $as_echo_n "(cached) " >&6
23598 gcc_cv_as_cfi_personality_directive
=no
23599 if test x
$gcc_cv_as != x
; then
23602 .cfi_personality 0, symbol
23603 .cfi_endproc' > conftest.s
23604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23606 (eval $ac_try) 2>&5
23608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23609 test $ac_status = 0; }; }
23611 gcc_cv_as_cfi_personality_directive
=yes
23613 echo "configure: failed program was" >&5
23616 rm -f conftest.o conftest.s
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23620 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23624 cat >>confdefs.h
<<_ACEOF
23625 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23630 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23631 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
23632 $as_echo_n "(cached) " >&6
23634 gcc_cv_as_cfi_sections_directive
=no
23635 if test x
$gcc_cv_as != x
; then
23637 .cfi_sections .debug_frame, .eh_frame
23639 .cfi_endproc' > conftest.s
23640 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23642 (eval $ac_try) 2>&5
23644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23645 test $ac_status = 0; }; }
23648 win32 | pe | cygwin
* | mingw32
*)
23649 # Need to check that we generated the correct relocation for the
23650 # .debug_frame section. This was fixed for binutils 2.21.
23651 gcc_cv_as_cfi_sections_directive
=no
23652 if test "x$gcc_cv_objdump" != x
; then
23653 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23654 grep secrel
> /dev
/null
; then
23655 gcc_cv_as_cfi_sections_directive
=yes
23660 gcc_cv_as_cfi_sections_directive
=yes
23664 echo "configure: failed program was" >&5
23667 rm -f conftest.o conftest.s
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23671 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23676 cat >>confdefs.h
<<_ACEOF
23677 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23681 # GAS versions up to and including 2.11.0 may mis-optimize
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23684 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23685 if ${gcc_cv_as_eh_frame+:} false
; then :
23686 $as_echo_n "(cached) " >&6
23688 gcc_cv_as_eh_frame
=no
23689 if test $in_tree_gas = yes; then
23690 if test $in_tree_gas_is_elf = yes \
23691 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23692 then gcc_cv_as_eh_frame
=yes
23694 elif test x
$gcc_cv_as != x
; then
23701 .section .eh_frame,"aw",@progbits
23703 .4byte .LECIE1-.LSCIE1
23717 .4byte .LEFDE1-.LASFDE1
23719 .4byte .LASFDE1-__FRAME_BEGIN__
23726 .LEFDE1:' > conftest.s
23727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23729 (eval $ac_try) 2>&5
23731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23732 test $ac_status = 0; }; }
23734 cat > conftest.lit
<<EOF
23735 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23736 0010 01000000 12000000 18000000 00000000 ................
23737 0020 08000000 04080000 0044 .........D
23739 cat > conftest.big
<<EOF
23740 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23741 0010 00000001 00000012 00000018 00000000 ................
23742 0020 00000008 04000000 0844 .........D
23744 # If the assembler didn't choke, and we can objdump,
23745 # and we got the correct data, then succeed.
23746 # The text in the here-document typically retains its unix-style line
23747 # endings, while the output of objdump will use host line endings.
23748 # Therefore, use diff -b for the comparisons.
23749 if test x
$gcc_cv_objdump != x \
23750 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23751 |
tail -3 > conftest.got \
23752 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23753 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23755 gcc_cv_as_eh_frame
=yes
23756 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23758 (eval $ac_try) 2>&5
23760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23761 test $ac_status = 0; }; }; then
23762 gcc_cv_as_eh_frame
=buggy
23764 # Uh oh, what do we do now?
23765 gcc_cv_as_eh_frame
=no
23768 echo "configure: failed program was" >&5
23771 rm -f conftest.o conftest.s
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23775 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23779 if test $gcc_cv_as_eh_frame = buggy
; then
23781 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23785 # Test if the assembler supports the section flag 'e' or #exclude for
23786 # specifying an excluded section.
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23788 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23789 if ${gcc_cv_as_section_exclude_e+:} false
; then :
23790 $as_echo_n "(cached) " >&6
23792 gcc_cv_as_section_exclude_e
=no
23793 if test $in_tree_gas = yes; then
23794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23795 then gcc_cv_as_section_exclude_e
=yes
23797 elif test x
$gcc_cv_as != x
; then
23798 $as_echo '.section foo1,"e"
23799 .byte 0,0,0,0' > conftest.s
23800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23802 (eval $ac_try) 2>&5
23804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23805 test $ac_status = 0; }; }
23807 gcc_cv_as_section_exclude_e
=yes
23809 echo "configure: failed program was" >&5
23812 rm -f conftest.o conftest.s
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23816 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23819 if test $gcc_cv_as_section_exclude_e = no
; then
23820 case "${target}" in
23821 # Solaris as uses #exclude instead.
23823 case "${target}" in
23824 sparc
*-*-solaris2*)
23825 conftest_s
='.section "foo1", #exclude'
23827 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23828 conftest_s
='.section foo1, #exclude'
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23834 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23835 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
23836 $as_echo_n "(cached) " >&6
23838 gcc_cv_as_section_exclude_hash
=no
23839 if test x
$gcc_cv_as != x
; then
23840 $as_echo "$conftest_s
23841 .byte 0,0,0,0" > conftest.s
23842 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23844 (eval $ac_try) 2>&5
23846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23847 test $ac_status = 0; }; }
23849 gcc_cv_as_section_exclude_hash
=yes
23851 echo "configure: failed program was" >&5
23854 rm -f conftest.o conftest.s
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23858 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23863 cat >>confdefs.h
<<_ACEOF
23864 #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`
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23869 $as_echo_n "checking assembler for section merging support... " >&6; }
23870 if ${gcc_cv_as_shf_merge+:} false
; then :
23871 $as_echo_n "(cached) " >&6
23873 gcc_cv_as_shf_merge
=no
23874 if test $in_tree_gas = yes; then
23875 if test $in_tree_gas_is_elf = yes \
23876 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23877 then gcc_cv_as_shf_merge
=yes
23879 elif test x
$gcc_cv_as != x
; then
23880 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23883 (eval $ac_try) 2>&5
23885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23886 test $ac_status = 0; }; }
23888 gcc_cv_as_shf_merge
=yes
23890 echo "configure: failed program was" >&5
23893 rm -f conftest.o conftest.s
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23897 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23900 if test $gcc_cv_as_shf_merge = no
; then
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23902 $as_echo_n "checking assembler for section merging support... " >&6; }
23903 if ${gcc_cv_as_shf_merge+:} false
; then :
23904 $as_echo_n "(cached) " >&6
23906 gcc_cv_as_shf_merge
=no
23907 if test $in_tree_gas = yes; then
23908 if test $in_tree_gas_is_elf = yes \
23909 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23910 then gcc_cv_as_shf_merge
=yes
23912 elif test x
$gcc_cv_as != x
; then
23913 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23914 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23916 (eval $ac_try) 2>&5
23918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23919 test $ac_status = 0; }; }
23921 gcc_cv_as_shf_merge
=yes
23923 echo "configure: failed program was" >&5
23926 rm -f conftest.o conftest.s
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23930 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23935 cat >>confdefs.h
<<_ACEOF
23936 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23940 gcc_cv_ld_aligned_shf_merge
=yes
23942 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23944 sparc
*-*-solaris2.11
*)
23945 if test x
"$gnu_ld" = xno \
23946 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23947 gcc_cv_ld_aligned_shf_merge
=no
23952 cat >>confdefs.h
<<_ACEOF
23953 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23958 $as_echo_n "checking assembler for stabs directive... " >&6; }
23959 if ${gcc_cv_as_stabs_directive+:} false
; then :
23960 $as_echo_n "(cached) " >&6
23962 gcc_cv_as_stabs_directive
=no
23963 if test x
$gcc_cv_as != x
; then
23964 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23967 (eval $ac_try) 2>&5
23969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23970 test $ac_status = 0; }; }
23972 gcc_cv_as_stabs_directive
=yes
23974 echo "configure: failed program was" >&5
23977 rm -f conftest.o conftest.s
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23981 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23982 if test $gcc_cv_as_stabs_directive = yes; then
23984 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23990 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23991 if ${gcc_cv_as_comdat_group+:} false
; then :
23992 $as_echo_n "(cached) " >&6
23994 gcc_cv_as_comdat_group
=no
23995 if test $in_tree_gas = yes; then
23996 if test $in_tree_gas_is_elf = yes \
23997 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23998 then gcc_cv_as_comdat_group
=yes
24000 elif test x
$gcc_cv_as != x
; then
24001 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24004 (eval $ac_try) 2>&5
24006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007 test $ac_status = 0; }; }
24009 gcc_cv_as_comdat_group
=yes
24011 echo "configure: failed program was" >&5
24014 rm -f conftest.o conftest.s
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24018 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24021 if test $gcc_cv_as_comdat_group = yes; then
24022 gcc_cv_as_comdat_group_percent
=no
24023 gcc_cv_as_comdat_group_group
=no
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24026 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24027 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24028 $as_echo_n "(cached) " >&6
24030 gcc_cv_as_comdat_group_percent
=no
24031 if test $in_tree_gas = yes; then
24032 if test $in_tree_gas_is_elf = yes \
24033 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24034 then gcc_cv_as_comdat_group_percent
=yes
24036 elif test x
$gcc_cv_as != x
; then
24037 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24040 (eval $ac_try) 2>&5
24042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24043 test $ac_status = 0; }; }
24045 gcc_cv_as_comdat_group_percent
=yes
24047 echo "configure: failed program was" >&5
24050 rm -f conftest.o conftest.s
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24054 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24057 if test $gcc_cv_as_comdat_group_percent = yes; then
24058 gcc_cv_as_comdat_group_group
=no
24060 case "${target}" in
24061 # Sun as uses a completely different syntax.
24063 case "${target}" in
24064 sparc
*-*-solaris2*)
24066 .group foo,".text%foo",#comdat
24067 .section ".text%foo", #alloc,#execinstr,#progbits
24072 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24074 .group foo,.text%foo,#comdat
24075 .section .text%foo, "ax", @progbits
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24082 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24083 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24084 $as_echo_n "(cached) " >&6
24086 gcc_cv_as_comdat_group_group
=no
24087 if test x
$gcc_cv_as != x
; then
24088 $as_echo "$conftest_s" > conftest.s
24089 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24091 (eval $ac_try) 2>&5
24093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24094 test $ac_status = 0; }; }
24096 gcc_cv_as_comdat_group_group
=yes
24098 echo "configure: failed program was" >&5
24101 rm -f conftest.o conftest.s
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24105 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24110 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24111 gcc_cv_as_comdat_group_group
=no
24115 if test x
"$ld_is_gold" = xyes
; then
24117 elif test $in_tree_ld = yes ; then
24119 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 \
24120 && test $in_tree_ld_is_elf = yes; then
24123 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24125 if test 0"$ld_date" -lt 20050308; then
24126 if test -n "$ld_date"; then
24127 # If there was date string, but was earlier than 2005-03-08, fail
24129 elif test "$ld_vers_major" -lt 2; then
24131 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24136 case "${target}" in
24137 *-*-solaris2.1
[1-9]*)
24139 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24140 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24143 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24144 # least ld version 1.2267.
24145 if test "$ld_vers_major" -gt 1; then
24147 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24149 elif test "$ld_vers_minor" -ge 2267; then
24154 # Assume linkers other than GNU ld don't support COMDAT group.
24159 # Allow overriding the automatic COMDAT group tests above.
24160 # Check whether --enable-comdat was given.
24161 if test "${enable_comdat+set}" = set; then :
24162 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24165 if test $comdat_group = no
; then
24166 gcc_cv_as_comdat_group
=no
24167 gcc_cv_as_comdat_group_percent
=no
24168 gcc_cv_as_comdat_group_group
=no
24171 cat >>confdefs.h
<<_ACEOF
24172 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24173 || test $gcc_cv_as_comdat_group_percent = yes \
24174 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24178 # Restrict this test to Solaris/x86: other targets define this statically.
24179 case "${target}" in
24180 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24182 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24183 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24184 hidden_linkonce
=yes
24186 case "${target}" in
24187 # Full support for hidden thunks in linkonce sections only appeared in
24188 # Solaris 11/OpenSolaris.
24189 *-*-solaris2.1
[1-9]*)
24190 hidden_linkonce
=yes
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24198 $as_echo "$hidden_linkonce" >&6; }
24200 cat >>confdefs.h
<<_ACEOF
24201 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24208 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24209 if ${gcc_cv_as_is_stmt+:} false
; then :
24210 $as_echo_n "(cached) " >&6
24212 gcc_cv_as_is_stmt
=no
24213 if test $in_tree_gas = yes; then
24214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24215 then gcc_cv_as_is_stmt
=yes
24217 elif test x
$gcc_cv_as != x
; then
24220 .loc 1 1 0 is_stmt 1' > conftest.s
24221 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24223 (eval $ac_try) 2>&5
24225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226 test $ac_status = 0; }; }
24228 gcc_cv_as_is_stmt
=yes
24230 echo "configure: failed program was" >&5
24233 rm -f conftest.o conftest.s
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24237 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24238 if test $gcc_cv_as_is_stmt = yes; then
24240 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24246 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24247 if ${gcc_cv_as_discriminator+:} false
; then :
24248 $as_echo_n "(cached) " >&6
24250 gcc_cv_as_discriminator
=no
24251 if test $in_tree_gas = yes; then
24252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24253 then gcc_cv_as_discriminator
=yes
24255 elif test x
$gcc_cv_as != x
; then
24258 .loc 1 1 0 discriminator 1' > conftest.s
24259 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24261 (eval $ac_try) 2>&5
24263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24264 test $ac_status = 0; }; }
24266 gcc_cv_as_discriminator
=yes
24268 echo "configure: failed program was" >&5
24271 rm -f conftest.o conftest.s
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24275 $as_echo "$gcc_cv_as_discriminator" >&6; }
24276 if test $gcc_cv_as_discriminator = yes; then
24278 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24283 # Thread-local storage - the check is heavily parameterized.
24291 .section ".tdata","awT",@progbits
24294 ldq $27,__tls_get_addr($29) !literal!1
24295 lda $16,foo($29) !tlsgd!1
24296 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24297 ldq $27,__tls_get_addr($29) !literal!2
24298 lda $16,foo($29) !tlsldm!2
24299 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24300 ldq $1,foo($29) !gotdtprel
24301 ldah $2,foo($29) !dtprelhi
24302 lda $3,foo($2) !dtprello
24303 lda $4,foo($29) !dtprel
24304 ldq $1,foo($29) !gottprel
24305 ldah $2,foo($29) !tprelhi
24306 lda $3,foo($2) !tprello
24307 lda $4,foo($29) !tprel'
24310 tls_as_opt
=--fatal-warnings
24314 add_s r0,r0, @foo@tpoff'
24318 cris-
*-*|crisv32-
*-*)
24320 .section ".tdata","awT",@progbits
24327 tls_as_opt
=--fatal-warnings
24331 .section ".tdata","awT",@progbits
24334 call #gettlsoff(x)'
24343 .section ".tdata","awT",@progbits
24347 addil LT%foo-$tls_gdidx$,gp
24348 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24351 addil LT%foo-$tls_ldidx$,gp
24353 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24354 addil LR%foo-$tls_dtpoff$,%ret0
24355 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24357 addil LT%foo-$tls_ieoff$,gp
24358 ldw RT%foo-$tls_ieoff$(%r1),%t2
24361 addil LR%foo-$tls_leoff$,%t1
24362 ldo RR%foo-$tls_leoff$(%r1),%t2'
24365 tls_as_opt
=--fatal-warnings
24369 .section ".tdata","awT",%progbits
24372 .word foo(gottpoff)
24380 i
[34567]86-*-* | x86_64-
*-*)
24382 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24389 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24391 .section .tdata,"awt",@progbits'
24396 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24400 .section ".tdata","awT",@progbits'
24404 tls_as_opt
="--fatal-warnings"
24408 conftest_s
="$conftest_s
24412 leal foo@tlsgd(,%ebx,1), %eax
24413 leal foo@tlsldm(%ebx), %eax
24414 leal foo@dtpoff(%eax), %edx
24415 movl foo@gottpoff(%ebx), %eax
24416 subl foo@gottpoff(%ebx), %eax
24417 addl foo@gotntpoff(%ebx), %eax
24418 movl foo@indntpoff, %eax
24419 movl \$foo@tpoff, %eax
24420 subl \$foo@tpoff, %eax
24421 leal foo@ntpoff(%ecx), %eax"
24424 if test x
$on_solaris = xyes
; then
24426 yes) tls_as_opt
="$tls_as_opt --64" ;;
24427 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24430 conftest_s
="$conftest_s
24434 leaq foo@tlsgd(%rip), %rdi
24435 leaq foo@tlsld(%rip), %rdi
24436 leaq foo@dtpoff(%rax), %rdx
24437 movq foo@gottpoff(%rip), %rax
24438 movq \$foo@tpoff, %rax"
24444 .section ".tdata","awT",@progbits
24447 addl r16 = @ltoff(@dtpmod(foo#)), gp
24448 addl r17 = @ltoff(@dtprel(foo#)), gp
24449 addl r18 = @ltoff(@tprel(foo#)), gp
24450 addl r19 = @dtprel(foo#), gp
24451 adds r21 = @dtprel(foo#), r13
24452 movl r23 = @dtprel(foo#)
24453 addl r20 = @tprel(foo#), gp
24454 adds r22 = @tprel(foo#), r13
24455 movl r24 = @tprel(foo#)'
24458 tls_as_opt
=--fatal-warnings
24462 .section .tdata,"awT",@progbits
24466 addik r5,r20,x@TLSGD
24467 addik r5,r20,x@TLSLDM'
24470 tls_as_opt
='--fatal-warnings'
24474 .section .tdata,"awT",@progbits
24478 addiu $4, $28, %tlsgd(x)
24479 addiu $4, $28, %tlsldm(x)
24480 lui $4, %dtprel_hi(x)
24481 addiu $4, $4, %dtprel_lo(x)
24482 lw $4, %gottprel(x)($28)
24483 lui $4, %tprel_hi(x)
24484 addiu $4, $4, %tprel_lo(x)'
24487 tls_as_opt
='-32 --fatal-warnings'
24491 .section .tdata,"awT",@progbits
24496 move.l x@TLSGD(%a5),%a0
24497 move.l x@TLSLDM(%a5),%a0
24498 move.l x@TLSLDO(%a5),%a0
24499 move.l x@TLSIE(%a5),%a0
24500 move.l x@TLSLE(%a5),%a0'
24503 tls_as_opt
='--fatal-warnings'
24507 .section ".tdata","awT",@progbits'
24510 tls_as_opt
="--fatal-warnings"
24514 .section ".tdata","awT",%progbits
24518 add x0, x0, #:tlsgd_lo12:x
24523 tls_as_opt
='--fatal-warnings'
24527 .section ".tdata","awT",@progbits
24530 l.movhi r3, tpoffha(foo)
24532 l.lwz r4, tpofflo(foo)(r3)'
24535 tls_as_opt
=--fatal-warnings
24539 .extern __get_tpointer
24557 .section ".tdata","awT",@progbits
24565 addi 3,2,ld0@got@tlsgd
24571 addi 3,2,x1@got@tlsld
24577 addis 9,3,x2@dtprel@ha
24578 addi 9,9,x2@dtprel@l
24581 ld 9,x3@got@dtprel(2)
24587 tls_as_opt
="-a64 --fatal-warnings"
24591 .section ".tdata","awT",@progbits
24599 addi 3,31,ld0@got@tlsgd
24601 addi 3,31,x1@got@tlsld
24604 addis 9,3,x2@dtprel@ha
24605 addi 9,9,x2@dtprel@l
24606 lwz 9,x3@got@tprel(31)
24609 addis 9,2,x2@tprel@ha
24610 addi 9,9,x2@tprel@l'
24613 tls_as_opt
="-a32 --fatal-warnings"
24617 .section .tdata,"awT",@progbits
24621 call __tls_get_addr'
24624 tls_as_opt
='--fatal-warnings'
24628 .section ".tdata","awT",@progbits
24635 .long foo@GOTNTPOFF
24636 .long foo@INDNTPOFF
24637 l %r1,foo@GOTNTPOFF(%r12)
24638 l %r1,0(%r1):tls_load:foo
24639 bas %r14,0(%r1,%r13):tls_gdcall:foo
24640 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24643 tls_as_opt
="-m31 --fatal-warnings"
24647 .section ".tdata","awT",@progbits
24654 .quad foo@GOTNTPOFF
24655 lg %r1,foo@GOTNTPOFF(%r12)
24656 larl %r1,foo@INDNTPOFF
24657 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24658 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24661 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24663 sh-
*-* | sh
[123456789lbe
]*-*-*)
24665 .section ".tdata","awT",@progbits
24675 tls_as_opt
=--fatal-warnings
24679 sparc
*-sun-solaris2.
*)
24686 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24688 .section ".tdata",#alloc,#write,#tls'
24693 .section ".tdata","awT",@progbits'
24696 tls_as_opt
="-32 --fatal-warnings"
24698 conftest_s
="$conftest_s
24701 sethi %tgd_hi22(foo), %o0
24702 add %o0, %tgd_lo10(foo), %o1
24703 add %l7, %o1, %o0, %tgd_add(foo)
24704 call __tls_get_addr, %tgd_call(foo)
24705 sethi %tldm_hi22(foo), %l1
24706 add %l1, %tldm_lo10(foo), %l2
24707 add %l7, %l2, %o0, %tldm_add(foo)
24708 call __tls_get_addr, %tldm_call(foo)
24709 sethi %tldo_hix22(foo), %l3
24710 xor %l3, %tldo_lox10(foo), %l4
24711 add %o0, %l4, %l5, %tldo_add(foo)
24712 sethi %tie_hi22(foo), %o3
24713 add %o3, %tie_lo10(foo), %o3
24714 ld [%l7 + %o3], %o2, %tie_ld(foo)
24715 add %g7, %o2, %o4, %tie_add(foo)
24716 sethi %tle_hix22(foo), %l1
24717 xor %l1, %tle_lox10(foo), %o5
24718 ld [%g7 + %o5], %o1"
24722 .section ".tdata","awT",@progbits
24725 addli r0, zero, tls_gd(foo)
24726 auli r0, zero, tls_gd_ha16(foo)
24727 addli r0, r0, tls_gd_lo16(foo)
24729 addli r0, zero, tls_ie(foo)
24730 auli r0, r0, tls_ie_ha16(foo)
24731 addli r0, r0, tls_ie_lo16(foo)'
24734 tls_as_opt
="--fatal-warnings"
24738 .section ".tdata","awT",@progbits
24741 shl16insli r0, zero, hw0_last_tls_gd(foo)
24742 shl16insli r0, zero, hw1_last_tls_gd(foo)
24743 shl16insli r0, r0, hw0_tls_gd(foo)
24745 shl16insli r0, zero, hw1_last_tls_ie(foo)
24746 shl16insli r0, r0, hw0_tls_ie(foo)'
24749 tls_as_opt
="--fatal-warnings"
24753 .section ".tdata","awT",@progbits
24756 movi a8, foo@TLSFUNC
24757 movi a10, foo@TLSARG
24758 callx8.tls a8, foo@TLSCALL'
24764 if test "x$enable_tls" = xno
; then
24765 : # TLS explicitly disabled.
24766 elif test "x$enable_tls" = xyes
; then
24767 set_have_as_tls
=yes # TLS explicitly enabled.
24768 elif test -z "$tls_first_major"; then
24769 : # If we don't have a check, assume no support.
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24772 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24773 if ${gcc_cv_as_tls+:} false
; then :
24774 $as_echo_n "(cached) " >&6
24777 if test $in_tree_gas = yes; then
24778 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24779 then gcc_cv_as_tls
=yes
24781 elif test x
$gcc_cv_as != x
; then
24782 $as_echo "$conftest_s" > conftest.s
24783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; }
24792 echo "configure: failed program was" >&5
24795 rm -f conftest.o conftest.s
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24799 $as_echo "$gcc_cv_as_tls" >&6; }
24800 if test $gcc_cv_as_tls = yes; then
24801 set_have_as_tls
=yes
24805 if test $set_have_as_tls = yes ; then
24807 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24811 # Target-specific assembler checks.
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24814 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24815 gcc_cv_ld_static_dynamic
=no
24816 gcc_cv_ld_static_option
='-Bstatic'
24817 gcc_cv_ld_dynamic_option
='-Bdynamic'
24818 if test $in_tree_ld = yes ; then
24819 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
24820 gcc_cv_ld_static_dynamic
=yes
24822 elif test x
$gcc_cv_ld != x
; then
24823 # Check if linker supports -Bstatic/-Bdynamic option
24824 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
24825 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
24826 gcc_cv_ld_static_dynamic
=yes
24829 # AIX ld uses -b flags
24830 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24831 gcc_cv_ld_static_dynamic
=yes
24832 gcc_cv_ld_static_option
="-bstatic"
24833 gcc_cv_ld_dynamic_option
="-bdynamic"
24835 # HP-UX ld uses -a flags to select between shared and archive.
24837 if test x
"$gnu_ld" = xno
; then
24838 gcc_cv_ld_static_dynamic
=yes
24839 gcc_cv_ld_static_option
="-aarchive_shared"
24840 gcc_cv_ld_dynamic_option
="-adefault"
24843 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24845 gcc_cv_ld_static_dynamic
=yes
24850 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24852 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24855 cat >>confdefs.h
<<_ACEOF
24856 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24860 cat >>confdefs.h
<<_ACEOF
24861 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24866 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24869 $as_echo_n "checking linker --version-script option... " >&6; }
24870 gcc_cv_ld_version_script
=no
24871 ld_version_script_option
=''
24872 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24873 gcc_cv_ld_version_script
=yes
24874 ld_version_script_option
='--version-script'
24875 elif test x
$gcc_cv_ld != x
; then
24877 # Solaris 2 ld always supports -M. It also supports a subset of
24878 # --version-script since Solaris 11.4, but requires
24879 # -z gnu-version-script-compat to activate.
24881 gcc_cv_ld_version_script
=yes
24882 ld_version_script_option
='-M'
24886 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24888 $as_echo "$gcc_cv_ld_version_script" >&6; }
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24892 $as_echo_n "checking linker soname option... " >&6; }
24893 gcc_cv_ld_soname
=no
24894 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24895 gcc_cv_ld_soname
=yes
24896 ld_soname_option
='-soname'
24897 elif test x
$gcc_cv_ld != x
; then
24900 gcc_cv_ld_soname
=yes
24901 ld_soname_option
='-install_name'
24903 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24904 # ld compatiblity since some Solaris 10 update.
24906 gcc_cv_ld_soname
=yes
24907 ld_soname_option
='-h'
24911 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24913 $as_echo "$gcc_cv_ld_soname" >&6; }
24916 if test x
"$demangler_in_ld" = xyes
; then
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24918 $as_echo_n "checking linker --demangle support... " >&6; }
24919 gcc_cv_ld_demangle
=no
24920 if test $in_tree_ld = yes; then
24921 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 \
24922 gcc_cv_ld_demangle
=yes
24924 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24925 # Check if the GNU linker supports --demangle option
24926 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
24927 gcc_cv_ld_demangle
=yes
24930 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24932 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24936 $as_echo "$gcc_cv_ld_demangle" >&6; }
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24940 $as_echo_n "checking linker plugin support... " >&6; }
24941 gcc_cv_lto_plugin
=0
24942 if test -f liblto_plugin.la
; then
24943 save_ld_ver
="$ld_ver"
24944 save_ld_vers_major
="$ld_vers_major"
24945 save_ld_vers_minor
="$ld_vers_minor"
24946 save_ld_is_gold
="$ld_is_gold"
24950 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24952 # FIXME: ld_is_gold?
24953 ld_vers_major
="$gcc_cv_gld_major_version"
24954 ld_vers_minor
="$gcc_cv_gld_minor_version"
24956 # Determine plugin linker version.
24957 # FIXME: Partial duplicate from above, generalize.
24958 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24959 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24960 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24962 ld_vers
=`echo $ld_ver | sed -n \
24963 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24965 ld_vers
=`echo $ld_ver | sed -n \
24966 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24968 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24969 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24973 # Determine plugin support.
24974 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24975 # Require GNU ld or gold 2.21+ for plugin support by default.
24976 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24977 gcc_cv_lto_plugin
=2
24978 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24979 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24980 gcc_cv_lto_plugin
=1
24984 ld_ver
="$save_ld_ver"
24985 ld_vers_major
="$save_ld_vers_major"
24986 ld_vers_minor
="$save_ld_vers_minor"
24987 ld_is_gold
="$save_ld_is_gold"
24990 cat >>confdefs.h
<<_ACEOF
24991 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24995 $as_echo "$gcc_cv_lto_plugin" >&6; }
24997 # Target OS-specific assembler checks.
24999 case "$target_os" in
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25002 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25003 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25004 $as_echo_n "(cached) " >&6
25006 gcc_cv_as_mmacosx_version_min
=no
25007 if test x
$gcc_cv_as != x
; then
25008 $as_echo '.text' > conftest.s
25009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25011 (eval $ac_try) 2>&5
25013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25014 test $ac_status = 0; }; }
25016 gcc_cv_as_mmacosx_version_min
=yes
25018 echo "configure: failed program was" >&5
25021 rm -f conftest.o conftest.s
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25025 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25026 if test $gcc_cv_as_mmacosx_version_min = yes; then
25028 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25035 # Target CPU-specific assembler checks.
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25040 $as_echo_n "checking assembler for -mabi option... " >&6; }
25041 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25042 $as_echo_n "(cached) " >&6
25044 gcc_cv_as_aarch64_mabi
=no
25045 if test x
$gcc_cv_as != x
; then
25046 $as_echo '.text' > conftest.s
25047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25049 (eval $ac_try) 2>&5
25051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25052 test $ac_status = 0; }; }
25054 gcc_cv_as_aarch64_mabi
=yes
25056 echo "configure: failed program was" >&5
25059 rm -f conftest.o conftest.s
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25063 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25066 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25068 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25071 if test x
$with_abi = xilp32
; then
25072 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25073 Upgrade the Assembler." "$LINENO" 5
25075 if test x
"$with_multilib_list" = xdefault
; then
25076 TM_MULTILIB_CONFIG
=lp64
25078 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25079 for aarch64_multilib
in ${aarch64_multilibs}; do
25080 case ${aarch64_multilib} in
25082 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25083 Upgrade the Assembler." "$LINENO" 5
25091 # Check if we have binutils support for relocations types needed by -fpic
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25093 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25094 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25095 $as_echo_n "(cached) " >&6
25097 gcc_cv_as_aarch64_picreloc
=no
25098 if test x
$gcc_cv_as != x
; then
25101 ldr x0, [x2, #:gotpage_lo15:globalsym]
25103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25105 (eval $ac_try) 2>&5
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; }
25110 gcc_cv_as_aarch64_picreloc
=yes
25112 echo "configure: failed program was" >&5
25115 rm -f conftest.o conftest.s
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25119 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25120 if test $gcc_cv_as_aarch64_picreloc = yes; then
25122 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25126 # Enable Branch Target Identification Mechanism and Return Address
25127 # Signing by default.
25128 # Check whether --enable-standard-branch-protection was given.
25129 if test "${enable_standard_branch_protection+set}" = set; then :
25130 enableval
=$enable_standard_branch_protection;
25133 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25138 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25139 Valid choices are 'yes' and 'no'." "$LINENO" 5
25145 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25146 # Check whether --enable-fix-cortex-a53-835769 was given.
25147 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25148 enableval
=$enable_fix_cortex_a53_835769;
25151 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25156 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25157 Valid choices are 'yes' and 'no'." "$LINENO" 5
25164 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25165 # Check whether --enable-fix-cortex-a53-843419 was given.
25166 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25167 enableval
=$enable_fix_cortex_a53_843419;
25170 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25175 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25176 Valid choices are 'yes' and 'no'." "$LINENO" 5
25185 # All TARGET_ABI_OSF targets.
25186 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25188 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25189 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25190 $as_echo_n "(cached) " >&6
25192 gcc_cv_as_alpha_explicit_relocs
=no
25193 if test $in_tree_gas = yes; then
25194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25195 then gcc_cv_as_alpha_explicit_relocs
=yes
25197 elif test x
$gcc_cv_as != x
; then
25198 $as_echo ' .set nomacro
25200 extbl $3, $2, $3 !lituse_bytoff!1
25201 ldq $2, a($29) !literal!1
25202 ldq $4, b($29) !literal!2
25203 ldq_u $3, 0($2) !lituse_base!1
25204 ldq $27, f($29) !literal!5
25205 jsr $26, ($27), f !lituse_jsr!5
25206 ldah $29, 0($26) !gpdisp!3
25207 lda $0, c($29) !gprel
25208 ldah $1, d($29) !gprelhigh
25209 lda $1, d($1) !gprellow
25210 lda $29, 0($29) !gpdisp!3' > conftest.s
25211 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }
25218 gcc_cv_as_alpha_explicit_relocs
=yes
25220 echo "configure: failed program was" >&5
25223 rm -f conftest.o conftest.s
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25227 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25228 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25230 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25235 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25236 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25237 $as_echo_n "(cached) " >&6
25239 gcc_cv_as_alpha_jsrdirect_relocs
=no
25240 if test $in_tree_gas = yes; then
25241 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25242 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25244 elif test x
$gcc_cv_as != x
; then
25245 $as_echo ' .set nomacro
25247 ldq $27, a($29) !literal!1
25248 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25249 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25251 (eval $ac_try) 2>&5
25253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25254 test $ac_status = 0; }; }
25256 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25258 echo "configure: failed program was" >&5
25261 rm -f conftest.o conftest.s
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25265 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25266 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25268 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25276 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25277 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25278 $as_echo_n "(cached) " >&6
25280 gcc_cv_as_avr_mlink_relax
=no
25281 if test x
$gcc_cv_as != x
; then
25282 $as_echo '.text' > conftest.s
25283 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25285 (eval $ac_try) 2>&5
25287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25288 test $ac_status = 0; }; }
25290 gcc_cv_as_avr_mlink_relax
=yes
25292 echo "configure: failed program was" >&5
25295 rm -f conftest.o conftest.s
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25299 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25300 if test $gcc_cv_as_avr_mlink_relax = yes; then
25302 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25308 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25309 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25310 $as_echo_n "(cached) " >&6
25312 gcc_cv_as_avr_mrmw
=no
25313 if test x
$gcc_cv_as != x
; then
25314 $as_echo '.text' > conftest.s
25315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25322 gcc_cv_as_avr_mrmw
=yes
25324 echo "configure: failed program was" >&5
25327 rm -f conftest.o conftest.s
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25331 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25332 if test $gcc_cv_as_avr_mrmw = yes; then
25334 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25340 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25341 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25342 $as_echo_n "(cached) " >&6
25344 gcc_cv_as_avr_mgccisr
=no
25345 if test x
$gcc_cv_as != x
; then
25351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25353 (eval $ac_try) 2>&5
25355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25356 test $ac_status = 0; }; }
25358 gcc_cv_as_avr_mgccisr
=yes
25360 echo "configure: failed program was" >&5
25363 rm -f conftest.o conftest.s
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25367 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25368 if test $gcc_cv_as_avr_mgccisr = yes; then
25370 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25375 # Check how default linker description file implements .rodata for
25376 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25377 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25379 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25380 cat > conftest.s
<<EOF
25381 .section .rodata,"a",@progbits
25383 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25388 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25390 (eval $ac_try) 2>&5
25392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25393 test $ac_status = 0; }; }
25394 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
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_nm conftest.elf > conftest.nm'
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 if test -s conftest.nm
25408 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25410 $as_echo "yes" >&6; }
25412 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25416 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25417 echo "$as_me: nm output was" >&5
25418 cat conftest.nm
>&5
25419 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25420 { $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
25421 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25425 $as_echo "test failed" >&6; }
25426 echo "$as_me: failed program was" >&5
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25429 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25431 rm -f conftest.s conftest.o conftest.elf conftest.nm
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25436 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25437 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25438 $as_echo_n "(cached) " >&6
25440 gcc_cv_as_cris_no_mul_bug
=no
25441 if test $in_tree_gas = yes; then
25442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25443 then gcc_cv_as_cris_no_mul_bug
=yes
25445 elif test x
$gcc_cv_as != x
; then
25446 $as_echo '.text' > conftest.s
25447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25449 (eval $ac_try) 2>&5
25451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25452 test $ac_status = 0; }; }
25454 gcc_cv_as_cris_no_mul_bug
=yes
25456 echo "configure: failed program was" >&5
25459 rm -f conftest.o conftest.s
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25463 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25464 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25466 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25474 $as_echo_n "checking assembler for -relax option... " >&6; }
25475 if ${gcc_cv_as_sparc_relax+:} false
; then :
25476 $as_echo_n "(cached) " >&6
25478 gcc_cv_as_sparc_relax
=no
25479 if test x
$gcc_cv_as != x
; then
25480 $as_echo '.text' > conftest.s
25481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25483 (eval $ac_try) 2>&5
25485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25486 test $ac_status = 0; }; }
25488 gcc_cv_as_sparc_relax
=yes
25490 echo "configure: failed program was" >&5
25493 rm -f conftest.o conftest.s
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25497 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25498 if test $gcc_cv_as_sparc_relax = yes; then
25500 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25506 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25507 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25508 $as_echo_n "(cached) " >&6
25510 gcc_cv_as_sparc_gotdata_op
=no
25511 if test x
$gcc_cv_as != x
; then
25517 sethi %gdop_hix22(foo), %g1
25518 xor %g1, %gdop_lox10(foo), %g1
25519 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25520 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25522 (eval $ac_try) 2>&5
25524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25525 test $ac_status = 0; }; }
25527 if test x
$gcc_cv_ld != x \
25528 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25529 if test x
$gcc_cv_objdump != x
; then
25530 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25531 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25532 gcc_cv_as_sparc_gotdata_op
=no
25534 gcc_cv_as_sparc_gotdata_op
=yes
25540 echo "configure: failed program was" >&5
25543 rm -f conftest.o conftest.s
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25547 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25548 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25550 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25556 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25557 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25558 $as_echo_n "(cached) " >&6
25560 gcc_cv_as_sparc_ua_pcrel
=no
25561 if test x
$gcc_cv_as != x
; then
25568 .uaword %r_disp32(foo)' > conftest.s
25569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25571 (eval $ac_try) 2>&5
25573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25574 test $ac_status = 0; }; }
25576 if test x
$gcc_cv_ld != x \
25577 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25578 gcc_cv_as_sparc_ua_pcrel
=yes
25582 echo "configure: failed program was" >&5
25585 rm -f conftest.o conftest.s
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25589 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25590 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25592 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25596 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25597 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25598 $as_echo_n "(cached) " >&6
25600 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25601 if test x
$gcc_cv_as != x
; then
25605 .uaword %r_disp32(foo)
25606 .byte 0x32, 0x33, 0x34
25610 .skip 4' > conftest.s
25611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25618 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25619 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25620 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25621 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25622 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25623 |
grep 'DISP32' > /dev
/null
2>&1; then
25626 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25631 echo "configure: failed program was" >&5
25634 rm -f conftest.o conftest.s
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25638 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25639 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25641 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25647 # unaligned pcrel relocs
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25650 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25651 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
25652 $as_echo_n "(cached) " >&6
25654 gcc_cv_as_sparc_offsetable_lo10
=no
25655 if test x
$gcc_cv_as != x
; then
25657 or %g1, %lo(ab) + 12, %g1
25658 or %g1, %lo(ab + 12), %g1' > conftest.s
25659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25666 if test x
$gcc_cv_objdump != x \
25667 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25668 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25669 gcc_cv_as_sparc_offsetable_lo10
=yes
25672 echo "configure: failed program was" >&5
25675 rm -f conftest.o conftest.s
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25679 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25680 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25682 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25688 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25689 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
25690 $as_echo_n "(cached) " >&6
25692 gcc_cv_as_sparc_fmaf
=no
25693 if test x
$gcc_cv_as != x
; then
25695 .register %g2, #scratch
25696 .register %g3, #scratch
25698 fmaddd %f0, %f2, %f4, %f6
25699 addxccc %g1, %g2, %g3
25700 fsrl32 %f2, %f4, %f8
25701 fnaddd %f10, %f12, %f14' > conftest.s
25702 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25704 (eval $ac_try) 2>&5
25706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25707 test $ac_status = 0; }; }
25709 gcc_cv_as_sparc_fmaf
=yes
25711 echo "configure: failed program was" >&5
25714 rm -f conftest.o conftest.s
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25718 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25719 if test $gcc_cv_as_sparc_fmaf = yes; then
25721 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25727 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25728 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
25729 $as_echo_n "(cached) " >&6
25731 gcc_cv_as_sparc_sparc4
=no
25732 if test x
$gcc_cv_as != x
; then
25734 .register %g2, #scratch
25735 .register %g3, #scratch
25738 1: cwbneg %g2, %g3, 1f
25741 aes_kexpand0 %f4, %f6, %f8
25742 des_round %f38, %f40, %f42, %f44
25743 camellia_f %f54, %f56, %f58, %f60
25744 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25745 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25747 (eval $ac_try) 2>&5
25749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25750 test $ac_status = 0; }; }
25752 gcc_cv_as_sparc_sparc4
=yes
25754 echo "configure: failed program was" >&5
25757 rm -f conftest.o conftest.s
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25761 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25762 if test $gcc_cv_as_sparc_sparc4 = yes; then
25764 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25770 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25771 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
25772 $as_echo_n "(cached) " >&6
25774 gcc_cv_as_sparc_sparc5
=no
25775 if test x
$gcc_cv_as != x
; then
25777 .register %g2, #scratch
25778 .register %g3, #scratch
25780 subxc %g1, %g2, %g3
25781 fpadd8 %f0, %f2, %f4' > conftest.s
25782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25784 (eval $ac_try) 2>&5
25786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787 test $ac_status = 0; }; }
25789 gcc_cv_as_sparc_sparc5
=yes
25791 echo "configure: failed program was" >&5
25794 rm -f conftest.o conftest.s
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25798 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25799 if test $gcc_cv_as_sparc_sparc5 = yes; then
25801 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25807 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25808 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
25809 $as_echo_n "(cached) " >&6
25811 gcc_cv_as_sparc_sparc6
=no
25812 if test x
$gcc_cv_as != x
; then
25814 .register %g2, #scratch
25815 .register %g3, #scratch
25818 fpsll64x %f0, %f2, %f4' > conftest.s
25819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25821 (eval $ac_try) 2>&5
25823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824 test $ac_status = 0; }; }
25826 gcc_cv_as_sparc_sparc6
=yes
25828 echo "configure: failed program was" >&5
25831 rm -f conftest.o conftest.s
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25835 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25836 if test $gcc_cv_as_sparc_sparc6 = yes; then
25838 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25844 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25845 if ${gcc_cv_as_sparc_leon+:} false
; then :
25846 $as_echo_n "(cached) " >&6
25848 gcc_cv_as_sparc_leon
=no
25849 if test x
$gcc_cv_as != x
; then
25851 .register %g2, #scratch
25852 .register %g3, #scratch
25856 casa [%g2] 0xb, %g3, %g1' > conftest.s
25857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; }
25864 gcc_cv_as_sparc_leon
=yes
25866 echo "configure: failed program was" >&5
25869 rm -f conftest.o conftest.s
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25873 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25874 if test $gcc_cv_as_sparc_leon = yes; then
25876 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25882 i
[34567]86-*-* | x86_64-
*-*)
25885 # Full C++ conformance when using a shared libstdc++-v3 requires some
25886 # support from the Cygwin DLL, which in more recent versions exports
25887 # wrappers to aid in interposing and redirecting operators new, delete,
25888 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25889 # are configuring for a version of Cygwin that exports the wrappers.
25890 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25891 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25892 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
25893 gcc_ac_cygwin_dll_wrappers
=yes
25895 gcc_ac_cygwin_dll_wrappers
=no
25899 # Can't check presence of libc functions during cross-compile, so
25900 # we just have to assume we're building for an up-to-date target.
25901 gcc_ac_cygwin_dll_wrappers
=yes
25904 cat >>confdefs.h
<<_ACEOF
25905 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25910 cygwin
* | pe | mingw32
*)
25911 # Recent binutils allows the three-operand form of ".comm" on PE. This
25912 # definition is used unconditionally to initialise the default state of
25913 # the target option variable that governs usage of the feature.
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25915 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25916 if ${gcc_cv_as_comm_has_align+:} false
; then :
25917 $as_echo_n "(cached) " >&6
25919 gcc_cv_as_comm_has_align
=no
25920 if test $in_tree_gas = yes; then
25921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25922 then gcc_cv_as_comm_has_align
=yes
25924 elif test x
$gcc_cv_as != x
; then
25925 $as_echo '.comm foo,1,32' > conftest.s
25926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25928 (eval $ac_try) 2>&5
25930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25931 test $ac_status = 0; }; }
25933 gcc_cv_as_comm_has_align
=yes
25935 echo "configure: failed program was" >&5
25938 rm -f conftest.o conftest.s
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25942 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25946 cat >>confdefs.h
<<_ACEOF
25947 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25950 # Used for DWARF 2 in PE
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25952 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25953 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
25954 $as_echo_n "(cached) " >&6
25956 gcc_cv_as_ix86_pe_secrel32
=no
25957 if test $in_tree_gas = yes; then
25958 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25959 then gcc_cv_as_ix86_pe_secrel32
=yes
25961 elif test x
$gcc_cv_as != x
; then
25965 .secrel32 foo' > conftest.s
25966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25968 (eval $ac_try) 2>&5
25970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25971 test $ac_status = 0; }; }
25973 if test x
$gcc_cv_ld != x \
25974 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25975 gcc_cv_as_ix86_pe_secrel32
=yes
25979 echo "configure: failed program was" >&5
25982 rm -f conftest.o conftest.s
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25986 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25987 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25989 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25993 # Test if the assembler supports the extended form of the .section
25994 # directive that specifies section alignment. LTO support uses this,
25995 # but normally only after installation, so we warn but don't fail the
25996 # configure if LTO is enabled but the assembler does not support it.
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25998 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25999 if ${gcc_cv_as_section_has_align+:} false
; then :
26000 $as_echo_n "(cached) " >&6
26002 gcc_cv_as_section_has_align
=no
26003 if test $in_tree_gas = yes; then
26004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26005 then gcc_cv_as_section_has_align
=yes
26007 elif test x
$gcc_cv_as != x
; then
26008 $as_echo '.section lto_test,"dr0"' > conftest.s
26009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26011 (eval $ac_try) 2>&5
26013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26014 test $ac_status = 0; }; }
26016 gcc_cv_as_section_has_align
=yes
26018 echo "configure: failed program was" >&5
26021 rm -f conftest.o conftest.s
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26025 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26028 if test x
$gcc_cv_as_section_has_align != xyes
; then
26029 case ",$enable_languages," in
26031 { $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
26032 $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;}
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26040 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26041 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26042 $as_echo_n "(cached) " >&6
26044 gcc_cv_as_ix86_xbrace_comment
=no
26045 if test x
$gcc_cv_as != x
; then
26046 $as_echo '.text' > conftest.s
26047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26049 (eval $ac_try) 2>&5
26051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26052 test $ac_status = 0; }; }
26054 gcc_cv_as_ix86_xbrace_comment
=yes
26056 echo "configure: failed program was" >&5
26059 rm -f conftest.o conftest.s
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26063 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26064 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26066 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26072 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26073 if ${gcc_cv_as_ix86_filds+:} false
; then :
26074 $as_echo_n "(cached) " >&6
26076 gcc_cv_as_ix86_filds
=no
26077 if test x
$gcc_cv_as != x
; then
26078 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26079 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26081 (eval $ac_try) 2>&5
26083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26084 test $ac_status = 0; }; }
26086 gcc_cv_as_ix86_filds
=yes
26088 echo "configure: failed program was" >&5
26091 rm -f conftest.o conftest.s
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26095 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26096 if test $gcc_cv_as_ix86_filds = yes; then
26098 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26104 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26105 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26106 $as_echo_n "(cached) " >&6
26108 gcc_cv_as_ix86_fildq
=no
26109 if test x
$gcc_cv_as != x
; then
26110 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26113 (eval $ac_try) 2>&5
26115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26116 test $ac_status = 0; }; }
26118 gcc_cv_as_ix86_fildq
=yes
26120 echo "configure: failed program was" >&5
26123 rm -f conftest.o conftest.s
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26127 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26128 if test $gcc_cv_as_ix86_fildq = yes; then
26130 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26136 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26137 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26138 $as_echo_n "(cached) " >&6
26140 gcc_cv_as_ix86_cmov_sun_syntax
=no
26141 if test x
$gcc_cv_as != x
; then
26142 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26145 (eval $ac_try) 2>&5
26147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26148 test $ac_status = 0; }; }
26150 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26152 echo "configure: failed program was" >&5
26155 rm -f conftest.o conftest.s
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26159 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26160 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26162 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26168 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26169 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26170 $as_echo_n "(cached) " >&6
26172 gcc_cv_as_ix86_ffreep
=no
26173 if test x
$gcc_cv_as != x
; then
26174 $as_echo 'ffreep %st(1)' > conftest.s
26175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26177 (eval $ac_try) 2>&5
26179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26180 test $ac_status = 0; }; }
26182 gcc_cv_as_ix86_ffreep
=yes
26184 echo "configure: failed program was" >&5
26187 rm -f conftest.o conftest.s
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26191 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26192 if test $gcc_cv_as_ix86_ffreep = yes; then
26194 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26200 $as_echo_n "checking assembler for .quad directive... " >&6; }
26201 if ${gcc_cv_as_ix86_quad+:} false
; then :
26202 $as_echo_n "(cached) " >&6
26204 gcc_cv_as_ix86_quad
=no
26205 if test x
$gcc_cv_as != x
; then
26206 $as_echo '.quad 0' > conftest.s
26207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26214 gcc_cv_as_ix86_quad
=yes
26216 echo "configure: failed program was" >&5
26219 rm -f conftest.o conftest.s
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26223 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26224 if test $gcc_cv_as_ix86_quad = yes; then
26226 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26232 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26233 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26234 $as_echo_n "(cached) " >&6
26236 gcc_cv_as_ix86_sahf
=no
26237 if test x
$gcc_cv_as != x
; then
26240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26242 (eval $ac_try) 2>&5
26244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26245 test $ac_status = 0; }; }
26247 gcc_cv_as_ix86_sahf
=yes
26249 echo "configure: failed program was" >&5
26252 rm -f conftest.o conftest.s
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26256 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26257 if test $gcc_cv_as_ix86_sahf = yes; then
26259 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26265 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26266 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26267 $as_echo_n "(cached) " >&6
26269 gcc_cv_as_ix86_interunit_movq
=no
26270 if test x
$gcc_cv_as != x
; then
26273 movq %rax, %xmm0' > conftest.s
26274 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26276 (eval $ac_try) 2>&5
26278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26279 test $ac_status = 0; }; }
26281 gcc_cv_as_ix86_interunit_movq
=yes
26283 echo "configure: failed program was" >&5
26286 rm -f conftest.o conftest.s
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26290 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26294 cat >>confdefs.h
<<_ACEOF
26295 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26300 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26301 if ${gcc_cv_as_ix86_hle+:} false
; then :
26302 $as_echo_n "(cached) " >&6
26304 gcc_cv_as_ix86_hle
=no
26305 if test x
$gcc_cv_as != x
; then
26306 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26307 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26309 (eval $ac_try) 2>&5
26311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26312 test $ac_status = 0; }; }
26314 gcc_cv_as_ix86_hle
=yes
26316 echo "configure: failed program was" >&5
26319 rm -f conftest.o conftest.s
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26323 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26324 if test $gcc_cv_as_ix86_hle = yes; then
26326 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26332 $as_echo_n "checking assembler for swap suffix... " >&6; }
26333 if ${gcc_cv_as_ix86_swap+:} false
; then :
26334 $as_echo_n "(cached) " >&6
26336 gcc_cv_as_ix86_swap
=no
26337 if test x
$gcc_cv_as != x
; then
26338 $as_echo 'movl.s %esp, %ebp' > conftest.s
26339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26341 (eval $ac_try) 2>&5
26343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26344 test $ac_status = 0; }; }
26346 gcc_cv_as_ix86_swap
=yes
26348 echo "configure: failed program was" >&5
26351 rm -f conftest.o conftest.s
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26355 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26356 if test $gcc_cv_as_ix86_swap = yes; then
26358 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26364 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26365 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26366 $as_echo_n "(cached) " >&6
26368 gcc_cv_as_ix86_diff_sect_delta
=no
26369 if test x
$gcc_cv_as != x
; then
26370 $as_echo '.section .rodata
26376 .L2: nop' > conftest.s
26377 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26379 (eval $ac_try) 2>&5
26381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26382 test $ac_status = 0; }; }
26384 gcc_cv_as_ix86_diff_sect_delta
=yes
26386 echo "configure: failed program was" >&5
26389 rm -f conftest.o conftest.s
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26393 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26394 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26396 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26402 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26403 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26404 $as_echo_n "(cached) " >&6
26406 gcc_cv_as_ix86_rep_lock_prefix
=no
26407 if test x
$gcc_cv_as != x
; then
26408 $as_echo 'rep movsl
26413 lock addl %edi, (%eax,%esi)
26414 lock orl $0, (%esp)' > conftest.s
26415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26417 (eval $ac_try) 2>&5
26419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26420 test $ac_status = 0; }; }
26422 gcc_cv_as_ix86_rep_lock_prefix
=yes
26424 echo "configure: failed program was" >&5
26427 rm -f conftest.o conftest.s
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26431 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26432 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26434 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26440 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26441 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26442 $as_echo_n "(cached) " >&6
26444 gcc_cv_as_ix86_ud2
=no
26445 if test x
$gcc_cv_as != x
; then
26446 $as_echo 'ud2' > conftest.s
26447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26449 (eval $ac_try) 2>&5
26451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26452 test $ac_status = 0; }; }
26454 gcc_cv_as_ix86_ud2
=yes
26456 echo "configure: failed program was" >&5
26459 rm -f conftest.o conftest.s
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26463 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26464 if test $gcc_cv_as_ix86_ud2 = yes; then
26466 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26471 # Enforce 32-bit output with gas and gld.
26472 if test x
$gas = xyes
; then
26473 as_ix86_gas_32_opt
="--32"
26475 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26476 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26477 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26479 ld_ix86_gld_32_opt
="-melf_i386"
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26484 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26485 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26486 $as_echo_n "(cached) " >&6
26488 gcc_cv_as_ix86_tlsgdplt
=no
26489 if test x
$gcc_cv_as != x
; then
26490 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26493 (eval $ac_try) 2>&5
26495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26496 test $ac_status = 0; }; }
26498 if test x
$gcc_cv_ld != x \
26499 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26500 gcc_cv_as_ix86_tlsgdplt
=yes
26504 echo "configure: failed program was" >&5
26507 rm -f conftest.o conftest.s
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26511 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26512 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26514 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26520 .section .tdata,"aw'$tls_section_flag'",@progbits
26522 .section .text,"ax",@progbits
26523 call tls_ld@tlsldmplt'
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26526 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26527 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26528 $as_echo_n "(cached) " >&6
26530 gcc_cv_as_ix86_tlsldmplt
=no
26531 if test x
$gcc_cv_as != x
; then
26532 $as_echo "$conftest_s" > conftest.s
26533 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26540 if test x
$gcc_cv_ld != x \
26541 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26542 gcc_cv_as_ix86_tlsldmplt
=yes
26546 echo "configure: failed program was" >&5
26549 rm -f conftest.o conftest.s
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26553 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26557 cat >>confdefs.h
<<_ACEOF
26558 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26563 .section .text,"ax",@progbits
26565 .type _start, @function
26567 leal value@tlsldm(%ebx), %eax
26568 call ___tls_get_addr@plt
26570 .section .tdata,"aw'$tls_section_flag'",@progbits
26571 .type value, @object
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26574 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26575 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26576 $as_echo_n "(cached) " >&6
26578 gcc_cv_as_ix86_tlsldm
=no
26579 if test x
$gcc_cv_as != x
; then
26580 $as_echo "$conftest_s" > conftest.s
26581 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26583 (eval $ac_try) 2>&5
26585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26586 test $ac_status = 0; }; }
26588 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26589 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26590 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26591 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26592 gcc_cv_as_ix86_tlsldm
=yes
26597 echo "configure: failed program was" >&5
26600 rm -f conftest.o conftest.s
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26604 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26608 cat >>confdefs.h
<<_ACEOF
26609 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26623 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26624 if ${gcc_cv_as_ix86_got32x+:} false
; then :
26625 $as_echo_n "(cached) " >&6
26627 gcc_cv_as_ix86_got32x
=no
26628 if test x
$gcc_cv_as != x
; then
26629 $as_echo "$conftest_s" > conftest.s
26630 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26632 (eval $ac_try) 2>&5
26634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26635 test $ac_status = 0; }; }
26637 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26638 && test x
$gcc_cv_readelf != x \
26639 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26640 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26641 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26642 if $gcc_cv_objdump -dw conftest
2>&1 \
26643 |
grep 0xffffff > /dev
/null
2>&1; then
26644 gcc_cv_as_ix86_got32x
=no
26646 gcc_cv_as_ix86_got32x
=yes
26651 echo "configure: failed program was" >&5
26654 rm -f conftest.o conftest.s
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26658 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26662 cat >>confdefs.h
<<_ACEOF
26663 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26668 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26669 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
26670 $as_echo_n "(cached) " >&6
26672 gcc_cv_as_ix86_gotoff_in_data
=no
26673 if test $in_tree_gas = yes; then
26674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26675 then gcc_cv_as_ix86_gotoff_in_data
=yes
26677 elif test x
$gcc_cv_as != x
; then
26682 .long .L0@GOTOFF' > conftest.s
26683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26685 (eval $ac_try) 2>&5
26687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26688 test $ac_status = 0; }; }
26690 gcc_cv_as_ix86_gotoff_in_data
=yes
26692 echo "configure: failed program was" >&5
26695 rm -f conftest.o conftest.s
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26699 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26703 cat >>confdefs.h
<<_ACEOF
26704 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26709 .section .text,"ax",@progbits
26711 .type _start, @function
26713 leal ld@tlsldm(%ecx), %eax
26714 call *___tls_get_addr@GOT(%ecx)
26715 leal gd@tlsgd(%ecx), %eax
26716 call *___tls_get_addr@GOT(%ecx)
26718 .section .tdata,"aw'$tls_section_flag'",@progbits
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26727 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26728 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
26729 $as_echo_n "(cached) " >&6
26731 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26732 if test x
$gcc_cv_as != x
; then
26733 $as_echo "$conftest_s" > conftest.s
26734 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26736 (eval $ac_try) 2>&5
26738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26739 test $ac_status = 0; }; }
26741 if test x
$gcc_cv_ld != x \
26742 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26743 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26747 echo "configure: failed program was" >&5
26750 rm -f conftest.o conftest.s
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26754 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26758 cat >>confdefs.h
<<_ACEOF
26759 #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`
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26766 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26767 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
26768 $as_echo_n "(cached) " >&6
26770 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26771 if test $in_tree_gas = yes; then
26772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26773 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26775 elif test x
$gcc_cv_as != x
; then
26777 addl r15 = @ltoffx(x#), gp
26779 ld8.mov r16 = [r15], x#
26781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26783 (eval $ac_try) 2>&5
26785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26786 test $ac_status = 0; }; }
26788 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26790 echo "configure: failed program was" >&5
26793 rm -f conftest.o conftest.s
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26797 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26798 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26800 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26812 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26813 if ${gcc_cv_as_machine_directive+:} false
; then :
26814 $as_echo_n "(cached) " >&6
26816 gcc_cv_as_machine_directive
=no
26817 if test x
$gcc_cv_as != x
; then
26818 $as_echo ' .machine ppc7400' > conftest.s
26819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26821 (eval $ac_try) 2>&5
26823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26824 test $ac_status = 0; }; }
26826 gcc_cv_as_machine_directive
=yes
26828 echo "configure: failed program was" >&5
26831 rm -f conftest.o conftest.s
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26835 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26838 if test x
$gcc_cv_as_machine_directive != xyes
; then
26839 echo "*** This target requires an assembler supporting \".machine\"" >&2
26840 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26841 test x
$build = x
$target && exit 1
26847 *-*-aix*) conftest_s
=' .machine "pwr5"
26850 *-*-darwin*) conftest_s
=' .text
26852 *) conftest_s
=' .machine power4
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26858 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26859 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
26860 $as_echo_n "(cached) " >&6
26862 gcc_cv_as_powerpc_mfcrf
=no
26863 if test $in_tree_gas = yes; then
26864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26865 then gcc_cv_as_powerpc_mfcrf
=yes
26867 elif test x
$gcc_cv_as != x
; then
26868 $as_echo "$conftest_s" > conftest.s
26869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26871 (eval $ac_try) 2>&5
26873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26874 test $ac_status = 0; }; }
26876 gcc_cv_as_powerpc_mfcrf
=yes
26878 echo "configure: failed program was" >&5
26881 rm -f conftest.o conftest.s
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26885 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26886 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26888 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26894 *-*-aix*) conftest_s
=' .csect .text[PR]
26896 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26900 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26901 *) conftest_s
=' .text
26903 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26907 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26908 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
26909 $as_echo_n "(cached) " >&6
26911 gcc_cv_as_powerpc_rel16
=no
26912 if test $in_tree_gas = yes; then
26913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26914 then gcc_cv_as_powerpc_rel16
=yes
26916 elif test x
$gcc_cv_as != x
; then
26917 $as_echo "$conftest_s" > conftest.s
26918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26920 (eval $ac_try) 2>&5
26922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26923 test $ac_status = 0; }; }
26925 gcc_cv_as_powerpc_rel16
=yes
26927 echo "configure: failed program was" >&5
26930 rm -f conftest.o conftest.s
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26934 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26935 if test $gcc_cv_as_powerpc_rel16 = yes; then
26937 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26943 *-*-aix*) conftest_s
=' .machine "pwr7"
26946 *) conftest_s
=' .machine power7
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26952 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26953 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
26954 $as_echo_n "(cached) " >&6
26956 gcc_cv_as_powerpc_vsx
=no
26957 if test $in_tree_gas = yes; then
26958 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26959 then gcc_cv_as_powerpc_vsx
=yes
26961 elif test x
$gcc_cv_as != x
; then
26962 $as_echo "$conftest_s" > conftest.s
26963 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26965 (eval $ac_try) 2>&5
26967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26968 test $ac_status = 0; }; }
26970 gcc_cv_as_powerpc_vsx
=yes
26972 echo "configure: failed program was" >&5
26975 rm -f conftest.o conftest.s
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26979 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26980 if test $gcc_cv_as_powerpc_vsx = yes; then
26982 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26988 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26989 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
26990 $as_echo_n "(cached) " >&6
26992 gcc_cv_as_powerpc_gnu_attribute
=no
26993 if test $in_tree_gas = yes; then
26994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26995 then gcc_cv_as_powerpc_gnu_attribute
=yes
26997 elif test x
$gcc_cv_as != x
; then
26998 $as_echo '.gnu_attribute 4,1' > conftest.s
26999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27001 (eval $ac_try) 2>&5
27003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27004 test $ac_status = 0; }; }
27006 gcc_cv_as_powerpc_gnu_attribute
=yes
27008 echo "configure: failed program was" >&5
27011 rm -f conftest.o conftest.s
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27015 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27016 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27018 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27024 $as_echo_n "checking assembler for tls marker support... " >&6; }
27025 if ${gcc_cv_as_powerpc_tls_markers+:} false
; then :
27026 $as_echo_n "(cached) " >&6
27028 gcc_cv_as_powerpc_tls_markers
=no
27029 if test $in_tree_gas = yes; then
27030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27031 then gcc_cv_as_powerpc_tls_markers
=yes
27033 elif test x
$gcc_cv_as != x
; then
27034 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27035 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27037 (eval $ac_try) 2>&5
27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; }
27042 gcc_cv_as_powerpc_tls_markers
=yes
27044 echo "configure: failed program was" >&5
27047 rm -f conftest.o conftest.s
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27051 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27052 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27054 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27060 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27061 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27062 $as_echo_n "(cached) " >&6
27064 gcc_cv_as_powerpc_entry_markers
=no
27065 if test $in_tree_gas = yes; then
27066 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27067 then gcc_cv_as_powerpc_entry_markers
=yes
27069 elif test x
$gcc_cv_as != x
; then
27070 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27071 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27073 (eval $ac_try) 2>&5
27075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27076 test $ac_status = 0; }; }
27078 gcc_cv_as_powerpc_entry_markers
=yes
27080 echo "configure: failed program was" >&5
27083 rm -f conftest.o conftest.s
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27087 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27088 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27090 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27096 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27097 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27098 $as_echo_n "(cached) " >&6
27100 gcc_cv_as_powerpc_pltseq_markers
=no
27101 if test $in_tree_gas = yes; then
27102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27103 then gcc_cv_as_powerpc_pltseq_markers
=yes
27105 elif test x
$gcc_cv_as != x
; then
27106 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27107 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27109 (eval $ac_try) 2>&5
27111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27112 test $ac_status = 0; }; }
27114 gcc_cv_as_powerpc_pltseq_markers
=yes
27116 echo "configure: failed program was" >&5
27119 rm -f conftest.o conftest.s
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27123 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27124 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27126 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27134 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27135 if ${gcc_cv_as_aix_ref+:} false
; then :
27136 $as_echo_n "(cached) " >&6
27138 gcc_cv_as_aix_ref
=no
27139 if test $in_tree_gas = yes; then
27140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27141 then gcc_cv_as_aix_ref
=yes
27143 elif test x
$gcc_cv_as != x
; then
27144 $as_echo ' .csect stuff[rw]
27150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27152 (eval $ac_try) 2>&5
27154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27155 test $ac_status = 0; }; }
27157 gcc_cv_as_aix_ref
=yes
27159 echo "configure: failed program was" >&5
27162 rm -f conftest.o conftest.s
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27166 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27167 if test $gcc_cv_as_aix_ref = yes; then
27169 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27175 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27176 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27177 $as_echo_n "(cached) " >&6
27179 gcc_cv_as_aix_dwloc
=no
27180 if test $in_tree_gas = yes; then
27181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27182 then gcc_cv_as_aix_dwloc
=yes
27184 elif test x
$gcc_cv_as != x
; then
27185 $as_echo ' .dwsect 0xA0000
27189 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27191 (eval $ac_try) 2>&5
27193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27194 test $ac_status = 0; }; }
27196 gcc_cv_as_aix_dwloc
=yes
27198 echo "configure: failed program was" >&5
27201 rm -f conftest.o conftest.s
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27205 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27206 if test $gcc_cv_as_aix_dwloc = yes; then
27208 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27218 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27219 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27220 $as_echo_n "(cached) " >&6
27222 gcc_cv_as_mips_explicit_relocs
=no
27223 if test $in_tree_gas = yes; then
27224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27225 then gcc_cv_as_mips_explicit_relocs
=yes
27227 elif test x
$gcc_cv_as != x
; then
27228 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27231 (eval $ac_try) 2>&5
27233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27234 test $ac_status = 0; }; }
27236 gcc_cv_as_mips_explicit_relocs
=yes
27238 echo "configure: failed program was" >&5
27241 rm -f conftest.o conftest.s
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27245 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27246 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27247 if test x
$target_cpu_default = x
27248 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27249 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27255 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27256 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27257 $as_echo_n "(cached) " >&6
27259 gcc_cv_as_mips_no_shared
=no
27260 if test $in_tree_gas = yes; then
27261 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27262 then gcc_cv_as_mips_no_shared
=yes
27264 elif test x
$gcc_cv_as != x
; then
27265 $as_echo 'nop' > conftest.s
27266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27268 (eval $ac_try) 2>&5
27270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27271 test $ac_status = 0; }; }
27273 gcc_cv_as_mips_no_shared
=yes
27275 echo "configure: failed program was" >&5
27278 rm -f conftest.o conftest.s
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27282 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27283 if test $gcc_cv_as_mips_no_shared = yes; then
27285 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27291 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27292 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27293 $as_echo_n "(cached) " >&6
27295 gcc_cv_as_mips_gnu_attribute
=no
27296 if test $in_tree_gas = yes; then
27297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27298 then gcc_cv_as_mips_gnu_attribute
=yes
27300 elif test x
$gcc_cv_as != x
; then
27301 $as_echo '.gnu_attribute 4,1' > conftest.s
27302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27304 (eval $ac_try) 2>&5
27306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27307 test $ac_status = 0; }; }
27309 gcc_cv_as_mips_gnu_attribute
=yes
27311 echo "configure: failed program was" >&5
27314 rm -f conftest.o conftest.s
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27318 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27319 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27321 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27327 $as_echo_n "checking assembler for .module support... " >&6; }
27328 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27329 $as_echo_n "(cached) " >&6
27331 gcc_cv_as_mips_dot_module
=no
27332 if test x
$gcc_cv_as != x
; then
27333 $as_echo '.module mips2
27334 .module fp=xx' > conftest.s
27335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27337 (eval $ac_try) 2>&5
27339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27340 test $ac_status = 0; }; }
27342 gcc_cv_as_mips_dot_module
=yes
27344 echo "configure: failed program was" >&5
27347 rm -f conftest.o conftest.s
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27351 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27352 if test $gcc_cv_as_mips_dot_module = yes; then
27354 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27358 if test x
$gcc_cv_as_mips_dot_module = xno \
27359 && test x
$with_fp_32 != x
; then
27360 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27364 $as_echo_n "checking assembler for .micromips support... " >&6; }
27365 if ${gcc_cv_as_micromips_support+:} false
; then :
27366 $as_echo_n "(cached) " >&6
27368 gcc_cv_as_micromips_support
=no
27369 if test x
$gcc_cv_as != x
; then
27370 $as_echo '.set micromips' > conftest.s
27371 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27373 (eval $ac_try) 2>&5
27375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27376 test $ac_status = 0; }; }
27378 gcc_cv_as_micromips_support
=yes
27380 echo "configure: failed program was" >&5
27383 rm -f conftest.o conftest.s
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27387 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27388 if test $gcc_cv_as_micromips_support = yes; then
27390 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27396 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27397 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27398 $as_echo_n "(cached) " >&6
27400 gcc_cv_as_mips_dtprelword
=no
27401 if test $in_tree_gas = yes; then
27402 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27403 then gcc_cv_as_mips_dtprelword
=yes
27405 elif test x
$gcc_cv_as != x
; then
27406 $as_echo '.section .tdata,"awT",@progbits
27410 .dtprelword x+0x8000' > conftest.s
27411 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27413 (eval $ac_try) 2>&5
27415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27416 test $ac_status = 0; }; }
27418 gcc_cv_as_mips_dtprelword
=yes
27420 echo "configure: failed program was" >&5
27423 rm -f conftest.o conftest.s
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27427 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27428 if test $gcc_cv_as_mips_dtprelword = yes; then
27430 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27436 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27437 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27438 $as_echo_n "(cached) " >&6
27440 gcc_cv_as_mips_dspr1_mult
=no
27441 if test x
$gcc_cv_as != x
; then
27442 $as_echo ' .set mips32r2
27450 multu $ac3,$4,$5' > conftest.s
27451 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27453 (eval $ac_try) 2>&5
27455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27456 test $ac_status = 0; }; }
27458 gcc_cv_as_mips_dspr1_mult
=yes
27460 echo "configure: failed program was" >&5
27463 rm -f conftest.o conftest.s
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27467 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27468 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27470 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27476 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27477 gcc_cv_as_ld_jalr_reloc
=no
27478 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27479 if test $in_tree_ld = yes ; then
27480 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 \
27481 && test $in_tree_ld_is_elf = yes; then
27482 gcc_cv_as_ld_jalr_reloc
=yes
27484 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27485 echo ' .ent x' > conftest.s
27486 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27487 echo ' lw $25,%call16(y)($28)' >> conftest.s
27488 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27489 echo '1: jalr $25' >> conftest.s
27490 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27491 echo '1: jalr $25' >> conftest.s
27492 echo ' .end x' >> conftest.s
27493 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27494 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27495 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27496 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27497 gcc_cv_as_ld_jalr_reloc
=yes
27503 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27504 if test x
$target_cpu_default = x
; then
27505 target_cpu_default
=MASK_RELAX_PIC_CALLS
27507 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27511 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27514 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27515 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27516 $as_echo_n "(cached) " >&6
27518 gcc_cv_ld_mips_personality_relaxation
=no
27519 if test $in_tree_ld = yes ; then
27520 if test "$gcc_cv_gld_major_version" -eq 2 \
27521 -a "$gcc_cv_gld_minor_version" -ge 21 \
27522 -o "$gcc_cv_gld_major_version" -gt 2; then
27523 gcc_cv_ld_mips_personality_relaxation
=yes
27525 elif test x
$gcc_cv_as != x \
27526 -a x
$gcc_cv_ld != x \
27527 -a x
$gcc_cv_readelf != x
; then
27528 cat > conftest.s
<<EOF
27530 .cfi_personality 0x80,indirect_ptr
27537 .section .data,"aw",@progbits
27541 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27542 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27543 if $gcc_cv_readelf -d conftest
2>&1 \
27544 |
grep TEXTREL
> /dev
/null
2>&1; then
27546 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27547 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27550 gcc_cv_ld_mips_personality_relaxation
=yes
27554 rm -f conftest.s conftest.o conftest
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27557 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27558 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27560 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27565 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27566 if ${gcc_cv_as_mips_nan+:} false
; then :
27567 $as_echo_n "(cached) " >&6
27569 gcc_cv_as_mips_nan
=no
27570 if test x
$gcc_cv_as != x
; then
27571 $as_echo '' > conftest.s
27572 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27574 (eval $ac_try) 2>&5
27576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27577 test $ac_status = 0; }; }
27579 gcc_cv_as_mips_nan
=yes
27581 echo "configure: failed program was" >&5
27584 rm -f conftest.o conftest.s
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27588 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27589 if test $gcc_cv_as_mips_nan = yes; then
27591 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27595 if test x
$gcc_cv_as_mips_nan = xno \
27596 && test x
$with_nan != x
; then
27597 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27602 $as_echo_n "checking assembler for .attribute support... " >&6; }
27603 if ${gcc_cv_as_riscv_attribute+:} false
; then :
27604 $as_echo_n "(cached) " >&6
27606 gcc_cv_as_riscv_attribute
=no
27607 if test $in_tree_gas = yes; then
27608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27609 then gcc_cv_as_riscv_attribute
=yes
27611 elif test x
$gcc_cv_as != x
; then
27612 $as_echo '.attribute stack_align,4' > conftest.s
27613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27615 (eval $ac_try) 2>&5
27617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27618 test $ac_status = 0; }; }
27620 gcc_cv_as_riscv_attribute
=yes
27622 echo "configure: failed program was" >&5
27625 rm -f conftest.o conftest.s
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27629 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27630 if test $gcc_cv_as_riscv_attribute = yes; then
27632 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27639 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27640 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
27641 $as_echo_n "(cached) " >&6
27643 gcc_cv_as_s390_gnu_attribute
=no
27644 if test $in_tree_gas = yes; then
27645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27646 then gcc_cv_as_s390_gnu_attribute
=yes
27648 elif test x
$gcc_cv_as != x
; then
27649 $as_echo '.gnu_attribute 8,1' > conftest.s
27650 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27652 (eval $ac_try) 2>&5
27654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27655 test $ac_status = 0; }; }
27657 gcc_cv_as_s390_gnu_attribute
=yes
27659 echo "configure: failed program was" >&5
27662 rm -f conftest.o conftest.s
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27666 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27667 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27669 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27674 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27675 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
27676 $as_echo_n "(cached) " >&6
27678 gcc_cv_as_s390_machine_machinemode
=no
27679 if test $in_tree_gas = yes; then
27680 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27681 then gcc_cv_as_s390_machine_machinemode
=yes
27683 elif test x
$gcc_cv_as != x
; then
27684 $as_echo ' .machinemode push
27687 .machine pop' > conftest.s
27688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27690 (eval $ac_try) 2>&5
27692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27693 test $ac_status = 0; }; }
27695 gcc_cv_as_s390_machine_machinemode
=yes
27697 echo "configure: failed program was" >&5
27700 rm -f conftest.o conftest.s
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27704 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27705 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27707 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27712 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27713 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
27714 $as_echo_n "(cached) " >&6
27716 gcc_cv_as_s390_architecture_modifiers
=no
27717 if test $in_tree_gas = yes; then
27718 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27719 then gcc_cv_as_s390_architecture_modifiers
=yes
27721 elif test x
$gcc_cv_as != x
; then
27722 $as_echo ' .machine z13+vx ' > conftest.s
27723 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27725 (eval $ac_try) 2>&5
27727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27728 test $ac_status = 0; }; }
27730 gcc_cv_as_s390_architecture_modifiers
=yes
27732 echo "configure: failed program was" >&5
27735 rm -f conftest.o conftest.s
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27739 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27740 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27742 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27747 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27748 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
27749 $as_echo_n "(cached) " >&6
27751 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
27752 if test $in_tree_gas = yes; then
27753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27754 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
27756 elif test x
$gcc_cv_as != x
; then
27757 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
27758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27760 (eval $ac_try) 2>&5
27762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27763 test $ac_status = 0; }; }
27765 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
27767 echo "configure: failed program was" >&5
27770 rm -f conftest.o conftest.s
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27774 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27775 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27777 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27785 # Mips and HP-UX need the GNU assembler.
27786 # Linux on IA64 might be able to use the Intel assembler.
27789 mips
*-*-* |
*-*-hpux* )
27790 if test x
$gas_flag = xyes \
27791 ||
test x
"$host" != x
"$build" \
27792 ||
test ! -x "$gcc_cv_as" \
27793 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27796 echo "*** This configuration requires the GNU assembler" >&2
27802 # ??? Not all targets support dwarf2 debug_line, even within a version
27803 # of gas. Moreover, we need to emit a valid instruction to trigger any
27804 # info to the output file. So, as supported targets are added to gas 2.11,
27805 # add some instruction here to (also) show we expect this might work.
27806 # ??? Once 2.11 is released, probably need to add first known working
27807 # version to the per-target configury.
27808 case "$cpu_type" in
27809 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27810 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27811 | tilegx | tilepro | visium | xstormy16 | xtensa
)
27821 if test x
"$insn" != x
; then
27823 .file 1 \"conftest.s\"
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27827 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27828 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
27829 $as_echo_n "(cached) " >&6
27831 gcc_cv_as_dwarf2_debug_line
=no
27832 if test $in_tree_gas = yes; then
27833 if test $in_tree_gas_is_elf = yes \
27834 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27835 then gcc_cv_as_dwarf2_debug_line
=yes
27837 elif test x
$gcc_cv_as != x
; then
27838 $as_echo "$conftest_s" > conftest.s
27839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27841 (eval $ac_try) 2>&5
27843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27844 test $ac_status = 0; }; }
27846 if test x
$gcc_cv_objdump != x \
27847 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27848 |
grep debug_line
> /dev
/null
2>&1; then
27849 gcc_cv_as_dwarf2_debug_line
=yes
27850 elif test x
$gcc_cv_otool != x \
27851 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
27852 |
grep debug_line
> /dev
/null
2>&1; then
27853 gcc_cv_as_dwarf2_debug_line
=yes
27856 echo "configure: failed program was" >&5
27859 rm -f conftest.o conftest.s
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27863 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27867 # The .debug_line file table must be in the exact order that
27868 # we specified the files, since these indices are also used
27869 # by DW_AT_decl_file. Approximate this test by testing if
27870 # the assembler bitches if the same index is assigned twice.
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27872 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27873 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
27874 $as_echo_n "(cached) " >&6
27876 gcc_cv_as_dwarf2_file_buggy
=no
27877 if test x
$gcc_cv_as != x
; then
27878 $as_echo ' .file 1 "foo.s"
27879 .file 1 "bar.s"' > conftest.s
27880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27882 (eval $ac_try) 2>&5
27884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27885 test $ac_status = 0; }; }
27887 gcc_cv_as_dwarf2_file_buggy
=yes
27889 echo "configure: failed program was" >&5
27892 rm -f conftest.o conftest.s
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27896 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27900 if test $gcc_cv_as_dwarf2_debug_line = yes \
27901 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27903 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27906 if test $gcc_cv_as_leb128 = yes; then
27908 .file 1 \"conftest.s\"
27909 .loc 1 3 0 view .LVU1
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27916 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27917 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
27918 $as_echo_n "(cached) " >&6
27920 gcc_cv_as_dwarf2_debug_view
=no
27921 if test $in_tree_gas = yes; then
27922 if test $in_tree_gas_is_elf = yes \
27923 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27924 then gcc_cv_as_dwarf2_debug_view
=yes
27926 elif test x
$gcc_cv_as != x
; then
27927 $as_echo "$conftest_s" > conftest.s
27928 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27930 (eval $ac_try) 2>&5
27932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27933 test $ac_status = 0; }; }
27935 gcc_cv_as_dwarf2_debug_view
=yes
27937 echo "configure: failed program was" >&5
27940 rm -f conftest.o conftest.s
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27944 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27945 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27947 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27955 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27956 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
27957 $as_echo_n "(cached) " >&6
27959 gcc_cv_as_gdwarf2_flag
=no
27960 if test $in_tree_gas = yes; then
27961 if test $in_tree_gas_is_elf = yes \
27962 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27963 then gcc_cv_as_gdwarf2_flag
=yes
27965 elif test x
$gcc_cv_as != x
; then
27966 $as_echo "$insn" > conftest.s
27967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27969 (eval $ac_try) 2>&5
27971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27972 test $ac_status = 0; }; }
27974 gcc_cv_as_gdwarf2_flag
=yes
27976 echo "configure: failed program was" >&5
27979 rm -f conftest.o conftest.s
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27983 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27984 if test $gcc_cv_as_gdwarf2_flag = yes; then
27986 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27992 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27993 if ${gcc_cv_as_gstabs_flag+:} false
; then :
27994 $as_echo_n "(cached) " >&6
27996 gcc_cv_as_gstabs_flag
=no
27997 if test $in_tree_gas = yes; then
27998 if test $in_tree_gas_is_elf = yes \
27999 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28000 then gcc_cv_as_gstabs_flag
=yes
28002 elif test x
$gcc_cv_as != x
; then
28003 $as_echo "$insn" > conftest.s
28004 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28006 (eval $ac_try) 2>&5
28008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28009 test $ac_status = 0; }; }
28011 gcc_cv_as_gstabs_flag
=yes
28013 echo "configure: failed program was" >&5
28016 rm -f conftest.o conftest.s
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28020 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28021 if test $gcc_cv_as_gstabs_flag = yes; then
28023 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28029 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28030 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28031 $as_echo_n "(cached) " >&6
28033 gcc_cv_as_debug_prefix_map_flag
=no
28034 if test $in_tree_gas = yes; then
28035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28036 then gcc_cv_as_debug_prefix_map_flag
=yes
28038 elif test x
$gcc_cv_as != x
; then
28039 $as_echo "$insn" > conftest.s
28040 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28042 (eval $ac_try) 2>&5
28044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28045 test $ac_status = 0; }; }
28047 gcc_cv_as_debug_prefix_map_flag
=yes
28049 echo "configure: failed program was" >&5
28052 rm -f conftest.o conftest.s
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28056 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28057 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28059 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28066 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28067 if ${gcc_cv_as_compress_debug+:} false
; then :
28068 $as_echo_n "(cached) " >&6
28070 gcc_cv_as_compress_debug
=no
28071 if test x
$gcc_cv_as != x
; then
28072 $as_echo '' > conftest.s
28073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28075 (eval $ac_try) 2>&5
28077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28078 test $ac_status = 0; }; }
28080 # gas compiled without zlib cannot compress debug sections and warns
28081 # about it, but still exits successfully. So check for this, too.
28082 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28084 gcc_cv_as_compress_debug
=0
28085 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28086 # defaulting to the ELF gABI format.
28087 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28089 gcc_cv_as_compress_debug
=2
28090 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28091 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28092 # Before binutils 2.26, gas only supported --compress-debug-options and
28093 # emitted the traditional GNU format.
28094 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28096 gcc_cv_as_compress_debug
=1
28097 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28098 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28100 gcc_cv_as_compress_debug
=0
28103 echo "configure: failed program was" >&5
28106 rm -f conftest.o conftest.s
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28110 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28114 cat >>confdefs.h
<<_ACEOF
28115 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28119 cat >>confdefs.h
<<_ACEOF
28120 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28124 cat >>confdefs.h
<<_ACEOF
28125 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28130 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28131 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
28132 $as_echo_n "(cached) " >&6
28134 gcc_cv_as_lcomm_with_alignment
=no
28135 if test x
$gcc_cv_as != x
; then
28136 $as_echo '.lcomm bar,4,16' > conftest.s
28137 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28139 (eval $ac_try) 2>&5
28141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28142 test $ac_status = 0; }; }
28144 gcc_cv_as_lcomm_with_alignment
=yes
28146 echo "configure: failed program was" >&5
28149 rm -f conftest.o conftest.s
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28153 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28154 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28156 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28161 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28162 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28163 && test "$prefix" != "NONE"; then
28165 cat >>confdefs.h
<<_ACEOF
28166 #define PREFIX_INCLUDE_DIR "$prefix/include"
28171 # Determine the version of glibc, if any, used on the target.
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28173 $as_echo_n "checking for target glibc version... " >&6; }
28175 # Check whether --with-glibc-version was given.
28176 if test "${with_glibc_version+set}" = set; then :
28177 withval
=$with_glibc_version;
28178 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28179 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28180 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28182 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28186 glibc_version_major
=0
28187 glibc_version_minor
=0
28188 if test -f $target_header_dir/features.h \
28189 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28190 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28191 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28192 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28197 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28199 cat >>confdefs.h
<<_ACEOF
28200 #define TARGET_GLIBC_MAJOR $glibc_version_major
28204 cat >>confdefs.h
<<_ACEOF
28205 #define TARGET_GLIBC_MINOR $glibc_version_minor
28209 # Check whether --enable-gnu-unique-object was given.
28210 if test "${enable_gnu_unique_object+set}" = set; then :
28211 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28213 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28214 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28218 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28219 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
28220 $as_echo_n "(cached) " >&6
28222 gcc_cv_as_gnu_unique_object
=no
28223 if test $in_tree_gas = yes; then
28224 if test $in_tree_gas_is_elf = yes \
28225 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28226 then gcc_cv_as_gnu_unique_object
=yes
28228 elif test x
$gcc_cv_as != x
; then
28229 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28230 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28232 (eval $ac_try) 2>&5
28234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28235 test $ac_status = 0; }; }
28237 gcc_cv_as_gnu_unique_object
=yes
28239 echo "configure: failed program was" >&5
28242 rm -f conftest.o conftest.s
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28246 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28247 if test $gcc_cv_as_gnu_unique_object = yes; then
28248 # We need to unquote above to to use the definition from config.gcc.
28249 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28251 if test $glibc_version_major -gt 2 \
28252 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28253 enable_gnu_unique_object
=yes
28260 if test x
$enable_gnu_unique_object = xyes
; then
28262 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28267 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28268 if ${gcc_cv_as_line_zero+:} false
; then :
28269 $as_echo_n "(cached) " >&6
28271 gcc_cv_as_line_zero
=no
28272 if test $in_tree_gas = yes; then
28273 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28274 then gcc_cv_as_line_zero
=yes
28276 elif test "x$gcc_cv_as" != x
; then
28277 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28278 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28280 (eval $ac_try) 2>&5
28282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28283 test $ac_status = 0; }; } &&
28284 test "x`cat conftest.out`" = x
28286 gcc_cv_as_line_zero
=yes
28288 echo "configure: failed program was" >&5
28290 echo "configure: error output was" >&5
28291 cat conftest.out
>&5
28293 rm -f conftest.o conftest.s conftest.out
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28297 $as_echo "$gcc_cv_as_line_zero" >&6; }
28298 if test "x$gcc_cv_as_line_zero" = xyes
; then
28300 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28305 $as_echo_n "checking support for thin archives... " >&6; }
28306 thin_archive_support
=no
28307 echo 'int main (void) { return 0; }' > conftest.c
28308 if ($AR --version |
sed 1q |
grep "GNU ar" \
28309 && $CC $CFLAGS -c conftest.c \
28310 && $AR rcT conftest.a conftest.o \
28311 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28312 thin_archive_support
=yes
28314 rm -f conftest.c conftest.o conftest.a conftest
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28316 $as_echo "$thin_archive_support" >&6; }
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28320 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28321 gcc_cv_ld_eh_frame_hdr
=no
28322 if test $in_tree_ld = yes ; then
28323 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 \
28324 && test $in_tree_ld_is_elf = yes; then
28325 gcc_cv_ld_eh_frame_hdr
=yes
28327 elif test x
$gcc_cv_ld != x
; then
28328 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28329 # Check if linker supports --eh-frame-hdr option
28330 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28331 gcc_cv_ld_eh_frame_hdr
=yes
28336 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28337 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28338 gcc_cv_ld_eh_frame_hdr
=yes
28345 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28347 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28351 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28354 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28355 gcc_cv_ld_eh_frame_ciev3
=no
28356 if test $in_tree_ld = yes ; then
28357 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 \
28358 && test $in_tree_ld_is_elf = yes; then
28359 gcc_cv_ld_eh_frame_ciev3
=yes
28361 elif test x
$gcc_cv_ld != x
; then
28362 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28363 gcc_cv_ld_eh_frame_ciev3
=yes
28364 if test 0"$ld_date" -lt 20040513; then
28365 if test -n "$ld_date"; then
28366 # If there was date string, but was earlier than 2004-05-13, fail
28367 gcc_cv_ld_eh_frame_ciev3
=no
28368 elif test "$ld_vers_major" -lt 2; then
28369 gcc_cv_ld_eh_frame_ciev3
=no
28370 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28371 gcc_cv_ld_eh_frame_ciev3
=no
28377 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28378 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28379 gcc_cv_ld_eh_frame_ciev3
=yes
28386 cat >>confdefs.h
<<_ACEOF
28387 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28391 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28394 $as_echo_n "checking linker position independent executable support... " >&6; }
28396 if test $in_tree_ld = yes ; then
28398 # Full PIE support on Solaris was only introduced in gld 2.26.
28399 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28400 *) gcc_gld_pie_min_version
=15 ;;
28402 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 \
28403 && test $in_tree_ld_is_elf = yes; then
28406 elif test x
$gcc_cv_ld != x
; then
28407 # Check if linker supports -pie option
28408 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28412 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28413 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28420 *-*-solaris2.1
[1-9]*)
28421 # Solaris 11.3 added PIE support.
28422 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28429 if test x
"$gcc_cv_ld_pie" = xyes
; then
28431 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28435 $as_echo "$gcc_cv_ld_pie" >&6; }
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28438 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28439 gcc_cv_ld_pie_copyreloc
=no
28440 if test $gcc_cv_ld_pie = yes ; then
28441 if test $in_tree_ld = yes ; then
28442 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
28443 gcc_cv_ld_pie_copyreloc
=yes
28445 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28446 # Check if linker supports -pie option with copy reloc
28448 i?
86-*-linux* | x86_64-
*-linux*)
28449 cat > conftest1.s
<<EOF
28452 .type a_glob, @object
28457 cat > conftest2.s
<<EOF
28460 .type main, @function
28462 movl %eax, a_glob(%rip)
28465 .section .data.rel,"aw",@progbits
28470 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28471 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28472 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28473 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28474 gcc_cv_ld_pie_copyreloc
=yes
28476 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28482 cat >>confdefs.h
<<_ACEOF
28483 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28487 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28490 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28491 gcc_cv_ld_eh_gc_sections
=no
28492 if test $in_tree_ld = yes ; then
28493 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 \
28494 && test $in_tree_ld_is_elf = yes; then
28495 gcc_cv_ld_eh_gc_sections
=yes
28497 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28498 cat > conftest.s
<<EOF
28501 .type _start, @function
28504 .size _start, .-_start
28505 .section .text.foo,"ax",@progbits
28506 .type foo, @function
28510 .section .gcc_except_table.foo,"a",@progbits
28513 .section .eh_frame,"a",@progbits
28516 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28517 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28518 |
grep "gc-sections option ignored" > /dev
/null
; then
28519 gcc_cv_ld_eh_gc_sections
=no
28520 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28521 |
grep gcc_except_table
> /dev
/null
; then
28522 gcc_cv_ld_eh_gc_sections
=yes
28523 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28524 if test x
$gcc_cv_as_comdat_group != xyes
; then
28525 gcc_cv_ld_eh_gc_sections
=no
28526 cat > conftest.s
<<EOF
28529 .type _start, @function
28532 .size _start, .-_start
28533 .section .gnu.linkonce.t.foo,"ax",@progbits
28534 .type foo, @function
28538 .section .gcc_except_table.foo,"a",@progbits
28541 .section .eh_frame,"a",@progbits
28544 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28545 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28546 |
grep "gc-sections option ignored" > /dev
/null
; then
28547 gcc_cv_ld_eh_gc_sections
=no
28548 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28549 |
grep gcc_except_table
> /dev
/null
; then
28550 gcc_cv_ld_eh_gc_sections
=yes
28556 rm -f conftest.s conftest.o conftest
28560 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28561 gcc_cv_ld_eh_gc_sections
=no
28564 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28566 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28570 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28573 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28574 gcc_cv_ld_eh_gc_sections_bug
=no
28575 if test $in_tree_ld = yes ; then
28576 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 \
28577 && test $in_tree_ld_is_elf = yes; then
28578 gcc_cv_ld_eh_gc_sections_bug
=yes
28580 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
28581 gcc_cv_ld_eh_gc_sections_bug
=yes
28582 cat > conftest.s
<<EOF
28585 .type _start, @function
28588 .size _start, .-_start
28589 .section .text.startup.foo,"ax",@progbits
28590 .type foo, @function
28594 .section .gcc_except_table.foo,"a",@progbits
28597 .section .eh_frame,"a",@progbits
28600 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28601 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28602 |
grep "gc-sections option ignored" > /dev
/null
; then
28604 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28605 |
grep gcc_except_table
> /dev
/null
; then
28606 gcc_cv_ld_eh_gc_sections_bug
=no
28609 rm -f conftest.s conftest.o conftest
28611 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28613 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28617 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28620 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28621 # gold/gld support compressed debug sections since binutils 2.19/2.21
28622 # In binutils 2.26, gld gained support for the ELF gABI format.
28623 if test $in_tree_ld = yes ; then
28624 gcc_cv_ld_compress_debug
=0
28625 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 \
28626 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28627 gcc_cv_ld_compress_debug
=2
28628 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28629 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 \
28630 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28631 gcc_cv_ld_compress_debug
=3
28632 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28633 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 \
28634 && test $in_tree_ld_is_elf = yes; then
28635 gcc_cv_ld_compress_debug
=1
28637 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28638 if test "$ld_vers_major" -lt 2 \
28639 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28640 gcc_cv_ld_compress_debug
=0
28641 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28642 gcc_cv_ld_compress_debug
=1
28644 gcc_cv_ld_compress_debug
=3
28645 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28647 if test $ld_is_gold = yes; then
28648 gcc_cv_ld_compress_debug
=2
28649 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28652 case "${target}" in
28654 # Introduced in Solaris 11.2.
28655 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28656 gcc_cv_ld_compress_debug
=3
28657 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28659 gcc_cv_ld_compress_debug
=0
28663 # Assume linkers other than GNU ld don't support compessed debug
28665 gcc_cv_ld_compress_debug
=0
28670 cat >>confdefs.h
<<_ACEOF
28671 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28675 cat >>confdefs.h
<<_ACEOF
28676 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28680 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28682 if test x
"$ld64_flag" = x
"yes"; then
28684 # Set defaults for possibly untestable items.
28685 gcc_cv_ld64_export_dynamic
=0
28687 if test "$build" = "$host"; then
28693 # On Darwin, because of FAT library support, it is often possible to execute
28694 # exes from compatible archs even when the host differs from the build system.
28695 case "$build","$host" in
28696 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28697 darwin_try_test
=1;;
28701 # If the configurer specified a minimum ld64 version to be supported, then use
28702 # that to determine feature support.
28703 if test x
"${gcc_cv_ld64_version}" != x
; then
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28705 $as_echo_n "checking ld64 specified version... " >&6; }
28706 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28708 $as_echo "$gcc_cv_ld64_major" >&6; }
28709 if test "$gcc_cv_ld64_major" -ge 236; then
28710 gcc_cv_ld64_export_dynamic
=1
28712 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28713 # If the version was not specified, try to find it.
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28715 $as_echo_n "checking linker version... " >&6; }
28716 if test x
"${gcc_cv_ld64_version}" = x
; then
28717 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28720 $as_echo "$gcc_cv_ld64_version" >&6; }
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28723 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28724 gcc_cv_ld64_export_dynamic
=1
28725 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28726 gcc_cv_ld64_export_dynamic
=0
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28729 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28732 if test x
"${gcc_cv_ld64_version}" != x
; then
28734 cat >>confdefs.h
<<_ACEOF
28735 #define LD64_VERSION "${gcc_cv_ld64_version}"
28741 cat >>confdefs.h
<<_ACEOF
28742 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28752 $as_echo_n "checking linker --as-needed support... " >&6; }
28753 if ${gcc_cv_ld_as_needed+:} false
; then :
28754 $as_echo_n "(cached) " >&6
28756 gcc_cv_ld_as_needed
=no
28757 gcc_cv_ld_as_needed_option
='--as-needed'
28758 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28759 if test $in_tree_ld = yes ; then
28760 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 \
28761 && test $in_tree_ld_is_elf = yes; then
28762 gcc_cv_ld_as_needed
=yes
28763 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28764 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28765 gcc_cv_ld_no_as_needed_option
='--pop-state'
28768 elif test x
$gcc_cv_ld != x
; then
28769 # Check if linker supports --as-needed and --no-as-needed options
28770 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
28771 gcc_cv_ld_as_needed
=yes
28772 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
28773 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
28774 && echo "$ld_ver" |
grep GNU
> /dev
/null \
28775 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28776 # Use these options only when both ld.bfd and ld.gold support
28777 # --push-state/--pop-state, which unfortunately wasn't added
28778 # at the same time.
28779 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28780 gcc_cv_ld_no_as_needed_option
='--pop-state'
28783 case "$target:$gnu_ld" in
28785 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28787 gcc_cv_ld_as_needed
=yes
28788 gcc_cv_ld_as_needed_option
="-z ignore"
28789 gcc_cv_ld_no_as_needed_option
="-z record"
28793 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28794 # dl_iterate_phdr, i.e. since Solaris 11.
28796 *-*-solaris2.1
[1-9]*)
28798 i?
86-*-* | x86_64-
*-*)
28799 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28800 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28801 gcc_cv_ld_as_needed
=no
28807 gcc_cv_ld_as_needed
=no
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28813 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28814 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28816 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28819 cat >>confdefs.h
<<_ACEOF
28820 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28824 cat >>confdefs.h
<<_ACEOF
28825 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28831 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28832 saved_LDFLAGS
="$LDFLAGS"
28833 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28834 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28836 /* end confdefs.h. */
28837 int main(void) {return 0;}
28839 if ac_fn_cxx_try_link
"$LINENO"; then :
28840 gcc_cv_ld_clearcap
=yes; break
28842 gcc_cv_ld_clearcap
=no
28844 rm -f core conftest.err conftest.
$ac_objext \
28845 conftest
$ac_exeext conftest.
$ac_ext
28847 LDFLAGS
="$saved_LDFLAGS"
28848 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28850 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28852 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28856 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28862 emul_name
="-melf32lppc"
28865 emul_name
="-melf32ppc"
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28869 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28870 if ${gcc_cv_ld_ppc_attr+:} false
; then :
28871 $as_echo_n "(cached) " >&6
28873 gcc_cv_ld_ppc_attr
=no
28874 if test x
"$ld_is_gold" = xyes
; then
28875 gcc_cv_ld_ppc_attr
=yes
28876 elif test $in_tree_ld = yes ; then
28877 if test "$gcc_cv_gld_major_version" -eq 2 \
28878 -a "$gcc_cv_gld_minor_version" -ge 28 \
28879 -o "$gcc_cv_gld_major_version" -gt 2; then
28880 gcc_cv_ld_ppc_attr
=yes
28882 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28883 # check that merging the long double .gnu_attribute doesn't warn
28884 cat > conftest1.s
<<EOF
28887 cat > conftest2.s
<<EOF
28890 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28891 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28892 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28893 && test ! -s conftest.err
; then
28894 gcc_cv_ld_ppc_attr
=yes
28896 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28901 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28902 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28904 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28910 case "$target:$tm_file" in
28911 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28914 emul_name
="-melf64lppc"
28917 emul_name
="-melf64ppc"
28920 emul_name
="-melf64ppc_fbsd"
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28924 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28925 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
28926 $as_echo_n "(cached) " >&6
28928 gcc_cv_ld_no_dot_syms
=no
28929 if test x
"$ld_is_gold" = xyes
; then
28930 gcc_cv_ld_no_dot_syms
=yes
28931 elif test $in_tree_ld = yes ; then
28932 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
28933 gcc_cv_ld_no_dot_syms
=yes
28935 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28936 cat > conftest1.s
<<EOF
28940 cat > conftest2.s
<<EOF
28941 .section ".opd","aw"
28944 .type foo,@function
28946 .quad .LEfoo,.TOC.@tocbase,0
28952 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28953 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28954 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28955 gcc_cv_ld_no_dot_syms
=yes
28957 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28962 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28963 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28965 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28970 $as_echo_n "checking linker large toc support... " >&6; }
28971 if ${gcc_cv_ld_large_toc+:} false
; then :
28972 $as_echo_n "(cached) " >&6
28974 gcc_cv_ld_large_toc
=no
28975 if test x
"$ld_is_gold" = xyes
; then
28976 gcc_cv_ld_large_toc
=yes
28977 elif test $in_tree_ld = yes ; then
28978 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
28979 gcc_cv_ld_large_toc
=yes
28981 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28982 cat > conftest.s
<<EOF
28983 .section ".tbss","awT",@nobits
28989 addis 9,13,ie0@got@tprel@ha
28990 ld 9,ie0@got@tprel@l(9)
28992 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28993 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28994 gcc_cv_ld_large_toc
=yes
28996 rm -f conftest conftest.o conftest.s
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29001 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29002 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29004 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29009 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29010 if ${gcc_cv_ld_toc_align+:} false
; then :
29011 $as_echo_n "(cached) " >&6
29013 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29014 cat > conftest.s
<<EOF
29019 .section .data.rel.ro,"aw",@progbits
29024 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29025 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29026 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)) }'`
29028 rm -f conftest conftest.o conftest.s
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29033 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29034 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29036 cat >>confdefs.h
<<_ACEOF
29037 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29047 $as_echo_n "checking linker large toc support... " >&6; }
29048 if ${gcc_cv_ld_large_toc+:} false
; then :
29049 $as_echo_n "(cached) " >&6
29051 gcc_cv_ld_large_toc
=no
29052 if test x
$gcc_cv_as != x
; then
29053 cat > conftest.s
<<EOF
29063 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29064 gcc_cv_ld_large_toc
=yes
29066 rm -f conftest conftest.o conftest.s
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29071 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29072 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29074 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29081 $as_echo_n "checking linker --build-id support... " >&6; }
29082 if ${gcc_cv_ld_buildid+:} false
; then :
29083 $as_echo_n "(cached) " >&6
29085 gcc_cv_ld_buildid
=no
29086 if test $in_tree_ld = yes ; then
29087 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29088 "$gcc_cv_gld_minor_version" -ge 18 -o \
29089 "$gcc_cv_gld_major_version" -gt 2 \
29090 && test $in_tree_ld_is_elf = yes; then
29091 gcc_cv_ld_buildid
=yes
29093 elif test x
$gcc_cv_ld != x
; then
29094 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29095 gcc_cv_ld_buildid
=yes
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29100 $as_echo "$gcc_cv_ld_buildid" >&6; }
29101 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29103 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29107 # Check whether --enable-linker-build-id was given.
29108 if test "${enable_linker_build_id+set}" = set; then :
29109 enableval
=$enable_linker_build_id;
29111 enable_linker_build_id
=no
29115 if test x
"$enable_linker_build_id" = xyes
; then
29116 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29118 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29122 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29126 # In binutils 2.21, GNU ld gained support for new emulations fully
29127 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29129 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29130 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
29131 $as_echo_n "(cached) " >&6
29133 gcc_cv_ld_sol2_emulation
=no
29134 if test $in_tree_ld = yes ; then
29135 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29136 "$gcc_cv_gld_minor_version" -ge 21 -o \
29137 "$gcc_cv_gld_major_version" -gt 2 \
29138 && test $in_tree_ld_is_elf = yes; then
29139 gcc_cv_ld_sol2_emulation
=yes
29141 elif test x
$gcc_cv_ld != x
; then
29142 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29143 grep _sol2
> /dev
/null
; then
29144 gcc_cv_ld_sol2_emulation
=yes
29148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29149 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29150 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29152 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29157 $as_echo_n "checking linker --sysroot support... " >&6; }
29158 if ${gcc_cv_ld_sysroot+:} false
; then :
29159 $as_echo_n "(cached) " >&6
29161 gcc_cv_ld_sysroot
=no
29162 if test $in_tree_ld = yes ; then
29163 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
29164 gcc_cv_ld_sysroot
=yes
29166 elif test x
$gcc_cv_ld != x
; then
29167 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29168 gcc_cv_ld_sysroot
=yes
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29173 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29174 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29176 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29182 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29184 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29185 if ${gcc_cv_solaris_crts+:} false
; then :
29186 $as_echo_n "(cached) " >&6
29188 gcc_cv_solaris_crts
=no
29189 if test x
$host != x
$target; then
29190 if test "x$with_sysroot" = xyes
; then
29191 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29193 target_sysroot
="${with_sysroot}"
29196 target_libdir
="$target_sysroot/usr/lib"
29197 # At the time they were added, gcrt1.o became a symlink for backwards
29198 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29200 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29201 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29203 sparc
*-*-solaris2*)
29204 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29209 $as_echo "$gcc_cv_solaris_crts" >&6; }
29212 if test x
$gcc_cv_solaris_crts = xyes
; then
29214 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29218 # Check whether --enable-libssp was given.
29219 if test "${enable_libssp+set}" = set; then :
29220 enableval
=$enable_libssp; case "${enableval}" in
29224 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
29230 # Test for stack protector support in target C library.
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29232 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29233 if ${gcc_cv_libc_provides_ssp+:} false
; then :
29234 $as_echo_n "(cached) " >&6
29236 gcc_cv_libc_provides_ssp
=no
29237 if test "x$enable_libssp" = "xno"; then
29238 gcc_cv_libc_provides_ssp
=yes
29239 elif test "x$enable_libssp" = "xyes"; then
29240 gcc_cv_libc_provides_ssp
=no
29244 # All versions of musl provide stack protector
29245 gcc_cv_libc_provides_ssp
=yes;;
29246 *-*-linux* |
*-*-kfreebsd*-gnu)
29247 # glibc 2.4 and later provides __stack_chk_fail and
29248 # either __stack_chk_guard, or TLS access to stack guard canary.
29250 if test $glibc_version_major -gt 2 \
29251 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29252 gcc_cv_libc_provides_ssp
=yes
29255 if test -f $target_header_dir/features.h \
29256 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29257 $target_header_dir/features.h
> /dev
/null
; then
29258 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29259 $target_header_dir/features.h
> /dev
/null
&& \
29260 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29261 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29262 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29263 gcc_cv_libc_provides_ssp
=yes
29265 # all versions of Bionic support stack protector
29266 elif test -f $target_header_dir/sys
/cdefs.h \
29267 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29268 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29269 gcc_cv_libc_provides_ssp
=yes
29274 # Avoid complicated tests (see
29275 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29276 # simply assert that glibc does provide this, which is true for all
29277 # realistically usable GNU/Hurd configurations.
29278 # All supported versions of musl provide it as well
29279 gcc_cv_libc_provides_ssp
=yes;;
29280 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29281 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29282 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
29283 gcc_cv_libc_provides_ssp
=yes
29285 echo "no __stack_chk_fail on this target"
29289 *) gcc_cv_libc_provides_ssp
=no
;;
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29294 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29296 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29298 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29302 # Check whether --enable-default-ssp was given.
29303 # Check whether --enable-default-ssp was given.
29304 if test "${enable_default_ssp+set}" = set; then :
29305 enableval
=$enable_default_ssp;
29306 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29308 ia64
*-*-*) enable_default_ssp
=no
;;
29309 *) enable_default_ssp
=$enableval ;;
29312 enable_default_ssp
=no
29315 enable_default_ssp
=no
29318 if test x
$enable_default_ssp = xyes
; then
29320 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29325 # Test for <sys/sdt.h> on the target.
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29328 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29330 if test -f $target_header_dir/sys
/sdt.h
; then
29333 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29337 $as_echo "$have_sys_sdt_h" >&6; }
29339 # Check if TFmode long double should be used by default or not.
29340 # Some glibc targets used DFmode long double, but with glibc 2.4
29341 # and later they can use TFmode.
29343 powerpc
*-*-linux* | \
29344 sparc
*-*-linux* | \
29348 # Check whether --with-long-double-128 was given.
29349 if test "${with_long_double_128+set}" = set; then :
29350 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29353 if test $glibc_version_major -gt 2 \
29354 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29355 gcc_cv_target_ldbl128
=yes
29358 gcc_cv_target_ldbl128
=no
29359 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29360 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29361 && gcc_cv_target_ldbl128
=yes
29368 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29370 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29374 # Check if TFmode long double target should use the IBM extended double or IEEE
29375 # 128-bit floating point formats if long doubles are 128-bits long. The long
29376 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29377 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29380 # Check whether --with-long-double-format was given.
29381 if test "${with_long_double_format+set}" = set; then :
29382 withval
=$with_long_double_format;
29383 case "$target:$with_long_double_format" in
29384 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29387 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29388 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29389 case "$with_cpu" in
29390 power7 | power8 | power9 | power1
*)
29394 as_fn_error $?
"Configuration option --with-long-double-format is only \
29395 supported if the default cpu is power7 or newer" "$LINENO" 5
29396 with_long_double_format
=""
29400 xpowerpc64
*-*-linux*:*)
29401 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29402 with_long_double_format
=""
29405 as_fn_error $?
"Configure option --with-long-double-format is only supported \
29406 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29407 with_long_double_format
=""
29413 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29414 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29415 gcc_cv_libc_provides_hwcap_in_tcb
=no
29419 if test $glibc_version_major -gt 2 \
29420 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29421 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29425 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29427 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29432 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29433 gcc_cv_target_dl_iterate_phdr
=unknown
29436 # <link.h> needs both a dl_iterate_phdr declaration and support for
29437 # compilation with largefile support.
29438 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29439 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29440 gcc_cv_target_dl_iterate_phdr
=yes
29442 gcc_cv_target_dl_iterate_phdr
=no
29445 *-*-dragonfly* |
*-*-freebsd*)
29446 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29447 gcc_cv_target_dl_iterate_phdr
=yes
29449 gcc_cv_target_dl_iterate_phdr
=no
29453 gcc_cv_target_dl_iterate_phdr
=yes
29457 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29459 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29463 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29465 # We no longer support different GC mechanisms. Emit an error if
29466 # the user configures with --with-gc.
29468 # Check whether --with-gc was given.
29469 if test "${with_gc+set}" = set; then :
29470 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29474 # Libraries to use on the host. This will normally be set by the top
29475 # level Makefile. Here we simply capture the value for our Makefile.
29476 if test -z "${HOST_LIBS+set}"; then
29481 # Use the system's zlib library.
29483 # Use the system's zlib library.
29484 zlibdir
="-L\$(top_builddir)/../zlib"
29485 zlibinc
="-I\$(top_srcdir)/../zlib"
29487 # Check whether --with-system-zlib was given.
29488 if test "${with_system_zlib+set}" = set; then :
29489 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29502 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29503 # Check whether --enable-maintainer-mode was given.
29504 if test "${enable_maintainer_mode+set}" = set; then :
29505 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29512 $as_echo "$maintainer_mode" >&6; }
29514 if test "$maintainer_mode" = "yes"; then
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29522 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29523 # Check whether --enable-link-mutex was given.
29524 if test "${enable_link_mutex+set}" = set; then :
29525 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29531 $as_echo "$do_link_mutex" >&6; }
29533 if test "$do_link_mutex" = "yes"; then
29536 DO_LINK_MUTEX
=false
29544 # Make empty files to contain the specs and options for each language.
29545 # Then add #include lines to for a compiler that has specs and/or options.
29551 # These (without "all_") are set in each config-lang.in.
29552 # `language' must be a single word so is spelled singularly.
29555 all_outputs
='Makefile'
29556 # List of language makefile fragments.
29557 all_lang_makefrags
=
29558 # Additional files for gengtype
29559 all_gtfiles
="$target_gtfiles"
29561 # These are the languages that are set in --enable-languages,
29562 # and are available in the GCC tree.
29563 all_selected_languages
=
29565 # Add the language fragments.
29566 # Languages are added via two mechanisms. Some information must be
29567 # recorded in makefile variables, these are defined in config-lang.in.
29568 # We accumulate them and plug them into the main Makefile.
29569 # The other mechanism is a set of hooks for each of the main targets
29570 # like `clean', `install', etc.
29572 language_hooks
="Make-hooks"
29574 for lang
in ${srcdir}/*/config-lang.
in
29576 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29578 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29579 if test "x$lang_alias" = x
29581 echo "$lang doesn't set \$language." 1>&2
29584 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29585 subdirs
="$subdirs $subdir"
29587 # $gcc_subdir is where the gcc integration files are to be found
29588 # for a language, both for internal compiler purposes (compiler
29589 # sources implementing front-end to GCC tree converters), and for
29590 # build infrastructure purposes (Make-lang.in, etc.)
29592 # This will be <subdir> (relative to $srcdir) if a line like
29593 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29594 # is found in <langdir>/config-lang.in, and will remain <langdir>
29597 # Except for the language alias (fetched above), the regular
29598 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29599 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29600 # only this and the language alias.
29602 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29603 if [ "$gcc_subdir" = "" ]; then
29604 gcc_subdir
="$subdir"
29607 case ",$enable_languages," in
29609 all_selected_languages
="$all_selected_languages $lang_alias"
29610 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29611 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29622 .
${srcdir}/$gcc_subdir/config-lang.
in
29623 if test "x$language" = x
29625 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29630 case ",$enable_languages," in
29631 *,$lang_alias,*) ;;
29633 for i
in $subdir_requires; do
29634 test -f "${srcdir}/$i/config-lang.in" && continue
29642 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29643 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29644 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29645 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29647 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29648 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29650 all_languages
="$all_languages $language"
29651 all_compilers
="$all_compilers $compilers"
29652 all_outputs
="$all_outputs $outputs"
29653 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29654 case ",$enable_languages," in
29657 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29667 for language
in $all_selected_languages
29669 check_languages
="$check_languages check-$language"
29672 selftest_languages
=
29673 for language
in $all_selected_languages
29675 selftest_languages
="$selftest_languages selftest-$language"
29678 # We link each language in with a set of hooks, reached indirectly via
29679 # lang.${target}. Only do so for selected languages.
29683 target_list
="all.cross start.encap rest.encap tags \
29684 install-common install-man install-info install-pdf install-html dvi \
29685 pdf html uninstall info man srcextra srcman srcinfo \
29686 mostlyclean clean distclean maintainer-clean install-plugin"
29688 for t
in $target_list
29691 for lang
in $all_selected_languages
29695 echo "lang.$t: $x" >> Make-hooks
29699 # Option include files
29702 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29703 option_includes
="option-includes.mk"
29712 echo "dir ." > .gdbinit
29713 echo "dir ${srcdir}" >> .gdbinit
29714 if test x
$gdb_needs_out_file_path = xyes
29716 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29718 if test "x$subdirs" != x
; then
29721 echo "dir ${srcdir}/$s" >> .gdbinit
29724 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29725 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29727 # Put a breakpoint on __asan_report_error to help with debugging buffer
29730 *-fsanitize=address
*)
29731 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29735 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29739 # Find a directory in which to install a shared libgcc.
29741 # Check whether --enable-version-specific-runtime-libs was given.
29742 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29743 enableval
=$enable_version_specific_runtime_libs;
29747 # Substitute configuration variables
29815 if test x
${build} = x
${host} ; then
29816 if test x
${host} = x
${target} ; then
29817 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29819 echo "Links are now set up to build a cross-compiler" 1>&2
29820 echo " from ${host} to ${target}." 1>&2
29823 if test x
${host} = x
${target} ; then
29824 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29825 echo " for ${target}." 1>&2
29827 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29828 echo " from ${host} to ${target}." 1>&2
29837 if test "x${ISLLIBS}" != "x" ; then
29839 $as_echo "#define HAVE_isl 1" >>confdefs.h
29843 # Check for plugin support
29844 # Check whether --enable-plugin was given.
29845 if test "${enable_plugin+set}" = set; then :
29846 enableval
=$enable_plugin; enable_plugin
=$enableval
29848 enable_plugin
=yes; default_plugin
=yes
29857 # Since plugin support under MinGW is not as straightforward as on
29858 # other platforms (e.g., we have to link import library, etc), we
29859 # only enable it if explicitly requested.
29860 if test x
"$default_plugin" = x
"yes"; then
29862 elif test x
"$enable_plugin" = x
"yes"; then
29863 # Use make's target variable to derive import library name.
29864 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29869 if test x
$build = x
$host; then
29870 export_sym_check
="nm${exeext} -g"
29871 elif test x
$host = x
$target; then
29872 export_sym_check
="$gcc_cv_nm -g"
29878 if test x
$build = x
$host; then
29879 export_sym_check
="objdump${exeext} -T"
29880 elif test x
$host = x
$target; then
29881 export_sym_check
="$gcc_cv_objdump -T"
29888 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29891 $as_echo_n "checking for exported symbols... " >&6; }
29892 if test "x$export_sym_check" != x
; then
29893 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29894 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29895 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29896 : # No need to use a flag
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29898 $as_echo "yes" >&6; }
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29901 $as_echo "yes" >&6; }
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29903 $as_echo_n "checking for -rdynamic... " >&6; }
29904 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29905 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29906 plugin_rdynamic
=yes
29907 pluginlibs
="-rdynamic"
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29913 $as_echo "$plugin_rdynamic" >&6; }
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29917 $as_echo "unable to check" >&6; }
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29923 $as_echo_n "checking for library containing dlopen... " >&6; }
29924 if ${ac_cv_search_dlopen+:} false
; then :
29925 $as_echo_n "(cached) " >&6
29927 ac_func_search_save_LIBS
=$LIBS
29928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29929 /* end confdefs.h. */
29931 /* Override any GCC internal prototype to avoid an error.
29932 Use char because int might match the return type of a GCC
29933 builtin and then its argument prototype would still apply. */
29946 for ac_lib
in '' dl
; do
29947 if test -z "$ac_lib"; then
29948 ac_res
="none required"
29951 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29953 if ac_fn_cxx_try_link
"$LINENO"; then :
29954 ac_cv_search_dlopen
=$ac_res
29956 rm -f core conftest.err conftest.
$ac_objext \
29958 if ${ac_cv_search_dlopen+:} false
; then :
29962 if ${ac_cv_search_dlopen+:} false
; then :
29965 ac_cv_search_dlopen
=no
29967 rm conftest.
$ac_ext
29968 LIBS
=$ac_func_search_save_LIBS
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29971 $as_echo "$ac_cv_search_dlopen" >&6; }
29972 ac_res
=$ac_cv_search_dlopen
29973 if test "$ac_res" != no
; then :
29974 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29978 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29979 pluginlibs
="$pluginlibs -ldl"
29983 # Check that we can build shared objects with -fPIC -shared
29984 saved_LDFLAGS
="$LDFLAGS"
29985 saved_CFLAGS
="$CFLAGS"
29988 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29989 CFLAGS
="$CFLAGS -fPIC"
29990 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29993 CFLAGS
="$CFLAGS -fPIC"
29994 LDFLAGS
="$LDFLAGS -fPIC -shared"
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29998 $as_echo_n "checking for -fPIC -shared... " >&6; }
29999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30000 /* end confdefs.h. */
30010 if ac_fn_cxx_try_link
"$LINENO"; then :
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30012 $as_echo "yes" >&6; }; have_pic_shared
=yes
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30015 $as_echo "no" >&6; }; have_pic_shared
=no
30017 rm -f core conftest.err conftest.
$ac_objext \
30018 conftest
$ac_exeext conftest.
$ac_ext
30019 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30023 LDFLAGS
="$saved_LDFLAGS"
30024 CFLAGS
="$saved_CFLAGS"
30026 # If plugin support had been requested but not available, fail.
30027 if test x
"$enable_plugin" = x
"no" ; then
30028 if test x
"$default_plugin" != x
"yes"; then
30030 Building GCC with plugin support requires a host that supports
30031 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30038 if test x
"$enable_plugin" = x
"yes"; then
30040 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30045 # Enable --enable-host-shared
30046 # Check whether --enable-host-shared was given.
30047 if test "${enable_host_shared+set}" = set; then :
30048 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30057 # Check whether --enable-libquadmath-support was given.
30058 if test "${enable_libquadmath_support+set}" = set; then :
30059 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30061 ENABLE_LIBQUADMATH_SUPPORT
=yes
30064 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30066 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30071 # Specify what hash style to use by default.
30073 # Check whether --with-linker-hash-style was given.
30074 if test "${with_linker_hash_style+set}" = set; then :
30075 withval
=$with_linker_hash_style; case x
"$withval" in
30077 LINKER_HASH_STYLE
=sysv
30080 LINKER_HASH_STYLE
=gnu
30083 LINKER_HASH_STYLE
=both
30086 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30090 LINKER_HASH_STYLE
=''
30093 if test x
"${LINKER_HASH_STYLE}" != x
; then
30095 cat >>confdefs.h
<<_ACEOF
30096 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30101 # Specify what should be the default of -fdiagnostics-color option.
30103 # Check whether --with-diagnostics-color was given.
30104 if test "${with_diagnostics_color+set}" = set; then :
30105 withval
=$with_diagnostics_color; case x
"$withval" in
30107 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30110 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30113 DIAGNOSTICS_COLOR_DEFAULT
=-1
30116 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30119 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30123 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30127 cat >>confdefs.h
<<_ACEOF
30128 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30132 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30133 # of jit/jit-playback.c.
30134 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30135 echo "gcc_driver_version: ${gcc_driver_version}"
30136 cat > gcc-driver-name.h
<<EOF
30137 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30140 # Check whether --enable-default-pie was given.
30141 # Check whether --enable-default-pie was given.
30142 if test "${enable_default_pie+set}" = set; then :
30143 enableval
=$enable_default_pie; enable_default_pie
=$enableval
30145 enable_default_pie
=no
30148 if test x
$enable_default_pie = xyes
; then
30150 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30155 # Check if -fno-PIE works.
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30157 $as_echo_n "checking for -fno-PIE option... " >&6; }
30158 if ${gcc_cv_c_no_fpie+:} false
; then :
30159 $as_echo_n "(cached) " >&6
30161 saved_CXXFLAGS
="$CXXFLAGS"
30162 CXXFLAGS
="$CXXFLAGS -fno-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_compile
"$LINENO"; then :
30168 gcc_cv_c_no_fpie
=yes
30170 gcc_cv_c_no_fpie
=no
30172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30173 CXXFLAGS
="$saved_CXXFLAGS"
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30176 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30177 if test "$gcc_cv_c_no_fpie" = "yes"; then
30178 NO_PIE_CFLAGS
="-fno-PIE"
30182 # Check if -no-pie works.
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30184 $as_echo_n "checking for -no-pie option... " >&6; }
30185 if ${gcc_cv_no_pie+:} false
; then :
30186 $as_echo_n "(cached) " >&6
30188 saved_LDFLAGS
="$LDFLAGS"
30189 LDFLAGS
="$LDFLAGS -no-pie"
30190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30191 /* end confdefs.h. */
30192 int main(void) {return 0;}
30194 if ac_fn_cxx_try_link
"$LINENO"; then :
30199 rm -f core conftest.err conftest.
$ac_objext \
30200 conftest
$ac_exeext conftest.
$ac_ext
30201 LDFLAGS
="$saved_LDFLAGS"
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30204 $as_echo "$gcc_cv_no_pie" >&6; }
30205 if test "$gcc_cv_no_pie" = "yes"; then
30206 NO_PIE_FLAG
="-no-pie"
30210 # Check linker supports '-z bndplt'
30211 ld_bndplt_support
=no
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30213 $as_echo_n "checking linker -z bndplt option... " >&6; }
30214 if test x
"$ld_is_gold" = xno
; then
30215 if test $in_tree_ld = yes ; then
30216 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
30217 ld_bndplt_support
=yes
30219 elif test x
$gcc_cv_ld != x
; then
30220 # Check if linker supports -a bndplt option
30221 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30222 ld_bndplt_support
=yes
30226 if test x
"$ld_bndplt_support" = xyes
; then
30228 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30232 $as_echo "$ld_bndplt_support" >&6; }
30234 # Check linker supports '--push-state'/'--pop-state'
30235 ld_pushpopstate_support
=no
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30237 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30238 if test x
"$ld_is_gold" = xno
; then
30239 if test $in_tree_ld = yes ; then
30240 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
30241 ld_pushpopstate_support
=yes
30243 elif test x
$gcc_cv_ld != x
; then
30244 # Check if linker supports --push-state/--pop-state options
30245 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30246 ld_pushpopstate_support
=yes
30250 if test x
"$ld_pushpopstate_support" = xyes
; then
30252 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30256 $as_echo "$ld_pushpopstate_support" >&6; }
30258 # Configure the subdirectories
30259 # AC_CONFIG_SUBDIRS($subdirs)
30261 # Create the Makefile
30262 # and configure language subdirectories
30263 ac_config_files
="$ac_config_files $all_outputs"
30266 ac_config_commands
="$ac_config_commands default"
30268 cat >confcache
<<\_ACEOF
30269 # This file is a shell script that caches the results of configure
30270 # tests run on this system so they can be shared between configure
30271 # scripts and configure runs, see configure's option --config-cache.
30272 # It is not useful on other systems. If it contains results you don't
30273 # want to keep, you may remove or edit it.
30275 # config.status only pays attention to the cache file if you give it
30276 # the --recheck option to rerun configure.
30278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30280 # following values.
30284 # The following way of writing the cache mishandles newlines in values,
30285 # but we know of no workaround that is simple, portable, and efficient.
30286 # So, we kill variables containing newlines.
30287 # Ultrix sh set writes to stderr and can't be redirected directly,
30288 # and sets the high bit in the cache file unless we assign to the vars.
30290 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30291 eval ac_val
=\$
$ac_var
30295 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30299 _ | IFS | as_nl
) ;; #(
30300 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30301 *) { eval $ac_var=; unset $ac_var;} ;;
30307 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30308 *${as_nl}ac_space
=\
*)
30309 # `set' does not quote correctly, so add quotes: double-quote
30310 # substitution turns \\\\ into \\, and sed turns \\ into \.
30313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30316 # `set' quotes correctly as required by POSIX, so do not add quotes.
30317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30326 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30328 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30330 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30331 if test -w "$cache_file"; then
30332 if test "x$cache_file" != "x/dev/null"; then
30333 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30334 $as_echo "$as_me: updating cache $cache_file" >&6;}
30335 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30336 cat confcache
>"$cache_file"
30338 case $cache_file in #(
30340 mv -f confcache
"$cache_file"$$
&&
30341 mv -f "$cache_file"$$
"$cache_file" ;; #(
30343 mv -f confcache
"$cache_file" ;;
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30349 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30354 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30355 # Let make expand exec_prefix.
30356 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30358 DEFS
=-DHAVE_CONFIG_H
30363 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30364 # 1. Remove the extension, and $U if already installed.
30365 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30366 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30367 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30368 # will be set to the directory where LIBOBJS objects are built.
30369 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30370 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30372 LIBOBJS
=$ac_libobjs
30374 LTLIBOBJS
=$ac_ltlibobjs
30379 : "${CONFIG_STATUS=./config.status}"
30381 ac_clean_files_save
=$ac_clean_files
30382 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30384 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30386 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30388 # Generated by $as_me.
30389 # Run this file to recreate the current configuration.
30390 # Compiler output produced by configure, useful for debugging
30391 # configure, is in config.log if it exists.
30394 ac_cs_recheck=false
30397 SHELL=\${CONFIG_SHELL-$SHELL}
30400 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30401 ## -------------------- ##
30402 ## M4sh Initialization. ##
30403 ## -------------------- ##
30405 # Be more Bourne compatible
30406 DUALCASE
=1; export DUALCASE
# for MKS sh
30407 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30410 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30411 # is contrary to our usage. Disable this feature.
30412 alias -g '${1+"$@"}'='"$@"'
30413 setopt NO_GLOB_SUBST
30415 case `(set -o) 2>/dev/null` in #(
30427 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30428 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30431 # Prefer a ksh shell builtin over an external printf program on Solaris,
30432 # but without wasting forks for bash or zsh.
30433 if test -z "$BASH_VERSION$ZSH_VERSION" \
30434 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30435 as_echo='print
-r --'
30436 as_echo_n='print
-rn --'
30437 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30438 as_echo='printf %s
\n'
30439 as_echo_n='printf %s
'
30441 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30442 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30443 as_echo_n='/usr
/ucb
/echo -n'
30445 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30446 as_echo_n_body='eval
30450 expr "X$arg" : "X\\(.*\\)$as_nl";
30451 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30453 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30455 export as_echo_n_body
30456 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30458 export as_echo_body
30459 as_echo='sh
-c $as_echo_body as_echo
'
30462 # The user is always right.
30463 if test "${PATH_SEPARATOR+set}" != set; then
30465 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30466 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30473 # We need space, tab and new line, in precisely that order. Quoting is
30474 # there to prevent editors from complaining about space-tab.
30475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30476 # splitting by setting IFS to empty value.)
30479 # Find who we are. Look in the path if we contain no directory separator.
30482 *[\\/]* ) as_myself=$0 ;;
30483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30484 for as_dir in $PATH
30487 test -z "$as_dir" && as_dir=.
30488 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30494 # We did not find ourselves, most probably we were run as `sh COMMAND'
30495 # in which case we are not to be found in the path.
30496 if test "x$as_myself" = x
; then
30499 if test ! -f "$as_myself"; then
30500 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30504 # Unset variables that we do not need and which cause bugs (e.g. in
30505 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30506 # suppresses any "Segmentation fault" message there. '((' could
30507 # trigger a bug in pdksh 5.2.14.
30508 for as_var
in BASH_ENV ENV MAIL MAILPATH
30509 do eval test x\
${$as_var+set} = xset \
30510 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30523 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30526 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30527 # ----------------------------------------
30528 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30529 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30530 # script with STATUS, using 1 if that was 0.
30533 as_status
=$1; test $as_status -eq 0 && as_status
=1
30535 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30536 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30538 $as_echo "$as_me: error: $2" >&2
30539 as_fn_exit
$as_status
30543 # as_fn_set_status STATUS
30544 # -----------------------
30545 # Set $? to STATUS, without forking.
30546 as_fn_set_status
()
30549 } # as_fn_set_status
30551 # as_fn_exit STATUS
30552 # -----------------
30553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30557 as_fn_set_status
$1
30563 # Portably unset VAR.
30566 { eval $1=; unset $1;}
30568 as_unset
=as_fn_unset
30569 # as_fn_append VAR VALUE
30570 # ----------------------
30571 # Append the text in VALUE to the end of the definition contained in VAR. Take
30572 # advantage of any shell optimizations that allow amortized linear growth over
30573 # repeated appends, instead of the typical quadratic growth present in naive
30575 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30576 eval 'as_fn_append ()
30587 # as_fn_arith ARG...
30588 # ------------------
30589 # Perform arithmetic evaluation on the ARGs, and store the result in the
30590 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30591 # must be portable across $(()) and expr.
30592 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30593 eval 'as_fn_arith ()
30600 as_val
=`expr "$@" || test $? -eq 1`
30605 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30606 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30612 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30613 as_basename
=basename
30618 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30624 as_me
=`$as_basename -- "$0" ||
30625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30626 X"$0" : 'X\(//\)$' \| \
30627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30629 sed '/^.*\/\([^/][^/]*\)\/*$/{
30643 # Avoid depending upon Character Ranges.
30644 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30645 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30646 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30647 as_cr_digits
='0123456789'
30648 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30650 ECHO_C
= ECHO_N
= ECHO_T
=
30651 case `echo -n x` in #(((((
30653 case `echo 'xy\c'` in
30654 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30656 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30663 rm -f conf$$ conf$$.exe conf$$.
file
30664 if test -d conf$$.dir
; then
30665 rm -f conf$$.dir
/conf$$.
file
30668 mkdir conf$$.dir
2>/dev
/null
30670 if (echo >conf$$.
file) 2>/dev
/null
; then
30671 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30673 # ... but there are two gotchas:
30674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30676 # In both cases, we have to default to `cp -pR'.
30677 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30679 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30687 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30688 rmdir conf$$.dir
2>/dev
/null
30693 # Create "$as_dir" as a directory, including parents if necessary.
30698 -*) as_dir
=.
/$as_dir;;
30700 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30704 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30705 *) as_qdir
=$as_dir;;
30707 as_dirs
="'$as_qdir' $as_dirs"
30708 as_dir
=`$as_dirname -- "$as_dir" ||
30709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30710 X"$as_dir" : 'X\(//\)[^/]' \| \
30711 X"$as_dir" : 'X\(//\)$' \| \
30712 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30713 $as_echo X"$as_dir" |
30714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30718 /^X\(\/\/\)[^/].*/{
30731 test -d "$as_dir" && break
30733 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30734 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
30738 if mkdir
-p .
2>/dev
/null
; then
30739 as_mkdir_p
='mkdir -p "$as_dir"'
30741 test -d .
/-p && rmdir .
/-p
30746 # as_fn_executable_p FILE
30747 # -----------------------
30748 # Test if FILE is an executable regular file.
30749 as_fn_executable_p
()
30751 test -f "$1" && test -x "$1"
30752 } # as_fn_executable_p
30753 as_test_x
='test -x'
30754 as_executable_p
=as_fn_executable_p
30756 # Sed expression to map a string onto a valid CPP name.
30757 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30759 # Sed expression to map a string onto a valid variable name.
30760 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30764 ## ----------------------------------- ##
30765 ## Main body of $CONFIG_STATUS script. ##
30766 ## ----------------------------------- ##
30768 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30771 # Save the log message, to keep $0 and so on meaningful, and to
30772 # report actual input values of CONFIG_FILES etc. instead of their
30773 # values after options handling.
30775 This file was extended by $as_me, which was
30776 generated by GNU Autoconf 2.69. Invocation command line was
30778 CONFIG_FILES = $CONFIG_FILES
30779 CONFIG_HEADERS = $CONFIG_HEADERS
30780 CONFIG_LINKS = $CONFIG_LINKS
30781 CONFIG_COMMANDS = $CONFIG_COMMANDS
30784 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30789 case $ac_config_files in *"
30790 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30793 case $ac_config_headers in *"
30794 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30799 # Files that config.status was made for.
30800 config_files="$ac_config_files"
30801 config_headers="$ac_config_headers"
30802 config_links="$ac_config_links"
30803 config_commands="$ac_config_commands"
30807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30809 \`$as_me' instantiates files and other configuration actions
30810 from templates according to the current configuration. Unless the files
30811 and actions are specified as TAGs, all are instantiated by default.
30813 Usage: $0 [OPTION]... [TAG]...
30815 -h, --help print this help, then exit
30816 -V, --version print version number and configuration settings, then exit
30817 --config print configuration, then exit
30818 -q, --quiet, --silent
30819 do not print progress messages
30820 -d, --debug don't remove temporary files
30821 --recheck update $as_me by reconfiguring in the same conditions
30822 --file=FILE[:TEMPLATE]
30823 instantiate the configuration file FILE
30824 --header=FILE[:TEMPLATE]
30825 instantiate the configuration header FILE
30827 Configuration files:
30830 Configuration headers:
30833 Configuration links:
30836 Configuration commands:
30839 Report bugs to the package provider."
30842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30843 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30846 configured by $0, generated by GNU Autoconf 2.69,
30847 with options \\"\$ac_cs_config\\"
30849 Copyright (C) 2012 Free Software Foundation, Inc.
30850 This config.status script is free software; the Free Software Foundation
30851 gives unlimited permission to copy, distribute and modify it."
30856 test -n "\$AWK" || AWK=awk
30859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30860 # The default lists apply if the user does not specify any file.
30866 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30867 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30871 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30883 # Handling of the options.
30884 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30886 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30887 $as_echo "$ac_cs_version"; exit ;;
30888 --config |
--confi |
--conf |
--con |
--co |
--c )
30889 $as_echo "$ac_cs_config"; exit ;;
30890 --debug |
--debu |
--deb |
--de |
--d |
-d )
30892 --file |
--fil |
--fi |
--f )
30895 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30896 '') as_fn_error $?
"missing file argument" ;;
30898 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30899 ac_need_defaults
=false
;;
30900 --header |
--heade |
--head |
--hea )
30903 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30905 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30906 ac_need_defaults
=false
;;
30908 # Conflict between --help and --header
30909 as_fn_error $?
"ambiguous option: \`$1'
30910 Try \`$0 --help' for more information.";;
30911 --help |
--hel |
-h )
30912 $as_echo "$ac_cs_usage"; exit ;;
30913 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30914 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30917 # This is an error.
30918 -*) as_fn_error $?
"unrecognized option: \`$1'
30919 Try \`$0 --help' for more information." ;;
30921 *) as_fn_append ac_config_targets
" $1"
30922 ac_need_defaults
=false
;;
30928 ac_configure_extra_args
=
30930 if $ac_cs_silent; then
30932 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30937 if \$ac_cs_recheck; then
30938 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30940 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30941 CONFIG_SHELL='$SHELL'
30942 export CONFIG_SHELL
30947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30951 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30952 ## Running $as_me. ##
30958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30962 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30963 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30970 # Handling of arguments.
30971 for ac_config_target
in $ac_config_targets
30973 case $ac_config_target in
30974 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30975 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30976 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30977 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30978 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30979 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30980 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30981 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30982 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30984 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30989 # If the user did not use the arguments to specify the items to instantiate,
30990 # then the envvar interface is used. Set only those that are not.
30991 # We use the long form for the default assignment because of an extremely
30992 # bizarre bug on SunOS 4.1.3.
30993 if $ac_need_defaults; then
30994 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30995 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30996 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30997 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31000 # Have a temporary directory for convenience. Make it in the build tree
31001 # simply because there is no reason against having it here, and in addition,
31002 # creating and moving files from /tmp can sometimes cause problems.
31003 # Hook for its removal unless debugging.
31004 # Note that there is a small window in which the directory will not be cleaned:
31005 # after its creation but before its name has been assigned to `$tmp'.
31009 trap 'exit_status=$?
31010 : "${ac_tmp:=$tmp}"
31011 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31013 trap 'as_fn_exit 1' 1 2 13 15
31015 # Create a (secure) tmp directory for tmp files.
31018 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31022 tmp
=.
/conf$$
-$RANDOM
31023 (umask 077 && mkdir
"$tmp")
31024 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31027 # Set up the scripts for CONFIG_FILES section.
31028 # No need to generate them if there are no CONFIG_FILES.
31029 # This happens for instance with `./config.status config.h'.
31030 if test -n "$CONFIG_FILES"; then
31032 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31033 ac_cs_awk_getline
=:
31034 ac_cs_awk_pipe_init
=
31035 ac_cs_awk_read_file
='
31036 while ((getline aline < (F[key])) > 0)
31039 ac_cs_awk_pipe_fini
=
31041 ac_cs_awk_getline
=false
31042 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31043 ac_cs_awk_read_file
='
31045 print "cat " F[key] " &&"
31046 '$ac_cs_awk_pipe_init
31047 # The final `:' finishes the AND list.
31048 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31050 ac_cr
=`echo X | tr X '\015'`
31051 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31052 # But we know of no other shell where ac_cr would be empty at this
31053 # point, so we can use a bashism as a fallback.
31054 if test "x$ac_cr" = x
; then
31055 eval ac_cr
=\$
\'\\r
\'
31057 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31058 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31061 ac_cs_awk_cr
=$ac_cr
31064 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31067 # Create commands to substitute file output variables.
31069 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31070 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31071 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31074 } >conf$
$files.sh
&&
31075 . .
/conf$
$files.sh ||
31076 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31077 rm -f conf$
$files.sh
31080 echo "cat >conf$$subs.awk <<_ACEOF" &&
31081 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31083 } >conf$$subs.sh ||
31084 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31085 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31087 for ac_last_try in false false false false false :; do
31088 . ./conf$$subs.sh ||
31089 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31091 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31092 if test $ac_delim_n = $ac_delim_num; then
31094 elif $ac_last_try; then
31095 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31097 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31100 rm -f conf$$subs.sh
31102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31103 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31107 s/^/S["/; s
/!.
*/"]=/
31117 s/\(.\{148\}\)..*/\1/
31119 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31124 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31131 s/\(.\{148\}\)..*/\1/
31133 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31137 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31142 ' <conf$$subs.awk | sed '
31147 ' >>$CONFIG_STATUS || ac_write_fail=1
31148 rm -f conf$$subs.awk
31149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31151 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31152 for (key in S) S_is_set[key] = 1
31154 \$ac_cs_awk_pipe_init
31158 nfields = split(line, field, "@
")
31160 len = length(field[1])
31161 for (i = 2; i < nfields; i++) {
31163 keylen = length(key)
31164 if (S_is_set[key]) {
31166 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31167 len += length(value) + length(field[++i])
31172 if (nfields == 3 && !substed) {
31174 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31175 \$ac_cs_awk_read_file
31181 \$ac_cs_awk_pipe_fini
31184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31185 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31186 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31189 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31190 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31193 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31194 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31195 # trailing colons and then remove the whole line if VPATH becomes empty
31196 # (actually we leave an empty line to preserve line numbers).
31197 if test "x
$srcdir" = x.; then
31198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31217 fi # test -n "$CONFIG_FILES"
31219 # Set up the scripts for CONFIG_HEADERS section.
31220 # No need to generate them if there are no CONFIG_HEADERS.
31221 # This happens for instance with `./config.status Makefile'.
31222 if test -n "$CONFIG_HEADERS"; then
31223 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31227 # Transform confdefs.h into an awk script `defines.awk', embedded as
31228 # here-document in config.status, that substitutes the proper values into
31229 # config.h.in to produce config.h.
31231 # Create a delimiter string that does not exist in confdefs.h, to ease
31232 # handling of long lines.
31234 for ac_last_try in false false :; do
31235 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31236 if test -z "$ac_tt"; then
31238 elif $ac_last_try; then
31239 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31241 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31245 # For the awk script, D is an array of macro values keyed by name,
31246 # likewise P contains macro parameters if any. Preserve backslash
31247 # newline sequences.
31249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31251 s/.\{148\}/&'"$ac_delim"'/g
31254 s/^[ ]*#[ ]*define[ ][ ]*/ /
31261 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31263 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31268 D["\
1"]=" \
3\\\\\\n
"\\/p
31270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31275 s/.\{148\}/&'"$ac_delim"'/g
31280 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31283 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31285 ' <confdefs.h | sed '
31286 s/'"$ac_delim"'/"\\\
31287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31290 for (key in D) D_is_set[key] = 1
31293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31295 split(line, arg, " ")
31296 if (arg[1] == "#") {
31300 defundef
= substr
(arg
[1], 2)
31303 split(mac1
, mac2
, "(") #)
31305 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31306 if (D_is_set
[macro
]) {
31307 # Preserve the white space surrounding the "#".
31308 print prefix
"define", macro P
[macro
] D
[macro
]
31311 # Replace #undef with comments. This is necessary, for example,
31312 # in the case of _POSIX_SOURCE, which is predefined and required
31313 # on some systems where configure will not decide to define it.
31314 if (defundef
== "undef") {
31315 print
"/*", prefix defundef
, macro
, "*/"
31323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31324 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31325 fi # test -n "$CONFIG_HEADERS"
31328 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31333 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31335 case $ac_mode$ac_tag in
31337 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31338 :[FH
]-) ac_tag
=-:-;;
31339 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31356 -) ac_f
="$ac_tmp/stdin";;
31357 *) # Look for the file first in the build tree, then in the source tree
31358 # (if the path is not absolute). The absolute path cannot be DOS-style,
31359 # because $ac_f cannot contain `:'.
31363 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31365 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31367 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31368 as_fn_append ac_file_inputs
" '$ac_f'"
31371 # Let's still pretend it is `configure' which instantiates (i.e., don't
31372 # use $as_me), people would be surprised to read:
31373 # /* config.h. Generated by config.status. */
31374 configure_input
='Generated from '`
31375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31377 if test x
"$ac_file" != x-
; then
31378 configure_input
="$ac_file. $configure_input"
31379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31380 $as_echo "$as_me: creating $ac_file" >&6;}
31382 # Neutralize special characters interpreted by sed in replacement strings.
31383 case $configure_input in #(
31384 *\
&* |
*\|
* |
*\\* )
31385 ac_sed_conf_input
=`$as_echo "$configure_input" |
31386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31387 *) ac_sed_conf_input
=$configure_input;;
31391 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31392 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31397 ac_dir
=`$as_dirname -- "$ac_file" ||
31398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31399 X"$ac_file" : 'X\(//\)[^/]' \| \
31400 X"$ac_file" : 'X\(//\)$' \| \
31401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31402 $as_echo X"$ac_file" |
31403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31407 /^X\(\/\/\)[^/].*/{
31420 as_dir
="$ac_dir"; as_fn_mkdir_p
31424 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31426 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31427 # A ".." for each directory in $ac_dir_suffix.
31428 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31429 case $ac_top_builddir_sub in
31430 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31431 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31434 ac_abs_top_builddir
=$ac_pwd
31435 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31436 # for backward compatibility:
31437 ac_top_builddir
=$ac_top_build_prefix
31440 .
) # We are building in place.
31442 ac_top_srcdir
=$ac_top_builddir_sub
31443 ac_abs_top_srcdir
=$ac_pwd ;;
31444 [\\/]* | ?
:[\\/]* ) # Absolute name.
31445 ac_srcdir
=$srcdir$ac_dir_suffix;
31446 ac_top_srcdir
=$srcdir
31447 ac_abs_top_srcdir
=$srcdir ;;
31448 *) # Relative name.
31449 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31450 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31451 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31453 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31465 # If the template does not know about datarootdir, expand it.
31466 # FIXME: This hack should be removed a few years after 2.60.
31467 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31478 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31479 *datarootdir
*) ac_datarootdir_seen
=yes;;
31480 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31482 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31485 ac_datarootdir_hack='
31486 s&@datadir@&$datadir&g
31487 s&@docdir@&$docdir&g
31488 s&@infodir@&$infodir&g
31489 s&@localedir@&$localedir&g
31490 s&@mandir@&$mandir&g
31491 s&\\\${datarootdir}&$datarootdir&g' ;;
31495 # Neutralize VPATH when `$srcdir' = `.'.
31496 # Shell code in configure.ac might set extrasub.
31497 # FIXME: do we really want to maintain this feature?
31498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31499 ac_sed_extra="$ac_vpsub
31502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31504 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31505 s|@configure_input@|
$ac_sed_conf_input|
;t t
31506 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31507 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31508 s
&@srcdir@
&$ac_srcdir&;t t
31509 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31510 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31511 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31512 s
&@builddir@
&$ac_builddir&;t t
31513 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31514 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31515 $ac_datarootdir_hack
31517 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31518 if $ac_cs_awk_getline; then
31519 $AWK -f "$ac_tmp/subs.
awk"
31521 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
31523 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
31525 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31526 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
31527 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31528 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
31529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31530 which seems to be undefined. Please make sure it is defined" >&5
31531 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31532 which seems to be undefined. Please make sure it is defined" >&2;}
31534 rm -f "$ac_tmp/stdin"
31536 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31537 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31545 if test x"$ac_file" != x-; then
31547 $as_echo "/* $configure_input */" \
31548 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31549 } >"$ac_tmp/config.h" \
31550 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31551 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31552 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31553 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31556 mv "$ac_tmp/config.h" "$ac_file" \
31557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31560 $as_echo "/* $configure_input */" \
31561 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31562 || as_fn_error $? "could not create -" "$LINENO" 5
31570 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31573 # Prefer the file from the source tree if names are identical.
31574 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31575 ac_source=$srcdir/$ac_source
31578 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31579 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31581 if test ! -r "$ac_source"; then
31582 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31586 # Try a relative symlink, then a hard link, then a copy.
31588 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31589 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31591 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31592 ln "$ac_source" "$ac_file" 2>/dev/null ||
31593 cp -p "$ac_source" "$ac_file" ||
31594 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31597 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31598 $as_echo "$as_me: executing $ac_file commands" >&6;}
31603 case $ac_file$ac_mode in
31604 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31606 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31607 for lang in $subdirs c-family common
31609 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31611 "as":F) chmod +x as ;;
31612 "collect-ld":F) chmod +x collect-ld ;;
31613 "nm":F) chmod +x nm ;;
31615 case ${CONFIG_HEADERS} in
31616 *auto-host.h:config.in*)
31619 # Make sure all the subdirs exist.
31620 for d in $subdirs doc build common c-family
31622 test -d $d || mkdir $d
31632 ac_clean_files=$ac_clean_files_save
31634 test $ac_write_fail = 0 ||
31635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31638 # configure is writing to config.log, and then calls config.status.
31639 # config.status does its own redirection, appending to config.log.
31640 # Unfortunately, on DOS this fails, as config.log is still kept open
31641 # by configure, so config.status won't be able to
write to it
; its
31642 # output is simply discarded. So we exec the FD to /dev/null,
31643 # effectively closing config.log, so it can be properly (re)opened and
31644 # appended to by config.status. When coming back to configure, we
31645 # need to make the FD available again.
31646 if test "$no_create" != yes; then
31648 ac_config_status_args
=
31649 test "$silent" = yes &&
31650 ac_config_status_args
="$ac_config_status_args --quiet"
31652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31655 # would make configure fail if this is the last instruction.
31656 $ac_cs_success || as_fn_exit
1
31658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}